PageSourceSearch

https://www.hotelamericabarcelona.com/designs/design-03/design-03.js?v=1.0.5

js hotelamericabarcelona.com collected 2026-10-03 23:22:05 UTC 7,530 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector("body"),t=document.querySelector('.js-modal[data-modal-name="menu"]'),n=document.querySelector(".js-header"),o=document.querySelector(".js-label-menu"),a=document.querySelector(".js-modal-action-menu");t&&(t.addEventListener("modal-opens",function(t){n.classList.add("is-open"),e.classList.add("has-nav-open"),o.innerHTML=a.dataset.menuClose}),t.addEventListener("modal-closes",function(t){n.classList.remove("is-open"),e.classList.remove("has-nav-open"),o.innerHTML=a.dataset.menuOpen})),document.querySelectorAll(".js-menu-item").forEach(function(e){e.querySelectorAll(".js-submenu-action").forEach(function(t){t.addEventListener("click",function(t){t.stopImmediatePropagation(),e.classList.toggle("is-submenu-open")})})}),window.addEventListener("resize",function(){window.modals.close("menu"),document.querySelectorAll(".js-menu-item").forEach(function(e){e.querySelectorAll(".js-submenu-action").forEach(function(t){e.classList.remove("is-submenu-open")})})},!0),"true"==document.querySelector(".js-site-content").firstElementChild.getAttribute("data-header-transparent")&&n.classList.add("is-transparent")}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".js-gallery").forEach(function(e){!function(e){var t=document.createElement("div");t.classList.add("gcounter"),t.dataset.indicator="/";var n=GLightbox({title:!1,zoomable:!1,plyr:{config:{muted:!0,hideControls:!1}},selector:'[data-fishh-block-id="'+e.getAttribute("data-fishh-block-id")+'"] .glightbox',onOpen:function(){return n.modal.appendChild(t)},afterSlideChange:function(e,o){t.dataset.indicator="".concat(o.index+1," / ").concat(n.elements.length),t.classList.add("gcounter-added")}})}(e)})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".b-room-list__item"),t=function(){var t=window.pageYOffset+window.innerHeight/2,n=setActualMedia();e.forEach(function(e){var o=e.offsetTop+e.offsetHeight/2,a=t-o,i=e.querySelector(".c-room__image"),d=-1*a/5;"mobile"!==n&&(i.style.top="".concat(d,"px"))})};t(),document.addEventListener("scroll",function(){t()}),window.addEventListener("resize",function(){t()})}),document.addEventListener("DOMContentLoaded",function(){for(var e=document.getElementsByClassName("js-slider-logos"),t=0,n=e.length;t<n;t++){var o=new Splide(e[t],{type:"slide",pagination:!1,autoplay:!0,speed:1e3,rewind:!0,rewindSpeed:1e3,gap:50,perPage:6,perMove:1,arrowPath:"M17 14.607L21.706 20L17 25.392L17.764 26L23 20L17.764 14L17 14.607Z",easing:"cubic-bezier(0.33, 1, 0.68, 1)",breakpoints:{1700:{perPage:5,gap:30},1400:{perPage:4,gap:20},1199:{perPage:3,gap:20},767:{perPage:2,gap:10},500:{perPage:1}}});o.on("mounted",function(){o.length<=o.options.perPage&&(o.options={drag:!1})}).mount()}}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".js-video-button"),t=document.querySelector(".js-video-placeholder");t&&t.addEventListener("click",function(n){if(n.preventDefault(),!isCMS){var o='<iframe class="b-video__iframe js-video-iframe" src="'+t.getAttribute("data-video")+'" frameborder="0" allowfullscreen></iframe>';t.insertAdjacentHTML("afterend",o),e.classList.add("is-playing")}})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".js-virtual-tour-item");e.forEach(function(t){t.addEventListener("click",function(){e.forEach(function(e){e.classList.remove("is-active")}),t.classList.add("is-active"),t.parentElement.parentElement.previousElementSibling.innerHTML=t.getAttribute("data-iframe")})})}),document.addEventListener("DOMContentLoaded",function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),document.querySelectorAll(".js-datepicker").forEach(function(e){e.flatpickr({monthSelectorType:"static",locale:"es",dateFormat:"d/m/y",disableMobile:"true"})})}),document.addEventListener("DOMContentLoaded",function(){for(var e=document.getElementsByClassName("js-slider-s01"),t=0,n=e.length;t<n;t++)new Splide(e[t],{type:"fade",autoplay:!0,pagination:!0,rewind:!0,arrows:!1}
1).mount()}),document.addEventListener("DOMContentLoaded",function(){for(var e=document.getElementsByClassName("js-slider-s02"),t=0,n=e.length;t<n;t++)new Splide(e[t],{type:"loop",perPage:1,width:"100%",padding:{right:"27%",left:"27%"},autoplay:!0,speed:1e3,pagination:!1,arrowPath:"M31.496 10.8647L31.628 10.9695L39.72 18.6362C40.052 18.9505 40.088 19.4362 39.832 19.7886L39.72 19.9143L31.628 27.5828C31.256 27.9352 30.652 27.9352 30.28 27.5828C29.948 27.2686 29.912 26.7828 30.168 26.4305L30.28 26.3047L36.69 20.2286H0.656C0.294 20.2286 0 19.8019 0 19.2762C0 18.7486 0.294 18.3238 0.656 18.3238H36.692L30.28 12.2476C29.948 11.9333 29.912 11.4476 30.168 11.0933L30.28 10.9695C30.61 10.6552 31.124 10.6209 31.496 10.8647V10.8647Z",breakpoints:{1099:{padding:{right:"12%",left:"12%"}},767:{padding:{right:"0",left:"0"}}}}).mount()}),document.addEventListener("DOMContentLoaded",function(){for(var e=document.getElementsByClassName("js-slider-s03"),t=0,n=e.length;t<n;t++){var o=new Splide(e[t],{type:"loop",perPage:1,gap:100,padding:{right:"33%",left:"33%"},autoplay:!1,speed:1e3,updateOnMove:!0,easing:"cubic-bezier(0.33, 1, 0.68, 1)",pagination:!1,arrowPath:"M31.496 10.8647L31.628 10.9695L39.72 18.6362C40.052 18.9505 40.088 19.4362 39.832 19.7886L39.72 19.9143L31.628 27.5828C31.256 27.9352 30.652 27.9352 30.28 27.5828C29.948 27.2686 29.912 26.7828 30.168 26.4305L30.28 26.3047L36.69 20.2286H0.656C0.294 20.2286 0 19.8019 0 19.2762C0 18.7486 0.294 18.3238 0.656 18.3238H36.692L30.28 12.2476C29.948 11.9333 29.912 11.4476 30.168 11.0933L30.28 10.9695C30.61 10.6552 31.124 10.6209 31.496 10.8647V10.8647Z",breakpoints:{1099:{gap:20,padding:{right:"25%",left:"25%"}},767:{padding:{right:"0",left:"0"}}}});o.on("mounted",function(){1===o.length&&(o.options={type:"fade",drag:!1})}).on("arrows:updated",function(e,t){1===o.length&&(e.disabled=!0,t.disabled=!0)}).mount()}}),document.addEventListener("DOMContentLoaded",function(){for(var e=document.getElementsByClassName("js-slider-s04"),t=0,n=e.length;t<n;t++)new Splide(e[t],{type:"fade",autoplay:!0,pagination:!0,rewind:!0,arrows:!1}).mount()}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".js-lang-selector").forEach(function(e){var t=e.querySelector(".js-lang-selector-action");null!=t&&t.addEventListener("click",function(t){t.preventDefault();var n=e.querySelector(".js-lang-selector-list"),o=document.querySelector(".c-lang-selector__arrow");if(n.classList.contains("is-open"))n.style.height="0px",n.addEventListener("transitionend",function(){o.style.transform="rotate(0deg)",n.classList.remove("is-open")},{once:!0});else{o.style.transform="rotate(180deg)",n.classList.add("is-open"),n.style.height="auto";var a=n.clientHeight+"px";console.log(a),n.style.height="0px",setTimeout(function(){n.style.height=a},0)}})})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector("body"),t=(document.querySelector(".js-header"),document.querySelector('.js-modal[data-modal-name="booking-layer"]')),n=document.querySelector(".js-label-booking"),o=document.querySelector(".js-modal-action-booking");t&&(t.addEventListener("modal-opens",function(){e.classList.add("has-booking-open"),n.innerHTML=o.dataset.bookingLayerClose}),t.addEventListener("modal-closes",function(){e.classList.remove("has-booking-open"),n.innerHTML=o.dataset.bookingLayerOpen}))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.