<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Halloween Desserts &#8211; kitchen by clare</title>
	<atom:link href="https://www.kitchenbyclare.com/category/halloween-desserts/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kitchenbyclare.com</link>
	<description>kitchen by clare</description>
	<lastBuildDate>Sun, 30 Nov 2025 18:51:12 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Rice Krispie Christmas Puddings Recipe: Delightful Treats Await!</title>
		<link>https://www.kitchenbyclare.com/rice-krispie-christmas-puddings-recipe/</link>
					<comments>https://www.kitchenbyclare.com/rice-krispie-christmas-puddings-recipe/#respond</comments>
		
		<dc:creator><![CDATA[Greco clare]]></dc:creator>
		<pubDate>Sun, 30 Nov 2025 18:51:12 +0000</pubDate>
				<category><![CDATA[Halloween Desserts]]></category>
		<guid isPermaLink="false">https://www.kitchenbyclare.com/2025/11/30/rice-krispie-christmas-puddings-recipe/</guid>

					<description><![CDATA[Rice Krispie Christmas Puddings Recipe As the holiday season approaches, I find myself searching for delightful treats that bring joy without the fuss. That&#8217;s where my Rice Krispie Christmas Puddings Recipe comes in! These little gems are not only quick to whip up, but they also add a festive flair to any gathering. Perfect for ... <a title="Rice Krispie Christmas Puddings Recipe: Delightful Treats Await!" class="read-more" href="https://www.kitchenbyclare.com/rice-krispie-christmas-puddings-recipe/" aria-label="En savoir plus sur Rice Krispie Christmas Puddings Recipe: Delightful Treats Await!">Lire plus</a>]]></description>
										<content:encoded><![CDATA[<h2>Rice Krispie Christmas Puddings Recipe</h2>
<p>As the holiday season approaches, I find myself searching for delightful treats that bring joy without the fuss. That&rsquo;s where my Rice Krispie Christmas Puddings Recipe comes in! These little gems are not only quick to whip up, but they also add a festive flair to any gathering. Perfect for busy moms like us, they require minimal time and effort, yet they impress everyone with their charm. Imagine the smiles on your loved ones&rsquo; faces as they indulge in these sweet, gooey bites. Let’s dive into this easy and fun recipe that’s sure to become a holiday favorite!</p>
<h2>Why You’ll Love This Rice Krispie Christmas Puddings Recipe</h2>
<p>This Rice Krispie Christmas Puddings Recipe is a lifesaver for busy days. It’s incredibly easy to make, taking just 20 minutes from start to finish. The delightful combination of crispy rice, gooey marshmallows, and rich chocolate creates a taste that’s simply irresistible. Plus, they’re a hit with kids and adults alike! You’ll love how these festive treats bring everyone together, making your holiday celebrations even sweeter.</p>
<h2>Ingredients for Rice Krispie Christmas Puddings Recipe</h2>
<p>Gathering the right ingredients is the first step to creating these delightful treats. Here’s what you’ll need:</p>
<ul>
<li><strong>Rice Krispies:</strong> The star of the show! These crispy rice cereal pieces provide the perfect crunch.</li>
<li><strong>Mini Marshmallows:</strong> They melt beautifully, creating that gooey texture we all love.</li>
<li><strong>Chocolate Chips:</strong> A sweet addition that adds richness and depth to each bite.</li>
<li><strong>Butter:</strong> This helps bind everything together and adds a lovely flavor.</li>
<li><strong>Vanilla Extract:</strong> A splash of this enhances the overall taste, making it even more delightful.</li>
<li><strong>Red and Green Sprinkles:</strong> These festive decorations bring a pop of color and holiday cheer!</li>
</ul>
<p>Feel free to get creative! You can swap chocolate chips for white chocolate or even add nuts for a crunchy twist. If you’re looking for a healthier option, consider using brown rice cereal instead. For exact measurements, check the bottom of the article where you can find everything available for printing.</p>
<h2>How to Make Rice Krispie Christmas Puddings Recipe</h2>
<h3>Step 1: Melt the Butter</h3>
<p>Start by placing your butter in a large saucepan over low heat. Stir it gently as it melts, ensuring it doesn’t burn. The goal is to have it completely melted and smooth, creating a lovely base for our sweet mixture. Patience is key here!</p>
<h3>Step 2: Add Mini Marshmallows</h3>
<p>Once the butter is melted, it’s time to add the mini marshmallows. Stir them in until they’re completely melted and combined with the butter. This gooey mixture is what makes our Rice Krispie Christmas Puddings so delightful. Keep stirring until it’s smooth and creamy!</p>
<h3>Step 3: Stir in Vanilla Extract</h3>
<p>Now, let’s enhance the flavor! Remove the saucepan from heat and stir in the vanilla extract. This little splash adds a warm, inviting aroma and taste to your mixture. It’s a simple step that makes a big difference in the overall flavor of your treats.</p>
<h3>Step 4: Combine Rice Krispies and Chocolate Chips</h3>
<p>Next, add the Rice Krispies and chocolate chips to the melted marshmallow mixture. Stir everything together until the Rice Krispies are well coated. This is where the magic happens! The crispy texture combined with the gooeyness is simply irresistible.</p>
<h3>Step 5: Shape into Puddings</h3>
<p>Allow the mixture to cool slightly, just enough so it’s manageable. Then, take small handfuls and shape them into pudding-like forms. Don’t worry about perfection; each one will have its unique charm. This is where your creativity shines!</p>
<h3>Step 6: Decorate with Sprinkles</h3>
<p>Now comes the fun part! Decorate your shaped puddings with red and green sprinkles. This festive touch not only makes them look beautiful but also adds a delightful crunch. Let your imagination run wild with the decorations!</p>
<h3>Step 7: Let Them Set</h3>
<p>Finally, let your Rice Krispie Christmas Puddings set for about 30 minutes. This allows them to firm up, making them easier to handle and serve. The anticipation will be worth it when you see everyone’s delighted faces as they enjoy these treats!</p>
<h2>Tips for Success</h2>
<ul>
<li>Use fresh mini marshmallows for the best gooey texture.</li>
<li>Don’t rush the melting process; low heat is your friend.</li>
<li>Wet your hands slightly when shaping the puddings to prevent sticking.</li>
<li>Experiment with different sprinkles or toppings for a unique twist.</li>
<li>Store leftovers in an airtight container to keep them fresh.</li>
</ul>
<h2>Equipment Needed</h2>
<ul>
<li><strong>Large saucepan:</strong> A non-stick option works best for easy cleanup.</li>
<li><strong>Wooden spoon:</strong> Perfect for stirring; a spatula can also do the trick.</li>
<li><strong>Measuring cups:</strong> Essential for accurate ingredient portions.</li>
<li><strong>Baking sheet:</strong> Use it to set your puddings once shaped.</li>
</ul>
<h2>Variations</h2>
<ul>
<li><strong>Chocolate Lovers:</strong> Swap out the chocolate chips for dark chocolate or even mint chocolate chips for a festive twist.</li>
<li><strong>Nutty Delight:</strong> Add chopped nuts like almonds or pecans for an extra crunch and flavor.</li>
<li><strong>Fruit Fusion:</strong> Incorporate dried fruits like cranberries or cherries for a chewy texture and a pop of color.</li>
<li><strong>Gluten-Free Option:</strong> Use gluten-free Rice Krispies to make these treats suitable for those with dietary restrictions.</li>
<li><strong>Vegan Version:</strong> Substitute butter with coconut oil and use vegan chocolate chips for a plant-based treat.</li>
</ul>
<h2>Serving Suggestions</h2>
<ul>
<li>Pair these delightful Rice Krispie Christmas Puddings with a warm cup of hot cocoa for a cozy treat.</li>
<li>Serve them on a festive platter, surrounded by holiday-themed decorations for a cheerful presentation.</li>
<li>Consider adding a scoop of vanilla ice cream on the side for an extra indulgence.</li>
</ul>
<h2>FAQs about Rice Krispie Christmas Puddings Recipe</h2>
<p><strong>Can I make these Rice Krispie Christmas Puddings ahead of time?</strong></p>
<p>Absolutely! These treats can be made a day or two in advance. Just store them in an airtight container to keep them fresh and delicious.</p>
<p><strong>What can I use instead of chocolate chips?</strong></p>
<p>If chocolate isn’t your thing, feel free to swap in white chocolate chips, butterscotch chips, or even peanut butter chips for a different flavor profile.</p>
<p><strong>How do I store leftover Rice Krispie Christmas Puddings?</strong></p>
<p>Store any leftovers in an airtight container at room temperature. They should stay fresh for up to a week, but I doubt they’ll last that long!</p>
<p><strong>Can I use regular marshmallows instead of mini marshmallows?</strong></p>
<p>Yes, you can! Just cut regular marshmallows into smaller pieces to ensure they melt evenly. The gooey goodness will still shine through!</p>
<p><strong>Are these Rice Krispie Christmas Puddings gluten-free?</strong></p>
<p>To make them gluten-free, simply use gluten-free Rice Krispies. This way, everyone can enjoy these festive treats without worry!</p>
<h2>Summarizing the Joy of Rice Krispie Christmas Puddings Recipe</h2>
<p>Creating these Rice Krispie Christmas Puddings is more than just making a treat; it’s about sharing joy and laughter with loved ones. The simplicity of the recipe allows for quality time in the kitchen, where memories are made. Each bite is a delightful reminder of the holiday spirit, bringing smiles to faces young and old. Whether you’re hosting a gathering or simply enjoying a cozy night in, these festive puddings are sure to add a sprinkle of magic to your celebrations. So, roll up your sleeves and let the holiday cheer flow through your kitchen!</p>
<svg aria-hidden="true" style="position: absolute;width: 0;height: 0;overflow: hidden" xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol viewbox="9 9 46 42" id="wpt-star-full">
	<path d="m46.3 52-14.4-9.5-14.4 9.4L22 35.3 8.7 24.5l17.1-.9 6.2-16 6 16 17.2 1-13.4 10.7z" />
</symbol>
</defs>
</svg>
<a class="button tasty-recipes-print-button tasty-recipes-no-print tasty-recipes-print-above-card" href="https://www.kitchenbyclare.com/rice-krispie-christmas-puddings-recipe/print/2776/">Print</a><span class="tasty-recipes-jump-target" id="tasty-recipes-2776-jump-target" style="display:block;padding-top:2px;margin-top:-2px;"></span><div id="tasty-recipes-2776" data-tr-id="2776" class="tasty-recipes tasty-recipes-2776 tasty-recipes-display tasty-recipes-has-image" data-tasty-recipes-customization="primary-color.background-color secondary-color.border-color">


<h2 class="tasty-recipes-title" data-tasty-recipes-customization="h2-color.color h2-transform.text-transform">Rice Krispie Christmas Puddings Recipe: Delightful Treats Await!</h2>
<div class="tasty-recipes-image-button-container">
			<div class="tasty-recipes-image">
			<img decoding="async" width="150" height="150" src="https://www.kitchenbyclare.com/wp-content/uploads/2025/11/Rice-Krispie-Christmas-Puddings-Recipe-150x150.webp" class="attachment-thumbnail size-thumbnail" alt="Rice Krispie Christmas Puddings Recipe" data-pin-nopin="true" />		</div>
		<div class="tasty-recipes-buttons">
				<div class="tasty-recipes-button-wrap">
			
<a class="button tasty-recipes-print-button tasty-recipes-no-print" href="https://www.kitchenbyclare.com/rice-krispie-christmas-puddings-recipe/print/2776/" target="_blank" data-tasty-recipes-customization="">
			<img decoding="async" class="svg-print" data-pin-nopin="true" src="https://www.kitchenbyclare.com/wp-content/plugins/tasty-recipes/templates/buttons/images/icon-print.png">
		Print Recipe</a>
		</div>
					</div>
</div>
	<div class="tasty-recipes-rating" data-tasty-recipes-customization="body-color.color">
					<p><svg aria-hidden="true" style="position: absolute;width: 0;height: 0;overflow: hidden" xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol viewbox="9 9 46 42" id="wpt-star-full">
	<path d="m46.3 52-14.4-9.5-14.4 9.4L22 35.3 8.7 24.5l17.1-.9 6.2-16 6 16 17.2 1-13.4 10.7z" />
</symbol>
</defs>
</svg>
<span class="tasty-recipes-ratings-buttons tasty-recipes-no-ratings-buttons"	data-tr-default-rating="0"	>		<span class="tasty-recipes-rating" >		<i class="checked" data-rating="5">			<span class="tasty-recipes-rating-solid" data-tr-clip="0">				<svg class="tasty-recipes-svg" width="18" height="17"><use href="#wpt-star-full" /></svg>			</span>			<span class="tasty-recipes-screen-reader">				5 Stars			</span>		</i>	</span>		<span class="tasty-recipes-rating" >		<i class="checked" data-rating="4">			<span class="tasty-recipes-rating-solid" data-tr-clip="0">				<svg class="tasty-recipes-svg" width="18" height="17"><use href="#wpt-star-full" /></svg>			</span>			<span class="tasty-recipes-screen-reader">				4 Stars			</span>		</i>	</span>		<span class="tasty-recipes-rating" >		<i class="checked" data-rating="3">			<span class="tasty-recipes-rating-solid" data-tr-clip="0">				<svg class="tasty-recipes-svg" width="18" height="17"><use href="#wpt-star-full" /></svg>			</span>			<span class="tasty-recipes-screen-reader">				3 Stars			</span>		</i>	</span>		<span class="tasty-recipes-rating" >		<i class="checked" data-rating="2">			<span class="tasty-recipes-rating-solid" data-tr-clip="0">				<svg class="tasty-recipes-svg" width="18" height="17"><use href="#wpt-star-full" /></svg>			</span>			<span class="tasty-recipes-screen-reader">				2 Stars			</span>		</i>	</span>		<span class="tasty-recipes-rating" >		<i class="checked" data-rating="1">			<span class="tasty-recipes-rating-solid" data-tr-clip="0">				<svg class="tasty-recipes-svg" width="18" height="17"><use href="#wpt-star-full" /></svg>			</span>			<span class="tasty-recipes-screen-reader">				1 Star			</span>		</i>	</span></span></p>
							<p><span data-tasty-recipes-customization="detail-label-color.color" class="rating-label">No reviews</span></p>
			</div>


	<div class="tasty-recipes-description" data-tasty-recipes-customization="body-color.color">
		<p>A festive and delightful treat made with Rice Krispies, perfect for Christmas celebrations.</p>
	</div>

	<div class="tasty-recipes-details" data-tasty-recipes-customization="body-color.color">
		<ul>
							<li class="author"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Author:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-author-name">admin</span></li>
							<li class="prep-time"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Prep Time:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-prep-time">15 minutes</span></li>
							<li class="cook-time"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Cook Time:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-cook-time">5 minutes</span></li>
							<li class="total-time"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Total Time:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-total-time">20 minutes</span></li>
							<li class="yield"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Yield:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-yield">12 servings</span></li>
							<li class="category"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Category:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-category">Dessert</span></li>
							<li class="method"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Method:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-method">No-Bake</span></li>
							<li class="cuisine"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Cuisine:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-cuisine">American</span></li>
							<li class="diet"><strong data-tasty-recipes-customization="detail-label-color.color" class="tasty-recipes-label">Diet:</strong> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-diet">Vegetarian</span></li>
					</ul>
	</div>

	<div class="tasty-recipes-ingredients">
		<div class="tasty-recipes-ingredients-header">
			<div class="tasty-recipes-ingredients-clipboard-container">
				<h3 data-tasty-recipes-customization="h3-color.color h3-transform.text-transform">Ingredients</h3>
							</div>
			<div class="tasty-recipes-units-scale-container">
											</div>
		</div>
		<div class="tasty-recipes-ingredients-body" data-tasty-recipes-customization="body-color.color">
			<ul>
<li><span data-amount="3" data-unit="cup">3 cups</span> Rice Krispies</li>
<li><span data-amount="1" data-unit="cup">1 cup</span> mini marshmallows</li>
<li><span data-amount="0.5" data-unit="cup">1/2 cup</span> chocolate chips</li>
<li><span data-amount="0.25" data-unit="cup">1/4 cup</span> butter</li>
<li><span data-amount="0.5" data-unit="teaspoon">1/2 teaspoon</span> vanilla extract</li>
<li>Red and green sprinkles for decoration</li>
</ul>
<!--INSIDE_INGREDIENTS-->		</div>
		<div class="tasty-recipes-cook-mode">
	<div class="tasty-recipes-cook-mode__container">
		<label class="tasty-recipes-cook-mode__switch">
			<input type="checkbox" id="tasty_recipes_692d38a3541d0_cookmode">
			<span class="tasty-recipes-cook-mode__switch-slider tasty-recipes-cook-mode__switch-round"
				data-tasty-recipes-customization="button-color.background button-text-color.color"></span>
		</label>
		<label for="tasty_recipes_692d38a3541d0_cookmode">
			<span class="tasty-recipes-cook-mode__label">Cook Mode</span>
			<span class="tasty-recipes-cook-mode__helper">
				Prevent your screen from going dark			</span>
		</label>
	</div>
</div>
	</div>

	<div class="tasty-recipe-instructions">
		<div class="tasty-recipes-instructions-header">
			<h3 data-tasty-recipes-customization="h3-color.color h3-transform.text-transform">Instructions</h3>
					</div>
		<div class="tasty-recipes-instructions-body" data-tasty-recipes-customization="body-color.color">
			<ol>
<li id="instruction-step-1">In a large saucepan, melt the butter over low heat.</li>
<li id="instruction-step-2">Add the mini marshmallows and stir until completely melted.</li>
<li id="instruction-step-3">Remove from heat and stir in the vanilla extract.</li>
<li id="instruction-step-4">Add the Rice Krispies and chocolate chips, mixing until well coated.</li>
<li id="instruction-step-5">Allow the mixture to cool slightly, then shape into small pudding-like forms.</li>
<li id="instruction-step-6">Decorate with red and green sprinkles.</li>
<li id="instruction-step-7">Let them set for about 30 minutes before serving.</li>
</ol>
		</div>
	</div>



	<div class="tasty-recipes-notes">
		<h3 data-tasty-recipes-customization="h3-color.color h3-transform.text-transform">Notes</h3>
		<div class="tasty-recipes-notes-body" data-tasty-recipes-customization="body-color.color">
			<ul>
<li>Store in an airtight container for up to a week.</li>
<li>Feel free to add other festive decorations like edible glitter.</li>
<li>These can be made ahead of time and stored until needed.</li>
</ul>
		</div>
	</div>



	<div class="tasty-recipes-nutrition">
		<h3 data-tasty-recipes-customization="h3-color.color h3-transform.text-transform">Nutrition</h3>
		<ul>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Serving Size:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-serving-size">1 pudding</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Calories:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-calories">150</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Sugar:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-sugar">10g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Sodium:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-sodium">50mg</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Fat:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-fat">6g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Saturated Fat:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-saturated-fat">3g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Unsaturated Fat:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-unsaturated-fat">2g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Trans Fat:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-trans-fat">0g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Carbohydrates:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-carbohydrates">22g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Fiber:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-fiber">0g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Protein:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-protein">1g</span></li>
							<li><strong class="tasty-recipes-label" data-tasty-recipes-customization="body-color.color">Cholesterol:</strong> <span data-tasty-recipes-customization="body-color.color" class="tasty-recipes-cholesterol">15mg</span></li>
					</ul>
	</div>


<footer class="tasty-recipes-entry-footer">
	<h3 data-tasty-recipes-customization="footer-heading-color.color h3-transform.text-transform footer-heading.innerText">Did you make this recipe?</h3>
	<div data-tasty-recipes-customization="footer-description-color.color footer-description.innerHTML"><p>Share a photo and tag us — we can't wait to see what you've made!</p>
</div>
</footer>



<script>
window.trCommon={"minRating":6,"ajaxurl":"https:\/\/www.kitchenbyclare.com\/wp-admin\/admin-ajax.php","ratingNonce":"","postId":2777};
window.TastyRecipes = window.TastyRecipes || {};

window.TastyRecipes.smoothScroll = {
init() {
document.addEventListener( 'click', ( e ) => {
let anchor = e.target;
if ( anchor.tagName !== 'A' ) {
anchor = anchor.closest( 'a.tasty-recipes-scrollto' );
}

if ( ! anchor || ! anchor.classList.contains( 'tasty-recipes-scrollto' ) ) {
return;
}

const elementHref = anchor.getAttribute( 'href' );
if ( ! elementHref ) {
return;
}

e.preventDefault();
this.goToSelector( elementHref );
});
},
goToSelector( selector ) {
const element = document.querySelector( selector );
if ( ! element ) {
return;
}
element.scrollIntoView( { behavior: 'smooth' } );
}
};

document.addEventListener(
'DOMContentLoaded',
() => window.TastyRecipes.smoothScroll.init()
);

window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.cookMode = {
wakeLockApi: false,
wakeLock: false,
cookModeSelector: '.tasty-recipes-cook-mode',
init() {
if ("wakeLock" in navigator && "request" in navigator.wakeLock) {
this.wakeLockApi = navigator.wakeLock;
}

const cookModes = document.querySelectorAll(this.cookModeSelector);

if (cookModes.length > 0) {
for (const cookMode of cookModes) {
if (this.wakeLockApi) {
cookMode.querySelector('input[type="checkbox"]').addEventListener("change", event => {
this.checkboxChange(event.target);
}, false);
} else {
cookMode.style.display = "none";
}
}
}
},
checkboxChange(checkbox) {
if (checkbox.checked) {
this.lock();
} else {
this.unlock();
}
},
setCheckboxesState(state) {
const checkboxes = document.querySelectorAll(this.cookModeSelector + ' input[type="checkbox"]');
for (const checkbox of checkboxes) {
checkbox.checked = state;
}
},
async lock() {
try {
this.wakeLock = await this.wakeLockApi.request("screen");
this.wakeLock.addEventListener("release", () => {
this.wakeLock = false;
this.setCheckboxesState(false);
});
this.setCheckboxesState(true);
} catch (error) {
this.setCheckboxesState(false);
}
},
unlock() {
if (this.wakeLock) {
this.wakeLock.release();
this.wakeLock = false;
}
this.setCheckboxesState(false);
}
};

(function(callback) {
if (document.readyState !== "loading") {
callback();
} else {
document.addEventListener("DOMContentLoaded", callback);
}
})(() => {
window.TastyRecipes.cookMode.init();
});



window.TastyRecipes = window.TastyRecipes || {};

window.TastyRecipes.staticTooltip = {
element: null,
tooltipElement: null,
deleting: false,
init( element ) {
if ( this.deleting ) {
return;
}
this.element = element;
this.buildElements();
},
destroy() {
if ( ! this.tooltipElement || this.deleting ) {
return;
}

this.deleting = true;
this.tooltipElement.classList.remove( 'opened' );

setTimeout( () => {
this.tooltipElement.remove();
this.deleting = false;
}, 500 );
},
buildElements() {
const tooltipElement = document.createElement( 'div' );
tooltipElement.classList.add( 'tasty-recipes-static-tooltip');
tooltipElement.setAttribute( 'id', 'tasty-recipes-tooltip' );

const currentTooltipElement = document.getElementById( 'tasty-recipes-tooltip' );
if ( currentTooltipElement ) {
document.body.replaceChild( tooltipElement, currentTooltipElement );
} else {
document.body.appendChild( tooltipElement );
}

this.tooltipElement = document.getElementById( 'tasty-recipes-tooltip' );
},
show() {
if ( ! this.tooltipElement ) {
return;
}

const tooltipTop = this.element.getBoundingClientRect().top
+ window.scrollY
- 10 // 10px offset.
- this.tooltipElement.getBoundingClientRect().height;
const tooltipLeft = this.element.getBoundingClientRect().left
- ( this.tooltipElement.getBoundingClientRect().width / 2 )
+ ( this.element.getBoundingClientRect().width / 2 ) - 1;
const posLeft = Math.max( 10, tooltipLeft );
this.maybeRemoveTail( posLeft !== tooltipLeft );

this.tooltipElement.setAttribute( 'style', 'top:' + tooltipTop + 'px;left:' + posLeft + 'px;' );
this.tooltipElement.classList.add( 'opened' );

},
maybeRemoveTail( removeTail ) {
if ( removeTail ) {
this.tooltipElement.classList.add( 'tr-hide-tail' );
} else {
this.tooltipElement.classList.remove( 'tr-hide-tail' );
}
},
changeMessage( message ) {
if ( ! this.tooltipElement ) {
return;
}
this.tooltipElement.innerHTML = message;
}
};

window.TastyRecipes.ajax = {
sendPostRequest( url, data, success, failure ) {
const xhr = new XMLHttpRequest();
xhr.open( 'POST', url, true );
xhr.send( this.preparePostData( data ) );

xhr.onreadystatechange = () => {
if ( 4 !== xhr.readyState ) {
return;
}
if ( xhr.status === 200 ) {
success( JSON.parse( xhr.responseText ) );
return;
}

failure( xhr );
};

xhr.onerror = () => {
failure( xhr );
};
},
preparePostData( data ) {
const formData = new FormData();

for ( const key in data ) {
formData.append( key, data[key] );
}
return formData;
},
};

window.TastyRecipes.ratings = {
defaultRating: 0,
currentRatingPercentage: 100,
savingRating: false,
init( minRating ) {
this.minRating = minRating;

this.formWatchRating();
this.closeTooltipWhenClickOutside();
this.addBodyClassBasedOnSelectedRating();
this.backwardCompFormRatingPosition();
},
formWatchRating() {
const ratings = document.querySelectorAll('.tasty-recipes-no-ratings-buttons [data-rating]');
if ( ratings.length <= 0 ) {
return;
}
for ( const rating of ratings ) {
rating.addEventListener( 'click', event => {
event.preventDefault();
this.defaultRating = event.target.closest( '.checked' ).dataset.rating;
this.setCheckedStar( event.target );
this.maybeSendRating( this.defaultRating, event.target );
this.setRatingInForm( this.defaultRating );
} );
}
},
closeTooltipWhenClickOutside() {
window.addEventListener( 'click', e => {
// Bailout (don't remove the tooltip) when the clicked element is a rating star, or it's the tooltip itself.
if ( e.target.closest( '.tasty-recipes-rating' ) || e.target.classList.contains( 'tasty-recipes-static-tooltip' ) ) {
return;
}

window.TastyRecipes.staticTooltip.destroy();
} );
},
 setRatingInForm( rating ) {
const ratingInput = document.querySelector( '#respond .tasty-recipes-rating[value="' + rating + '"]' );
if ( ! ratingInput ) {
return;
}
ratingInput.click();
},
addBodyClassBasedOnSelectedRating() {
const ratingInputs = document.querySelectorAll( 'input.tasty-recipes-rating' );
if ( ! ratingInputs ) {
return;
}
for ( const ratingInput of ratingInputs ) {
ratingInput.addEventListener( 'click', currentEvent => {
const selectedRating = currentEvent.target.getAttribute( 'value' );
this.handleBodyClassByRating( selectedRating );
this.toggleCommentTextareaRequired( selectedRating );
} );
}
},
handleBodyClassByRating( rating ) {
if ( rating < this.minRating ) {
document.body.classList.remove( 'tasty-recipes-selected-minimum-rating' );
return;
}
document.body.classList.add( 'tasty-recipes-selected-minimum-rating' );
},
toggleCommentTextareaRequired( rating ) {
const commentTextarea = document.getElementById( 'comment' );
if ( ! commentTextarea ) {
return;
}

if ( rating < this.minRating ) {
commentTextarea.setAttribute( 'required', '' );
return;
}

commentTextarea.removeAttribute( 'required' );
},
maybeSendRating( rating, element ) {
if ( this.savingRating === rating ) {
return;
}

this.savingRating = rating;
window.TastyRecipes.staticTooltip.init( element );

const recipeCardElement = element.closest( '.tasty-recipes' );
if ( ! recipeCardElement ) {
window.TastyRecipes.staticTooltip.destroy();
return;
}

window.TastyRecipes.ajax.sendPostRequest(
window.trCommon.ajaxurl,
{
action: 'tasty_recipes_save_rating',
rating,
nonce: window.trCommon.ratingNonce,
post_id: window.trCommon.postId,
recipe_id: recipeCardElement.dataset.trId,
},
( response ) => {
window.TastyRecipes.staticTooltip.changeMessage( response.data.message );
window.TastyRecipes.staticTooltip.show();
this.updateAverageText( response.data, recipeCardElement );
this.maybeFillCommentForm( response.data );

// Hide the tooltip after 5 seconds.
setTimeout( () => {
this.maybeResetTooltip( recipeCardElement, response.data, rating );
}, 5000 );
},
() => {
this.resetTooltip( recipeCardElement );
}
);
},
updateAverageText( data, recipeCardElement ) {
if ( ! data.average ) {
return;
}
this.setRatingPercent( data );

if ( ! data.count ) {
return;
}

const quickLink = document.querySelector( '.tasty-recipes-rating-link' );
if ( quickLink ) {
this.setTextInContainer( quickLink, data );
this.setPartialStar( quickLink );
}

const cardStars = recipeCardElement.querySelector( '.tasty-recipes-ratings-buttons' );
cardStars.dataset.trDefaultRating = data.average;
this.setTextInContainer( recipeCardElement.querySelector( '.tasty-recipes-rating' ), data );
},
setTextInContainer( container, data ) {
if ( ! container ) {
return;
}

if ( data.label ) {
const ratingLabelElement = container.querySelector( '.rating-label' );
if ( ratingLabelElement ) {
ratingLabelElement.innerHTML = data.label;
}
return;
}

const averageElement = container.querySelector( '.average' );
if ( averageElement ) {
averageElement.textContent = data.average;
}

const countElement = container.querySelector( '.count' );
if ( countElement ) {
countElement.textContent = data.count;
}
},
setPartialStar( container ) {
const highestStar = container.querySelector( '[data-rating="' + Math.ceil( this.defaultRating ) + '"]' );
if ( highestStar ) {
highestStar.dataset.trClip = this.currentRatingPercentage;
}
},
setRatingPercent( data ) {
this.defaultRating = data.average.toFixed( 1 );
const parts = data.average.toFixed( 2 ).toString().split( '.' );
this.currentRatingPercentage = parts[1] ? parts[1] : 100;
if ( this.currentRatingPercentage === '00' ) {
this.currentRatingPercentage = 100;
}
},
setCheckedStar( target ) {
const cardRatingContainer = target.closest( '.tasty-recipes-ratings-buttons' );
const selectedRatingElement = cardRatingContainer.querySelector( '[data-tr-checked]' );
if ( selectedRatingElement ) {
delete selectedRatingElement.dataset.trChecked;
}

const thisStar = target.closest( '.tasty-recipes-rating' );
thisStar.dataset.trChecked = 1;
thisStar.querySelector( '[data-tr-clip]' ).dataset.trClip = 100;
},
maybeFillCommentForm( data ) {
if ( ! data.comment || ! data.comment.content ) {
return;
}

const commentForm = document.querySelector( '#commentform' );
if ( ! commentForm ) {
return;
}

const commentBox = commentForm.querySelector( '[name=comment]' );
if ( ! commentBox || commentBox.value ) {
return;
}

// Add comment details for editing.
commentBox.innerHTML = data.comment.content;
if ( data.comment.name ) {
commentForm.querySelector( '[name=author]' ).value = data.comment.name;
commentForm.querySelector( '[name=email]' ).value = data.comment.email;
}
},
maybeResetTooltip( recipeCardElement, data, rating ) {
if ( this.savingRating === rating ) {
this.resetTooltip( recipeCardElement, data );
}
},
resetTooltip( recipeCardElement, data ) {
window.TastyRecipes.staticTooltip.destroy();
this.savingRating = false;

// Reset the default rating.
const cardRatingContainer = recipeCardElement.querySelector( '.tasty-recipes-ratings-buttons' );
if ( cardRatingContainer ) {
this.defaultRating = ( data && data.average ) ? data.average.toFixed(1) : cardRatingContainer.dataset.trDefaultRating;
cardRatingContainer.dataset.trDefaultRating = this.defaultRating;

this.resetSelectedStar( cardRatingContainer, data );
}
},
resetSelectedStar( cardRatingContainer ) {
const selectedRatingElement = cardRatingContainer.querySelector( '[data-rating="' + Math.ceil( this.defaultRating ) + '"]' );
if ( selectedRatingElement ) {
selectedRatingElement.querySelector( '[data-tr-clip]' ).dataset.trClip = this.currentRatingPercentage;
selectedRatingElement.parentNode.dataset.trChecked = 1;
}

const previousSelectedElement= cardRatingContainer.querySelector( '[data-tr-checked]' );
if ( previousSelectedElement ) {
const currentSelectedRating = previousSelectedElement.querySelector('[data-rating]');
if ( currentSelectedRating !== selectedRatingElement ) {
delete previousSelectedElement.dataset.trChecked;
}
}
},
backwardCompFormRatingPosition() {
const ratingsButtons = document.querySelector( '#respond .tasty-recipes-ratings-buttons, #tasty-recipes-comment-rating .tasty-recipes-ratings-buttons' );
if ( ! ratingsButtons ) {
return;
}
const ratingsButtonsStyles = window.getComputedStyle(ratingsButtons);
if ( ! ratingsButtonsStyles.display.includes( 'flex' ) ) {
ratingsButtons.style.direction = 'rtl';
}

if ( typeof tastyRecipesRating !== 'undefined' ) {
// Select the rating that was previously selected in admin.
ratingsButtons.querySelector( '.tasty-recipes-rating[value="' + tastyRecipesRating + '"]' ).checked = true;
}

const ratingSpans = ratingsButtons.querySelectorAll( '.tasty-recipes-rating' );
for (const ratingSpan of ratingSpans) {
ratingSpan.addEventListener( 'click', event => {
if ( ratingSpan === event.target ) {
return;
}
ratingSpan.previousElementSibling.click();
} );
}
}
};

(function(callback) {
if (document.readyState !== "loading") {
callback();
} else {
window.addEventListener( 'load', callback );
}
})(() => {
window.TastyRecipes.ratings.init( window.trCommon ? window.trCommon.minRating : 4 );
});
</script></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.kitchenbyclare.com/rice-krispie-christmas-puddings-recipe/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
