-->
`;
const embedded = createRawHtml(rawHtml);
embedded.appendChild(appendScript("https://platform.twitter.com/widgets.js"));
return embedded;
}
function processSingleContentElement(contentElement) {
switch (contentElement.displayType) {
case 'section': return contentElement.elements.map(it => processSingleContentElement(it));
case 'paragraph': return createSimpleTextElement(contentElement.text);
case 'header': return createSimpleTextElement(contentElement.text, 'h' + contentElement.level);
case 'image': return createImage(contentElement);
case 'twitter': return createTwitter(contentElement);
case 'youtube': return createYoutube(contentElement);
default: return createSimpleTextElement(JSON.stringify(contentElement));
}
}
function fillContentIntoElement(createdElement, htmlEl) {
try {
console.log(createdElement, htmlEl);
if (createdElement.length) {
createdElement.forEach(ch => htmlEl.appendChild(ch));
} else {
htmlEl.appendChild(createdElement);
}
} catch (e) {
console.error(e.message);
}
}
function fillContent(contentElementsList, htmlElements) {
const contentElements = Array.from(contentElementsList);
console.log(contentElements);
const lastElementIndex = htmlElements.length - 1;
htmlElements.forEach((htmlEl, index) => {
htmlEl.innerHTML = '';
if(contentElements.length > index) {
if(index === lastElementIndex) {
contentElements.slice(index).forEach(ce => fillContentIntoElement(processSingleContentElement(ce),htmlEl))
} else {
const createdElement = processSingleContentElement(contentElements[index]);
fillContentIntoElement(createdElement, htmlEl);
}
}
});
}
function createSlides(slides) {
const templateWrapper = document.getElementById('slide-template');
const template = templateWrapper.content.querySelector(".slide-template");
return slides.map((it, index) => {
const cloned = template.cloneNode(true);
const contentPlaceholders = cloned.querySelectorAll(".content-placeholder");
fillContent(it.elements, contentPlaceholders)
if (infiniteLayout) {
cloned.querySelectorAll(".adslot").forEach(slot => {
slot.id = slot.id + '_' + index;
});
}
return cloned;
});
}
var slides = [{"elements":[{"text":"Keep your drain unclogged without having to use hard chemicals.","level":3,"displayType":"header"},{"elements":[{"text":"Salt is more than just the condiment households use to enhance or improve the flavour of a meal. In fact, salt has historically made human’s life easier. Civilizations have used this mineral to preserve their food; communities were established based on how close the salt source was. You might be surprised to know the Latin word salary comes from salt because it was used as currency. And yet we think we can only use salt for cooking purposes today. You will want to take a closer look at this food seasoning because you have not been using it to its full potential. Take a look at 15 easy salt hacks to help you around the house. You may want to buy an extra box next time you are doing your grocery shopping. Another benefit: replacing harmful chemicals with salt will make your home more green.Mix 1/4 cup of baking soda with 1/4 cup of salt. Pour it into the drain. Follow with half a cup of vinegar and let it sit for about 15 minutes. Let the hot water run from the faucet to flush everything down completely.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/4f9e7d2c-db2f-3b90-88ef-a596fd77514d.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Give your flowers a longer life.","level":3,"displayType":"header"},{"elements":[{"text":"When you place your flowers in a vase with water, don't forget to add a pinch of salt. The flowers will bloom longer.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c2ea6859-501b-3e46-bfec-1ac8747e3766.gif","caption":"","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Make the egg yolk clean-up hassle free.","level":3,"displayType":"header"},{"elements":[{"text":"If you accidentally dropped an egg, don't panic. Pour enough salt to cover the mess. Leave it for 15 minutes and wipe it up afterwards with a paper towel.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/53d670f9-5655-394c-bdcd-cd537d076a4f.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Give your pots and pans a makeover.","level":3,"displayType":"header"},{"elements":[{"text":"For pots and pans that have months if not years of grease stain and build up, they can still be saved. Sprinkle salt liberally and add water. Let this mix sit for 10 minutes. With a cloth or sponge, simply wipe the stains off.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/b756aaf0-0f25-3012-b70d-e75b8a6a698e.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Don't throw out your dirty sponges.","level":3,"displayType":"header"},{"elements":[{"text":"When your cleaning sponges are full of dirt and stains, give them a salt bath. Mix 1/4 cup of salt and two cups of water in a container, place the sponge in the mix, and leave it overnight. You will have a new sponge to work with in the morning.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/983f2a91-8b7b-3263-8feb-85e81bd7a63c.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Use salt to stop a fire getting out of hand.","level":3,"displayType":"header"},{"elements":[{"text":"When a grease fire starts, do not pour water on it! Spill a large amount of salt over the fire. Doing this cuts off the oxygen and puts out the fire quickly.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/1425ada0-cf3f-3e52-9b1b-8b6e94fd9243.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Don't throw away a sticky iron.","level":3,"displayType":"header"},{"elements":[{"text":"You may have replaced your iron when you couldn't get melted residue off. Now put a piece of wax paper on a flat surface, and pour a large amount of salt on it. Set the iron on high, run it over the salt for approximately one minute. It will remove all the residue off.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/85efedbc-885a-34c2-83e2-3272e49b7947.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Remove dark shower stains.","level":3,"displayType":"header"},{"elements":[{"text":"Mix a cup of salt with a cup of turpentine. Wearing safety gloves, put a good amount on a sponge to scrub the stains off. Make sure you have your windows open for ventilation.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/bd7e2fc3-4e0e-3e5c-adc3-39b207b4a117.jpeg","caption":"HouseholdHacker","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Getting rid of annoying red wine stains.","level":3,"displayType":"header"},{"elements":[{"text":"Blot out the excess wine with a wet, cotton cloth. Sprinkle a large amount of salt to cover the affected area. Let it sit and vacuum over the spot.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/9ec668a4-8e21-39a5-9414-1b24444ed11a.jpeg","caption":"MyRecipes","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Don't have the time to wait for the wine to chill.","level":3,"displayType":"header"},{"elements":[{"text":"In a wine bucket with ice, add water, and salt. Gently placing and twisting the wine bottle, moves the salt around. This will chill the white wine in no time.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/2f9ec0e5-d2dc-3401-963d-5c43c518f880.jpeg","caption":"Didriks","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Make your own dishwasher detergent at home.","level":3,"displayType":"header"},{"elements":[{"text":"On your dishwasher's detergent cup, pour 2/3 of a cup of baking soda, three drops of regular dish soap, and add salt until the dispenser is almost full. Just turn on the washer like normal.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/12b05d28-fc12-3b65-872a-1a84729e0ea7.jpeg","caption":"","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Remove mildew from your clothes.","level":3,"displayType":"header"},{"elements":[{"text":"Make a paste using salt and lemon juice. Rub it on the stain and let it dry. If you can put the garments outside to dry, that would be even better. Put the clothes in the washing machine to complete the process.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c204238a-a9a9-3d39-8d85-d6b86df82b38.jpeg","caption":"Bruce Guenter","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Start making your own toothpaste at home.","level":3,"displayType":"header"},{"elements":[{"text":"Mix salt, baking soda, and peppermint for your naturally made toothpaste.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/e72f32a4-171e-3934-96b7-850fad0b4cdc.jpeg","caption":"Joan","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Get rid of dandruff once and for all.","level":3,"displayType":"header"},{"elements":[{"text":"Take a good amount of sea salt and massage it on the scalp prior to washing your hair. The salt will help to remove the dead skin flakes off the head easier.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/bfb3dae2-2ca4-3dd3-9d43-b31050847de4.gif","caption":"","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Ants begone!","level":3,"displayType":"header"},{"elements":[{"text":"Mix salt and water in a spray bottle. Spray the areas you know the pesky insects are causing the most trouble like windows or doorways. This repels the ants. It is also safer route than using pesticides.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/26be011c-368d-3b2e-89d7-cde39666f83e.jpeg","caption":"Leonid Mamchenkov","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]}];
var slide_index = parseInt(0);
var slide_json = createSlides(slides);
var initial_slide = slide_index;
var initial_url = location.pathname + location.search;
var base_url = '/salt-hacks';
var next_gallery = '/bird-panhandling';
var first_load = true;
var has_scrolled = false;
var title = "He Pours Salt Down His Drain… Best Kitchen Hack I’ve Ever Seen.";
var path = base_url
var utm_campaign, utm_subid, utm_source, utm_content, utm_term = 'n/a';
// try {
// var url = new URL(window.location.href);
// utm_campaign = encodeURIComponent(url.searchParams.get("utm_campaign"));
// utm_source = encodeURIComponent(url.searchParams.get("utm_source"));
// utm_content = encodeURIComponent(url.searchParams.get("utm_content"));
// utm_term = encodeURIComponent(url.searchParams.get("utm_term"));
// utm_medium = encodeURIComponent(url.searchParams.get("utm_medium"));
// if (utm_content && utm_campaign){
// var googletag = googletag || {};
// googletag.cmd = googletag.cmd || [];
// googletag.cmd.push(function() {
// googletag.pubads().setTargeting("utm_subid", utm_term);
// googletag.pubads().setTargeting("utm_subid_c", utm_campaign);
// });
// }
// } catch (e) {
// }