THE ONLY SALTED CARAMEL RECIPE YOU'LL EVER NEED - Hugs and Cookies XOXO (2024)


function extend(destination, source) { for (var prop in source) { destination[prop] = source[prop]; } }

if (!Mimi) var Mimi = {}; if (!Mimi.Signups) Mimi.Signups = {};

Mimi.Signups.EmbedValidation = function() { this.initialize();

var _this = this; if (document.addEventListener) { this.form.addEventListener('submit', function(e){ _this.onFormSubmit(e); }); } else { this.form.attachEvent('onsubmit', function(e){ _this.onFormSubmit(e); }); } };

extend(Mimi.Signups.EmbedValidation.prototype, { initialize: function() { this.form = document.getElementById('ema_signup_form'); this.submit = document.getElementById('webform_submit_button'); this.callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random()); this.validEmail = /.+@.+\..+/ },

onFormSubmit: function(e) { e.preventDefault();

this.validate(); if (this.isValid) { this.submitForm(); } else { this.revalidateOnChange(); } },

validate: function() { this.isValid = true; this.emailValidation(); this.fieldAndListValidation(); this.updateFormAfterValidation(); },

emailValidation: function() { var email = document.getElementById('signup_email');

if (this.validEmail.test(email.value)) { this.removeTextFieldError(email); } else { this.textFieldError(email); this.isValid = false; } },

fieldAndListValidation: function() { var fields = this.form.querySelectorAll('.mimi_field.required');

for (var i = 0; i < fields.length; ++i) { var field = fields[i], type = this.fieldType(field); if (type === 'checkboxes' || type === 'radio_buttons' || type === 'age_check') { this.checkboxAndRadioValidation(field); } else { this.textAndDropdownValidation(field, type); } } }, fieldType: function(field) { var type = field.querySelectorAll('.field_type'); if (type.length) { return type[0].getAttribute('data-field-type'); } else if (field.className.indexOf('checkgroup') >= 0) { return 'checkboxes'; } else { return 'text_field'; } },

checkboxAndRadioValidation: function(field) { var inputs = field.getElementsByTagName('input'), selected = false;

for (var i = 0; i < inputs.length; ++i) { var input = inputs[i]; if((input.type === 'checkbox' || input.type === 'radio') && input.checked) { selected = true; } } if (selected) { field.className = field.className.replace(/ invalid/g, ''); } else { if (field.className.indexOf('invalid') === -1) { field.className += ' invalid'; } this.isValid = false; } }, textAndDropdownValidation: function(field, type) { var inputs = field.getElementsByTagName('input'); for (var i = 0; i < inputs.length; ++i) { var input = inputs[i]; if (input.name.indexOf('signup') >= 0) { if (type === 'text_field') { this.textValidation(input); } else { this.dropdownValidation(field, input); } } } this.htmlEmbedDropdownValidation(field); },

textValidation: function(input) { if (input.id === 'signup_email') return;

if (input.value) { this.removeTextFieldError(input); } else { this.textFieldError(input); this.isValid = false; } },

dropdownValidation: function(field, input) { if (input.value) { field.className = field.className.replace(/ invalid/g, ''); } else { if (field.className.indexOf('invalid') === -1) field.className += ' invalid'; this.onSelectCallback(input); this.isValid = false; } },

htmlEmbedDropdownValidation: function(field) { var dropdowns = field.querySelectorAll('.mimi_html_dropdown'); var _this = this;

for (var i = 0; i < dropdowns.length; ++i) { var dropdown = dropdowns[i]; if (dropdown.value) { field.className = field.className.replace(/ invalid/g, ''); } else { if (field.className.indexOf('invalid') === -1) field.className += ' invalid'; this.isValid = false; dropdown.onchange = (function(){ _this.validate(); }); } } }, textFieldError: function(input) { input.className = 'required invalid'; input.placeholder = input.getAttribute('data-required-field'); }, removeTextFieldError: function(input) { input.className = 'required'; input.placeholder = ''; }, onSelectCallback: function(input) { if (typeof Widget === 'undefined' || !Widget.BasicDropdown) return; var dropdownEl = input.parentNode, instances = Widget.BasicDropdown.instances, _this = this; for (var i = 0; i < instances.length; ++i) { var instance = instances[i]; if (instance.wrapperEl === dropdownEl) { instance.onSelect = function(){ _this.validate() }; } } }, updateFormAfterValidation: function() { this.form.className = this.setFormClassName(); this.submit.value = this.submitButtonText(); this.submit.disabled = !this.isValid; this.submit.className = this.isValid ? 'submit' : 'disabled'; }, setFormClassName: function() { var name = this.form.className; if (this.isValid) { return name.replace(/\s?mimi_invalid/, ''); } else { if (name.indexOf('mimi_invalid') === -1) { return name += ' mimi_invalid'; } else { return name; } } }, submitButtonText: function() { var invalidFields = document.querySelectorAll('.invalid'), text; if (this.isValid || !invalidFields) { text = this.submit.getAttribute('data-default-text'); } else { if (invalidFields.length || invalidFields[0].className.indexOf('checkgroup') === -1) { text = this.submit.getAttribute('data-invalid-text'); } else { text = this.submit.getAttribute('data-choose-list'); } } return text; }, submitForm: function() { this.formSubmitting(); var _this = this; window[this.callbackName] = function(response) { delete window[this.callbackName]; document.body.removeChild(script); _this.onSubmitCallback(response); }; var script = document.createElement('script'); script.src = this.formUrl('json'); document.body.appendChild(script); }, formUrl: function(format) { var action = this.form.action; if (format === 'json') action += '.json'; return action + '?callback=' + this.callbackName + '&' + serialize(this.form); }, formSubmitting: function() { this.form.className += ' mimi_submitting'; this.submit.value = this.submit.getAttribute('data-submitting-text'); this.submit.disabled = true; this.submit.className = 'disabled'; }, onSubmitCallback: function(response) { if (response.success) { this.onSubmitSuccess(response.result); } else { top.location.href = this.formUrl('html'); } }, onSubmitSuccess: function(result) { if (result.has_redirect) { top.location.href = result.redirect; } else if(result.single_opt_in || !result.confirmation_html) { this.disableForm(); this.updateSubmitButtonText(this.submit.getAttribute('data-thanks')); } else { this.showConfirmationText(result.confirmation_html); } }, showConfirmationText: function(html) { var fields = this.form.querySelectorAll('.mimi_field'); for (var i = 0; i < fields.length; ++i) { fields[i].style['display'] = 'none'; } (this.form.querySelectorAll('fieldset')[0] || this.form).innerHTML = html; }, disableForm: function() { var elements = this.form.elements; for (var i = 0; i < elements.length; ++i) { elements[i].disabled = true; } }, updateSubmitButtonText: function(text) { this.submit.value = text; }, revalidateOnChange: function() { var fields = this.form.querySelectorAll(".mimi_field.required"), _this = this; var onTextFieldChange = function() { if (this.getAttribute('name') === 'signup[email]') { if (_this.validEmail.test(this.value)) _this.validate(); } else { if (this.value.length === 1) _this.validate(); } } for (var i = 0; i < fields.length; ++i) { var inputs = fields[i].getElementsByTagName('input'); for (var j = 0; j < inputs.length; ++j) { if (this.fieldType(fields[i]) === 'text_field') { inputs[j].onkeyup = onTextFieldChange; inputs[j].onchange = onTextFieldChange; } else { inputs[j].onchange = function(){ _this.validate() }; } } } } }); if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function() { new Mimi.Signups.EmbedValidation(); }); } else { window.attachEvent('onload', function() { new Mimi.Signups.EmbedValidation(); }); }})(this);

THE ONLY SALTED CARAMEL RECIPE YOU'LL EVER NEED - Hugs and Cookies XOXO (2024)

FAQs

Why do people love salted caramel? ›

These are sweet, salty, sour, bitter and umami. Salted caramel combines two of these, giving an effect that chefs call “flavour layering”. Salt also acts as an enhancer of flavour (that's why you sprinkle it on your chips, for instance), so that's why it makes caramel taste even better.

Who put salt in caramel? ›

One story suggests that salted caramel was created by accident in France in the 1970s. A chocolatier named Henri Le Roux was making caramel when he accidentally added some fleur de sel, a type of French sea salt, to the mixture.

How do you make Ina Garten caramel? ›

Directions
  1. Mix the water and sugar in a medium heavy-bottomed saucepan. Cook over low heat for 5 to 10 minutes, until the sugar dissolves. Do not stir. ...
  2. Simmer over low heat, stirring constantly, until the caramel dissolves and the sauce is smooth, about 2 minutes. Allow to cool to room temperature, at least 4 hours.

Why is salted caramel sweeter? ›

Firstly, salt acts as a flavour enhancer, which means it brings out the flavours of the caramel that may have been previously overlooked. Making it richer and sweeter than before, we can quite simply taste this sugary treat a whole lot better when we add salt. However, salt doesn't just act as a flavour enhancer.

Why is caramel so addictive? ›

A study from the University of Florida discovered that the brain releases endogenous opioids, a heroin-like chemical, when you eat something sweet, salty or fatty. When the three of those are combined, it sends your brain into overdrive.

Is salted caramel addictive? ›

Scientists tested salted caramel on 150 participants. They found that eating salted caramel causes a phenomenon called “hedonic escalation”. This is where our brains keep craving more and more with every mouthful because we detect new flavours with each bite.

Did Starbucks get rid of salted caramel? ›

The Salted Caramel Mocha Is Off the Menu

Yep, the sweet and salty concoction that was competing with the PSL won't be returning to the menu this autumn. While this is a blow for those of us who were looking forward to ordering it again, there is still a way to get your hands on it.

What kind of salt is used in Starbucks salted caramel? ›

What Type of Salt Does Starbucks Use in Their Salted Caramel Mocha Lattes? Starbucks uses a blend of turbinado sugar and smoked sea salt.

When did salted caramel become popular? ›

Its notoriety spread across borders as the Swiss and the Belgians soon realised they too wanted a taste. And by the 1990s, salted caramel was a popular addition to desserts and chocolate treats around the world. Domestic goddess, Nigella Lawson, wrote of her love affair with the treat.

What not to do when making caramel? ›

12 Mistakes To Avoid When Making Caramel
  1. Not assembling your ingredients. Juanmonino/Getty Images. ...
  2. Choosing the wrong pan. Milanchikov Sergey/Shutterstock. ...
  3. Using the wrong sugar. ...
  4. Getting the temperature wrong. ...
  5. Stirring the sugar too much. ...
  6. Forgetting about safety. ...
  7. Not heating your liquid. ...
  8. Stopping before the sugar browns.
Jan 29, 2024

Why do you put vinegar in caramel? ›

Add acid. Acid ingredients (like vinegar or lemon juice) can help prevent re-crystallization which causes caramel to become grainy. Acid physically breaks the bonds between the glucose and fructose molecules that form sucrose and ensure that it stays apart.

Why does my salted caramel taste bitter? ›

Bitter caramel means burned caramel. So if yours taste bitter, you've overcooked it. You can do nothing about it after, only heat it a bit shorter the next time.

Why is my salted caramel grainy? ›

Caramel becomes grainy when the sugars crystallize, a process that happens when the melted sugar splashes up onto the cold sides of the pan. It loses its moisture and turns back into a sugar crystal. If this crystal touches the melted mass, it causes a chain reaction and the caramel will seize up and become grainy.

Why is my salted caramel hard? ›

Temperature is key when making candy. The difference between a soft caramel and one that's hard and overcooked is all in the temperature. Candy thermometers—like this instant-read thermometer—let you know exactly what stage the caramel is in (thread, soft-ball, firm-ball, hard-ball, soft crack or hard crack).

Is salted caramel better? ›

Just as traditional caramel sauce is made better with just a pinch of savory salt, so too are classic brownies taken to the next level of indulgence when a swirl of caramel sauce and pinches of sea salt are added to the equation.

How do you describe salted caramel taste? ›

Salted caramel provides a non-sweet element that many desserts and coffee drinks benefit from, bringing both saltiness and the slightly bitter richness of caramel that adds complexity to menu items.

What is different about salted caramel? ›

The primary difference between salted caramel and normal (or unsalted) caramel lies in salt in the former, which significantly impacts both the flavour profile and the overall taste experience.

References

Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 5963

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.