in

Pad Pak (Thai Stir-fried Vegetables)

Pad pak in sauté pan with simple Thai stir fry sauce


Pad pak, or Thai stir-fried vegetables, is the perfect weeknight dinner because it’s quick, easy, and SO delicious! This pad pak recipe is flexible, so you can use it with the veggies I use below, or use any seasonal veggies you have on hand.

Pad pak in sauté pan with simple Thai stir fry sauce

So here’s what’s up: We’re in a sort of Thai stir fry obsessed situation over at our household, what with all the CSA veggies we’re picking up every other week. And you guys, pad pak is the weeknight dinner of your dreams.

“Pad pak” simply means “stir-fried vegetables”. Whether you’re new to Thai cooking at home or you’re a pro, this Thai vegetable stir fry is one to put on repeat. With the simplest of stir fry sauce ingredients and combination of essential Thai flavors, this pad pak recipe comes together in 20 minutes TOPS.

[feast_advanced_jump_to]

Ingredients

This pad pak is packed with veggies, edamame for plant-based protein, and just a few ingredients for a simple Thai stir fry sauce.

Pad pak ingredients on gray and white surface
  • Baby bok choy – Bok choy works too!
  • Turnips – OMG you guys, I had no idea how much I liked turnips until I got them fresh from my CSA. They soak up the flavors of stir fry sauce perfectly.
  • Onion – Alliums are foundational for building any Thai meal. I used a basic yellow onion in this recipe, but any kind of onion will do!
  • Garlic – Same as onions, garlic is essential to building a delicious Thai stir fry.
  • Ginger – Fresh ginger root works best here, but I’m not beyond shortcuts 😉 If you have a ginger paste on hand, you can use that too. I always have the kind from the Ginger People in my fridge.
  • Fresh red chile peppers – If you can find Thai red chiles, use those! I only had Fresno chiles at my local grocery store, which will work perfectly. Honestly, any chile pepper you can find will work, or a scoop of chili pepper paste in a pinch.
  • Coconut oil – For the cooking the veggies.
  • Tamari – Provides a delicious umami and salty flavor.
  • Fish sauce – Thai food as about balancing sweet, sour, spicy, bitter, and salty. Rather than salt, we use fish sauce in this pad pak! In the picture above, I combined the fish sauce and tamari in one small bowl.
  • Coconut or brown sugar – Just a bit of coconut or brown sugar balances out the salt and spice.
  • Cashews – For incredible flavor and crunch. I love how cashews soak up the flavor of the soy sauce!
  • Edamame – Preferably the shelled kind, for plant-based protein! I usually find shelled edamame in the frozen section at the grocery store.
  • Green onions, cilantro, fresh lime – All of these are great for serving!

Instructions

Check out the easy steps below for how to make this quick and easy pad pak.

Chopped turnips, baby bok choy, red chili peppers, garlic, ginger, and sliced onions on bamboo cutting board

Prep your veggies by thinly slicing onions, mincing garlic, grating ginger, and slicing up the chile peppers. You can also dice the turnip and chop the bok choy so you’re ready to add them.

Sliced onions, chili peppers, garlic, and ginger being sautéed in coconut oil

Heat some coconut oil over medium-high heat in a large sauté pan or wok. Add onions, garlic, ginger, and chiles, and sauté for about 5 minutes, until soft.

Pad pak veggies in large sauté pan with bamboo spoon

Turn up the heat to high, and add bok choy and turnips. Sauté for another 3-4 minutes, stirring frequently.

Pad pak veggies with edamame and cashes just added into sauté pan, with bamboo spoon

Add edamame and cashews, and stir fry for another 2 minutes. We want the veggies to be HOT!

Pad pak in sauté pan with simple Thai stir fry sauce
Two gray bowls with pad pak, served with brown rice, with limes wedges and cilantro on the side

Add the tamari, fish sauce, and brown sugar straight to the pan, and stir fry for about 2 more minutes. Because of the high heat, the tamari should sizzle as soon as it hits the pan!

Poke a turnip (or the hardest veggie you used) with a fork to make sure it’s cooked all the way through, then remove veggies from heat. Serve with brown rice (or noodles), green onions, cilantro, and lime!

Essential Thai Ingredients

Part of the reason Thai food is so delicious is that it’s a balance of spicy, salty, sour, bitter, and sweet all at once! To achieve these flavors, I always keep the below ingredients on hand.

  • Alliums – Onions and garlic form the base for most Thai recipes and add incredible flavor.
  • Chiles – Fresh chiles are what make Thai recipes spicy! Spicy chile pastes will work, but you can also use fresh chiles like we did with our Thai stir-fried veggies.
  • Fish sauce – Rather than using salt in Thai recipes, you can add saltiness via fish sauce.
  • Tamari (or soy sauce) – A common ingredient across most Asian cuisine, soy sauce adds a salty, umami flavor.
  • Coconut or brown sugar – Because Thai food has a lot of salty, spicy, or even sour flavors, it’s typically balanced out with a little coconut or brown sugar.
  • Coconut milk – We didn’t use any coconut milk in this pad pak recipe, but it’s worth noting that coconut milk is an essential for many Thai soups and curries. Full fat canned coconut milk is the best for flavor and convenience!
  • Curry paste – Various types of curry paste form the base for many a Thai curry! Thai red, green, or yellow curry paste are essential and impart such incredible flavor. You can make your own, but I like the Thai Kitchen products by McCormick, which are available in most stores.
  • Cilantro – One common fresh herb for fresh Thai cooking. I especially love using fresh cilantro to top Thai dishes like curry, stir fry, or peanut noodles!
  • Thai basil – OMG Thai basil is so good! Where I live, it’s a lot easier to find it at the farmers market or as a full plant to grow at home (at the grocery store or wherever you buy plants for your garden). You could use regular sweet basil if you can’t find Thai basil, but Thai basil will get you that truly authentic Thai food taste.
  • Ginger – Ginger is one of the most commons spices found in Thai dishes, and it’s delicious with all of the above ingredients. I love to use fresh when I can, but I also frequently use a store-bought ginger paste for convenience.
Pad pak in sauté pan with simple Thai stir fry sauce

Substitutions & Variations

Thai vegetable stir fries are SO flexible! Pretty much any veggie will taste good with Thai flavors, so feel free to use up what you have. Below are some substitutions and variations you can try to make this recipe work for you!

  • Veggies – Keep the base of onions, ginger, garlic, and chile peppers, but feel free to replace the bok choy and turnips with what you’re craving or have available to you. You can add sugar snap peas, carrots, zucchini, yellow squash, butternut squash, eggplant, broccoli, green beans… the options are endless! I especially love making stir fries with spring, summer, and fall local produce as it comes in season.
  • Peanuts – While I used cashews in this pad pak, peanuts would also be delicious! I love the added slight crunch that nuts add to a Thai veggie stir fry.
  • Vegetarian – the beef hamburger can be replaced with a plant-based burger to make this vegetarian
  • Protein – Add a protein of choice to your pad pak! For meat, sauté that first and set aside while you stir fry the vegetables. Add the meat in 1-2 minutes before the end of stir frying — I recommend adding the cooked meat back in at the same time you add the edamame and cashews. You also try adding in additional plant-based protein, like tofu or chickpeas. Or, try topping it with a fried or hard-boiled egg!

Equipment

If you have a wok that you use for stir fries, that would be perfect for pad pak. I don’t actually have a wok, but rather I use a large, heavy-bottomed sauté pan! Your sauté pan needs to be large so that you have enough room to stir the veggies around and get all sides exposed to the heat and flavors.

Two gray bowls with pad pak, served with brown rice, with limes wedges and cilantro on the side

Storage

Store the stir fry ingredients in your fridge in an airtight container for up to a week. You can store toppings like green onions and cilantro in a separate container to keep them fresh. It’s up to you whether you store noodles and/or rice separately — sometimes I just mix them in 🙂

You can also freeze stir fried vegetables for up to three months an airtight container. Allow the pad pak to cool completely to avoid any condensation freezing inside the container.

Pad Pak FAQs

Is pad pak vegan?

Pad pak is veggie-based, but it will only be vegan if you remove the fish sauce. Feel free to omit and add in more tamari or soy sauce to make it vegan!

What is pad pak?

Simply put, it’s Thai stir fried vegetables. To make stir fry vegetables “Thai” flavored, we use essential Thai ingredients like alliums, ginger, red chiles, tamari, fish sauce, fresh cilantro, a touch of brown sugar, and lime.

Top Tip

The best stir fries are flash-fried, i.e. stir fried for a short period of time over high heat, which saves your veggies from becoming overcooked or mushy. That’s why we got our pan & veggies super hot before adding the tamari and fish sauce, which quickly cooks them down a bit before we remove them from the heat.

Print

.tasty-recipes-print-button{background-color:#667;border:none;display:inline-block;padding:.5em 1em;text-decoration:none}body:not(.tasty-recipes-print-view) .tasty-recipes-print-button.tasty-recipes-print-above-card{color:#fff;display:none}body:not(.tasty-recipes-print-view) .tasty-recipes-print-button.tasty-recipes-print-above-card:hover{background-color:#b2b2bb;color:#fff;display:inline-block;padding:.5em 1em;text-decoration:none}.tasty-recipes-image-button-container{display:flex;flex-direction:column;flex-wrap:wrap;float:right;margin-left:10px}body.tasty-recipes-print-view .tasty-recipes-buttons{display:none}.tasty-recipes-image-button-container .tasty-recipes-buttons{margin-bottom:10px;margin-top:10px}.tasty-recipes-image-button-container .tasty-recipes-button-wrap{box-sizing:border-box;margin-bottom:10px}.tasty-recipes-image-button-container .tasty-recipes-buttons a{background-color:#f9f9f9;border:1px solid #aaa;border-radius:0;color:#aaa;display:block;font-size:16px;font-weight:700;line-height:16px;margin-top:0;padding:8px;text-align:center;text-decoration:none;text-transform:uppercase}.tasty-recipes-image-button-container .tasty-recipes-buttons .button:hover{background-color:#aaa;border:1px solid #aaa;color:#fff;opacity:1}.tasty-recipes-image-button-container .tasty-recipes-buttons a:hover{background-color:#979599;text-decoration:none}.tasty-recipes-image-button-container .tasty-recipes-buttons svg{display:none}.tasty-recipes-yield-scale{border:1px solid #979599;border-radius:2px;color:#979599;font-size:.7rem;margin-left:3px;padding:0 4px}.tasty-recipes-units-scale-container{display:flex;flex-wrap:wrap}.tasty-recipes-convert-container{padding:0 1em 1em 0}.tasty-recipes-convert-container .tasty-recipes-convert-label{align-self:center;color:#979599;font-size:.6rem;text-transform:uppercase}.tasty-recipes-convert-container button{background:transparent;border:1px solid #353547;border-radius:2px;color:#353547;letter-spacing:0;margin-left:5px;min-width:34px;padding:2px 4px;text-align:center}.tasty-recipes-convert-container button.tasty-recipes-convert-button-active{background-color:#000;border-color:#000;color:#fff}.tasty-recipes-convert-container button:focus{outline:none}.tasty-recipes-scale-container{display:flex;padding:0 0 1em}.tasty-recipes-scale-container .tasty-recipes-scale-label{align-self:center;color:#979599;font-size:.6rem;text-transform:uppercase}.tasty-recipes-scale-container button{background:transparent;border:1px solid #353547;border-radius:2px;color:#353547;letter-spacing:0;margin-left:5px;min-width:34px;padding:2px 4px}.tasty-recipes-scale-container button.tasty-recipes-scale-button-active{background-color:#000;border-color:#000;color:#fff}.tasty-recipes-scale-container button:focus{outline:none}.tasty-recipes-ingredients-header{margin:1em 0}@media only screen and (min-width:520px){.tasty-recipes-ingredients-header{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}}.tasty-recipes-ingredients-header .tasty-recipes-ingredients-clipboard-container{align-items:baseline;display:inline-flex}.tasty-recipes-ingredients-header h3{margin:0 10px 10px 0}.tasty-recipes-ingredients-clipboard-container .tasty-recipes-copy-button{background:transparent;border:none;color:#353547;height:24px;padding:0;position:relative;width:24px}.tasty-recipes-ingredients-clipboard-container .tasty-recipes-copy-button:hover{opacity:.5}.tasty-recipes-instructions-header{align-items:baseline;display:flex;flex-wrap:wrap;justify-content:space-between;margin:1em 0}.tasty-recipes-entry-content .tasty-recipes-instructions h3{margin:0 0 1rem}@media only screen and (min-width:520px){.tasty-recipes-entry-content .tasty-recipes-instructions h3{margin:0}}button[name=tasty-recipes-video-toggle]{background:#979599;border:#979599;border-radius:2px;display:inline-block;font-size:14px;height:30px;line-height:20px;margin:0;padding:0;text-align:center;vertical-align:middle;width:86px}button[name=tasty-recipes-video-toggle] span{padding:0 4px;pointer-events:none}button[name=tasty-recipes-video-toggle][aria-checked=false] :last-child,button[name=tasty-recipes-video-toggle][aria-checked=true] :first-child{background:#fff;border-radius:2px;color:#979599;padding:2px 4px}button[name=tasty-recipes-video-toggle][aria-checked=false] :first-child,button[name=tasty-recipes-video-toggle][aria-checked=true] :last-child{color:#fff}label[for=tasty-recipes-video-toggle]{color:#979599;font-size:.6rem;line-height:30px;padding-right:8px;text-transform:uppercase;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;-o-user-select:none;vertical-align:middle}.tasty-recipe-responsive-iframe-container{margin:10px 0}.tasty-recipes-equipment{display:flex;flex-wrap:wrap;justify-content:space-evenly}.tasty-recipes-equipment>h3{flex:0 0 100%}.tasty-recipes-equipment .tasty-link-card{flex:0 0 50%;padding:1.5rem 1rem;text-align:center}@media screen and (min-width:500px){.tasty-recipes-equipment .tasty-link-card{flex:0 0 33%}}.tasty-recipes-equipment .tasty-link-card p{font-size:1em;font-weight:700;margin-bottom:0}.tasty-recipes-equipment .tasty-link-card p a{color:initial}.tasty-recipes-equipment .tasty-link-card span{font-size:.9em}.tasty-recipes .tasty-recipes-nutrition ul{list-style-type:none;margin:0;padding:0}.tasty-recipes .tasty-recipes-nutrition ul:after{clear:both;content:” “;display:block}.tasty-recipes .tasty-recipes-nutrition li{float:left;list-style-type:none;margin-bottom:0;margin-left:0;margin-right:16px}.tasty-recipes-plug{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;margin-bottom:1em;text-align:center}.tasty-recipes-plug a{box-shadow:none;text-decoration:none}.tasty-recipes-plug a img{display:inline-block;height:auto;margin:5px 0 0 8px;width:150px}.tasty-recipes-footer-content{padding:1.5em;text-align:center}.tasty-recipes-footer-content .tasty-recipes-footer-copy{margin-left:0}.tasty-recipes-footer-content img,.tasty-recipes-footer-content svg{width:60px}.tasty-recipes-entry-content .tasty-recipes-entry-footer h3{font-size:1.25em;margin:0 0 .25em;padding:0}.tasty-recipes-entry-footer p{font-size:.75em;margin:0}.tasty-recipes-entry-footer p a{border-bottom:none;box-shadow:none;text-decoration:underline}.tasty-recipes-flash-message{background-color:#fff;border-radius:4px;box-shadow:0 .3px .4px 0 rgba(0,0,0,.024),0 .9px 1.5px 0 rgba(0,0,0,.05),0 3.5px 6px 0 rgba(0,0,0,.1);color:#313135;display:inline-block;font-size:13px;letter-spacing:0;line-height:1.2em;margin-left:10px;padding:4px 10px}@media screen and (min-width:500px){.tasty-recipes-flash-message{padding:4px 10px}}.tasty-recipes-flash-message p{margin:0;padding:0;text-transform:none}@media screen and (min-width:500px){.tasty-recipes-footer-content{align-items:center;display:flex;justify-content:center;padding:1.5em 0;text-align:left}.tasty-recipes-footer-content .tasty-recipes-footer-copy{margin-left:.8em}}@media print{.tasty-recipes-no-print,.tasty-recipes-no-print *{display:none!important}}[data-tr-ingredient-checkbox]{cursor:pointer;list-style-position:outside;list-style-type:none!important;margin-left:0!important}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container{position:relative}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]+label{display:inline-block;position:relative;vertical-align:middle}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]{clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]+label:before{border:1px solid;border-radius:2px;content:””;display:inline-block;height:20px;margin-right:10px;position:relative;width:20px}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]:checked+label:after{border-bottom:2px solid;border-left:2px solid;content:””;display:inline-block;height:6px;left:4px;position:absolute;top:4px;transform:rotate(-45deg);width:12px}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]:focus+label:before{box-shadow:0 0 8px #5e9ed6;outline:1px solid #5d9dd5}[data-tr-ingredient-checkbox=checked]{opacity:.8;text-decoration:line-through}/* Tasty Recipes Simple recipe card styles */ .tasty-recipes-display{border:0.15em solid #ededed;padding:1.5em;margin-bottom:1em}.tasty-recipes-plug{margin-bottom:1em}.tasty-recipes-display ul,.tasty-recipes-display ol{margin-left:0}.tasty-recipes-display h2{font-weight:400;text-transform:lowercase;padding-top:0;margin-top:0}.tasty-recipes-details{font-size:0.8em}.tasty-recipes-label{color:#797B7C}.tasty-recipes-details ul li{list-style-type:none;margin-left:0}.prep-time,.total-time,.cook-time{display:inline-block;width:20%;margin:0.8em 0;vertical-align:top}.tasty-recipes-rating a{text-decoration:none}.tasty-recipes-rating p{margin-bottom:1rem;display:inline-block}.tasty-recipes-rating .rating-label{font-style:italic;font-size:0.8em}.tasty-recipes-notes{margin-bottom:1rem}.tasty-recipes-nutrition{padding:0.5em;border-top:.15em solid #ededed}.tasty-recipes-nutrition ul li{list-style-type:none;font-size:0.8em;margin-left:0}@media only screen and (min-width:520px){.tasty-recipes-nutrition ul li{width:30%}}.tasty-recipe-ingredients h3,.tasty-recipes-ingredients h3,.tasty-recipe-instructions h3,.tasty-recipes-instructions h3,.tasty-recipes-equipment h3,.tasty-recipes-notes h3{font-weight:200;margin-top:0.6em;margin-bottom:1.2em;text-transform:lowercase}.tasty-recipe-ingredients h4,.tasty-recipes-ingredients h4,.tasty-recipe-instructions h4,.tasty-recipes-instructions h4{font-size:1.2em;font-weight:700;text-transform:lowercase;color:#797B7C}.tasty-recipes-description p{font-size:.8em;font-style:italic}.tasty-recipe-video-embed~.tasty-recipes-equipment{padding-top:1em}.tasty-recipes-nutrition h3{font-size:1em;text-align:center;margin-top:1em}.tasty-recipes-notes h3{font-size:1.2em}.tasty-recipes-notes p,.tasty-recipes-notes ul{font-size:0.8em}.tasty-recipes-keywords p{font-size:.8em;margin-top:1em;margin-bottom:1em}.tasty-recipes-entry-footer{text-align:center;padding-top:1rem}.tasty-recipes-source-link{text-align:center}/*Print styles*/ .tasty-recipes-print{font-size:11px;line-height:1.5em}.tasty-recipes-print .tasty-recipes-description p{font-size:1em;line-height:1.5em}.tasty-recipes-print ul,.tasty-recipes-print ol{padding-left:1.25em}.tasty-recipes-print .tasty-recipes-details ul{padding-left:0}.tasty-recipes-print-view h3{font-size:1.2em;letter-spacing:0.1em;margin:0 0 10px 0}.tasty-recipes-print-view .tasty-recipes-ingredients-header,.tasty-recipes-print-view .tasty-recipes-instructions-header{margin:0}.tasty-recipes-print-view .tasty-recipes-ingredients,.tasty-recipes-print-view .tasty-recipes-instructions{padding:1.25em 0}

Pad Pak (Thai Stir-fried Vegetables)


Print Recipe

This pad pak is SO delicious, healthy, and easy to make! Use the veggies I used here, or use whatever you have on hand, and get a better-than-takeout weeknight dinner on the table fast.

  • Author: Tera
  • Prep Time: 10 minutes
  • Cook Time: 10 minutes
  • Total Time: 20 minutes
  • Yield: 4 servings
  • Category: Dinner
  • Method: Stir Fry
  • Cuisine: Thai

Ingredients


Units

  • 1 tablespoon coconut oil
  • 1 small onion, sliced thinly into half moons
  • 2 cloves fresh garlic, minced
  • ½-inch fresh ginger, grated
  • 23 fresh red chiles
  • 1 bunch baby bok choy, chopped
  • 3 turnips, diced medium-sized
  • 12 cups shelled edamame
  • ½ cup cashews
  • cup tamari
  • ½ teaspoon fish sauce
  • 2 teaspoons brown sugar (or coconut sugar)
  • Green onions, cilantro, and limes for serving

Instructions

  1. Sweat onions, ginger, & chiles. Heat coconut oil over medium-high heat in a large, heavy-bottomed sauté pan. Add onion, garlic, ginger, and red chiles, and sauté until softened, about five minutes.
  2. Bok choy, turnips, edamame, & cashews. Turn up the heat to high, add the baby bok choy and turnips, and sauté for another minute, stirring frequently. Then add edamame and cashews, and sauté for another minute, stirring frequently. You want the temperature of pan to be nice and hot before adding the sauce.
  3. Add sauce. Add the tamari, fish sauce, and brown sugar directly to the veggies in the sauté pan. Allow it to sizzle and start to cook the veggies down a bit more. Continue to fry the veggies for 1-2 more minutes, stirring frequently to coat everything in the sauce. Careful not to overcook the veggies!
  4. Remove from heat & serve. Poke a turnip (or your longest cooking veggie) with a fork to make sure it’s cooked all the way through, then remove the pan from heat. Serve the pad pak over jasmine rice or rice noodles!

Notes

  1. Edamame. I recommend using frozen shelled edamame and 
  2. Rice & noodles. Depending on the kind of rice you use, you may need to start the rice earlier than the pad pak because some rice takes longer to cook than the pad pak itself.

(function(){
window.addEventListener( ‘message’, function( event ){
if ( ( ‘https://nutrifox.com’ !== event.origin && ‘https://nutrifox.test’ !== event.origin ) ||
typeof event.data !== ‘string’ ) {
return;
}
var payload = JSON.parse( event.data );
switch ( payload.event ) {
case ‘setHeight’:
var iframe = document.getElementById( ‘nutrifox-label-‘ + payload.recipeId );
iframe.style.height = payload.height + ‘px’;
break;
}
} );
}())

Keywords: pad pak, Thai stir fry vegetables

Did you make this recipe?

If you loved this recipe, please consider giving it a star rating (below)! Star ratings help Roots and Radishes recipes reach more people, which helps support the continued production of our content. Also, we’d LOVE to see what you make! Tag @rootsnradishes on Instagram and hashtag it #rootsnradishes

(function(){
/* frac.js (C) 2012-present SheetJS — http://sheetjs.com */
/* bothEquals() avoids use of &&, which gets prettified by WordPress. */
var bothEquals = function( d1, d2, D ) {
var ret = 0;
if (d1<=D) {
ret++;
}
if (d2<=D) {
ret++;
}
return ret === 2;
};
var frac =function frac(x,D,mixed){var n1=Math.floor(x),d1=1;var n2=n1+1,d2=1;if(x!==n1)while(bothEquals(d1,d2,D)){var m=(n1+n2)/(d1+d2);if(x===m){if(d1+d2d2)d2=D+1;else d1=D+1;break}else if(xD){d1=d2;n1=n2}if(!mixed)return[0,n1,d1];var q=Math.floor(n1/d1);return[q,n1-q*d1,d1]};frac.cont=function cont(x,D,mixed){var sgn=x<0?-1:1;var B=x*sgn;var P_2=0,P_1=1,P=0;var Q_2=1,Q_1=0,Q=0;var A=Math.floor(B);while(Q_1<D){A=Math.floor(B);P=A*P_1+P_2;Q=A*Q_1+Q_2;if(B-AD){if(Q_1>D){Q=Q_2;P=P_2}else{Q=Q_1;P=P_1}}if(!mixed)return[0,sgn*P,Q];var q=Math.floor(sgn*P/Q);return[q,sgn*P-q*Q,Q]};

/* {‘¼’: ‘¼’,’½’: ‘½’,’¾’: ‘¾’,’⅓’: ‘⅓’,’⅔’:’⅔’,’⅕’:’⅕’,’⅖’:’⅖’,’⅗’:’⅗’,’⅘’:’⅘’,’⅙’:’⅙’,’⅚’:’⅚’,’⅛’:’⅛’,’⅜’:’⅜’,’⅝’:’⅝’,’⅞’:’⅞’} */
window.tastyRecipesVulgarFractions = JSON.parse(decodeURIComponent(“%7B%22%C2%BC%22%3A%221%2F4%22%2C%22%C2%BD%22%3A%221%2F2%22%2C%22%C2%BE%22%3A%223%2F4%22%2C%22%E2%85%93%22%3A%221%2F3%22%2C%22%E2%85%94%22%3A%222%2F3%22%2C%22%E2%85%95%22%3A%221%2F5%22%2C%22%E2%85%96%22%3A%222%2F5%22%2C%22%E2%85%97%22%3A%223%2F5%22%2C%22%E2%85%98%22%3A%224%2F5%22%2C%22%E2%85%99%22%3A%221%2F6%22%2C%22%E2%85%9A%22%3A%225%2F6%22%2C%22%E2%85%9B%22%3A%221%2F8%22%2C%22%E2%85%9C%22%3A%223%2F8%22%2C%22%E2%85%9D%22%3A%225%2F8%22%2C%22%E2%85%9E%22%3A%227%2F8%22%7D”));

window.tastyRecipesFormatAmount = function(amount, el) {
if ( parseFloat( amount ) === parseInt( amount ) ) {
return amount;
}
var roundType=”frac”;
if (typeof el.dataset.amountShouldRound !== ‘undefined’) {
if (‘false’ != el.dataset.amountShouldRound) {
if ( ‘number’ === el.dataset.amountShouldRound ) {
roundType=”number”;
} else if (‘frac’ === el.dataset.amountShouldRound) {
roundType=”frac”
} else if (‘vulgar’ === el.dataset.amountShouldRound) {
roundType=”vulgar”
} else {
roundType=”integer”;
}
}
}
if (‘number’ === roundType) {
amount = Number.parseFloat(amount).toPrecision(2);
} else if (‘integer’ === roundType) {
amount = Math.round(amount);
} else if (‘frac’ === roundType || ‘vulgar’ === roundType) {
var denom = 8;
if (typeof el.dataset.unit !== ‘undefined’) {
var unit = el.dataset.unit;
if ([‘cups’,’cup’,’c’].includes(unit)) {
denom = 4;
if (0.125 === amount) {
denom = 8;
}
if (“0.1667″ === Number.parseFloat( amount ).toPrecision(4)) {
denom = 6;
}
}
if ([‘tablespoons’,’tablespoon’,’tbsp’].includes(unit)) {
denom = 2;
}
if ([‘teaspoons’,’teaspoon’,’tsp’].includes(unit)) {
denom = 8;
}
}
var amountArray = frac.cont( amount, denom, true );
var newAmount=””;
if ( amountArray[1] !== 0 ) {
newAmount = amountArray[1] + ‘/’ + amountArray[2];
if (‘vulgar’ === roundType) {
Object.keys(window.tastyRecipesVulgarFractions).forEach(function(vulgar) {
if (newAmount === window.tastyRecipesVulgarFractions[vulgar]) {
newAmount = vulgar;
}
});
}
}
if ( newAmount ) {
newAmount=” ” + newAmount;
}
if ( amountArray[0] ) {
newAmount = amountArray[0] + newAmount;
}
amount = newAmount;
}
return amount;
}
}())

(function(){
var buttonClass=”tasty-recipes-convert-button”,
buttonActiveClass=”tasty-recipes-convert-button-active”,
buttons = document.querySelectorAll(‘.tasty-recipes-convert-button’);
if ( ! buttons ) {
return;
}
buttons.forEach(function(button){
button.addEventListener(‘click’, function(event){
event.preventDefault();
var recipe = event.target.closest(‘.tasty-recipes’);
if ( ! recipe ) {
return;
}
var otherButtons = recipe.querySelectorAll(‘.’ + buttonClass);
otherButtons.forEach(function(bt){
bt.classList.remove(buttonActiveClass);
});
button.classList.add(buttonActiveClass);
var unitType = button.dataset.unitType;
var dataset=”nf” + unitType.charAt(0).toUpperCase() + unitType.slice(1);
var convertables = recipe.querySelectorAll(‘span[data-nf-original]’);
convertables.forEach(function(convertable){
if (typeof convertable.dataset.amountOriginalType === ‘undefined’
&& ‘usc’ === convertable.dataset.nfOriginal) {
if (-1 !== convertable.innerText.indexOf(‘/’)) {
convertable.dataset.amountOriginalType=”frac”;
}
if (-1 !== convertable.innerText.indexOf(‘.’)) {
convertable.dataset.amountOriginalType=”number”;
}
Object.keys(window.tastyRecipesVulgarFractions).forEach(function(vulgar) {
if (-1 !== convertable.innerText.indexOf(vulgar)) {
convertable.dataset.amountOriginalType=”vulgar”;
}
})
}
convertable.innerText = convertable.dataset[dataset];
if (typeof convertable.dataset.unit !== ‘undefined’) {
convertable.dataset.unit = convertable.dataset[dataset + ‘Unit’];
}
if (typeof convertable.dataset.amount !== ‘undefined’) {
convertable.dataset.amount = convertable.dataset[dataset];
if (‘metric’ === unitType) {
convertable.dataset.amountShouldRound = parseInt(convertable.dataset.amount) >= 10 ? ‘integer’ : ‘number’;
} else if (typeof convertable.dataset.amountOriginalType !== ‘undefined’) {
convertable.dataset.amountShouldRound = convertable.dataset.amountOriginalType;
} else {
convertable.dataset.amountShouldRound = false;
}
convertable.innerText = window.tastyRecipesFormatAmount(convertable.dataset[dataset], convertable);
}
if (convertable.classList.contains(‘nutrifox-unit’)) {
if (‘gram’ === convertable.dataset[dataset]) {
convertable.innerText=”grams”;
}
}
});
/* Trigger the correct amount if scaling is active */
document.querySelectorAll(‘.tasty-recipes-scale-button-active’).forEach(function(scaleButton){
scaleButton.click();
});
});
});
}())

The post Pad Pak (Thai Stir-fried Vegetables) appeared first on Roots and Radishes.





Source link

Written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *

Must-Have Condiments To Keep in Your House

Must-Have Condiments To Keep in Your House

Turkish zucchini pancakes

Turkish Zucchini Pancakes