Steak Fries
This steak fries recipe turns out perfectly crispy and seasoned, thanks to a few tricks including a secret ingredient. Plus, this oven-baked method is healthier and less messy than frying!
Serve these with our Smash Burgers , Sloppy Joes , or Lemon Garlic Chicken for a delicious meal!
Reasons You’ll Love this Recipe
They taste like restaurant quality.
They are much healthier thanks to the oven baking method. (Same goes for our homemade chicken nuggets .)
Steak Fries are easy to make.
They are cheaper than store bought french fries.
Ingredients Needed
The ingredient list is pretty simple, but I’ve added one that really takes these over the top.
Russet potatoes – You can also use Yukon Potatoes.
Avocado oil – an oil with a high smoking point is important in this recipe; do not use extra virgin olive oil.
Salt and pepper
Sugar (aka secret ingredient) – Just a little bit
Garlic powder
How to Make Steak Fries in the Oven
Once your ingredients are ready, here’s how to ensure your oven-baked fries turn out perfectly crispy.
1. Soak the cut potatoes in a bowl of water for 30 minutes or more. Then, drain and rinse them. This removes some of the starch from the potatoes.
2. Dry the potatoes really well using a dish towel or paper towels.
3. Season with our secret ingredient in this recipe! Believe it or not, just a little bit of sugar in the seasoning mix helps the potatoes to caramelize in the oven and produces delicious flavor.
4. Bake the fries. Be sure to flip them halfway through .
Tips for Success
Make sure the potato wedges don’t touch or overlap so they can get nice and crispy on both sides.
Use parchment paper to prevent sticking and for easier cleanup.
Be sure to season these fries well. You can also add more seasoning after they are cooked.
Eat them fresh. Steak fries are best right out of the oven. The longer they sit the softer they get.
Sliced into similarly-sized wedges for even cooking.
What to Serve with Steak Fries
Wondering what to serve with your amazing homemade taters? Try whipping up one of these tasty entrees.
Mini Chicken Burgers
Smash Burgers (with a Secret Sauce)
Mini Wild Salmon Patties with Lemony Avocado Sauce
Easy Pan Seared Pork Chops
FAQs
Can I use other types of potato to make steak fries? Yes. I have used Yukon Gold potatoes with this recipe and they work. What other seasonings would be good on steak fries? Experiment with various seasonings like onion powder, paprika, cayenne pepper, or herbs like rosemary or thyme to add flavor to your fries. Do I have to soak the fries before baking? No. While soaking does remove some starch yielding crispier fries, it isn’t necessary. What’s the difference between Extra Virgin Olive Oil and Olive Oil? Extra virgin olive oil (EVOO) is high-quality, minimally processed, and ideal for raw applications due to its robust flavor and lower acidity. Regular olive oil has a milder taste, higher acidity, and is suitable for high-heat cooking. EVOO is favored for distinctive flavor, while regular olive oil is chosen for versatility in cooking.
Did you make this? Snap a photo and tag us on Instagram at @thrivinghome so we can see your creations and cheer you on!
★ ★ ★ ★ ★
5 from 2 reviews
Steak Fries
Try your hand at these yummy, healthy oven steak fries. With just a bit of sugar added, you’ll amaze your friends and family with how good these taste.
Yield: 6-8
Prep: 15 minutes Cook: 35 minutes Total: 50 minutes
Print Recipe
Rate
Pin for Later
Ingredients
4 medium russet potatoes, scrubbed clean (no need to peel them)
1 – 2 tablespoons avocado oil (sub: olive oil)
1 tablespoon sea salt
Ground black pepper, to taste
2 teaspoons sugar (this addition makes a big taste difference!)
1 teaspoon garlic powder
Cook Mode
Prevent your screen from going dark
Before You Begin! If you make this, please leave a review and rating letting us know how you liked this recipe! This helps our business thrive & continue providing free recipes.
Instructions
Preheat oven to 450°F. Line two sheet pans with parchment paper.
Cut potatoes in half lengthwise and then slice into steak fry wedges, about 1/4-1/2 inch wide each. (Just make sure they are all about the same size to ensure even cooking.)
Soak the fries in a large bowl of water for about 30 minutes or until you’re ready to bake them. (This helps remove some of the starch and makes them crispier in the end.)
Drain the potatoes in a colander and then pat them very dry with a dish towel. (This is a VERY important step! They must be really dry.)
Rinse and dry out the large bowl and return the potatoes to it. Toss with enough oil to coat them, sea salt, a few cranks of fresh ground pepper, garlic powder, and sugar.
Spread out the potatoes in a single layer on the two sheet pans. Make sure none of the fries touch, so they can get nice and crispy all around.
Bake for 15 minutes. Then, flip the fries over with a spatula, and rotate the pans by moving the one on the top rack to the bottom and vice versa. We also recommend rotating the pans themselves 180 degrees, so the front is now in the back of the oven and vice versa. (Rotating the pans like this helps with even baking.) Bake another 10-20 minutes, until golden brown and crispy. Keep an eye on them, so they don’t burn.
Sprinkle a little more salt and pepper, as desired. Serve while hot with ketchup or our Avocado Aioli .
Notes/Tips
Feel free to experiment with other seasonings like onion powder, paprika, cayenne pepper, or herbs like rosemary or thyme to add flavor to your fries.
If fries are crispy enough at the end of baking you can give them a quick broil to help.
Use a toaster oven or air fryer to reheat. Microwaving will cause them to loose their firm texture.
An oil with a high smoking point is important in this recipe; do not use extra virgin olive oil.
(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;
}
} );
}());
© Author: Rachel Tiemeyer
Cuisine:
American
Method:
Baked
Did you make this?
Snap a photo and tag us on Instagram at @thrivinghome so we can see your creations and cheer you on!
Rate Recipe
Tag Us on Instagram
.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,body.tasty-recipes-print-view .tasty-recipes-cook-mode{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,.tasty-recipes-quick-links a.button{background-color:#f9f9f9;background-color:var(--tr-button-color,#f9f9f9);border:1px solid #aaa;border-color:var(--tr-button-color,#aaa);border-radius:0;color:#aaa;color:var(--tr-button-text-color,#aaa);cursor:pointer;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-quick-links a.button{display:inline-block;margin-left:.625em;margin-right:.625em}.tasty-recipes-quick-links a.button+span{display:none}.tasty-recipes-entry-content .tasty-recipes-buttons a:hover,.tasty-recipes-image-button-container .tasty-recipes-buttons .button:hover,.tasty-recipes-quick-links a.button:hover{background-color:var(--tr-button-text-color,#aaa);color:var(--tr-button-color,#f9f9f9);text-decoration:none}.tasty-recipes-image-button-container .tasty-recipes-buttons .button:hover{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;cursor:pointer;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{background:transparent;box-shadow:none;display:inline-block;height:auto;margin:5px 0 0 8px;padding:0;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-cook-mode__container{align-items:center;display:flex;line-height:100%}.tasty-recipes-cook-mode__container label{font-size:inherit}.tasty-recipes-cook-mode__switch{display:inline-block;height:17px;margin-right:10px;position:relative;width:30px}.tasty-recipes-cook-mode__switch-slider{background-color:#737373;bottom:0;cursor:pointer;display:block;left:0;opacity:.4;position:absolute;right:0;top:0;transition:.4s}.tasty-recipes-cook-mode__switch-slider:before{background-color:#fff;bottom:2px;content:"";height:13px;left:2px;position:absolute;transition:.4s;width:13px}.tasty-recipes-cook-mode__switch input{display:none}.tasty-recipes-cook-mode__switch input:checked+span{opacity:1}.tasty-recipes-cook-mode__switch input:checked+span:before{transform:translateX(13px)}.tasty-recipes-cook-mode__switch-round{border-radius:34px}.tasty-recipes-cook-mode__switch-round:before{border-radius:50%}.tasty-recipes-cook-mode__label{font-weight:700}@media only screen and (max-width:767px){#shop-with-instacart-v1{transform:scale(.75);transform-origin:top left}}
body{ --tr-star-color:#32414e; }
.tasty-recipes-rating-solid.tasty-recipes-clip-10{-webkit-clip-path:polygon(0 0,10% 0,10% 100%,0 100%);clip-path:polygon(0 0,10% 0,10% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-20{-webkit-clip-path:polygon(0 0,20% 0,20% 100%,0 100%);clip-path:polygon(0 0,20% 0,20% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-30{-webkit-clip-path:polygon(0 0,30% 0,30% 100%,0 100%);clip-path:polygon(0 0,30% 0,30% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-40{-webkit-clip-path:polygon(0 0,40% 0,40% 100%,0 100%);clip-path:polygon(0 0,40% 0,40% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-50{-webkit-clip-path:polygon(0 0,50% 0,50% 100%,0 100%);clip-path:polygon(0 0,50% 0,50% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-60{-webkit-clip-path:polygon(0 0,60% 0,60% 100%,0 100%);clip-path:polygon(0 0,60% 0,60% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-70{-webkit-clip-path:polygon(0 0,70% 0,70% 100%,0 100%);clip-path:polygon(0 0,70% 0,70% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-80{-webkit-clip-path:polygon(0 0,80% 0,80% 100%,0 100%);clip-path:polygon(0 0,80% 0,80% 100%,0 100%)}.tasty-recipes-rating-solid.tasty-recipes-clip-90{-webkit-clip-path:polygon(0 0,90% 0,90% 100%,0 100%);clip-path:polygon(0 0,90% 0,90% 100%,0 100%)}.tasty-recipes-rating-outline{display:inline-block;height:1em;line-height:1;width:1em}.tasty-recipes-rating-outline.tasty-recipes-clip-0 svg{fill:url(#tasty-recipes-clip-0)}.tasty-recipes-rating-outline.tasty-recipes-clip-10 svg{fill:url(#tasty-recipes-clip-10)}.tasty-recipes-rating-outline.tasty-recipes-clip-20 svg{fill:url(#tasty-recipes-clip-20)}.tasty-recipes-rating-outline.tasty-recipes-clip-30 svg{fill:url(#tasty-recipes-clip-30)}.tasty-recipes-rating-outline.tasty-recipes-clip-40 svg{fill:url(#tasty-recipes-clip-40)}.tasty-recipes-rating-outline.tasty-recipes-clip-50 svg{fill:url(#tasty-recipes-clip-50)}.tasty-recipes-rating-outline.tasty-recipes-clip-60 svg{fill:url(#tasty-recipes-clip-60)}.tasty-recipes-rating-outline.tasty-recipes-clip-70 svg{fill:url(#tasty-recipes-clip-70)}.tasty-recipes-rating-outline.tasty-recipes-clip-80 svg{fill:url(#tasty-recipes-clip-80)}.tasty-recipes-rating-outline.tasty-recipes-clip-90 svg{fill:url(#tasty-recipes-clip-90)}.tasty-recipes-rating-outline.tasty-recipes-clip-100 svg{fill:url(#tasty-recipes-clip-100)}.comment-content .tasty-recipes-rating-outline.tasty-recipes-clip-100 svg{fill:currentColor}.tasty-recipes,.tasty-recipes-ratings{--tr-star-size:18px;--tr-star-margin:0px}.tasty-recipes-rating,.tasty-recipes-ratings-buttons{color:#f2b955;color:var(--tr-star-color,#f2b955)}.tasty-recipes-comment-form{border:none;margin:0;padding:0}.tasty-recipes-entry-header div.tasty-recipes-rating p,.tasty-recipes-rating-stars,.tasty-recipes-ratings,.tasty-recipes-ratings-buttons{display:inline-flex;font-size:1.1em;font-size:var(--tr-star-size);gap:.3em;gap:var(--tr-star-margin)}.tasty-recipes-entry-header div.tasty-recipes-rating p span.tasty-recipes-rating,.tasty-recipes-rating-stars span.tasty-recipes-rating,.tasty-recipes-ratings span.tasty-recipes-rating,.tasty-recipes-ratings-buttons span.tasty-recipes-rating{cursor:pointer;display:inline-block;font-size:1.1em;font-size:var(--tr-star-size);margin:0;width:1.1em;width:var(--tr-star-size)}.tasty-recipes-entry-header div.tasty-recipes-rating p{display:flex;justify-content:center}.tasty-recipes-ratings-buttons{flex-direction:row-reverse}.tasty-recipes-ratings-buttons input[type=radio]{clip:auto;display:inline-block!important;width:1.1em!important;width:var(--tr-star-size)!important}.tasty-recipes-ratings-buttons>span{position:relative}.tasty-recipes-ratings-buttons>span i{font-style:normal}.tasty-recipes-ratings-buttons>span .unchecked{display:inline-block}.tasty-recipes-ratings-buttons>input:checked~span .unchecked,.tasty-recipes-ratings-buttons>span .checked{display:none}.tasty-recipes-ratings-buttons>input:checked~span .checked{display:inline-block}@media only screen and (min-width:1024px){.tasty-recipes-ratings-buttons:not(:hover)>input:checked~span .unchecked,.tasty-recipes-ratings-buttons>:hover .unchecked,.tasty-recipes-ratings-buttons>:hover~span .unchecked{display:none}.tasty-recipes-ratings-buttons:not(:hover)>input:checked~span .checked,.tasty-recipes-ratings-buttons>:hover .checked,.tasty-recipes-ratings-buttons>:hover~span .checked{display:inline-block}}.tasty-recipes-ratings-buttons>input{cursor:pointer;height:100%;margin:0;margin-left:calc((var(--tr-star-size)+var(--tr-star-margin))*-1);opacity:0;position:relative;z-index:2}.tasty-recipes-rating a,.tasty-recipes-rating a:link{background:none;outline:none;text-decoration:none}.tasty-recipes-screen-reader{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.tasty-recipes-rating-link{align-items:center;display:inline-flex}.tasty-recipes-rating-link .rating-label{font-size:80%;padding-left:.4em}.tasty-recipes-selected-minimum-rating .comment-form-comment .required{display:none}.tasty-recipes-has-ratings{text-decoration:none!important}
window.tasty_recipes_min_rating = 4;
(function(){
document.querySelectorAll('[data-tr-ingredient-checkbox]').forEach(function(el) {
var input = el.querySelector('.tr-ingredient-checkbox-container input[type="checkbox"]');
if ( ! input ) {
return;
}
if (input.checked) {
el.dataset['trIngredientCheckbox'] = 'checked';
}
el.addEventListener('click', function(event) {
if ( 'A' === event.target.nodeName
|| 'INPUT' === event.target.nodeName
|| 'LABEL' === event.target.nodeName ) {
return;
}
input.click();
});
input.addEventListener('change', function() {
el.dataset['trIngredientCheckbox'] = input.checked ? 'checked' : '';
});
});
}());
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) {
checkbox.checked ? this.lock() : 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", event => {
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.ratings = {
init( min_rating ) {
this.min_rating = min_rating;
this.recipeRatingReflectInRespondSection();
this.addBodyClassBasedOnSelectedRating();
this.backwardCompRespondRatingPosition();
},
recipeRatingReflectInRespondSection() {
const ratings = document.querySelectorAll('.tasty-recipes-no-ratings-buttons [data-rating]');
if (ratings.length {
this.fireRatingInRespond( event.target.dataset.rating );
} );
}
},
fireRatingInRespond( rating ) {
const ratingInput = document.querySelector('.tasty-recipes-rating[value="' + rating + '"]');
if ( ! ratingInput ) {
return;
}
ratingInput.click();
},
addBodyClassBasedOnSelectedRating() {
const ratingInputs = document.querySelectorAll('input.tasty-recipes-rating');
if ( ratingInputs.length {
let selectedRating = event.target.getAttribute( 'value' );
this.handleBodyClassByRating( selectedRating );
this._toggle_comment_textarea_required( selectedRating );
} );
}
},
handleBodyClassByRating( rating ) {
if ( rating = comment_textarea.length ) {
return;
}
if ( rating {
if ( rating_span === event.target ) {
return;
}
rating_span.previousElementSibling.click();
} );
}
}
};
(function(callback) {
if (document.readyState !== "loading") {
callback();
} else {
document.addEventListener("DOMContentLoaded", callback);
}
})(() => {
window.TastyRecipes.ratings.init( window.tasty_recipes_min_rating );
});
The post Steak Fries appeared first on Thriving Home .

