PageSourceSearch

https://www.hotelgranados83.com/js/tripadvisor.js

js hotelgranados83.com collected 2026-10-06 16:20:39 UTC 2,342 bytes, 1 lines download raw bytes

1function activateEmbeddedTemplate(e){for(var t=e.content.cloneNode(!0),a=t.querySelectorAll("script"),o=[],r=0;r<a.length;r++){var n=a[r],l=document.createComment("embedded-template-script");n.parentNode.replaceChild(l,n),o.push({oldScript:n,marker:l})}e.parentNode.replaceChild(t,e),activateEmbeddedTemplateScript(o,0)}function activateEmbeddedTemplateScript(e,t){if(!(t>=e.length)){for(var a=e[t].oldScript,o=e[t].marker,r=document.createElement("script"),n=0;n<a.attributes.length;n++){var l=a.attributes[n];r.setAttribute(l.name,l.value)}r.textContent=a.textContent,r.src?(r.addEventListener("load",function(){activateEmbeddedTemplateScript(e,t+1)}),r.addEventListener("error",function(){activateEmbeddedTemplateScript(e,t+1)}),o.parentNode.replaceChild(r,o)):(o.parentNode.replaceChild(r,o),activateEmbeddedTemplateScript(e,t+1))}}function onFirstInteraction(e){var t=["pointerdown","touchstart","keydown","wheel","scroll"],a=!1;function o(){if(!a){a=!0;for(var n=0;n<t.length;n++)window.removeEventListener(t[n],o,{capture:!0,passive:!0});e()}}for(var r=0;r<t.length;r++)window.addEventListener(t[r],o,{capture:!0,passive:!0})}let taWidgetIcon=document.getElementById("ta-widget"),taWidgetBox=document.getElementById("ta-box"),boxClose=document.getElementById("ta-box-close");taWidgetIcon.addEventListener("click",function(){moveElement(taWidgetIcon,"-130","-130"),taWidgetBox.style.display="block",moveElement(taWidgetBox,"+280","+350")},!1);function loadTripadvisorEmbedWhenReady(){var e=document.querySelector(".js-tripadvisor-embed");if(!e)return;var t=!1;function a(){t||(t=!0,window.taValidate===void 0&&(window.taValidate=function(){},window.taAddValidator=function(o){o()}),activateEmbeddedTemplate(e))}taWidgetIcon.addEventListener("click",a,!1),onFirstInteraction(a)}loadTripadvisorEmbedWhenReady(),boxClose.addEventListener("click",function(){moveElement(taWidgetBox,"-280","-350"),taWidgetBox.style.display="none",taWidgetBox.style.bottom="-300px",taWidgetBox.style.left="-210px",moveElement(taWidgetIcon,"+130","+130")},!1);function moveElement(e,t,a){let o=window.getComputedStyle(e).left.replace(/px/g,""),r=window.getComputedStyle(e).bottom.replace(/px/g,""),n=null;clearInterval(n),n=setInterval(l,5);function l(){e.style.left=parseInt(t)+parseInt(o)+"px",e.style.bottom=parseInt(a)+parseInt(r)+"px",clearInterval(n)}}

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.