Few things capture the joy of childhood quite like Cosmic Brownies. Now imagine all that rich, fudgy goodness transformed into a soft, chewy cookie, topped with ganache frosting and those signature colorful sprinkles. These Chocolate Cosmic Brownie Cookies – Perfect for Parties and Kids! combine nostalgia with indulgence, making them a hit at birthday parties, family gatherings, or even casual bake days with your little ones.
Let’s dive into this easy-to-follow recipe that promises bakery-quality cookies with minimal effort. Whether you’re a seasoned baker or a beginner, you’ll find these cookies simple, fun, and incredibly rewarding to make.
A Treat That Brings Joy to Any Gathering
There’s something magical about baking a dessert that brings smiles to everyone’s faces. For many of us, Cosmic Brownies hold a special place in our childhood memories. With these cookies, you can recreate that happiness in a fresh, new way. The combination of a rich brownie texture and the chewy satisfaction of a cookie makes this dessert extra special.
Whether you’re hosting a party or looking for a creative way to bond with your kids, these cookies are sure to be a crowd-pleaser.
Why You’ll Love These Cookies
1. Fun, Delicious, and Easy to Make
These cookies strike the perfect balance between fun and indulgence. The colorful sprinkles make them visually appealing for kids, while the rich chocolate flavor satisfies even the most sophisticated palates.
2. Versatile for Any Occasion
Birthday parties, school bake sales, or casual family dinners—these cookies fit right in. They’re also great as an edible gift or a sweet treat to brighten someone’s day.
3. Nostalgia in Every Bite
For adults, these cookies are a trip down memory lane. For kids, they’re a chance to create new, happy memories. Everyone wins.
Ingredients for Chocolate Cosmic Brownie Cookies
For the Cookies
- Salted butter (1 cup, melted): Adds richness and keeps the cookies soft.
- Granulated sugar (1 ¼ cup): Provides sweetness and a chewy texture.
- Light brown sugar (¾ cup): Adds moisture and a hint of caramel flavor.
- Vanilla extract (2 tsp): Enhances the chocolate flavor.
- Eggs (2, room temperature): Binds the ingredients and adds richness.
- All-purpose flour (1 ⅔ cups): The base for structure.
- Cornstarch (2 tsp): Keeps the cookies tender and soft.
- Cocoa powder (1 cup): Opt for dark chocolate cocoa powder for an intense flavor.
- Baking soda (1 tsp): Helps the cookies rise slightly for a soft, fudgy texture.
- Kosher salt (½ tsp): Balances the sweetness.
For the Ganache Frosting
- Semi-sweet chocolate (8 oz): You can use baking bars or chocolate chips.
- Heavy cream (¾ cup): Creates a silky, luscious ganache.
- Vanilla extract (½ tsp): Adds a warm undertone.
- Cosmic Brownie sprinkles (1 cup): The colorful finishing touch.
Step-by-Step Recipe Guide
Step 1: Preparing the Cookie Dough
- In a large bowl, whisk together the melted butter, granulated sugar, and brown sugar until smooth and creamy.
- Add the eggs and vanilla extract, mixing until fully incorporated.
- In a separate bowl, combine the flour, cornstarch, cocoa powder, baking soda, and salt. Gradually add the dry ingredients to the wet mixture, stirring until a thick, smooth dough forms.
- Cover the bowl with plastic wrap and chill the dough in the refrigerator for 30 minutes. This helps prevent the cookies from spreading too much during baking.
Step 2: Shaping and Baking the Cookies
- Preheat your oven to 350°F (175°C) and line baking sheets with parchment paper.
- Scoop the dough into 2-tablespoon-sized balls and place them on the prepared baking sheets, spacing them about 2 inches apart.
- Slightly flatten each dough ball with the back of a spoon.
- Bake the cookies for 8–10 minutes, or until the edges are set but the centers are still soft. Avoid overbaking to maintain a fudgy texture.
- Let the cookies cool on the baking sheet for 5 minutes before transferring them to a wire rack.
Step 3: Preparing the Ganache Frosting
- Place the chopped chocolate (or chips) in a heatproof bowl.
- Heat the heavy cream in a small saucepan over medium heat until steaming (but not boiling). Pour the cream over the chocolate and let it sit for 2–3 minutes.
- Stir the mixture until smooth and glossy. Add the vanilla extract and mix well.
Step 4: Decorating the Cookies
- Once the cookies have cooled completely, spread a generous layer of ganache over each one using a spoon or offset spatula.
- Sprinkle the ganache with Cosmic Brownie sprinkles while it’s still wet.
- Let the ganache set for 15–20 minutes before serving or storing.
Tips for the Best Chocolate Cosmic Brownie Cookies
- Use Room-Temperature Ingredients: Room-temperature eggs blend more evenly into the dough, creating a consistent texture.
- Don’t Skip the Chilling Step: Chilling the dough ensures thicker cookies with a fudgy center.
- Measure Cocoa Powder Carefully: Too much cocoa can make the cookies dry. Use the spoon-and-level method to measure accurately.
- Customize the Sprinkles: Use themed sprinkles to match holidays or special occasions.
Creative Variations to Try
1. Double Chocolate Cosmic Cookies
Add white chocolate chips to the dough for a contrasting burst of sweetness.
2. Peanut Butter Cosmic Cookies
Swirl peanut butter into the ganache before spreading it on the cookies.
3. Gluten-Free Cosmic Cookies
Replace the all-purpose flour with a gluten-free 1:1 baking mix.
4. Festive Cosmic Cookies
Swap the sprinkles for seasonal options, like red and green for Christmas or pastel colors for Easter.
Serving Suggestions
- As a Party Treat: Arrange these cookies on a vibrant platter for a dessert table centerpiece.
- With Ice Cream: Sandwich a scoop of vanilla ice cream between two cookies for a decadent treat.
- Paired with Milk or Hot Chocolate: The perfect way to enjoy these cookies on a cozy evening.
How to Store and Reheat
Room Temperature
Store cookies in an airtight container for up to 4 days. Place a slice of bread in the container to keep them soft.
Refrigeration
Refrigerate cookies for up to 7 days. Let them come to room temperature before serving.
Freezing
Freeze baked cookies or dough balls for up to 3 months. To bake frozen dough, add 1–2 extra minutes to the baking time.
Frequently Asked Questions
1. Can I make these cookies ahead of time?
Yes! You can prepare the dough a day in advance and refrigerate it until ready to bake.
2. Can I use milk chocolate instead of semi-sweet?
Absolutely, though the cookies will be sweeter. Dark chocolate is another great option for a richer flavor.
3. Why are my cookies spreading too much?
Ensure the dough is chilled before baking, and avoid using overly softened butter.
4. How do I prevent overbaking?
Bake until the edges are set but the centers remain soft. The cookies will firm up as they cool.
5. Can I freeze the ganache?
Yes, but thaw it in the refrigerator and reheat gently over a double boiler to restore its smooth consistency.
Conclusion: A Chocolate Lover’s Dream
These Chocolate Cosmic Brownie Cookies – Perfect for Parties and Kids! are the ultimate crowd-pleasers. With their rich chocolate base, silky ganache topping, and cheerful sprinkles, they’re as fun to make as they are to eat.
So why wait? Gather your ingredients, preheat your oven, and let the baking magic begin. These cookies are sure to become a family favorite—and who can resist a treat that combines nostalgia with indulgence?
Try them today and share your creations with friends and loved ones. Whether it’s for a party or a simple afternoon snack, these cookies are guaranteed to bring smiles all around.
Chocolate Cosmic Brownie Cookies – Perfect for Parties and Kids!
Total Time: 50 minutes
Yield: 24 cookies
Description
Transform your favorite childhood treat into a soft, chewy cookie that’s loaded with rich chocolate flavor and topped with a luscious ganache and cheerful sprinkles. These Chocolate Cosmic Brownie Cookies are perfect for parties, bake sales, or any occasion that calls for a sweet, nostalgic indulgence.
Ingredients
For the Cookies:
- Salted butter: 1 cup, melted
- Granulated sugar: 1 ¼ cups
- Light brown sugar: ¾ cup
- Vanilla extract: 2 teaspoons
- Eggs: 2 large, room temperature
- All-purpose flour: 1 ⅔ cups
- Cornstarch: 2 teaspoons
- Cocoa powder: 1 cup (dark chocolate cocoa powder preferred)
- Baking soda: 1 teaspoon
- Kosher salt: ½ teaspoon
For the Ganache Frosting:
- Semi-sweet chocolate: 8 oz (use baking chocolate bars or chips)
- Heavy cream: ¾ cup
- Vanilla extract: ½ teaspoon
- Cosmic brownie sprinkles: 1 cup
Instructions
Step 1: Prepare the Dough
- In a large mixing bowl, combine the melted butter, granulated sugar, and light brown sugar. Whisk until smooth and creamy.
- Add the eggs and vanilla extract, mixing until fully incorporated.
- In a separate bowl, whisk together the flour, cornstarch, cocoa powder, baking soda, and salt. Gradually add the dry ingredients to the wet mixture, stirring until a thick dough forms.
- Cover the bowl with plastic wrap and refrigerate the dough for 30 minutes to ensure thick, chewy cookies.
Step 2: Bake the Cookies
- Preheat your oven to 350°F (175°C) and line two baking sheets with parchment paper.
- Using a cookie scoop or tablespoon, portion the dough into 2-tablespoon-sized balls. Place them on the baking sheets, spacing them 2 inches apart.
- Slightly flatten each dough ball with the back of a spoon or your fingers.
- Bake for 8–10 minutes, or until the edges are set but the centers remain soft.
- Let the cookies cool on the baking sheet for 5 minutes before transferring them to a wire rack to cool completely.
Step 3: Make the Ganache
- Chop the chocolate into small pieces and place them in a heatproof bowl.
- Heat the heavy cream in a saucepan over medium heat until it begins to steam (avoid boiling). Pour the hot cream over the chocolate and let it sit for 2–3 minutes.
- Stir the mixture until smooth and glossy. Add the vanilla extract and mix well.
Step 4: Frost and Decorate
- Once the cookies have cooled completely, use a spoon or offset spatula to spread a generous layer of ganache over each cookie.
- Sprinkle the ganache with Cosmic Brownie sprinkles while it’s still wet.
- Let the cookies sit at room temperature for 15–20 minutes to allow the ganache to set before serving.
Notes
- Chilling the Dough: Don’t skip this step—it helps the cookies maintain their shape and enhances the flavor.
- Storage: Store cookies in an airtight container at room temperature for up to 4 days or refrigerate for up to 7 days.
- Freezing Dough: Scoop the dough into balls and freeze for up to 3 months. Bake directly from frozen, adding an extra minute or two to the baking time.
- Ganache Alternative: If you’re short on time, you can use store-bought frosting as a substitute for the ganache.
- Prep Time: 40 minutes
- Cook Time: 10 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
window.trCommon={“minRating”:6,”ajaxurl”:”https:\/\/forurenergy.com\/wp-admin\/admin-ajax.php”,”ratingNonce”:””,”postId”:480};
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()
);
(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) {
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 {
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 {
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 );
});
The post Chocolate Cosmic Brownie Cookies – Perfect for Parties and Kids! appeared first on FOR UR ENERGY RECIPES.