, नॉर्मंडिया में, è ऊना चिएसा स्टोरिका सिटुअटा नेल सेंट्रो डेला सिट&एग्रेव; कॉस्टरुइटा ट्रै आईएल XII और आईएल XV सेकोलो, ला चिएसा प्रेजेंटा यूनो स्टाइल आर्किटेटोनिको गॉटिको ई अन इंटर्नो डेकोरेटो कॉन न्यूमेरोज़ ओपेरा डी'आर्टे ई एफ्रेस्ची।
div
{
const data = { title: document.title, text: 'Secret World', url: location.href };
try {
if(navigator.share){ await navigator.share(data); }
else { await navigator.clipboard.writeText(location.href); alert(msgCopied); }
} catch(e){}
});
})();
(function(){
const w = document.getElementById('viator-widget');
if(!w) return;
const lat = w.dataset.contentlat, lng = w.dataset.contentlng;
const msgNoExp = "No experiences available nearby";
const msgFailed = "Failed to load";
const setFail = (msg) => {
w.classList.remove('is-loading');
w.setAttribute('aria-busy','false');
w.innerHTML = '
'+msg+'
';
};
const io = new IntersectionObserver((entries, obs) => {
if(!entries[0].isIntersecting) return;
fetch('/viator/getWidget', {
method: 'POST',
headers: {'Content-Type':'application/json'},
body: JSON.stringify({contentLat: lat, contentLng: lng})
})
.then(r => r.json())
.then(json => {
const url = Array.isArray(json) ? json[0] : null;
if(!url){ setFail(msgNoExp); return; }
const more = document.getElementById('viator-contents-link');
if(more) more.href = url;
if(window.__viatorInjected){
w.classList.remove('is-loading');
w.setAttribute('aria-busy','false');
return;
}
window.__viatorInjected = true;
const d = document.createElement('div');
d.setAttribute('data-vi-partner-id','P00039519');
let lang = (document.documentElement.lang||'en').slice(0,2).toLowerCase();
if(!/^[a-z]{2}$/.test(lang)) lang = 'en';
d.setAttribute('data-vi-language', lang);
d.setAttribute('data-vi-currency','USD');
d.setAttribute('data-vi-partner-type','AFFILIATE');
d.setAttribute('data-vi-url', url);
d.setAttribute('data-vi-total-products','6');
w.appendChild(d);
const s = document.createElement('script');
s.async = true;
s.src = 'https://www.viator.com/orion/partner/widget.js';
s.onload = function(){
w.classList.remove('is-loading');
w.setAttribute('aria-busy','false');
setTimeout(function(){
if(!w.querySelector('iframe') && !w.querySelector('[data-vi-partner-id] iframe')){
setFail(msgNoExp);
}
}, 4000);
};
s.onerror = function(){ setFail(msgFailed); };
w.appendChild(s);
})
.catch(() => setFail(msgFailed));
obs.disconnect();
}, {rootMargin:'800px'});
io.observe(w);
})();
(function(){
var overlay = document.getElementById('app-popup-overlay');
var popup = document.getElementById('app-popup');
var closeBtn = document.getElementById('app-popup-close');
var skipBtn = document.getElementById('app-popup-skip');
if(!popup || !overlay) return;
function closePopup(){
popup.classList.remove('show');
overlay.classList.remove('show');
popup.setAttribute('aria-hidden','true');
overlay.setAttribute('aria-hidden','true');
try { localStorage.setItem('sw_app_popup_last', Date.now()); } catch(e){}
}
function showPopup(){
popup.classList.add('show');
overlay.classList.add('show');
popup.setAttribute('aria-hidden','false');
overlay.setAttribute('aria-hidden','false');
}
try {
var last = localStorage.getItem('sw_app_popup_last');
if(last && (Date.now() - parseInt(last)) < 86400000) return;
} catch(e){}
setTimeout(showPopup, 8000);
closeBtn.addEventListener('click', closePopup);
skipBtn.addEventListener('click', closePopup);
overlay.addEventListener('click', closePopup);
})();