-->
`;
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":[{"elements":[{"text":"Not\nevery historical event makes the front pages. Many stories are brushed away in\norder to create room for the more important ones, such as the moon landing and\nWWII. However, when we learn more about our history, we begin to notice these\nformerly unimportant tales finding their way to the limelight. And when they do, we\ndiscover that the past can be just as bizarre (and frightening) as the present.","level":0,"displayType":"paragraph"},{"text":"History\ncan be stranger than fiction.","level":0,"displayType":"paragraph"},{"text":"During\nhis reign, Pope Gregory IX proclaimed cats to be linked with devil worship and\nordered their extermination. As a result, they were wiped out across much of\nEurope. It's believed that the scarcity of cats allowed the rat population to\ngrow over time, allowing the bubonic plague to spread a few decades later!","level":0,"displayType":"paragraph"}],"displayType":"section"},{"text":"1. A\nPope Declared War On Cats","level":2,"displayType":"header"},{"imageUrl":"/static/1646ea34-8e43-4535-a1c0-c83b0bc4785c.jpeg","caption":"Pinterest","displayType":"image"}]},{"elements":[{"text":"2. Roman\nEmperor Made His Horse A Senator","level":2,"displayType":"header"},{"elements":[{"text":"Gaius\nJulius Caesar Augustus Germanicus, popularly known as Caligula, Rome's most\ndictatorial emperor, adored his horse Incitatus so much that he made him a senator.\nHe even gave him an ivory manger to sleep in and even a mansion with his own\nattendants!","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/f7258fd2-9eb3-42c9-b5cf-0611fe15f647.jpeg","caption":"Pinterest","displayType":"image"}]},{"elements":[{"text":"3. A Horde Of Bunnies Once Attacked Napoleon","level":2,"displayType":"header"},{"elements":[{"text":"Once\nthe emperor had ordered a rabbit hunt for himself and his troops. His\nchief of staff orchestrated the event and had workers round up 3,000 bunnies\nfor the occasion. The hunt was ready to begin once the rabbits were liberated\nfrom their cages. At the very least, that was the plan. But instead, the rabbits\ncharged at Bonaparte and his troops with a savage and unrelenting onslaught.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/879dda4e-2d3d-4753-b659-0c181ffa49a5.jpeg","caption":"Pexels","displayType":"image"}]},{"elements":[{"text":"4. Tomato\nKetchup Was Sold As Medicine","level":2,"displayType":"header"},{"elements":[{"text":"When\nit came to popular medicine in the 1830s, ketchup was all the rage. It was\nfirst sold as diarrhea and indigestion treatment in 1834 by an Ohio\nphysician called John Cook. It wasn't until the late 1800s that it became\npopular as a condiment.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/5ece0ccc-47bb-4d78-b438-97d9e8449d21.jpeg","caption":"Pexels","displayType":"image"}]},{"elements":[{"text":"5. Posing\nWith Their Dead Relatives","level":2,"displayType":"header"},{"elements":[{"text":"Victorians\nhad high mortality rates — most died before reaching the age of 40 — and\nchildren were especially vulnerable to diseases like scarlet fever, measles,\nand cholera. As a result, Victorians turned to photography to memorialize\npeople they had lost. They posed their deceased loved ones, generally children,\nin chairs or beds dressed in immaculate white attire.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/f02bf159-52e2-46f8-be51-87f6b0d407dc.jpeg","caption":"Pinterest","displayType":"image"}]},{"elements":[{"text":"6. Einstein\nMight Have Become Israel’s President","level":2,"displayType":"header"},{"elements":[{"text":"Following\nthe death of Israel's first President, Chaim Weizman, on November 17, 1952,\nAlbert Einstein was offered the presidency. He turned down the job because he\nlacked \"the natural talent and expertise to deal properly with\npeople.\" Wouldn’t that have been something?","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/50680219-fbe7-4797-b5a2-7c66ea418e69.jpeg","caption":"Pixabay","displayType":"image"}]},{"elements":[{"text":"7. Stalin\nRetouched His Photos To Remove People Who Died","level":2,"displayType":"header"},{"elements":[{"text":"Image\nretouching was commonly used to beautify portraits in the early twentieth\ncentury, but in the Soviet Union, highly trained retouchers were also used for\na more sinister purpose. As comrades fell out of Stalin's favor and were\ndemoted or murdered, the politically inconvenient characters were meticulously\nscraped and painted out of the frame.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/df874e7b-6fff-4f5a-8f61-d636bbebcd71.jpeg","caption":"Pexels","displayType":"image"}]},{"elements":[{"text":"8. Strange\nWay Of Waking Up People","level":2,"displayType":"header"},{"elements":[{"text":"Before\nalarm clocks, there were \"knockers-up,\" who were hired to shoot dry\npeas from a blow gun at people's windows in the morning to wake them up. It was\npopular in some locations until the 1970s — other tools of choice included a\nlong stick, and other knocker-uppers used soft hammers or rattles.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/41ef891a-0df8-4627-b2b0-d247356c6e5d.jpeg","caption":"Pinterest","displayType":"image"}]},{"elements":[{"text":"9. Real-life\nZombie Outbreak","level":2,"displayType":"header"},{"elements":[{"text":"In\n1494, sailors returning from the New World brought a large outbreak of syphilis\nwith them, which infected an entire French army. Because there were no\nantibiotics available at the time, the disease spread unchecked—and the\nconsequences were severe. The skin on victims' faces would rot away as a result\nof the disease's gruesome sores. In rare cases, the infected people's noses,\nlips, or other body parts were completely gone, and several of the sufferers\ndied as a result of the sickness. This syphilis outbreak was like the zombie\napocalypse in real life.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/643dae05-9214-4110-a322-85677efa9928.jpeg","caption":"Pixabay","displayType":"image"}]},{"elements":[{"text":"10. Before\nModern Science, Dentures Were Made Using Dead Soldiers’ Teeth","level":2,"displayType":"header"},{"elements":[{"text":"In\nthe past, people battled tooth decay with improvised dentures—ivory foundation\nplates with real human teeth affixed. Scavengers were already stealing teeth\nfrom battle corpses and selling the teeth to dentists. The choppers\nwere boiled, the roots were removed, attached to ivory plates, and sold to\nclients.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/ae6f505f-dcd1-4ada-86ef-7a9a081e75bf.jpeg","caption":"Pixabay","displayType":"image"}]},{"elements":[{"text":"11. Urine\nWas…Quite A Household Commodity","level":2,"displayType":"header"},{"elements":[{"text":"Although\nit may sound disgusting, pee includes ammonia, which is one of the best natural\ncleaning agents available! For this benefit, it was used as a mouthwash by Romans.\nUrine was also used to develop the color in dyes while binding them to the\nfabric. The liquid gold became so valuable that Romans who traded in it had to pay a tax!","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/837e6bac-114e-4ca5-9d1d-5ba6354ca771.jpeg","caption":"Unsplash","displayType":"image"}]},{"elements":[{"text":"12. Gladiators\nHad Some Really Questionable Fanbase","level":2,"displayType":"header"},{"elements":[{"text":"Roman\ngladiators were very famous in their times. So it is understandable that they were\nloved by many. They frequently became superstars and even endorsed products,\njust like athletes do nowadays! Children would even play with clay gladiator\n\"action figures.\" But it also had a creepy aspect. Their sweat was\nthought to be an aphrodisiac! Some women even combined it with their skincare\nproducts.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/32947479-356a-4985-90a9-0746e1e1ff81.jpeg","caption":"Pixabay","displayType":"image"}]}];
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 = '/ridiculous-historical-facts-that-seem-unreal';
var next_gallery = '/spoiled-pets';
var first_load = true;
var has_scrolled = false;
var title = "Ridiculous Historical Facts That Seem Unreal";
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) {
// }