PageSourceSearch

https://www.sail.at/CMSTemplates/lib/js/CustomJS.min.js

js sail.at collected 2026-09-26 21:00:49 UTC 11,231 bytes, 4 lines download raw bytes

1function getSubmenu(){var u,t,i,r,n;if(menuStack.push(document.getElementsByClassName("YB_menu")[0].innerHTML),u=window.innerWidth,u<=992){for(t=document.getElementById("YB_menu"),(typeof t=="undefined"||t==null)&&document.querySelector(".YB_menu").parentNode.append("<div id='YB_menu'><ul id='YB_menuElem'><\/ul><\/div>"),i=document.getElementById("YB_menuElem"),i.innerHTML=String.Empty,i.append(document.getElementById("menuElem").innerHTML),r=im_ok("#YB_menuElem li ul"),n=0;n<r.length;)r[n].parentNode.addClass("hasSubmenu"),n++;document.getElementById("YB_menu").addEventListener("click",function(n){var f,i,r,t;if(n.target.tagName.toLowerCase()=="li"&&(lastLi==undefined&&(lastLi=document.createElement("div")),!n.target.isEqualNode(lastLi))){if(f=document.getElementById("YB_menuElem").innerHTML,i=!1,n.target.hasClass("hasSubmenu"))i=!0;else for(r=0;r<n.target.children.length;)n.target.children[r].hasClass("hasSubmenu")&&(i=!0),r++;if(i){menuStack.push(f);for(var o=n.target.querySelector("ul").innerHTML,e=document.querySelectorAll("#YB_menuElem li"),u=0;u<e.length;)e[u].remove(),u++;t=document.getElementById("YB_menuElem");t.append(o);t.prepend('<li class="back">'+backString[culture]+"<\/li>")}else n.target.hasClass("back")&&(t=document.getElementById("YB_menuElem"),t.innerHTML="",t.append(menuStack[menuStack.length-1]),menuStack.pop(menuStack.length-1));lastLi=n.target}})}else{try{im_ok(".YB_menu")[0].innerHTML=menuStack[0]}catch(f){}document.getElementById("YB_menu")!=undefined&&document.getElementById("YB_menu").style.display!="none"&&(document.getElementById("YB_menu").style.display="none")}}function searchButton(){var n=im_ok(".search");n[0].style.display=="none"?n[0].style.display="block":n[0].style.display=="block"&&(n[0].style.display="none")}function menuIcon(){document.getElementById("YB_menu").style.display=="none"||document.getElementById("YB_menu").style.display==""?(document.getElementById("YB_menu").style.display="block",document.getElementById("YB_menu").addClass("mobileM"),im_ok("header")[0].style.zIndex=98):(document.getElementById("YB_menu").style.display="none",im_ok("header")[0].style.zIndex=99);
1im_ok(".YB_full_content_img_header .yachtFinderWrapper")[0]!=undefined&&im_ok(".YB_full_content_img_header .yachtFinderWrapper")[0].style.display=="block"&&window.innerWidth>600&&(im_ok(".YB_full_content_img_header .yachtFinderWrapper")[0].style.display="none",im_ok(".mainMenu>span").removeClass("expand"))}var elementPrototype=typeof HTMLElement!="undefined"?HTMLElement.prototype:Element.prototype,documentPrototype=typeof HTMLDocument!="undefined"?HTMLDocument.prototype:Document.prototype,im_ok,backString,menuStack,lastLi;elementPrototype.hasClass=function(n){return this.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))};elementPrototype.removeClass=function(n){if(this.hasClass(n)){var t=new RegExp("(\\s|^)"+n+"(\\s|$)");this.className=this.className.replace(t," ")}};elementPrototype.addClass=function(n){this.hasClass(n)||(this.className==""?this.className=n:this.className+=" "+n)};elementPrototype.replaceClass=function(n,t){this.hasClass(n)&&(this.removeClass(n),this.addClass(t));return};elementPrototype.toggleClass=function(n,t){this.hasClass(n)?this.replaceClass(n,t):this.hasClass(t)?this.replaceClass(t,n):this.addClass(n)};elementPrototype.getNodeIndex=function(){for(var n=this,t=0;n=n.previousSibling;)n.nodeType==3&&/^\s*$/.test(n.data)||t++;return t};elementPrototype.prepend=function(n){this.insertBefore(n.toDOM(),this.firstChild)};elementPrototype.append=function(n){this.insertBefore(n.toDOM(),null)};elementPrototype.remove=elementPrototype.remove||function(){this.parentNode.removeChild(this)};elementPrototype.next=function(){try{var n=this.getNodeIndex();return this.parentNode.children[n+1]}catch(t){return document.createElement("div")}};elementPrototype.previous=function(){try{var n=this.getNodeIndex();return this.parentNode.children[n-1]}catch(t){return document.createElement("div")}};elementPrototype.text=function(n){var f;if(n==undefined){var t=this,u,r="",e=0,i=t.nodeType;if(i){if(i===1||i===9||i===11){if(typeof t.textContent=="string")return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=getText(t)}else if(i===3||i===4)return t.nodeValue}else while(u=t[e++])r+=getText(u);return r}f="innerText"in this?"innerText":"textContent";this[f]=n};elementPrototype.isEmpty=function(){return this.text()===null||this.text()===undefined?!0:/^[\s\xa0]*$/.test(this.text())};elementPrototype.slideInLeft=function(n){var u="ontouchstart"in window.document;if(!u){n*=300;var i=this,r=20,t="-",f=setInterval(function(){n==0&&(clearInterval(f),i.style.marginLeft="0px");n-=r;t=n<=0?"":t;var u=n<=0?0:n;i.style.marginLeft=t+u+"px"},r)}};elementPrototype.siblings=function(){for(var i=[],t=0,n;this.parentNode.childNodes.length>t;)n=this.parentNode.childNodes[t],n.nodeType===1&&n!==this&&i.push(n),t++;return i};elementPrototype.slideInRight=function(n){var r="ontouchstart"in window.document;if(!r){n*=300;var t=this,i=20,u=setInterval(function(){n==0&&(clearInterval(u),t.style.marginLeft="0px");n-=i;var r=n>=0?n:0;t.style.marginLeft=r+"px"},i)}};documentPrototype.removeClass=function(n){for(var i,r=Array.prototype.slice.call(document.getElementsByClassName(n)),t=0,u=r.length;t<u;t++)i=r[t],i.className=i.className.replace(new RegExp("(^|\\s+)"+n+"(\\s+|$)","g"),"$1")};Object.keys=Object.keys||function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i};String.Empty="";String.prototype.equals=function(n){return this.toString()==n?!0:!1};String.prototype.contains=function(n){return this.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())!=-1};String.prototype.toDOM=function(){var n=document,t,i=n.createElement("div"),r=n.createDocumentFragment();for(i.innerHTML=this;t=i.firstChild;)r.appendChild(t);return r};Boolean.prototype.equals=function(n){return this==n?!0:!1};Number.prototype.equals=function(n){return this==n?!0:!1};Function.prototype.bind=function(n){for(var r=this,t=[],i=1;i<arguments.length;i++)t[t.length]=arguments[i];return function(){return r.apply(n,t)}};Date.prototype.format=function(n){var i={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()},t;/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(t in i)new RegExp("("+t+")").test(n)&&(n=n.replace(RegExp.$1,RegExp.$1.length==1?i[t]:("00"+i[t]).substr((""+i[t]).length)));return n};Date.prototype.getWeek=function(n){var r,t,u,i;return n=n!=undefined?n:0,r=new Date(this.getFullYear(),0,1),t=r.getDay()-n,t=t>=0?t:t+7,u=Math.floor((this.getTime()-r.getTime()-(this.getTimezoneOffset()-r.getTimezoneOffset())*6e4)/864e5)+1,t<4?(i=Math.floor((u+t-1)/7)+1,i>52&&(nYear=new Date(this.getFullYear()+1,0,1),nday=nYear.getDay()-n,nday=nday>=0?nday:nday+7,i=nday<4?1:53)):i=Math.floor((u+t-1)/7),i};Date.prototype.isLeapYear=function(n){var t=n?this.getUTCFullYear():this.getFullYear();return t%4==0&&t%100!=0||t%400==0};NodeList.prototype.addClass=function(n){for(var t=0;t!=this.length;)this.item(t).addClass(n),t++};NodeList.prototype.removeClass=function(n){for(var t=0;t!=this.length;)this.item(t).removeClass(n),t++};NodeList.prototype.attr=function(){var t=arguments,n,i;if(t.length==2)for(n=0;n!=this.length;)t[1]!=""?this.item(n).setAttribute(t[0],t[1]):this.item(n).removeAttribute(t[0]),n++;else if(t.length==1){for(n=0,i=[];n!=this.length;)i.push(this.item(n).getAttribute(t[0])),n++;return i.length>1?i:i[0]}};NodeList.prototype.remove=function(){for(var n=0;n!=this.length;)this.item(n).remove(),n++};im_ok=function(n){return new Ok.init(n)};Ok={init:function(n){return document.querySelectorAll(n)},ready:function(n){var f=!1,e=!0,t=window.document,o=t.documentElement,u=t.addEventListener?"addEventListener":"attachEvent",h=t.addEventListener?"removeEventListener":"detachEvent",r=t.addEventListener?"":"on",i=function(u){(u.type!="readystatechange"||t.readyState=="complete")&&((u.type=="load"?window:t)[h](r+u.type,i,!1),!f&&(f=!0)&&n.call(window,u.type||u))},s=function(){try{o.doScroll("left")}catch(n){setTimeout(s,50);return}i("poll")};if(t.readyState=="complete")n.call(window,"lazy");else{if(t.createEventObject&&o.doScroll){try{e=!window.frameElement}catch(c){}e&&s()}t[u](r+"DOMContentLoaded",i,!1);t[u](r+"readystatechange",i,!1);window[u](r+"load",i,!1)}},isMobile:function(){var n=navigator.userAgent||navigator.vendor||window.opera,t=!1;return(/android|(bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(t=!0),t},addCSS:function(n){var t=document.createElement("link");t.setAttribute("rel","stylesheet");t.setAttribute("type","text/css");t.setAttribute("href",n);document.getElementsByTagName("head")[0].appendChild(t)},removeCSS:function(n){for(var i=document.getElementsByTagName("head")[0].getElementsByTagName("link"),t=0;t<i.length;t++)if(i[t].getAttribute("href")==n){i[t].remove();break}}};backString={"en-GB":"Back","de-DE":"Zurück"};menuStack=[];Ok.ready(function(){document.getElementById("txtEmail")!=null&&(document.getElementById("txtEmail").setAttribute("placeholder",document.getElementById("lblEmail").text()),document.getElementById("lblEmail").style.display="none")});
2/*
3//# sourceMappingURL=CustomJS.min.js.map
4*/

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.