.icnea-iframe-container { width:100%; overflow-x:hidden; } .icnea-iframe { width:calc(100% + 15px); height:99.5vh; }
if (window.location.search) { const arrival = get('arrival') || ''; const departure = get('departure') || ''; const guests = get('guests') || ''; const destination = get('destination') || ''; const gro = get('gro') || ''; const city = get('city') || ''; const idi = get('idi') || 2; if (arrival && departure && guests) { let qparams =`?idi=${idi}&arrival=${arrival}&departure=${departure}&guests=${guests}&destination=${destination}&city=${city}`; if (gro) { qparams +=`&gro=${gro}`; } document.querySelector('iframe.icnea-iframe').src = 'https://dcanbook.icnea.net' + qparams; } } function get(name) { if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(location.search)) { return decodeURIComponent(name[1]); } }
Traducir »