PageSourceSearch

https://glykosofies.gr/templates/exhibition/template/main.js

js glykosofies.gr collected 2026-09-26 16:34:41 UTC 12,417 bytes, 1 lines download raw bytes

1(()=>{if(document.getElementById("fixed-banner")){document.querySelector("#fixed-banner .inner-image")&&document.querySelector("#fixed-banner .inner-image").getAttribute("src").includes("index-only")&&document.getElementById("fixed-banner").classList.add("index-only");let e=!!document.querySelector("#fixed-banner .inner-image"),t="en"==document.querySelector("html").getAttribute("lang");if(e&&(document.querySelector("#fixed-banner .inner-image").style.display="none",t)){let l=document.querySelector("#fixed-banner .inner-image").getAttribute("src").split("*")[0],r=document.querySelector("#fixed-banner .inner-image").getAttribute("src").split("*")[1];document.getElementById("fixed-banner").dataset.goto=r,document.querySelector("#fixed-banner .full-image").setAttribute("src",l)}}})();var googleAPIKey="AIzaSyBQTPTxan4kS3PNmaHXqwBQ0XvDDMhfdsA",iOS=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);function renderCapctha(){document.getElementById("g-recaptcha")&&grecaptcha.render("g-recaptcha",{sitekey:document.getElementById("g-recaptcha").dataset.sitekey})}var initMainNav=function(){$("#main-nav").find(".dropdown a.dropdown-toggle").on("click",function(e){setTimeout(function(){var t=$(e.target).closest("li");$(e.target).is("li")&&(t=$(e.target)),t.siblings(".open").removeClass("open"),t.toggleClass("open"),e.stopPropagation(),e.preventDefault()},100)}),$("body").on("click",function(e){$(e.target).closest(".dropdown").length<=0&&$(".dropdown.open").removeClass("open")}),$(window).scroll(function(){!0!=iOS&&($(window).scrollTop()>300?$("#main-nav").addClass("compact-sticky"):$("#main-nav").removeClass("compact-sticky"))})},initMaps=function(e){e.length>
10&&$.each(e,function(){var e=$(this);if(e.hasClass("osm")){var t=[e.data("x"),e.data("y")],l=L.map(e.attr("id"),{scrollWheelZoom:!1}).setView(t,15);L.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",{maxZoom:19,attribution:"Tiles &copy; Esri &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}).addTo(l),L.marker(t).addTo(l)}else{var r={APIkey:googleAPIKey,mode:"place",place:e.data("address").replace(/[,\/&]/g,"").split(" ").join("+"),coords:e.data("coords"),zoom:e.data("zoom"),maptype:"roadmap",language:lang};"0,0"==r.coords||""==r.coords?e.html('            <iframe              width="100%" height="100%" frameborder="0" style="border:0"              src="https://www.google.com/maps/embed/v1/place?key='+r.APIkey+"&q="+r.place+"&zoom="+r.zoom+'" allowfullscreen>          '):e.html('            <iframe              width="100%" height="100%" frameborder="0" style="border:0"              src="https://www.google.com/maps/embed/v1/place?key='+r.APIkey+"&q="+r.place+"&center="+r.coords+"&zoom="+r.zoom+'" allowfullscreen>          ')}})},initAccessabilityBar=function(){$("#accessibility-bar").length>0&&($("#accessibility-bar>.access-icon, #accessibility-bar>.access-arrow").on("click",function(e){e.preventDefault(),$("#accessibility-bar>.buttons").slideToggle("fast"),$("#accessibility-bar>.access-arrow").toggleClass("open")}),$("#text-small-btn").on("click",function(){$("body").removeClass("medium-text"),$("body").removeClass("large-text"),st.setItem("fontSize","")}),$("#text-medium-btn").on("click",function(){$("body").addClass("medium-text"),$("body").removeClass("large-text"),st.setItem("fontSize","medium-text")}),$("#text-large-btn").on("click",function(){$("body").addClass("large-text"),$("body").removeClass("medium-text"),st.setItem("fontSize","large-text")}),$("#text-black-bg").on("click",function(){$("body").toggleClass("bw-text"),$("body").removeClass("by-text"),$("body").hasClass("bw-text")?st.setItem("colors","bw-text"):st.setItem("colors","")}),$("#text-blue-bg").on("click",function(){$("body").toggleClass("by-text"),$("body").removeClass("bw-text"),$("body").hasClass("by-text")?st.setItem("colors","by-text"):st.setItem("colors","")}))},initHeaderText=function(){$("#contact-info-container").insertAfter("#header-logo")};function initExpo(){if($(".expoUrl").length>0){function e(){var e=4;window.innerWidth<768&&(e=1),$(".expoUrl").first().css("margin-left","0px"),$(".expoUrl").length>e?($(".expoUrl").slice(0,e).addClass("shown"),$("#expo-container .next").length<=0&&$("#expo-container").append('<div id="expo-controls"><a href="#" class="next"><span class="fa fa-chevron-right"></span></a><a href="#" class="prev"><span class="fa fa-chevron-left"></span></a></div>')):$(".expoUrl").addClass("shown")}$(".expoUrl").wrapAll('<div id="expo-container"><div id="expo"></div></div>'),e(),window.onresize=function(){e()},$(".expoUrl").each(function(){$(this).find("p.url-contents").text().trim().length<=0&&$(this).find("p.url-contents").addClass("hidden")}),$("#expo-container .next").on("click",function(e){e.preventDefault();var t=parseFloat($(".expoUrl").first().css("margin-left"));$(".expoUrl.shown").last().next(".expoUrl").length>0&&($(".expoUrl.shown").last().next(".expoUrl").addClass("shown"),$(".expoUrl.shown").first().removeClass("shown"),t-=$(".expoUrl").first().outerWidth(),$(".expoUrl").first().css("margin-left",t+"px"))}),$("#expo-container .prev").on("click",function(e){e.preventDefault();var t=parseFloat($(".expoUrl").first().css("margin-left"));$(".expoUrl.shown").first().prev(".expoUrl").length>0&&($(".expoUrl.shown").first().prev(".expoUrl").addClass("shown"),$(".expoUrl.shown").last().removeClass("shown"),t+=$(".expoUrl").first().outerWidth(),$(".expoUrl").first().css("margin-left",t+"px"))})}}function lazyloadInit(){document.addEventListener("lazybeforeunveil",function(e){$(e.target).hasClass("map-holder")&&initMaps($(e.target))})}function initSearch(){$("#search-form").on("click",function(e){e.preventDefault(),$("#searchform-container").toggleClass("closed")})}function groupFixedBanners(){if(!document.getElementById("second-banner"))return;let e=document.createElement("div");e.id="banners",document.querySelectorAll('[id*="-banner"]').forEach(t=>{e.append(t)}),document.querySelector("body").append(e)}function moveLangs(){let e=document.createElement("div");e.id="langs-container",[".langs > :first-child",".langs > :last-child"].forEach(t=>{e.append(document.querySelector(t))}),document.querySelector("#header-top .row").append(e)}function styleMainNav(){let e=document.createElement("div");e.id="first-nav-group";let t=document.createElement("div");t.id="second-nav-group";let l=Array.from(document.querySelectorAll(".navbar-nav > .nav-item:not(.langs)")),r=Number.isInteger(l.length)?l.slice(0,l.length/2):l.slice(0,l.length-2),o=l.slice(r.length);r.forEach(t=>{e.append(t)}
1),o.forEach(e=>{t.append(e)}),[e,document.querySelector("#header-bottom #logo"),t].forEach(e=>{document.querySelector(".navbar-nav").append(e)})}function calcScroll(e){if(document.querySelector(e)){let t=[];document.querySelectorAll(e).forEach(e=>{t.push([e,e.parentElement.offsetTop])}),document.addEventListener("scroll",e=>{t.forEach(e=>{window.pageYOffset>e[1]-400&&e[0].classList.add("scrolled")})})}}function groupGallery(){let e=document.querySelectorAll(".image"),t=e.length%2!=0?e.length/2+1:e.length/2;if(e.length)for(let l=0;l<t;l++){let r=document.createElement("div");r.className="img-group",document.querySelectorAll(".row > .image:nth-of-type(-n+2)").forEach(e=>{r.append(e)}),document.querySelector("#gallery-content > .row").append(r)}}function groupSmall(){let e,t;(e=document.createElement("div")).id="small-group",(t=Array.from(document.querySelectorAll(".smallUrl:nth-of-type(-n+6)")).slice(-1)[0].nextElementSibling)?document.getElementById("exclusiveURLs").insertBefore(e,t):document.getElementById("exclusiveURLs").append(e),function e(){for(let t=0;t<3;t++){let l=document.createElement("div");l.className=`small-group-${t}`,Array.from(document.querySelectorAll("#exclusiveURLs > .smallUrl")).slice(0,2).forEach(e=>{l.append(e)}),document.getElementById("small-group").append(l)}}()}function styleRecentArticles(){let e;(e=document.createElement("div")).id="recent-articles-wrapper",document.querySelectorAll(".recent-article").forEach(t=>{e.append(t)}),document.getElementById("recent-articles").append(e),document.querySelectorAll("#recent-articles-wrapper .recent-article").forEach(e=>{e.querySelector(".inverted")&&e.append(e.querySelector(".inverted"))})}function styleNoUrlBigs(){if(document.querySelectorAll(".bigUrl").forEach(e=>{e.querySelector("a.url")||e.classList.add("no-url")}),document.querySelector(".bigUrl.no-url + .smallUrl")){var e,t;let l=Array.from(document.querySelectorAll(".bigUrl.no-url ~ .smallUrl")).slice(0,4),r,o;e=l,(r=document.createElement("div")).id="big-no-url-wrapper",(o=e.slice(-1)[0].nextElementSibling)?document.getElementById("exclusiveURLs").insertBefore(r,o):document.getElementById("exclusiveURLs").append(r),t=l,document.getElementById("big-no-url-wrapper").append(document.querySelector(".bigUrl.no-url")),t.forEach(e=>{document.getElementById("big-no-url-wrapper").append(e)})}}function toggleMoveToTopDisplay(){document.getElementById("move-top").style.display="none",document.addEventListener("scroll",e=>{document.getElementById("main-slideshow")&&(window.pageYOffset>document.getElementById("main-slideshow").offsetHeight+300?document.getElementById("move-top").style.display="block":document.getElementById("move-top").style.display="none")})}function addImageAttribution(e){if(window.location.href.includes("exclusive-exhibition.4ty")){let t=document.createElement("div");t.id="image-attribution";let l=document.createElement("a");l.innerText="Images by ",l.href=e,l.target="_blank";let r=document.createElement("span");r.innerText="rawpixel.com",l.append(r),t.append(l),document.body.append(t)}}function addLangFlag(){document.querySelectorAll(".langsDropdown>a").forEach(e=>{let t=Array.from(e.classList).slice(-1)[0],l=document.createElement("span");l.id=`flag-${t}`,l.style.backgroundImage=`url(../images/langseldropdown/${t}.png)`,e.append(l)})}function moveImageCaption(){document.querySelectorAll(".image.col-md-4").forEach(e=>{let t=e.querySelector("figure>figcaption");e.querySelector("figure>a").append(t)})}function darkenLightboxBg(){["panagiotistountasart"].forEach(e=>{window.location.href.includes(e)&&document.querySelector("body>.pswp>.pswp__bg").classList.add("dark")})}function markEmptyLogo(e){e.getAttribute("src").includes("empty")&&document.querySelector(".navbar-nav").classList.add("empty")}$(document).ready(function(){lazyloadInit(),$("body").hasClass("home")&&initExpo(),initMainNav(),initHeaderText(),$("body").hasClass("view-article")&&$(".back-to-catalog").addClass("button"),initAccessabilityBar(),$("#move-top").on("click",()=>$("html, body").animate({scrollTop:0},300)),$("#fb-messaging").on("click",()=>$("#fb-messaging").toggleClass("show")),$("#contact-form-msg").length>0&&$("#contact-form-msg").modal("show"),$("#fixed-banner.goTo").on("click",function(){$(this).hasClass("newTab")?window.open($(this).data("goto"),"_blank").focus():window.open($(this).data("goto"),"_self")}),$("#fixed-banner > .close").on("click",function(e){e.preventDefault(),$("#fixed-banner").fadeOut("fast")}),$("body.contact").length>0&&setTimeout(()=>{initMaps($(".map-holder"))},500),initSearch(),groupFixedBanners(),document.querySelector("#logo img")&&markEmptyLogo(document.querySelector("#logo img")),document.querySelector(".langs > *")&&moveLangs(),window.innerWidth>768&&document.querySelector(".nav-item")&&styleMainNav(),document.querySelectorAll(".smallUrl").length>3&&groupSmall(),document.querySelector(".recent-article")&&styleRecentArticles(),document.querySelector(".bigUrl")&&styleNoUrlBigs(),window.innerWidth>767&&document.querySelector("body.gallery .image")&&groupGallery(),document.querySelector("body>.pswp")&&darkenLightboxBg(),toggleMoveToTopDisplay(),setTimeout(()=>{document.body.classList.add("loaded"),document.querySelector("body.home")&&(addImageAttribution("https://www.rawpixel.com/"),setTimeout(()=>{calcScroll(".mediumUrl .url-head"),calcScroll(".mediumUrl .figure-caption"),calcScroll(".bigUrl:not(.no-url):nth-of-type(odd) .url-head"),calcScroll(".bigUrl:not(.no-url):nth-of-type(odd) .figure-caption")},1e3))},500),document.querySelector(".langsDropdown>.active")&&addLangFlag(),document.querySelector(".image figcaption>p")&&moveImageCaption(),setTimeout(()=>{renderCapctha()},1e3)}); 

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.