-->
`;
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":"Go a little nutty with this DIY basket that lets dad know you're nuts about him because he's awesome!","level":3,"displayType":"header"},{"elements":[{"text":"Father's Day is practically kicking down your door, and you probably have no clue what you want to buy for him. It's okay. You're not alone. Buying gifts for dads can be a tough challenge. You could buy him a tie or checked suspenders, but you got him that last year and the year before that, didn't you? You have to do something new for him or your heart will break when you see his smile turn into a frown when he opens his gift. So, here are a couple of perfect store-bought and DIY ideas that make great last-minute gifts.If your dad loves nutty things, then get him a basket with jars full of nuts, peanut butter, M&M peanuts, and maybe a few Reese's peanut butter cups here and there, so that he won't have to worry about scavenging for a snack... at least, not right away.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/b6d609ea-d183-3e56-8d3e-674f8202b3c0.jpeg","caption":"Darling Doodles Design","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Does your dad have a bunch of scratched up vinyl records lying around that he can't listen to?","level":3,"displayType":"header"},{"elements":[{"text":"You can repurpose them into something he can use, like a vinyl record bowl where he can put his keys or other trinkets in. You just need a real bowl that can go in the oven, a vinyl record, and an over on 350 degrees. Once you see the record warping, take it out and push it into the bowl to shape it.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/672ddc0d-fdc1-3070-960e-c5bcee0f0d2a.jpeg","caption":"Vinyl Record Bowls","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Give your handy man dad a toolbox full of the most essential items he'll need to get through the day.","level":3,"displayType":"header"},{"elements":[{"text":"You can go online and make your own label for your dad's toolbox. Then, find a manly wrapping paper to wrap around this basket and add some much-needed snacks like beer, some Pringles, some Kit Kats, and anything else he might like.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/a5d59f17-2d72-36b6-be6f-c2161518081f.jpeg","caption":"Moms And Munchkins","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"He'll flip when you get him this DIY basket that's perfect for any dad who loves to grill on the weekends.","level":3,"displayType":"header"},{"elements":[{"text":"Put everything he'll need inside a (manly man) tin bucket full of tongs, and spatulas. Then add some jars with the condiments he'll need to season the food he's putting on the grill. Oh, and don't forget the barbecue sauce and a brush to coat the burgers, the steaks, and the chicken with.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/6840dc68-4260-301e-9491-a244db597e8d.jpeg","caption":"Kitchen Concoctions","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"A leather drink sleeve made of heavy duty leather is perfect for any dad who has that outdoorsy spirit.","level":3,"displayType":"header"},{"elements":[{"text":"Yes! Yes! You can buy him one of those \"World's Best Dad\" mugs, but he has a collection of those in his garage outback, which he's using to store all of his loose nails. This leather drink sleeve is tough as nails, and a totally banging gift because it'll keep his hands from burning when he's drinking his coffee or tea.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/bbf32163-2917-3e64-8744-5d7c1c2d38d9.jpeg","caption":"Beautiful Mess","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"If he loves more than just coffee for breakfast, then get him this breakfast sandwich maker.","level":3,"displayType":"header"},{"elements":[{"text":"It's multi-layered so you can cook the English muffin slices, the eggs, the ham, and the veggies on their own, but at the same time, so that his breakfast sandwich will be nice and warm when he's ready to bite into it.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/240adfc6-8de7-39e0-b4b7-2bd3daabc59c.jpeg","caption":"Business Insider","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"If your dad appreciates a good cocktail to de-stress after a hard day's work, then he'll love this.","level":3,"displayType":"header"},{"elements":[{"text":"Create a basket full of the ingredients he'll need to make his favorite drink, like a Moscow Mule. You just need to get him a bottle of ginger beer, some vodka, a Moscow Mule mug, a lime, and some newspaper to place inside the container.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/ae7a0a44-a83e-360d-ab86-d25557f8898b.jpeg","caption":"Pretty Plain Janes","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"If this is the first time ever giving your dad a mug, then make it interesting by giving it a mustache.","level":3,"displayType":"header"},{"elements":[{"text":"It's a silly gift that will make your dad laugh. You just need a mug, a sharpie, some Pebeo porcelain gel and a pen. Then, draw the mustache with the sharpie, trace the drawn mustache with the Pebeo pen, and fill in the mustache with the Pebeo gel stain and wait for it to dry.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/74579267-9377-3c98-b618-d4f60496e82c.jpeg","caption":"DodoBurd","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Usually, you'd think twice before getting your dad some candles, but \"Man-dles\" can make for the perfect manly gift for dad.","level":3,"displayType":"header"},{"elements":[{"text":"In lieu of those flower-scented candles, place some candle wax inside a small can of paint, stick a candle wick inside it, and add some citronella oil to the candle wax. Not only does it look and smell manly, but citronella will keep those pesky mosquitoes away when dad's grilling on the weekend.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/252939e5-add1-36f2-98e0-45b614451122.jpeg","caption":"Hello Glow","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"You can save the flower pot for mom and get your dad a garden bucket full of items for a car wash.","level":3,"displayType":"header"},{"elements":[{"text":"This is an awesome idea, especially if you have little ones who can help decorate this kit, because since dad's a star, it makes sense that the bucket should have a bunch of stars on them. Then, load the kit up with a sponge, some cloth, spray cleaners, and cleaner wax.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/4b0cd33f-f743-32a9-8995-fab8b54f77d9.jpeg","caption":"Inner Child Fun","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"If your dad's a baseball fan, then it would be silly of you to pass up this DIY baseball basket idea.","level":3,"displayType":"header"},{"elements":[{"text":"Buy a white bucket, and use felt to create the red stitching from a baseball. Then, place some of his favorite baseball snacks like some peanuts, sunflower seeds, some Slim Jims, a mini-bag of chips, a new baseball and a hat that represents his favorite team.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/1093c8b3-8054-3cad-8bb5-9e1bf4bb5cad.jpeg","caption":"Hoosier Homemade","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"With Father's Day practically here, your dad will need a cool apron when he's getting ready to cook a delicious BBQ.","level":3,"displayType":"header"},{"elements":[{"text":"This particular apron is perfect because the X separates the four different types of animals he'll likely be cooking, like cow, pig, chicken, or fish. You just need a flour sack towel, some black woven trim, a few pins, freezer paper, an iron, a pencil, some fabric paint, a sponge brush and a sewing machine and you're done. If dad happens to be a vegetarian or vegan, swap the designs for a variety of veggies and voila!","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/ebf8045e-6659-350f-b9f8-c8001bd8c00c.jpeg","caption":"Hoosier Homemade","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"If you're running out of time and can't make him a DIY gift, then get him a Hydro Flask water bottle.","level":3,"displayType":"header"},{"elements":[{"text":"You can get him a Hydro Flask that's 32 oz. for $39.95 and your dad can take it with him when he's doing something outdoorsy, like camping. The Hydro Flask keeps the water inside ice cold for over a day. This is also an eco-conscious gift because now dad won't have to buy plastic bottles anymore.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/1da881b0-2818-37f7-a10d-5e9b491f29e4.jpeg","caption":"Hydro Flask","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"You can turn a wooden beer caddy into the ultimate cookout kit for your dad's Father's Day gift.","level":3,"displayType":"header"},{"elements":[{"text":"Just add the ketchup, barbecue sauce, some seasonings, an apron, and the arsenals he'll need to flip those delicious burgers he makes on the grill. Oh, and don't forget to add a can of beer in there. To finish it up, buy a black and white ribbon to it.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/4b512d96-e2b9-3cb7-8a0b-63daf6290fe0.jpeg","caption":"Jacquelyn Clark","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"You could go out and buy your dad some shaving oil, or you can opt for custom-making one instead.","level":3,"displayType":"header"},{"elements":[{"text":"Treat that handsome face of his by adding some grapeseed oil, olive oil and an essential oil that just screams masculinity, like sandalwood. Then, all you need is a bottle, and a label and you've got a gift that will remind him of how much you love him every time he shaves.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/0026abd6-4c56-365b-98d5-b917f5f7bd19.jpeg","caption":"The Merrythought","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Sometimes, the best way to let your dad know you love him is through his stomach, like with trail mix.","level":3,"displayType":"header"},{"elements":[{"text":"Just buy a big jar, and add all of your dad's favorite trail mix snacks, which can include an assortment of nuts, raisins, and of course, M&Ms. Then print a cute trail mix Father's Day label and decorate the jar with some twine and some ribbons and you're done.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/5da8fadd-7454-3e7b-8bbc-9cb11885db49.jpeg","caption":"Lil Luna","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"You can make your dad's shaving experience minty with some DIY rosemary mint shaving cream.","level":3,"displayType":"header"},{"elements":[{"text":"You just need 1/3 cup of Shea butter, 1/3 cup of virgin coconut oil, ¼ cup of jojoba or sweet almond oil, 10 drops of rosemary essential oil, and 5 drops of peppermint essential oil. Then cook in a saucepan over low heat, add some shea butter and coconut oil, chill until it's solid, mix, and place it in a lovely jar.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/2a00dbbc-3add-31a7-92b1-4a1001e575ab.jpeg","caption":"Food For My Family","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"You can spice up your dad's life quick and easy with a bottle of hot pepper oil he can use for his meals.","level":3,"displayType":"header"},{"elements":[{"text":"All you do is throw in some hot peppers inside a bottle and add some olive oil all the way to the top. Just make sure that you choose a bottle that makes it easy to pour, because once dad gets this gift, he'll be pouring this oil over his salad, beef, chicken, and fish.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/e7562838-0b5d-3202-9b03-bfe9371ff10e.jpeg","caption":"A Beautiful Mess","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"If your dad is always on his laptop, then he'll appreciate this DIY laptop desk for his special day.","level":3,"displayType":"header"},{"elements":[{"text":"Laptops can get hot on the bottom, which means your dad needs to keep his legs from being scorched. To that end, you'll need a wooden lap desk top, some foam square, some fabric, some trim, some scissors, some fabric glue, and a staple gun with staples, so you won't have to do any sewing.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/01a436ef-8856-39b1-837d-229b3add7a52.jpeg","caption":"A Beautiful Mess","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 = '/awesome-fathers-day-gifts';
var next_gallery = '/spoiled-pets';
var first_load = true;
var has_scrolled = false;
var title = "19 Last-Minute Father’s Day Gift Ideas That Your Dad Will Love.";
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) {
// }