-->
`;
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":"Abel Tasman National Park","level":3,"displayType":"header"},{"elements":[{"text":"Over a year ago, a Belgian named Johan Lolos left his home country to travel the world. He has been on the road ever since. Perhaps the highlight of his trip so far was his three-month excursion to New Zealand in October. Sleeping in an inexpensive camper van, Lolos traveled around the New Zealand countryside, slept under the stars, and took some absolutely breathtaking photos - all while adhering to a strict budget. **Check out his photos below - not only will you have travel envy, but you'll learn a thing or two about New Zealand's amazing landscapes!**This national park is known for it's picturesque beaches and waters, which makes it perfect for water sports like kayaking.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/0a3fcd00-87d6-3254-b6cd-01e52580d0b3.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Mackenzie Country, Canterbury","level":3,"displayType":"header"},{"elements":[{"text":"Lols took this shot with his trusty camper van in the frame. This part of New Zealand is gorgeous, and extremely popular with tourists in the summer months.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/5a0a5501-d37d-382a-a09e-6d954c89114a.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"Lolos got up close and personal with the environment and the landscape - a great asset for any photographer.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/424a8e10-aebe-3bb3-8e11-633563437788.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Arthur's Pass","level":3,"displayType":"header"},{"elements":[{"text":"Arthur's Pass is a township located in the Southern Alps on the South Island, and it has some of the most breathtaking views in the world. Some nights, Lolos slept in a tent instead of the van.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/71271076-0489-34c2-bbca-8b95ee7390b3.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"In Arthur's pass, Lolos spent most of his time walking around and observing the gorgeous scenery, including this amazing field of sheep, which is New Zealand's national animal.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/3ecee1fe-6d4e-3e65-92c6-2c6f7171ff1e.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"This Kea, the world's only alpine parrot, was also photographed in Arthur's Pass.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/3feb7db1-1f3c-3bf7-b317-1e96bbdb0de3.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"The Catlins","level":3,"displayType":"header"},{"elements":[{"text":"The landscape of The Catlins is dramatic, complete with mossy ravines and seascapes.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c2c94e43-0e6a-3561-9c05-72dbf54e5608.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"Considered a \"hidden gem\" of New Zealand tourism, there are plenty of places to see that are off the beaten track.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/3001353c-fcce-3894-a455-93cad928ae97.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Lake Pukaki","level":3,"displayType":"header"},{"elements":[{"text":"Lake Pukaki is the largest of the alpine lakes that inhabit New Zealand's South Island.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/19d5c7d5-be24-3e99-b71e-b9db67e1787b.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Otago Peninsula","level":3,"displayType":"header"},{"elements":[{"text":"It was here when a surprising thing happened on Lolos' adventure: Though he hadn't originally wanted to take a boat tour, he forced himself to participate. It was worth his while: A trio of killer whales swam directly up to his boat!","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/8e64a3b6-1ff1-3337-bf16-d3657fbbc77c.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Lake Rotoiti","level":3,"displayType":"header"},{"elements":[{"text":"This lake has hot springs that are only accessible by boat.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/f537c020-d2ed-3c24-8c61-66543c5d5789.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Tongariro National Park","level":3,"displayType":"header"},{"elements":[{"text":"This incredibly beautiful national park is the oldest in New Zealand.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/f80beccd-6967-3dea-96fd-d817d53374e8.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Tongariro Alpine Crossing","level":3,"displayType":"header"},{"elements":[{"text":"Recognize this treacherous summit? It's actually part of the setting from The Lord of the Rings. These slopes were used to film scenes when the hobbits were making their way to Mordor.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/e40ce803-e6df-3068-a9e3-3b617d43840f.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"And, just as it was for the hobbits in Mordor, the Tongariro Alpine Crossing was incredibly dangerous for Lolos. Most of the slope faces are entirely ice.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/427d5cef-cba7-3be9-857f-3a7d88d3117a.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"The Coromandel","level":3,"displayType":"header"},{"elements":[{"text":"This part of New Zealand's North Island is popular with artists and musicians, and boasts some of the country's most beautiful nighttime views.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/a49c4e18-1ad3-343d-90e6-6e3512a6a911.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Lake Wanaka","level":3,"displayType":"header"},{"elements":[{"text":"Wanaka is a small town of about 7,000, and was one of Lolos' favorite stops on the trip.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/60ad8302-7c1b-33b9-aab5-0f6d8fb1b542.jpeg","caption":"Johan Lolos","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/cca5d193-cd09-362b-b01e-c6f7bd3ab06a.jpeg","caption":"Johan Lolos","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 = '/new-zealand';
var next_gallery = '/bird-panhandling';
var first_load = true;
var has_scrolled = false;
var title = "He Traveled Around New Zealand In A Camper Van… This Is What He Saw.";
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) {
// }