<?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/"
	>

<channel>
	<title>miso Archives - Heavenlynn Healthy</title>
	<atom:link href="https://www.heavenlynnhealthy.com/tag/miso/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.heavenlynnhealthy.com/tag/miso/</link>
	<description>Eat Healthy, Live Healthy, Be Healthy</description>
	<lastBuildDate>Tue, 04 Jul 2017 07:58:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.heavenlynnhealthy.com/wp-content/uploads/2018/03/cropped-hlynnh_0zeilig-32x32.png</url>
	<title>miso Archives - Heavenlynn Healthy</title>
	<link>https://www.heavenlynnhealthy.com/tag/miso/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Easy buckwheat miso spaghetti and an Alnavit* giveaway!</title>
		<link>https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/</link>
					<comments>https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/#comments</comments>
		
		<dc:creator><![CDATA[Lynn]]></dc:creator>
		<pubDate>Tue, 04 Jul 2017 06:33:19 +0000</pubDate>
				<category><![CDATA[Gluten-free]]></category>
		<category><![CDATA[Recipes]]></category>
		<category><![CDATA[Refined sugar-free]]></category>
		<category><![CDATA[miso]]></category>
		<category><![CDATA[pasta]]></category>
		<category><![CDATA[spaghetti]]></category>
		<category><![CDATA[sponsored with love]]></category>
		<guid isPermaLink="false">https://www.heavenlynnhealthy.com/?p=4877</guid>

					<description><![CDATA[<div>
	<a href="https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/"><img title="Easy buckwheat miso spaghetti - plant-based, vegan, gluten free, refined sugar free - heavenlynnhealthy.com" src="https://www.heavenlynnhealthy.com/wp-content/uploads/2017/07/easy-miso-spaghetti-3-200x300.jpg" alt="Easy buckwheat miso spaghetti - plant-based, vegan, gluten free, refined sugar free - heavenlynnhealthy.com" width="200" height="300" /></a>
	</div>
<p>	* This recipe is sponsored by Alnavit. Have you ever tried finding 100% buckwheat noodles in a regular supermarket or asian store? I&#8217;ve tried and failed misreably. All &#8220;buckwheat&#8221;-noodles that I found had a 20% buchwheat and 80% wheat label. To say that I was frustrated is probably and understatement. Sometimes labels are just so...</p>
<p><a class="more-link" href="https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/">Read More</a></p>
<p>The post <a href="https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/">Easy buckwheat miso spaghetti and an Alnavit* giveaway!</a> appeared first on <a href="https://www.heavenlynnhealthy.com">Heavenlynn Healthy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
	<div>
	<a href="https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/"><img title="Easy buckwheat miso spaghetti - plant-based, vegan, gluten free, refined sugar free - heavenlynnhealthy.com" src="https://www.heavenlynnhealthy.com/wp-content/uploads/2017/07/easy-miso-spaghetti-3-200x300.jpg" alt="Easy buckwheat miso spaghetti - plant-based, vegan, gluten free, refined sugar free - heavenlynnhealthy.com" width="200" height="300" /></a>
	</div>
	<p></p>
<p><em>* This recipe is sponsored by <a href="https://alnavit.de/" target="_blank" rel="nofollow noopener noreferrer">Alnavit</a>.</em></p>
<p>Have you ever tried finding 100% buckwheat noodles in a regular supermarket or asian store? I&#8217;ve tried and failed misreably. All &#8220;buckwheat&#8221;-noodles that I found had a 20% buchwheat and 80% wheat label. To say that I was frustrated is probably and understatement. Sometimes labels are just so misleading. That&#8217;s exactly why I try to make most of my dishes with 100% natural ingredients. Making pasta, however, is simply too time-consuming, so I have to rely on high-quality brands that use the least amount of ingredients with the highest amount of flavor and nutrients.<span id="more-4877"></span></p>
<p>But like I said, those brands can be so hard to find. One brand that I found and trust is <a href="https://alnavit.de/" target="_blank" rel="nofollow noopener noreferrer">Alnavit</a>*. It&#8217;s a small almost family-sized business near Darmstadt, specialized in allergy-friendly and wholesome foods such as pasta, flour, bread mixes and gluten-free (and healthy!) snacks. I found Alnavit a few months ago, and I have been a big fan of their pasta products ever since.</p>
<p>If you&#8217;ve been following me for a while now, you know that I do not make recommendations light-hearted. If I recommend something &#8211; be it a company, a recipe, a blogger or a kitchen gadget &#8211; then I truly and with all of my heart support that brand and their mission. Alnavit is one of those companies, and I am 100% confident that you will feel the same way about their products as I do. The product that introduced me to Alnavit was their <a href="https://alnavit.de/produkte/produkt/detail/bio-buchweizen-spaghetti/" target="_blank" rel="nofollow noopener noreferrer">100% buchwheat spaghetti</a>, and I am so happy to have created a recipe featuring their signature pasta.</p>
<p></p>
<p>What makes this pasta recipe truly special is the combination of buckwheat and miso &#8211; a combination that is very common in Japan. Studies show that some of the oldest and healthiest people on this earth live in Japan, and most of them even follow a holistic natural wholesome diet. Now, I don&#8217;t know if buckwheat noodles and miso will let you live longer, but I do know that the taste will bring you joy. At least, it did for me!</p>
<p>The miso-cashew-sauce really has the potential to kick my peanut-lime sauce of its throne &#8211; that&#8217;s how good it is. Miso is a fermented paste traditionally made of soy beans, but you can also make miso with rice, lupins or peas. Miso is very rich in nutrients and it contains all essential amino acids &#8211; making it a complete plant-based protein. It&#8217;s become one of my stable foods and I could not recommend it more.</p>
<p>As I am writing this, I am already craving these buckwheat spaghetti with miso-cashew-sauce again, but before I will share the recipe, I have a very exciting giveaway for all German, Austrian and Suisse readers:</p>
<h2>Alnavit Pasta Party Giveaway!</h2>
<p>Together with Alnavit, I am giving away three pasta party packages including the following products:</p>
<p><strong>Pasta</strong></p>
<ul>
<li><a href="https://alnavit.de/produkte/produkt/detail/bio-buchweizen-spaghetti/" data-saferedirecturl="https://www.google.com/url?hl=de&amp;q= Buckwheat Spaghetti</a></li>
<li><a href="https://alnavit.de/produkte/produkt/detail/bio-4-korn-spirelli/" data-saferedirecturl="https://www.google.com/url?hl=de&amp;q= Spirelli</a></li>
<li><a href="https://alnavit.de/produkte/produkt/detail/bio-penne-vollkorn/" data-saferedirecturl="https://www.google.com/url?hl=de&amp;q= Whole-Grain Penne </a></li>
<li><a href="https://alnavit.de/produkte/produkt/detail/grandemio-bio-spirelli/" data-saferedirecturl="https://www.google.com/url?hl=de&amp;q= Organic Spirelli</a></li>
</ul>
<p><strong>Pasta-Sauces</strong></p>
<ul>
<li><a href="https://alnavit.de/produkte/produkt/detail/hanfoverde-bio-hanf-pesto/" target="_blank" rel="nofollow noopener noreferrer" data-saferedirecturl="https://www.google.com/url?hl=de&amp;q= Verde Organic Hemp Seed Pesto</a> with hemp seeds and cashews</li>
<li><a href="https://alnavit.de/produkte/produkt/detail/hanforosso-bio-hanf-pesto/" data-saferedirecturl="https://www.google.com/url?hl=de&amp;q= Rosso Organic Hemp Seed Pesto</a> with tomatoes</li>
</ul>
<p>The pasty party package has a total value of 18 Euros.</p>
<hr />
<p><strong>To enter, here&#8217;s what you have to do:</strong></p>
<ol>
<li><em>Leave me a comment underneath this post with a valid email-adress (so I can contact you).</em></li>
<li><em>Tell me if you knew Alnavit before, and if you did, what you value about the brand (or if you&#8217;re excited to try them :)).</em></li>
<li><em>That&#8217;s it. You&#8217;re in.</em></li>
</ol>
<p>Unfortunately, the giveaway is only open for German, Austrian and Suisse readers (sorry!). The giveaway ends on July 10th, 11:59 pm. I will contact the three winners via email.</p>
<hr />
<a class="button tasty-recipes-print-button tasty-recipes-no-print tasty-recipes-print-above-card" href="https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/print/4888/">Print</a><span class="tasty-recipes-jump-target" id="tasty-recipes-4888-jump-target" style="display:block;padding-top:2px;margin-top:-2px;"></span><div id="tasty-recipes-4888" data-tr-id="4888" class="tasty-recipes tasty-recipes-4888 tasty-recipes-display tasty-recipes-has-image" data-tasty-recipes-customization="primary-color.border-color">


<header class="tasty-recipes-entry-header" data-tasty-recipes-customization="primary-color.background">
			<div class="tasty-recipes-image">
					</div>
		<h2 class="tasty-recipes-title" data-tasty-recipes-customization="h2-color.color h2-transform.text-transform">Easy buckwheat miso spaghetti</h2>
	<hr data-tasty-recipes-customization="secondary-color.border-color secondary-color.background-color">
			<div class="tasty-recipes-rating">
							<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"><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"><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"><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"><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"><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-details">
			<ul>
																<li class="author"><span class="tasty-recipes-label" data-tasty-recipes-customization="detail-label-color.color">
														Author:</span> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-author-name">Lynn</span>						</li>
																																											<li class="total-time"><span class="tasty-recipes-label" data-tasty-recipes-customization="detail-label-color.color">
																
																Total Time:</span> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-total-time">35 minutes</span>						</li>
														</ul>
		</div>
	</header>

<div class="tasty-recipes-entry-content">

		<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.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/print/4888/" target="_blank" data-tasty-recipes-customization="">
			
		Print Recipe</a>
		</div>
						<div class="tasty-recipes-button-wrap">
			
<a class="share-pin button" data-pin-custom="true" data-href="https://www.pinterest.com/pin/create/bookmarklet/?url=https%3A%2F%2Fwww.heavenlynnhealthy.com%2Feasy-buckwheat-miso-spaghetti%2F" href="https://www.pinterest.com/pin/create/bookmarklet/?url=https%3A%2F%2Fwww.heavenlynnhealthy.com%2Feasy-buckwheat-miso-spaghetti%2F" data-tasty-recipes-customization="">
			
		Pin Recipe</a>
<script>
	const share_pin_buttons = document.getElementsByClassName( 'share-pin button' );
	if ( share_pin_buttons ) {
		for ( let share_key = 0; share_key < share_pin_buttons.length; share_key++ ) {
			share_pin_buttons[share_key].addEventListener( 'click', (e) => {
				e.stopPropagation();
				window.open(e.target.dataset.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=500');
				return false;
			} );
		}
	}
</script>
		</div>
			</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 data-tasty-recipes-customization="body-color.color">
				<p><strong>For the miso-cashew-sauce:</strong></p>
<ul>
<li class="ingredient"><span data-amount="4" data-unit="tablespoon">4 tablespoons</span> of cashew butter or <span data-amount="50" data-unit="g">50g</span> of cashews</li>
<li class="ingredient"><span data-amount="2" data-unit="tablespoon">2 tablespoons</span> of water</li>
<li class="ingredient"><span data-amount="4" data-unit="tablespoon">4 tablespoons</span> of tamari</li>
<li class="ingredient"><span data-amount="2" data-unit="tablespoon">2 tablespoons</span> of white or yellow miso paste</li>
<li class="ingredient">the juice of 1 lime</li>
<li class="ingredient"><span data-amount="2" data-unit="tablespoon">2 tablespoons</span> of coconut blossom sugar</li>
<li class="ingredient"><span data-amount="1">1</span> clove or garlic</li>
<li class="ingredient"><span data-amount="2">2</span>cm of fresh ginger</li>
<li class="ingredient"><span data-amount="0.5">½</span> to <span data-amount="1">1</span> teaspoons of chili-flakes (depending how hot you like it)</li>
</ul>
<p><strong>For the buckwheat-spaghetti:</strong></p>
<ul>
<li><span data-amount="250" data-unit="g">250g</span> of buckwheat spaghetti, I love <a href="https://alnavit.de/produkte/produkt/detail/bio-buchweizen-spaghetti/" target="_blank" rel="nofollow noopener noreferrer">Alnavit</a></li>
<li class="ingredient"><span data-amount="1">1</span> red bell pepper</li>
<li class="ingredient"><span data-amount="200" data-unit="g">200g</span> of red cabbage</li>
<li class="ingredient"><span data-amount="200" data-unit="g">200g</span> of spinach</li>
<li class="ingredient"><span data-amount="250" data-unit="g">250g</span> of mushrooms</li>
<li class="ingredient"><span data-amount="2" data-unit="teaspoon">2 teaspoons</span> of extra-virgin coconut oil</li>
<li class="ingredient">fresh basil or cilantro</li>
<li class="ingredient"><span data-amount="2">2</span> of spring onions</li>
<li class="ingredient"><span data-amount="50" data-unit="g">50g</span> of cashews for topping</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_69ebd6789a39e_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_69ebd6789a39e_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>
	
			<hr data-tasty-recipes-customization="secondary-color.border-color secondary-color.background-color">
	
		<div class="tasty-recipes-instructions">
		<div class="tasty-recipes-instructions-header">
			<h3 data-tasty-recipes-customization="h3-color.color h3-transform.text-transform">Instructions</h3>
					</div>
		<div data-tasty-recipes-customization="body-color.color">
			<p><strong>For the miso-sauce:</strong></p>
<ol>
<li id="instruction-step-1">If you use cashews, you need to soak them for at least 4 hours. If you do not have enough time, you can boil them for 10 minutes as well. Soaked or boilt, drain them before you use them for the sauce. Simply blend all ingredients for the sauce (cashew butter or cashews) until a smooth sauce forms. Set aside.</li>
</ol>
<p><strong>For the buckwheat-spaghetti:</strong></p>
<ol>
<li id="instruction-step-2">Bring about 1.5 liters of water to a boil. Add the buckwheat spaghetti and cook for about 8 &#8211; 9 minutes until they are al dente.</li>
<li id="instruction-step-3">Wash and cut the vegetables in small sized pieces. Wash and dry the spinach. Cut the spring onions in rings and rouhgly chop the cashews.</li>
<li id="instruction-step-4">Heat the coconut oil in a pan on high heat. Quickly sauté the vegetables and spinach until the spinach is wilted. Reduce the heat and add the drained buckwheat spaghetti and the miso-cashew-sauce. Mix until all of the spaghetti are covered with the miso-sauce.</li>
<li id="instruction-step-5">Serve with the spring onions, fresh basil or cilantro and chopped cashews.</li>
</ol>
		</div>
	</div>
	
	
		
	
	
			<div class="tasty-recipes-other-details" data-tasty-recipes-customization="secondary-color.background-color">
			<ul>
				<li class="prep-time"><span class="tasty-recipes-label" data-tasty-recipes-customization="detail-label-color.color">Prep Time:</span> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-prep-time">20</span></li><li class="cook-time"><span class="tasty-recipes-label" data-tasty-recipes-customization="detail-label-color.color">Cook Time:</span> <span data-tasty-recipes-customization="detail-value-color.color" class="tasty-recipes-cook-time">15</span></li>			</ul>
		</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">2</span></li>
							</ul>
			</div>
	
	
	<footer class="tasty-recipes-entry-footer" data-tasty-recipes-customization="primary-color.background">
		<div class="tasty-recipes-footer-content">
												
										<div class="tasty-recipes-footer-copy">
				<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>Tag <a href="https://www.instagram.com/heavenlynnhealthy" target="_blank" rel="noreferrer noopener">@heavenlynnhealthy</a> on Instagram and hashtag it <a href="https://www.instagram.com/explore/tags/heavenlynnhealthy" target="_blank" rel="noreferrer noopener">#heavenlynnhealthy</a></p></div>
			</div>
		</div>
	</footer>
</div>



<script>
window.trCommon={"minRating":6,"ajaxurl":"https:\/\/www.heavenlynnhealthy.com\/wp-admin\/admin-ajax.php","ratingNonce":"","postId":4877};
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>
<p style="text-align: center;">Enjoy!</p>
<p style="text-align: center;"><em>*This post is sponsored by <a href="http://www.alnavit.de" target="_blank" rel="nofollow noopener noreferrer">Alnavit</a>. All opinions are my own, always. Thank you for supporting the brands that make hour-long recipe testings in my kitchen possible.</em></p>
<p><span style="border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c no-repeat scroll 3px 50% / 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer; top: 6867px; left: 137px;">Merken</span></p>
<p><span style="border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c no-repeat scroll 3px 50% / 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer; top: 6867px; left: 137px;">Merken</span></p>
<p><span style="border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c no-repeat scroll 3px 50% / 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer; top: 6867px; left: 137px;">Merken</span></p>
<p><span style="border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c no-repeat scroll 3px 50% / 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer;">Merken</span></p>
<p><span style="border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c  no-repeat scroll 3px 50% / 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer;">Merken</span></p><p>The post <a href="https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/">Easy buckwheat miso spaghetti and an Alnavit* giveaway!</a> appeared first on <a href="https://www.heavenlynnhealthy.com">Heavenlynn Healthy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.heavenlynnhealthy.com/easy-buckwheat-miso-spaghetti/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
