-->
`;
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":"Dangerous Toys","level":3,"displayType":"header"},{"elements":[{"text":"All of us have an older person in our lives that likes to start sentences with the phrase, \"Back in my day...\" Most of the time, they're referring to some idealized memory of the way the world used to be when they were young. However, if this post is any indication, \"back in my day\" refers to a world that was a lot more dangerous than it is now -- especially for little kids. Below are 20 solid reasons why kids (and now grown-ups) from the sixties and seventies probably shouldn't be alive today, from dangerous toys to faulty cars to peculiar dietary choices, these are all reasons why baby boomers and some Gen X-ers are lucky to be not only alive, but also here with all of their limbs intact. Check them out below, especially if you're of that generation. #13 is truly disturbing to think about.Back in the day, toys were a lot more dangerous than they are now -- and had a lot more risks associated with playing with them. We're talking hot plates, noxious odors and sharp metal objects -- how did anyone make it out alive?","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/b9ca59a4-273a-3296-bde4-34944ac03a50.jpeg","caption":"Mushy","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"No Seatbelts","level":3,"displayType":"header"},{"elements":[{"text":"People didn't really buckle up back in the day, and children often rode in the front seat or on each other's laps. We're glad that things have gotten slightly safer on the roads.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/543434da-ccc7-34ff-b4dd-f5c3d1c6f8d3.jpeg","caption":"Bettmann / Corbis","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Front Seat Driving","level":3,"displayType":"header"},{"elements":[{"text":"As we mentioned above, the lack of seat belts meant you could sit wherever you wanted -- and that meant that often, babies would sit with their parents in the front seat.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/b3d74e8b-cab2-34c4-8f0d-88bd66b6ce0a.jpeg","caption":"William Gedney / Duke University","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"No Helmets","level":3,"displayType":"header"},{"elements":[{"text":"Kids popped wheelies and raced each other without helmets, making this hazardous oversight similar to the seatbelt thing. We'd love to see some stats on head injuries from back then.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/a871671c-8bed-3c7d-b160-c8bd1dd519f7.jpeg","caption":"","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Chemical Trucks","level":3,"displayType":"header"},{"elements":[{"text":"Back in the '60s and '70s, kids would often run behind these chemical/pesticide trucks when they passed by. Lungs be damned, apparently.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/9ce9dd7d-b642-3c73-b6b3-3927fdb182cf.jpeg","caption":"reddit","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Unsafe Playgrounds","level":3,"displayType":"header"},{"elements":[{"text":"Anyone remember swinging so hard that one part of the swing set would come off the ground? Or what about the burns we suffered sliding down scorching metal slides during the summer, not to mention the spiky, rusting metal all over the place.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/2bcfaec6-bb0a-3a68-a35c-2288aafddeb2.jpeg","caption":"Unknown","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Kids Going Solo","level":3,"displayType":"header"},{"elements":[{"text":"If you let yourself into the house after school, you were a latch key kid. By today's standards, this seems pretty dangerous -- then again, most who did it seemed to turn out okay.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/bf74e77a-e72b-337f-895f-925d203a2963.jpeg","caption":"20th Century Fox","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"12-Year-Old Babysitters","level":3,"displayType":"header"},{"elements":[{"text":"If you were at least 12 and able to dial 9-1-1, then you got some pretty sweet babysitting gigs. Considering the fact that today's babysitters often have certification, the idea of a 12-year-old doing the job seems pretty wild.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c69e3189-3fca-35b6-aff8-53f49d8fd997.jpeg","caption":"Corbis","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Ridiculous Diets","level":3,"displayType":"header"},{"elements":[{"text":"Believe it or not, there was a time when processed food was considered the best, and very few people were \"eating clean.\"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/658108f0-1420-38c2-a099-f744e2688071.jpeg","caption":"Allen","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Secondhand Smoke","level":3,"displayType":"header"},{"elements":[{"text":"There was no escaping the haze of cigarette smoke back in the day, because you could smoke literally everywhere: Planes, cars, restaurants, and even libraries.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/db945e5f-e40d-30ea-8261-f70df27aa5e8.jpeg","caption":"*BetüL*","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Explosive Cars","level":3,"displayType":"header"},{"elements":[{"text":"The Ford Pinto was popular in the 70s, and they got even more famous when people learned that they often exploded. They were discontinued in 1980, but only after many had risked their lives by driving one.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/36f043e0-d213-34b2-9aca-ca2b442e99d1.jpeg","caption":"John Lloyd","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Summer In General","level":3,"displayType":"header"},{"elements":[{"text":"The three months between the school year were the most dangerous times growing up. We would leave the house for hours at a time, run around without shoes, and come home with more scrapes and bruises than we could count. It was nice to not be monitored all the time, but one has to wonder if it was safe.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/3e7a027e-2e8e-3c69-8a2c-0f8202de7633.jpeg","caption":"Thomas Rousing","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"House Paints","level":3,"displayType":"header"},{"elements":[{"text":"Many household objects, including baby cribs, were covered with bright colored lead-base paints -- the exact paints that were proven to be hazardous later on.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/86187afe-2eac-3683-bebc-b78c9365d206.jpeg","caption":"Unknown","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"No Childproof Lids","level":3,"displayType":"header"},{"elements":[{"text":"It was once easy for kids to get into bottles, including pills, detergents, and household cleaners. Back then, it was much easier for kids to get inside and ingest them.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/97564e77-1984-3784-85b9-0461488c78b3.jpeg","caption":"Mel-and-Jym","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Uncomfortable Clothes","level":3,"displayType":"header"},{"elements":[{"text":"These weren't exactly dangerous, but they deserve a mention because clothing back then was totally uncomfortable -- enough to kind of feel dangerous.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/279ad84d-22e6-398f-9301-3ead76ab2cc0.jpeg","caption":"50s.tumblr","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Drinking Water","level":3,"displayType":"header"},{"elements":[{"text":"There wasn't such a frenzy to drink bottled water back then, so who knows what we slurped down along with our H2O.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/9f88758c-4e50-3b6b-9a7c-8732c4e77fca.jpeg","caption":"Life Flicks","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Weird Food Choices","level":3,"displayType":"header"},{"elements":[{"text":"Who didn't have a backyard tea party, complete with mud pies and other weird backyard \"food\" choices? It's a wonder we didn't get sick more often.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/97bd8f90-567c-3907-a13c-4a56fb7a80ec.jpeg","caption":"Life","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"\"Kid\" Guns","level":3,"displayType":"header"},{"elements":[{"text":"BB Guns were pretty popular back in the when, but it's hard to imagine most parents giving their kids this present today.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/a9972898-b56a-3cf7-b9de-9b19ff62f2f2.jpeg","caption":"MGM/UA Entertainment Co.","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Solo Car Sits","level":3,"displayType":"header"},{"elements":[{"text":"Finally, it used to be pretty common to leave your child alone in the car while you ran into the grocery store. Most parents wouldn't do this today -- do you think the world is more dangerous, or have people just gotten more careful?","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/901d2c58-22f2-3e33-b06d-5ba055004a4d.jpeg","caption":"nhtsa.gov","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 = '/20-reasons';
var next_gallery = '/bird-panhandling';
var first_load = true;
var has_scrolled = false;
var title = "19 Reasons Why Kids From The 60s And 70s Are Lucky To Be Alive.";
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) {
// }