PageSourceSearch

https://www.memoriaal.ee/script.js

js memoriaal.ee collected 2026-10-02 05:08:56 UTC 25,583 bytes, 2 lines download raw bytes

1var gscriptBase="https://script.google.com/macros/s",feedbackApiId="AKfycbzVtTRjfZxD-U5wrzQ-OrcupXY_3W19cOay6632XK-jJcxhLyY6tSwKiraAgDTYUCBRsA",feedbackApi=gscriptBase+"/"+feedbackApiId+"/exec",episodesApiId="AKfycbzVtTRjfZxD-U5wrzQ-OrcupXY_3W19cOay6632XK-jJcxhLyY6tSwKiraAgDTYUCBRsA",episodesApi=gscriptBase+"/"+episodesApiId+"/exec?Episoodid",episodes=[],triggerWindowResize=function(){setTimeout(function(){try{var t=new("function"==typeof CustomEvent?CustomEvent:Event)("resize");window.dispatchEvent(t),console.log("Window resize event triggered")}catch(e){"function"==typeof window.dispatchEvent?((t=document.createEvent("UIEvents")).initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)):"function"==typeof window.fireEvent&&window.fireEvent("onresize"),console.log("Window resize event triggered (fallback)")}},100)},populateEpisodes=(document.addEventListener("DOMContentLoaded",function(){document.getElementById("db-feedback2-episode-select")&&populateEpisodes().then(function(e){e.forEach(function(e){episodes.push(e)})}).catch(function(e){console.log("Episodes API unavailable:",e&&e.message)}),prefillFromLocalstorage();var e=get("db-feedback2-submit");e&&e.addEventListener("click",submitEpisode),triggerWindowResize()}),document.onkeydown=function(e){"Escape"===e.key&&closeModal()},closeModal=function(){get("popup-content").classList.add("d-none"),get("popup-background").classList.add("d-none")},function(){return getEpisodes().then(function(e){var n=document.getElementById("db-feedback2-episode-select");return n&&e.forEach(function(e){var t=document.createElement("option");t.value=e.id,t.text=e.Nimetus+" ("+e.Allikas+")",n.appendChild(t)}),e})}),getEpisodes=function(){return new Promise(function(t,n){try{fetch(episodesApi).then(function(e){return e.json()}).then(function(e){t(e)}).catch(function(e){n(e)})}catch(e){n(e)}})},prefillFromLocalstorage=function(){var e=document.getElementById("db-feedback2-episode-select"),t=localStorage.getItem("selectedEpisode"),e=(e&&t&&(e.value=t),document.getElementById("db-feedback2-email")),t=localStorage.getItem("email");t&&e&&(e.value=t)},submitEpisode=function(e){var t,n;validateEmail()&&(n=get("db-feedback2-episode-select").value,localStorage.setItem("selectedEpisode",n),n=get("db-feedback2-email").value,localStorage.setItem("email",n),(t=new XMLHttpRequest).open("POST",feedbackApi,!0),t.onload=function(){console.log("response",t.responseText),closeModal()},t.onerror=function(){console.log("Error:",t.status)},n=get("db-feedback2"),(n=new FormData(n)).append("url",window.location.href),n.append("nav_lang",navigator.language),n.append("locale",document.documentElement.lang),t.send(n),e.preventDefault())},validateEmail=function(){var e=get("db-feedback2-email"),t=e.value;return t&&0!==t.length?-1!==t.indexOf("@")&&/\S+@\S+\.\S+/.test(t)?(e.classList.remove("is-invalid"),!0):(e.classList.add("is-invalid"),alert("Palun sisesta korrektne e-posti aadress"),!1):(e.classList.add("is-invalid"),alert("Palun sisesta e-posti aadress"),!1)};$(function(){$(window).on("hashchange",function(){location.hash&&($(".text-link").removeClass("active"),$('.text-link[href="'+location.hash+'"]').addClass("active"),$(".text-block").addClass("d-none"),$(location.hash).removeClass("d-none"))}),$(window).trigger("hashchange")});const get=document.getElementById.bind(document),query=document.querySelector.bind(document),queryAll=document.querySelectorAll.bind(document),copy2clipboard=function(e,t=null){var n;e?(n=e.getAttribute("clip"))?(navigator.clipboard.writeText(n),(t=t||e.firstChild&&e.firstChild.nextSibling)&&(t.classList.remove("transparent"),setTimeout(function(){t.classList.add("transparent")},400))):console.error("copy2clipboard: missing clip"):console.error("copy2clipboard: missing DomE")},qs=function(e){e=e.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");e=location.search.match(new RegExp("[?&]"+e+"=([^&]+)(&|$)"));return e&&decodeURIComponent(e[1].replace(/\+/g," "))},replaceLinebreaks=function(e){return e.replace(/(\\n\\r|\\n|\\r)+/g,"<br/>")},triggerResizeAfterSearchUpdate=function(){setTimeout(function(){var e;window.isIE?(setTimeout(function(){window.dispatchEvent(new CustomEvent("resize"))},10),setTimeout(function(){window.dispatchEvent(new CustomEvent("resize"))},100),setTimeout(function(){window.dispatchEvent(new CustomEvent("resize"))},500),"function"==typeof ensureNavigationVisibility&&(e=document.getElementById("navigation"))&&(setTimeout(function(){ensureNavigationVisibility(e)},50),setTimeout(function(){ensureNavigationVisibility(e)}
1,300)),"function"==typeof fixBackgroundIssues&&(setTimeout(fixBackgroundIssues,150),setTimeout(fixBackgroundIssues,600)),setTimeout(function(){try{for(var e=document.querySelector(".col-md-3"),t=document.querySelector(".col-md-9"),n=(e&&t&&768<=window.innerWidth&&(e.style.cssFloat="right",t.style.cssFloat="left"),document.querySelectorAll(".row")),o=0;o<n.length;o++){var i=n[o];i.parentElement&&"navigation"===i.parentElement.id||(i.style.display="flex")}for(var a=document.getElementById("search-results"),s=(a&&(a.style.backgroundColor="rgba(255, 255, 255, 0.8)",a.style.visibility="visible",a.style.zIndex="5",a.style.marginBottom="150px",a.style.overflow="auto"),["text","text-text","search-count"]),c=0;c<s.length;c++){var r=document.getElementById(s[c]);r&&(r.style.visibility="visible",r.style.backgroundColor="transparent",r.style.position=r.style.position||"relative",r.style.zIndex="1")}var l=document.getElementById("footer-spacer");l||((l=document.createElement("div")).id="footer-spacer",l.style.height="150px",l.style.width="100%",l.style.clear="both",document.body.appendChild(l))}catch(e){}},300)):window.dispatchEvent(new Event("resize"))},100)};if(window.isIE=function(){var e=!!window.MSInputMethodContext&&!!document.documentMode,t=!1;return e||void 0===document.documentMode||(t=!0),e||t||void 0===window.attachEvent||(t=!0),e||t}(),window.isIE11=window.isIE,String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return!((t="number"!=typeof t?0:t)+e.length>this.length)&&-1!==this.indexOf(e,t)}),"undefined"==typeof Promise&&(window.Promise=function(e){var n=this;function t(e){if("pending"===n.status){n.status="rejected",n.reason=e;for(var t=0;t<n.onRejectedCallbacks.length;t++)n.onRejectedCallbacks[t](e)}}n.status="pending",n.value=null,n.reason=null,n.onResolvedCallbacks=[],n.onRejectedCallbacks=[];try{e(function(e){if("pending"===n.status){n.status="resolved",n.value=e;for(var t=0;t<n.onResolvedCallbacks.length;t++)n.onResolvedCallbacks[t](e)}},t)}catch(e){t(e)}},Promise.prototype.then=function(i,a){var t=this;return new Promise(function(n,o){if("resolved"===t.status)try{var e=i(t.value);n(e)}catch(e){o(e)}if("rejected"===t.status)try{e=a(t.reason);n(e)}catch(e){o(e)}"pending"===t.status&&(t.onResolvedCallbacks.push(function(e){try{var t=i(e);n(t)}catch(e){o(e)}}),t.onRejectedCallbacks.push(function(e){try{var t=a(e);n(t)}catch(e){o(e)}}))})},Promise.prototype.catch=function(e){return this.then(null,e)}),!function(){if("function"!=typeof window.CustomEvent)try{Object.defineProperty(window,"CustomEvent",{value:t,writable:!1,configurable:!1})}catch(e){window.CustomEvent=t}function t(t,n){var o;n=n||{bubbles:!1,cancelable:!1,detail:null};try{(o=document.createEvent("CustomEvent")).initCustomEvent(t,n.bubbles,n.cancelable,n.detail)}catch(e){try{(o=document.createEvent("Event")).initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail}catch(e){(o=document.createEventObject()).type=t,o.bubbles=n.bubbles,o.cancelable=n.cancelable,o.detail=n.detail}}return o}}(),window.isIE)try{window.navigator.clipboard=window.navigator.clipboard||{writeText:function(t){if(window.clipboardData&&window.clipboardData.setData)try{return window.clipboardData.setData("Text",t),{then:function(e){return e&&e(),this},catch:function(){return this}}}catch(e){console.log("Clipboard fallback: "+t)}return{then:function(e){return e&&e(),this},catch:function(){return this}}}}}catch(e){}if(window.isIE&&"undefined"!=typeof console)try{var oldLog=console.log,oldWarn=console.warn,oldError=console.error;console.log=function(){try{if(arguments[0]&&"string"==typeof arguments[0]&&(0===arguments[0].indexOf("Error")||0===arguments[0].indexOf("error")))return oldLog.apply(console,arguments)}catch(e){}},console.warn=function(){try{return oldWarn.apply(console,arguments)}catch(e){}},console.error=function(){try{return oldError.apply(console,arguments)}catch(e){}}}catch(e){}function fixBackgroundIssues(){try{var e=document.body;if(e)try{e.style.minHeight="100vh",e.style.position="relative",e.style.overflow="auto";var t=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,n=t?t.backgroundImage:"";n&&"none"!==n&&(e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="cover",e.style.backgroundPosition="center center",e.style.backgroundAttachment="fixed")}catch(l){e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center center"}for(var o=["#text","#text-text","#search-results",".container-fluid",".col-12",".col-md-9",".col-md-3"],i=[],a=["text","text-text","search-results","search"],s=0;s<a.length;
1s++)(k=document.getElementById(a[s]))&&i.push(k);try{for(var c=0;c<o.length;c++)try{for(var r=document.querySelectorAll(o[c]),l=0;l<r.length;l++)"navigation"!==r[l].id&&i.push(r[l])}catch(l){}}catch(l){}for(s=0;s<i.length;s++)if(k=i[s])try{k.style.backgroundColor="transparent",k.style.background="none",k.style.visibility="visible","navigation"!==k.id&&(k.style.position&&"static"!==k.style.position||(k.style.position="relative"),k.style.zIndex="1")}catch(l){}try{for(var d=document.querySelector(".col-md-3"),u=document.querySelector(".col-md-9"),p=(d&&u&&768<=window.innerWidth&&(d.style.cssFloat="right",u.style.cssFloat="left"),document.querySelectorAll(".row")),f=0;f<p.length;f++){var m=p[f];if((!m.parentElement||"navigation"!==m.parentElement.id)&&(m.style.display="flex",isOldIE())){m.style.display="table";for(var h=m.children,g=0;g<h.length;g++)h[g].style.display="table-cell"}}var v=document.getElementById("text"),y=(v&&(v.style.minHeight="200px",v.style.overflow="auto",v.style.marginBottom="150px"),document.getElementById("search-results")),w=(y&&(y.style.backgroundColor="rgba(255, 255, 255, 0.8)",y.style.padding="10px",y.style.marginBottom="150px",y.style.zIndex="5",y.style.overflow="auto"),document.querySelector("form.search"));w&&(w.style.visibility="visible",w.style.zIndex="5")}catch(l){}try{for(var b=document.querySelectorAll(".container-fluid, .col-12, .col-md-9, .col-md-3, #text, #text-text, #search-results"),s=0;s<b.length;s++){var k=b[s];if("navigation"!==k.id)try{var E,x,C,I=window.getComputedStyle?window.getComputedStyle(k):k.currentStyle,$=I?I.backgroundColor:"";$&&0===$.indexOf("rgb(")&&(E=$.match(/\d+/g))&&3<=E.length&&(f=parseInt(E[0]),x=parseInt(E[1]),C=parseInt(E[2]),Math.abs(f-x)<30)&&Math.abs(x-C)<30&&Math.abs(f-C)<30&&(k.style.backgroundColor="transparent",k.style.background="none")}catch(l){}}}catch(l){}var S=document.getElementById("navigation");if(S){S.style.position="fixed",S.style.bottom="0",S.style.left="0",S.style.right="0",S.style.zIndex="1030";var T=document.getElementById("footer-spacer");if(!T)try{(T=document.createElement("div")).id="footer-spacer",T.style.height="150px",T.style.width="100%",T.style.clear="both",document.body.appendChild(T)}catch(l){}}}catch(l){}}function hasClass(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}function ensureNavigationVisibility(t){try{if(t){try{var e=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle;"none"===(e?e.display:"")&&(t.style.display="block")}catch(e){t.style.display="block"}for(var n=t.getElementsByClassName?t.getElementsByClassName("row"):findElementsByClass(t,"row"),o=0;o<n.length;o++)n[o].style.display="flex",isOldIE()&&(n[o].style.display="block"),n[o].style.visibility="visible";var i=document.getElementById("text-locale");if(i&&i.parentElement&&(i.parentElement.style.display="flex",isOldIE()&&(i.parentElement.style.display="block"),i.parentElement.style.visibility="visible"),768<=window.innerWidth||document.documentElement&&768<=document.documentElement.clientWidth){t.style.position="fixed",t.style.bottom="0",t.style.left="0",t.style.right="0",t.style.zIndex="1030";var a=1<n.length?n[1]:null;if(a)try{var s=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;"none"===(s?s.display:"")&&(a.style.display="flex",isOldIE())&&(a.style.display="block")}catch(e){a.style.display="block"}}}}catch(e){}}function findElementsByClass(e,t){if(!e)return[];for(var n=[],o=e.getElementsByTagName("*"),i=0;i<o.length;i++)hasClass(o[i],t)&&n.push(o[i]);return n}function isOldIE(){return window.isIE&&"function"!=typeof document.addEventListener&&"function"==typeof document.attachEvent}document.addEventListener("DOMContentLoaded",function(){try{function e(){if(window.isIE)for(var e=10;e<=1e3;e*=2)setTimeout(function(){try{if("function"==typeof window.dispatchEvent)try{var e=new CustomEvent("resize");window.dispatchEvent(e)}catch(e){try{var t=document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}catch(e){"function"==typeof window.fireEvent&&window.fireEvent("onresize")}}}catch(e){}},e)}
1window.isIE&&(fixBackgroundIssues(),setTimeout(fixBackgroundIssues,500),setTimeout(fixBackgroundIssues,1500)),e(),window.addEventListener?window.addEventListener("load",function(){if(e(),window.isIE&&(fixBackgroundIssues(),setTimeout(fixBackgroundIssues,200),setTimeout(fixBackgroundIssues,1e3)),window.isIE){var t=document.getElementById("navigation");if(t){ensureNavigationVisibility(t),setTimeout(function(){ensureNavigationVisibility(t)},500);try{document.body.addEventListener("click",function(){setTimeout(function(){ensureNavigationVisibility(t)},100)})}catch(e){try{document.body.attachEvent("onclick",function(){setTimeout(function(){ensureNavigationVisibility(t)},100)})}catch(e){}}}}}):window.attachEvent&&window.attachEvent("onload",function(){e(),window.isIE&&(fixBackgroundIssues(),setTimeout(fixBackgroundIssues,200),setTimeout(fixBackgroundIssues,1e3))});var n=document.querySelectorAll(".fixed-bottom");0<n.length&&window.isIE&&setTimeout(function(){for(var e=0;e<n.length;e++)try{n[e].offsetHeight;var t=n[e].style.display;n[e].style.display="none",n[e].offsetHeight;n[e].style.display=t}catch(e){}try{"function"==typeof window.dispatchEvent?window.dispatchEvent(new CustomEvent("resize")):"function"==typeof window.fireEvent&&window.fireEvent("onresize")}catch(e){}},300)}catch(e){}},!1),function(){"use strict";function e(e){e=location.search.match(new RegExp("[?&]"+e+"=([^&]+)(&|$)"));return e?decodeURIComponent(e[1]):null}var t=!1;try{t="1"===localStorage.getItem("memoriaalKiosk")}catch(e){}if("1"===e("kiosk")&&(t=!0),(t="0"!==e("kiosk")&&t)&&""!==(t=location.pathname.replace(/\/+$/,""))&&!/^\/(en|ru)$/.test(t)){for(var n=null,o=["pointerdown","mousedown","touchstart","keydown","scroll","wheel"],i=0;i<o.length;i++)document.addEventListener(o[i],a,!0);a()}function a(){n&&clearTimeout(n),n=setTimeout(function(){location.href="/?kiosk=1"},18e4)}}(),function(){"use strict";var e="memoriaalKiosk";function t(e){e=location.search.match(new RegExp("[?&]"+e+"=([^&]+)(&|$)"));return e?decodeURIComponent(e[1]):null}try{var n=t("kiosk");"1"===n?localStorage.setItem(e,"1"):"0"===n&&localStorage.removeItem(e)}catch(e){}var s,c,r,l,d,u,o,n=!1;try{n="1"===localStorage.getItem(e)}catch(e){}function i(e){var t;if(e)return"TEXTAREA"===(t=e.tagName)?1:"INPUT"===t?(t=(e.getAttribute("type")||"text").toLowerCase(),!o[t]):void 0}function p(e){try{e.dispatchEvent(new Event("input",{bubbles:!0}))}catch(e){}try{e.dispatchEvent(new Event("change",{bubbles:!0}))}catch(e){}}function f(e,t){t=t||{};var n=document.createElement("button");return n.type="button",n.className="kiosk-kb-key"+(t.cls?" "+t.cls:""),n.textContent=e,n.setAttribute("data-action",t.action||"char"),"char"!==t.action&&t.action||n.setAttribute("data-char",null!=t.value?t.value:e),n}function m(){u.innerHTML="";for(var e=s[r],t=0;t<e.length;t++){var n=document.createElement("div");n.className="kiosk-kb-row";for(var o=0;o<e[t].length;o++)n.appendChild(f(e[t][o]));u.appendChild(n)}var i=c[r],a=document.createElement("div");a.className="kiosk-kb-row kiosk-kb-row-bottom",a.appendChild(f(i.layout,{action:"layout",cls:"kiosk-kb-fn"})),a.appendChild(f(".",{value:"."})),a.appendChild(f("@",{value:"@"})),a.appendChild(f(i.space,{action:"char",value:" ",cls:"kiosk-kb-space"})),a.appendChild(f("⌫",{action:"backspace",cls:"kiosk-kb-fn"})),a.appendChild(f(i.clear,{action:"clear",cls:"kiosk-kb-fn"})),a.appendChild(f(i.search,{action:"submit",cls:"kiosk-kb-go"})),u.appendChild(a)}function a(e){for(var t,n,o=e.target;o&&o!==d&&!o.getAttribute("data-action");)o=o.parentNode;if(o&&o!==d)switch(e.preventDefault(),o.getAttribute("data-action")){case"char":var i=o.getAttribute("data-char"),a=l;if(a){var s=a.selectionStart,c=a.selectionEnd;if(null==s)a.value+=i;else{a.value=a.value.slice(0,s)+i+a.value.slice(c);c=s+i.length;try{a.setSelectionRange(c,c)}catch(e){}}p(a)}break;case"backspace":s=l;if(s){i=s.selectionStart,c=s.selectionEnd;if(null==i)s.value=s.value.slice(0,-1);else if(i!==c){s.value=s.value.slice(0,i)+s.value.slice(c);try{s.setSelectionRange(i,i)}catch(e){}}else if(0<i){s.value=s.value.slice(0,i-1)+s.value.slice(i);try{s.setSelectionRange(i-1,i-1)}catch(e){}}p(s)}break;case"clear":a=l;if(a){a.value="";try{a.setSelectionRange(0,0)}catch(e){}p(a)}break;case"submit":(n=l)&&n.form&&((t=(n=n.form).querySelector('button[type="submit"], input[type="submit"], button:not([type])'))?t.click():n.requestSubmit?n.requestSubmit():n.submit());break;
1case"close":g();break;case"layout":r="et"===r?"ru":"et",m()}}function h(){var e,t;if(d||((d=document.createElement("div")).className="kiosk-kb",d.setAttribute("aria-hidden","true"),(e=document.createElement("div")).className="kiosk-kb-bar",(t=document.createElement("button")).type="button",t.className="kiosk-kb-close",t.setAttribute("data-action","close"),t.textContent="✕",e.appendChild(t),d.appendChild(e),(u=document.createElement("div")).className="kiosk-kb-keys",d.appendChild(u),m(),document.body.appendChild(d),t=window.PointerEvent?"pointerdown":"mousedown",d.addEventListener(t,a,!1)),d.classList.add("is-open"),document.body.classList.add("kiosk-kb-open"),l&&l.scrollIntoView)try{l.scrollIntoView({block:"center"})}catch(e){l.scrollIntoView()}}function g(){d&&d.classList.remove("is-open"),document.body.classList.remove("kiosk-kb-open"),l&&l.blur&&l.blur(),l=null}function v(e){d&&d.classList.contains("is-open")&&(e=e.target,d.contains(e)||i(e)||g())}function y(){t=".kiosk-kb{position:fixed;left:0;right:0;bottom:0;z-index:2147483000;background:#1c1c1e;color:#fff;box-shadow:0 -6px 24px rgba(0,0,0,.45);padding:8px 10px 14px;display:none;font-family:Montserrat,Arial,sans-serif;-webkit-user-select:none;user-select:none;touch-action:manipulation}.kiosk-kb.is-open{display:block}body.kiosk-kb-open{padding-bottom:46vh!important}.kiosk-kb-bar{display:flex;justify-content:flex-end;margin-bottom:6px}.kiosk-kb-close{width:48px;height:48px;border:0;border-radius:8px;background:#3a3a3c;color:#fff;font-size:20px;cursor:pointer}.kiosk-kb-row{display:flex;gap:6px;justify-content:center;margin-bottom:6px}.kiosk-kb-key{flex:1 1 0;min-width:0;height:62px;border:0;border-radius:8px;background:#3a3a3c;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}.kiosk-kb-key:active{background:#5a5a5e}.kiosk-kb-row-bottom .kiosk-kb-key{font-size:18px}.kiosk-kb-space{flex:5 1 0}.kiosk-kb-fn{background:#2c2c2e}.kiosk-kb-go{background:#da3832;flex:2 1 0;font-weight:700;text-transform:uppercase}.kiosk-kb-go:active{background:#b22b26}",(e=document.createElement("style")).type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),document.head.appendChild(e),document.addEventListener("focusin",function(e){i(e.target)&&(l=e.target,h())},!1);var e,t=window.PointerEvent?"pointerdown":"touchstart";document.addEventListener(t,v,!0)}(n="1"===t("kiosk")?!0:n)&&(s={et:[["1","2","3","4","5","6","7","8","9","0"],["q","w","e","r","t","y","u","i","o","p","ü","õ"],["a","s","d","f","g","h","j","k","l","ö","ä"],["z","x","c","v","b","n","m","š","ž","-","'"]],ru:[["1","2","3","4","5","6","7","8","9","0"],["й","ц","у","к","е","н","г","ш","щ","з","х","ъ"],["ф","ы","в","а","п","р","о","л","д","ж","э"],["я","ч","с","м","и","т","ь","б","ю","ё","-"]]},c={et:{space:"tühik",search:"Otsi",clear:"Tühjenda",close:"Sulge",layout:"РУ"},ru:{space:"пробел",search:"Поиск",clear:"Очистить",close:"Закрыть",layout:"ABC"}},r="ru"===(document.documentElement.getAttribute("lang")||"").toLowerCase()?"ru":"et",u=d=l=null,o={date:1,"datetime-local":1,month:1,week:1,time:1,radio:1,checkbox:1,hidden:1,submit:1,button:1,range:1,color:1,file:1},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",y):y())}(),window.applicationCache&&(window.applicationCache.addEventListener("cached",function(){console.log("First cache of the manifest")},!1),window.applicationCache.addEventListener("checking",function(){console.log("Checking for an update")},!1),window.applicationCache.addEventListener("downloading",function(){console.log("An update was found")},!1),window.applicationCache.addEventListener("noupdate",function(){console.log("First download of the manifest")},!1),window.applicationCache.addEventListener("obsolete",function(){console.log("Application cache deleted")},!1),window.applicationCache.addEventListener("progress",function(){console.log("Resource fetched")},!1),window.applicationCache.addEventListener("updateready",function(){console.log("Resources redownloaded")},!1),window.applicationCache.addEventListener("error",function(){console.error("Cache failed to update")},!1)),$(function(){$("#popup-close, #popup-background").click(function(){$("#popup-background, #popup-content").addClass("d-none")})}),$(function(){function e(){var e,t,n,o;i&&768<=$(window).width()&&($("#navigation").removeClass("fixed-bottom"),$("#navigation")[0].offsetHeight,$("#navigation").addClass("fixed-bottom"),"function"==typeof ensureNavigationVisibility)&&setTimeout(function(){ensureNavigationVisibility(document.getElementById("navigation"))},50),$("#navigation img").addClass("d-none"),$("#navigation p").addClass("d-none"),1200<$(window).width()?800<$(window).height()?($("#navigation p").removeClass("d-none"),$("#navigation img").removeClass("d-none")):600<$(window).height()&&$("#navigation img").removeClass("d-none"):1200<$(window).height()?($("#navigation p").removeClass("d-none"),$("#navigation img").removeClass("d-none")):800<$(window).height()&&$("#navigation img").removeClass("d-none"),$(window).width()<768?($("#navigation").removeClass("fixed-bottom"),$("#text").removeClass("desktop"),$("#text").css("height","")):($("#navigation").addClass("fixed-bottom"),$("#text").addClass("desktop"),i?(n=(e=window.innerHeight||document.documentElement.clientHeight)-(t=$("#navigation").outerHeight(!0)||150),$("#text").css({"min-height":"200px","max-height":n+"px","overflow-y":"auto",position:"relative","z-index":"1","margin-bottom":t+20+"px"}),$("#search-results, #text-text").css({"margin-bottom":t+"px"}),$("#search-results").length&&$("#search-results").css({"max-height":e-t-50+"px","overflow-y":"auto"}),768<=$(window).width()&&($(".col-md-3").css("float","right"),$(".col-md-9").css("float","left")),$(".row").not("#navigation .row").css("display","flex")):$("#text").css("height",$(window).height()-$("#navigation").outerHeight(!0)+"px"),i&&($("#navigation").css({position:"fixed",bottom:"0"}),"function"==typeof ensureNavigationVisibility)&&ensureNavigationVisibility(document.getElementById("navigation"))),$(window).width()<576?$(".nav-title").css("height",""):(o=0,$(".nav-title").css("height",""),$(".nav-title").each(function(){var e=$
1(this).outerHeight(!0);o=o<e?e:o}),$(".nav-title").css("height",o+"px")),$("#text-text").css("height",""),$("#text-text").outerHeight(!0)<$("#text-search").outerHeight(!0)&&$("#text-text").css("height",$("#text-search").outerHeight(!0)+"px")}var t,i=!!window.MSInputMethodContext&&!!document.documentMode;e(),$(window).on("load",function(){e(),i&&(setTimeout(e,100),setTimeout(e,500),"function"==typeof fixBackgroundIssues)&&(setTimeout(fixBackgroundIssues,200),setTimeout(fixBackgroundIssues,800))}),$(window).on("resize",function(){clearTimeout(t),t=setTimeout(e,100)})}),$(function(){-1===(hosts=["www.memoriaal.ee","memoriaal.ee","localhost:4000","https://feature-episoodid--memoriaal.netlify.app/"]).indexOf(window.location.host)&&$("body").css({"-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","-webkit-user-select":"none","user-select":"none"})}),function(){"use strict";try{if("1"===localStorage.getItem("memoriaalKiosk"))return}catch(e){}var n;/[?&]kiosk=1(&|$)/.test(location.search)||("ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&(n={date:1,"datetime-local":1,month:1,week:1,time:1,radio:1,checkbox:1,hidden:1,submit:1,button:1,range:1,color:1,file:1},document.addEventListener("touchend",function(e){e=e.target;!function(e){var t;if(e)return"TEXTAREA"===(t=e.tagName)?1:"INPUT"===t?(t=(e.getAttribute("type")||"text").toLowerCase(),!n[t]):void 0}(e)||document.activeElement===e||"function"!=typeof e.focus||e.focus()},!1))}();
2//# sourceMappingURL=script.js.map

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.