in

Easy Air Fryer Squash

Air fryer butternut squash in beige bowl with gold spoon, on light beige and white surface


We love the sweet, buttery flavors of squash crisped up and caramelized in the air fryer! Whether it’s butternut, delicata, or acorn…this is one of our favorite easy and healthy side dishes. Bonus points for not requiring any stove or oven space. You’ll love this easy air fryer squash recipe for any day of the week!

Air fryer butternut squash in beige bowl with gold spoon, on light beige and white surface

Air fryer squash is one of the simplest and most irresistible ways to transform basic winter squash into a sweet, roasty, caramelized veggie side dish for any meal! We even use it as the base for bowl recipes packed with other veggies, protein, and whatever delicious sauce we can whip up.

Some of our favorite squashes to air fry are delicata, butternut, and acorn squash, and you’ll see delicata & butternut featured here. If you don’t have an air fryer, don’t worry! Roasting squash in your oven at a high heat will yield equally delicious results, so I’ll share instructions for that as well.

[feast_advanced_jump_to]

Ingredients

You only need a few basic ingredients to make delicious air fryer butternut squash! From there, you can get creative with oils and spices, but this recipe is an easy, back-pocket air fryer squash recipe that’s perfect for a simple veggie side dish.

Pictured left: delicata squash; pictured right: butternut squash.

Butternut squash on light beige and white surface
  • Butternut or delicata squash – Acorn squash will work, too! You can leave the skin on for any of these types of squash, though I peel my butternut squash.
  • Extra virgin olive oil – For added nutrition and essential to delicious flavor.
  • Salt & pepper – Salt enhances the flavor, and pepper adds a little bit of zestiness.

Instructions

As an optional first step, you can peel the squash. The skin on both types of squash is edible, so it’s not required, though you’ll want to wash it well. I rarely peel delicata squash, and about half the time I peel butternut squash (sometimes I just feel lazy, you know??).

Butternut squash being peeled, next to peeler, on beige and white surface
Butternut squash fully peeled, with ends cut off, on cutting board

Peel your squash using a vegetable peeler (optional).

Slice off each end of the squash and discard.

Slices of butternut squash on bamboo cutting board with spoon scooping out seeds
Fully cut up butternut squash pieces on bamboo cutting board next to knife

Next, cut the squash in half lengthwise, and scoop out the seeds.

Slice the squash horizontally into 1 centimeter thick slices. For smaller squashes, I usually just leave it in half moon shapes, but for larger squashes, I halve the moons once more.

Butternut squash pieces tossed in olive oil, salt, and pepper, in air fryer before being cooked
Air-fried butternut squash in air fryer

Preheat your air fryer at 390 degrees for 2-3 minutes. Toss squash in olive oil, salt, and pepper, then add it to the air fryer in an even layer.

Air fry the squash at 390 degrees for 20 minutes, stirring or flipping the squash halfway through.

Success Tip: If you have a smaller air fryer, you may need to air fry the squash in batches. We make air fryer butternut squash in a Ninja Foodi, and a 2-pound squash is the perfect size for one batch of squash.

Substitutions & Variations

If you know how to make the recipe fit a certain diet, let the reader know here. Don’t fake it – only provide guidance on topics you have actual experience with.

  • Squash – As mentioned, you can use butternut, acorn, or delicata squash in this recipe! Use the same amount as recommended by the recipe or your air fryer size for any type of squash.
  • Spices – I stuck to salt and pepper here, but you can have fun with spice and flavor variations. Use infused olive oils, garlic powder + oregano (Italian), Asian five spice, curry powder, cumin + chili powder, cumin + coriander, cayenne… all will be delicious!
  • Butter + brown sugar – Okay, sweet air fryer squash tastes like dessert but it totally still counts toward your veggie servings for the day. Once the squash is done air frying, take it out while still hot and place into a bowl. Then place a ½-1 tablespoon of pat of butter into the bowl of squash and stir to coat. Once the butter has melted and coated the squash, sprinkle a little bit of brown sugar onto the squash (maybe 1 tablespoon or less), and serve!
Air-fried delicata squash on white plate with golden fork

Equipment

Because this recipe teaches you how to make squash in an air fryer, I will make a recommendation, but note! An air fryer is not required for delicious winter squash. You can totally roast your squash at a high heat in your oven for delicious, caramelized results!

That said, a couple years ago we invested in a Ninja Foodi 10-in-1 cooking device that has an air fryer and pressure cooker setting, among other settings. Even as someone that values a minimal approach to kitchen utensils, I can’t recommend this cooking tool enough! We use our Ninja Foodi at least once per day… and it has earned its permanent spot on our kitchen counter.

Whatever air fryer you have will work just fine for this recipe 🙂

Storage

Store leftover squash in an airtight container in the fridge for up to five days. You can serve leftovers cold in salads, or reheat in your air fryer if you prefer the leftovers to be warm and re-crisped.

If you want to freeze batches of air fryer squash for later, first allow the squash to cool completely. Then, place it in an airtight container in the freezer for up to three months, and thaw in the fridge when you’re ready to eat. You can reheat it in the air fryer, oven, or even blend it up into soups (like Thai-spiced butternut squash bisque!).

Air fryer butternut squash in beige bowl with gold spoon, on light beige and white surface

Top tip

For evenly cooked and crisped squash, keep the total amount of squash small enough so that enough air can circulate in your air fryer, and all of the squash pieces can get cooked. For my air fryer, that’s about a 2-pound squash. Also, stir or shake the air fryer basket halfway through to even out the surface area exposure of all the pieces.

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}

Easy Air Fryer Squash

Air fryer butternut squash in beige bowl with gold spoon, on light beige and white surface


Print Recipe

Sweet, buttery squash crisped up and caramelized in the air fryer! Whether it’s butternut, delicata, or acorn, this is a delicious, easy, and healthy side dish that goes with any meal. No stove or oven space required!

  • Author: Tera
  • Prep Time: 2 minutes
  • Cook Time: 20 minutes
  • Total Time: 22 minutes
  • Yield: 4 cups
  • Category: Side dish
  • Method: Air fry
  • Cuisine: American

Ingredients


Units

  • 2 pounds of squash (butternut, delicata, or acorn), halved and sliced ~1 centimeter thick
  • 2 tablespoons extra virgin olive oil
  • ½ teaspoon salt, more to taste
  • ¼ teaspoon pepper

Instructions

  1. Preheat air fryer. Preheat your air fryer at 390 degrees for 2-3 minutes while you prepare the squash.
  2. Prep squash. Place squash slices in a large bowl and toss with olive oil, salt, and pepper until evenly coated.
  3. Air fry squash. Place the squash in your air fryer in an even layer. Air fry the squash for 20 minutes at 390 degrees, stirring or flipping halfway through to evenly cook all the pieces. The number of batches you need to do will depend on your air fryer (see notes). The squash is done when the edges are browned, and the thickest pieces can be easily pierced by a fork. Once done, remove from the air fryer and serve!

Equipment

Notes

  1. Air fryer. We use a Ninja Foodi, which is perfect for air frying 2 cups of squash at once. If you have a smaller air fryer, you may need to air fry in a couple batches, or reduce the amount of squash you’re making.
  2. Oven fry. You don’t need an air fryer for this recipe! To oven fry the squash, preheat your oven to 425 degrees and roast squash for 25-30 minutes (depends on your oven; check for doneness by seeing if squash can be easily pierced with a fork and starting to brown on edges). Just like with the air fryer, stir the squash halfway through to get an even heat exposure.

(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: air fryer butternut squash, air fryer squash

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 Easy Air Fryer Squash 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 *

BJ Brinker's Home Cooking: Raspberry Cheesecake Cookies

BJ Brinker’s Home Cooking: Raspberry Cheesecake Cookies

A Taste of Home Cooking: Greek Meatballs

A Taste of Home Cooking: Greek Meatballs