PageSourceSearch

https://www.dh.si/common/js/functions.24.min.js

js dh.si collected 2026-10-01 16:04:25 UTC 26,780 bytes, 1 lines download raw bytes

1var showCookies=xx("button.showCookies");[].forEach.call(showCookies,function(e){e.addEventListener("click",function(){x("#kukis").classList.add("on")})});var cookieShowSettings=x("#cookieShowSettings");cookieShowSettings&&cookieShowSettings.addEventListener("click",function(){x("#kukiVsebina").classList.remove("on"),x("#kukiNastavi").classList.add("on")});var cookieShowNotice=x("#cookieShowNotice");cookieShowNotice&&cookieShowNotice.addEventListener("click",function(){x("#kukiNastavi").classList.remove("on"),x("#kukiVsebina").classList.add("on")});var cookieSave=x("#cookieSave");cookieSave&&cookieSave.addEventListener("click",function(){saveCookies()});var cookieSaveAll=x("#cookieSaveAll");cookieSaveAll&&cookieSaveAll.addEventListener("click",function(){for(var e=document.querySelectorAll("#kukis input[type=checkbox]:not(:disabled)"),t=0;t<e.length;t++)e[t].checked=!0;saveCookies()});var cookieSaveMandatory=x("#cookieSaveMandatory");function saveCookies(){let e=new Date;e.setTime(e.getTime()+31536e6);let t=e.toGMTString(),a={};for(var n=document.querySelectorAll("#kukis input[type=checkbox]:not(:disabled)"),o=0;o<n.length;o++)a[n[o].name]=n[o].checked;document.cookie="cookieConsent="+JSON.stringify(a)+"; expires="+t+"; path=/",gtag("consent","update",{analytics_storage:1==a.analytical?"granted":"denied",ad_storage:1==a.marketing?"granted":"denied",ad_user_data:1==a.marketing?"granted":"denied",ad_personalization:1==a.marketing?"granted":"denied"}),x("#kukis").classList.remove("on")}function getTheme({localStorageTheme:e,systemSettingDark:t}){return null!==e?e:t.matches?"dark":"light"}function updateTheme({theme:e}){x("html").setAttribute("data-theme",e),darkmode="dark"===e,darkmodeButton.classList.toggle("theme-toggle--toggled",darkmode);const t="dark"===e?"Preklopi v svetli način":"Preklopi v temni način";darkmodeButton.setAttribute("aria-label",t),darkmodeButton.querySelector("span.text").innerHTML=t}cookieSaveMandatory&&cookieSaveMandatory.addEventListener("click",function(){for(var e=document.querySelectorAll("#kukis input[type=checkbox]:not(:disabled)"),t=0;t<e.length;t++)e[t].checked=!1;saveCookies()}),x("a#skiptocontent").addEventListener("click",function(){x("#content").setAttribute("tabindex",-1),x("#content").focus()});const localStorageTheme=localStorage.getItem("theme"),systemSettingDark=window.matchMedia("(prefers-color-scheme: dark)"),darkmodeButton=x("header button.icon-darkmode");let currentThemeSetting=getTheme({localStorageTheme:localStorageTheme,systemSettingDark:systemSettingDark});updateTheme({theme:currentThemeSetting}),darkmodeButton.addEventListener("click",function(){const e="dark"===currentThemeSetting?"light":"dark";localStorage.setItem("theme",e),updateTheme({theme:e}),currentThemeSetting=e});var hidenoticeButton=x("#notice button.close");hidenoticeButton&&hidenoticeButton.addEventListener("click",function(){hidenoticeButton.parentNode.parentNode.classList.remove("on"),noticeHeight=0,document.cookie="hideNotice=1; path=/"});var hideinfoButton=x("#info button.close");hideinfoButton&&hideinfoButton.addEventListener("click",function(){hideinfoButton.parentNode.parentNode.classList.remove("on"),document.cookie="hideInfo=1; path=/"});var hidealertButton=x("#alert button.close");hidealertButton&&hidealertButton.addEventListener("click",function(){hidealertButton.parentNode.classList.remove("on"),document.cookie="hideAlert=1; path=/"});var navigationButtons=xx("button.icon-navigation");[].forEach.call(navigationButtons,function(e){e.addEventListener("click",function(){e.classList.contains("active")?([].forEach.call(navigationButtons,function(e){e.classList.remove("active")}),x("header nav.navigation").classList.remove("active"),x("header").classList.remove("stop-menu")):(searchButton.classList.remove("active"),x("header form.search").classList.remove("active"),[].forEach.call(navigationButtons,function(e){e.classList.add("active")}),x("header nav.navigation").classList.add("active"),x("header").classList.add("stop-menu"))})});var submenuButton=xx("header nav ul.main li button.expand");[].forEach.call(submenuButton,function(e){e.addEventListener("click",function(){if(e.classList.contains("active")){e.classList.remove("active"),e.parentNode.classList.remove("active"),x("header nav ul.main").classList.add("show"),x("header nav ul.main").classList.remove("hide"),x("header nav ul.secondary").classList.remove("hide"),x("header nav ul.secondary").classList.add("show"),x("header nav div.onlinebank").classList.remove("hide"),x("header nav div.onlinebank").classList.add("show");let t=e.parentNode.getElementsByTagName("a")[0];t&&setTimeout(function(){t.focus()},100)}else e.classList.add("active"),e.parentNode.classList.add("active"),x("header nav ul.main").classList.add("hide"),x("header nav ul.main").classList.remove("show"),x("header nav ul.secondary").classList.add("hide"),x("header nav ul.secondary").classList.remove("show"),x("header nav div.onlinebank").classList.add("hide"),x("header nav div.onlinebank").classList.remove("show")})});var backButton=xx("header nav ul.main li div.submenu button.back");[].forEach.call(backButton,function(e){e.addEventListener("click",function(){let t=e.parentElement.previousElementSibling;t&&t.click()})});var navPrimaryLinks=xx("header nav ul.primary li a");[].forEach.call(navPrimaryLinks,function(e){e.addEventListener("keydown",function(t){if("39"==t.keyCode){let t=e.parentElement.nextElementSibling,a=e.parentElement.parentElement.nextElementSibling;if(t){let e=t.getElementsByTagName("a")[0];e&&e.focus()}else if(a){let e=a.getElementsByTagName("a")[0];e&&e.focus()}}else if("37"==t.keyCode){let t=e.parentElement.previousElementSibling;if(t){let e=t.firstChild;e&&e.focus()}}}),e.addEventListener("focus",function(e){if(window.screen.width>=1024){var t=xx("header nav ul.main li button.expand");[].forEach.call(t,function(e){e.classList.remove("active"),e.parentNode.classList.remove("active")})}})});var navMainLinks=xx("header nav ul.main li a.level1");[].forEach.call(navMainLinks,function(e){e.addEventListener("keydown",function(t){if("39"==t.keyCode){let t=e.parentElement.nextElementSibling,a=e.parentElement.parentElement.nextElementSibling;if(t){let e=t.getElementsByTagName("a")[0];e&&e.focus()}else if(a){let e=a.getElementsByTagName("a")[0];e&&e.focus()}}else if("37"==t.keyCode){let t=e.parentElement.previousElementSibling,a=e.parentElement.parentElement.previousElementSibling;if(t){let e=t.getElementsByTagName("a")[0];e&&e.focus()}else if(a){let e=a.getElementsByTagName("a")[a.getElementsByTagName("a").length-1];e&&e.focus()}}else if("40"==t.keyCode){let t=e.nextElementSibling;if(t)if(window.screen.width>=1024){let e=t.nextElementSibling.getElementsByTagName("a")[0];e&&e.focus()}else{t.click();let e=t.nextElementSibling.getElementsByTagName("a")[0];e&&setTimeout(function(){e.focus()},100)}}}),e.addEventListener("focus",function(t){if(window.screen.width>=1024){var a=xx("header nav ul.main li button.expand");[].forEach.call(a,function(e){e.classList.remove("active"),e.parentNode.classList.remove("active")});let t=e.nextElementSibling;t&&(t.classList.add("active"),t.parentNode.classList.add("active"))}})});navMainLinks=xx("header nav ul.main li div.submenu ul li a.level2");[].forEach.call(navMainLinks,function(e){e.addEventListener("keydown",function(t){if("39"==t.keyCode||"40"==t.keyCode){let t=e.parentElement.nextElementSibling;if(t){let e=t.getElementsByTagName("a")[0];e&&e.focus()}}else if("37"==t.keyCode||"38"==t.keyCode){let t=e.parentElement.previousElementSibling,a=e.parentElement.parentElement.parentElement.previousElementSibling;if(t){let e=t.getElementsByTagName("a")[0];e&&e.focus()}else a&&a.click()}})});var navSecondaryLinks=xx("header nav ul.secondary li a, header nav ul.secondary li button.icon-darkmode");[].forEach.call(navSecondaryLinks,function(e){e.addEventListener("keydown",function(t){if("39"==t.keyCode){let t=e.parentElement.nextElementSibling,a=e.parentElement.parentElement.nextElementSibling;if(t){let e=t.firstChild;e&&e.focus()}else if(a){let e=a.getElementsByTagName("button")[0];if(e){e.classList.add("active");let t=e.nextElementSibling.getElementsByTagName("a")[0];t&&setTimeout(function(){t.focus()},50)}}}else if("37"==t.keyCode){let t=e.parentElement.previousElementSibling,a=e.parentElement.parentElement.previousElementSibling;if(t){let e=t.firstChild;e&&e.focus()}else if(a){let e=a.lastElementChild.getElementsByTagName("a")[0];e&&e.focus()}}}),e.addEventListener("focus",function(e){if(window.screen.width>=1024){var t=xx("header nav ul.main li button.expand");[].forEach.call(t,function(e){e.classList.remove("active"),e.parentNode.classList.remove("active")})}})});var onlinebankButton=x("#onlinebankButton");onlinebankButton&&onlinebankButton.addEventListener("focus",function(e){if(onlinebankButton.classList.contains("active"))onlinebankButton.classList.remove("active");else{onlinebankButton.classList.add("active");let e=onlinebankButton.nextElementSibling.getElementsByTagName("a")[0];e&&setTimeout(function(){e.focus()},50)}});var navOnlinebankLinks=xx("header nav div.onlinebank a");[].forEach.call(navOnlinebankLinks,function(e){e.addEventListener("keydown",function(t){if("39"==t.keyCode||"40"==t.keyCode){let t=e.parentElement.nextElementSibling;if(t){let e=t.firstChild;e&&e.focus()}}else if("37"==t.keyCode||"38"==t.keyCode){let t=e.parentElement.previousElementSibling,a=e.parentElement.parentElement.parentElement.previousElementSibling;if(t){let e=t.firstChild;e&&e.focus()}else if(a){let e=a.lastElementChild.getElementsByTagName("button")[0];e&&e.focus(),onlinebankButton.classList.remove("active")}}})});var didScroll,searchButton=x("header button.icon-search");searchButton&&searchButton.addEventListener("click",function(){searchButton.classList.contains("active")?(searchButton.classList.remove("active"),x("header form.search").classList.remove("active")):([].forEach.call(navigationButtons,function(e){e.classList.remove("active")}),x("header nav.navigation").classList.remove("active"),searchButton.classList.add("active"),x("header form.search").classList.add("active"),x("header form.search input").focus())});var lastScrollTop=0,delta=5,appbannerHeight=0,noticeHeight=0,headerHeight=x("header").offsetHeight,appbanner=x("#appbanner");appbanner&&(appbannerHeight=appbanner.offsetHeight);var notice=x("#notice");function hasScrolled(){var e=document.documentElement.scrollTop;if(!(Math.abs(lastScrollTop-e)<=delta)){var t=document.documentElement.clientHeight,a=document.documentElement.scrollHeight;e>lastScrollTop&&e>headerHeight+appbannerHeight+noticeHeight?(x("header").classList.add("header-up"),x("header").classList.remove("header-down"),x("div.sidebar").classList.add("hidden")):e+t<a&&(x("header").classList.remove("header-up"),e>headerHeight+appbannerHeight+noticeHeight?x("header").classList.add("header-down"):e<=appbannerHeight+noticeHeight&&x("header").classList.remove("header-down"),x("div.sidebar").classList.remove("hidden")),lastScrollTop=e}}notice&&(noticeHeight=notice.offsetHeight),window.addEventListener("scroll",function(){didScroll=!0}),setInterval(function(){didScroll&&(hasScrolled(),didScroll=!1)},250);const links=document.querySelectorAll('a[href^="#"]');for(const e of links)e.addEventListener("click",clickHandler);function clickHandler(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){const t=this.getAttribute("href");if("#"==t)return!1;const a=x(t);if(a){e.preventDefault(),history.pushState?history.pushState(null,null,t):location.hash=t;const n=a.getBoundingClientRect();x("header button.icon-navigation").classList.remove("active"),x("header nav.navigation").classList.remove("active"),x("header button.icon-search").classList.remove("active"),x("header form.search").classList.remove("active"),scroll({top:n.top+window.scrollY,behavior:"smooth"}),x("header").classList.add("header-up"),x("header").classList.remove("header-down")}}}var loadmore=x("#loadmore");loadmore&&loadmore.addEventListener("click",function(){var e=loadmore.dataset.type,t=loadmore.dataset.page,a=loadmore.dataset.language,n="";if(loadmore.hasAttribute("data-tag"))n=loadmore.dataset.tag;var o="";if(loadmore.hasAttribute("data-category"))o=loadmore.dataset.category;loadmore.classList.add("loading"),fetch("/common/ajax/loadmore.php?language="+a+"&type="+e+"&category="+o+"&tag="+n+"&page="+t,{method:"GET"}).then(e=>e.text()).then(t=>{if(loadmore.classList.remove("loading"),"error"==t);else{var a=0,n=t.match(/(page:\d+)/);null!=n&&(a=n[0].replace("page:",""));var o=t.replace(/(page:\d+)/,"");x("#"+e+"-list").innerHTML+=o,0==a?loadmore.remove():loadmore.dataset.page=parseInt(a)+1}}).catch(e=>{console.log(e)})});var ajaxForms=xx("form.ajax"),recaptchaV2Tokens={},recaptchaV2Widgets={},recaptchaV2ScriptLoaded=!1,recaptchaV2ScriptLoading=!1,recaptchaV2PendingFormID=null;function showRecaptchaV2(e){var t=x("#"+e+"-recaptcha-v2");if(!t)return!1;t.removeAttribute("hidden"),t.scrollIntoView({behavior:"smooth",block:"center"}),void 0===recaptchaV2Widgets[e]?renderRecaptchaV2(e,t):grecaptcha.reset(recaptchaV2Widgets[e])}function renderRecaptchaV2(e,t){if(recaptchaV2ScriptLoaded)recaptchaV2Widgets[e]=grecaptcha.render(t,{sitekey:recaptchaSiteKeyV2,callback:function(t){recaptchaV2Tokens[e]=t;var a=x("form#"+e);a&&(a.requestSubmit?a.requestSubmit():a.dispatchEvent(new Event("submit",{cancelable:!0})))}});else if(recaptchaV2PendingFormID=e,!recaptchaV2ScriptLoading){recaptchaV2ScriptLoading=!0,window.recaptchaV2OnLoad=function(){recaptchaV2ScriptLoaded=!0,recaptchaV2ScriptLoading=!1,recaptchaV2PendingFormID&&renderRecaptchaV2(recaptchaV2PendingFormID,x("#"+recaptchaV2PendingFormID+"-rec
1aptcha-v2"))};var a=document.createElement("script");a.src="https://www.google.com/recaptcha/api.js?onload=recaptchaV2OnLoad&render=explicit",a.async=!0,a.defer=!0,document.head.appendChild(a)}}function submitAjaxForm(e,t,a){fetch("/common/ajax/"+t+".php",{method:"POST",body:a}).then(e=>e.json()).then(a=>{if("error"==a.status)x("#validation-"+t+"-error").innerHTML=a.value,x("#validation-"+t+"-error").classList.add("error"),a.recaptchaV2&&showRecaptchaV2(t);else if("success"==a.status){delete recaptchaV2Tokens[t];var n=x("#"+t+"-recaptcha-v2");n&&n.setAttribute("hidden",""),x("div#"+t+"-response").innerHTML=a.value;var o=x("#"+t+"-response div.results button.details");o&&o.addEventListener("click",function(){let e=xx("div.response div.results div.details");[].forEach.call(e,function(e){e.classList.remove("hidden")}),o.remove()});var i=xx("#"+t+"-response div.results span.copy");[].forEach.call(i,function(e){e.addEventListener("click",function(){var t=e.dataset.value;t&&copy2clipboard(e,t)})}),a.moreinfo&&(x("div#"+t+"-moreinfo").innerHTML=a.moreinfo),a.code&&(x("input#code").value=a.code),x("form#"+t).classList.add("submitted")}else x("#validation-"+t+"-error").innerHTML="Ups, nekaj je šlo narobe. Poskusite znova.",x("#validation-"+t+"-error").classList.add("error"),js_error_log(t+"\n"+JSON.stringify(a));e.target.querySelector('button[type="submit"]').classList.remove("loading")}).catch(a=>{x("#validation-"+t+"-error").innerHTML="Neznana napaka. Poskusite znova.",x("#validation-"+t+"-error").classList.add("error"),e.target.querySelector('button[type="submit"]').classList.remove("loading"),js_error_log(t+"\nfetch failed")})}[].forEach.call(ajaxForms,function(e){e.addEventListener("submit",function(e){if(e.preventDefault(),!validate(this))return!1;e.target.querySelector('button[type="submit"]').classList.add("loading");var t=new FormData(e.target),a=t.get("formID");recaptchaV2Tokens[a]&&t.set("g-recaptcha-response-v2",recaptchaV2Tokens[a]),x("#validation-"+a+"-error").classList.remove("error"),x("div#"+a+"-response").innerHTML="";let n=x("div#"+a+"-moreinfo");n&&(n.innerHTML=""),x("form#"+a).classList.remove("submitted"),x("form#"+a).classList.contains("recaptcha")?grecaptcha.ready(function(){grecaptcha.execute(recaptchaSiteKey,{action:a}).then(function(n){t.set("g-recaptcha-response",n),submitAjaxForm(e,a,t)})}):submitAjaxForm(e,a,t)})});var loans=x("select#krediti-reason");function showLoans(e){var t=new FormData(e.form),a=t.get("formID");x("form#"+a).classList.remove("submitted"),fetch("/common/ajax/"+a+".php",{method:"POST",body:t}).then(e=>e.text()).then(e=>{x("div#"+a+"-response").innerHTML=e,x("form#"+a).classList.add("submitted")}).catch(e=>{console.log(e)})}loans&&loans.addEventListener("change",function(){showLoans(loans)});var numberInputs=xx("input.number");[].forEach.call(numberInputs,function(e){e.addEventListener("focus",function(){this.value=this.value.replace(/[^0-9]+/g,"")}),e.addEventListener("blur",function(){value=parseFloat(this.value),value=checkMin(this,value),value=checkMax(this,value),isNaN(value)?this.value="":this.value=value.toLocaleString("sl-SI")})});var currencyInputs=xx("input.currency");[].forEach.call(currencyInputs,function(e){e.addEventListener("focus",function(){this.value=this.value.replace(/[^0-9]+/g,"")}),e.addEventListener("blur",function(){value=parseFloat(this.value),value=checkMin(this,value),value=checkMax(this,value),isNaN(value)?this.value="":this.value=value.toLocaleString("sl-SI")+" €"})});var sliders=xx("input[type=range]");[].forEach.call(sliders,function(e){var t=e.previousElementSibling;if(!t.classList.contains("slider"))return!1;var a=!1;t.classList.contains("currency")&&(a=!0),e.oninput=function(){value=parseFloat(this.value),t.value=a?value.toLocaleString("sl-SI")+" €":value}});var sliderInputs=xx("input.slider");function checkMin(e,t){let a=parseInt(e.min);return a&&t<a&&(t=a),t}function checkMax(e,t){let a=parseInt(e.max);return a&&t>a&&(t=a),t}[].forEach.call(sliderInputs,function(e){e.addEventListener("blur",function(){var t=e.nextElementSibling;"INPUT"==t.nodeName&&(t.value=parseFloat(this.value.replace(/[^0-9]+/g,"")))})});var packageSwitches=xx("input.package-switcher");[].forEach.call(packageSwitches,function(e){e.addEventListener("click",function(){let t=e.parentNode.parentNode.previousElementSibling.previousElementSibling,a=e.parentNode.parentNode.previousElementSibling.querySelector("span.amount"),n=e.parentNode.parentNode.previousElementSibling.querySelector("span.amount-plus"),o=e.parentNode.parentNode.parentNode.querySelector("a.button"),i=o.getAttribute("href").split("#"),s=i[0].split("?")[0],r=i[1]?`#${i[1]}`:"",c="";e.checked?(t.append(" 35"),a.classList.add("off"),n.classList.remove("off"),c="?p=35"):(t.innerHTML=t.innerHTML.replace(" 35",""),n.classList.add("off"),a.classList.remove("off"));const l=s+c+r;o.setAttribute("href",l)})});var footerTitle=xx("div.title.expand, h2.expand, h3.expand, button.expand");if([].forEach.call(footerTitle,function(e){e.addEventListener("click",function(){e.classList.contains("on")?(e.classList.remove("on"),e.parentElement.classList.remove("on")):(e.classList.add("on"),e.parentElement.classList.add("on"))})}),(hash=window.location.hash.slice(1))&&-1==hash.indexOf("/")){var hashedTitle=x("#"+hash+".expand");
1hashedTitle&&(hashedTitle.classList.add("on"),hashedTitle.parentElement.classList.add("on"))}const container=x("body article#content");function openPopup(e){let t=x("#popup-"+e);if(!t)return!1;t.classList.add("show");let a=t.getElementsByTagName("form")[0];a&&a.getElementsByTagName("input")[0].focus(),document.body.style.overflow="hidden"}function closePopup(e){let t=x("#"+e);if(!t)return!1;t.classList.remove("show"),document.body.style.overflow="auto"}function copy2clipboard(e,t){navigator.clipboard.writeText(t);let a=e.dataset.text;e.dataset.text="ok",setTimeout(()=>{e.dataset.text=a},3e3)}function showExchangeRates(e,t){if(!e||!t)return!1;x("#exchangeRateTable").innerHTML="",x("#exchangeRateTable").classList.add("loading"),x("ul.exchangeRateList button.on").classList.remove("on"),x("ul.exchangeRateList button#"+e).classList.add("on");var a=new FormData;a.append("date",t),a.append("type",e),fetch("/common/ajax/tecajne_liste.php",{method:"POST",body:a}).then(e=>e.text()).then(e=>{setTimeout(()=>{x("#exchangeRateTable").innerHTML=e,x("#exchangeRateTable").classList.remove("loading")},200)}).catch(e=>{setTimeout(()=>{x("#exchangeRateTable").innerHTML='<p class="error">Za izbrani datum nimamo želene tečajnice.</p>',x("#exchangeRateTable").classList.remove("loading")},200)})}container.addEventListener("click",function(e){if("A"==e.target.nodeName&&e.target.classList.contains("popup")){e.preventDefault();const t=[["X-Custom-Header","popup"]];fetch(e.target.href,{headers:t}).then(function(e){return e.text()}).then(function(e){let t=document.createElement("div");t.classList.add("popup");let a=(Math.random()+1).toString(36).substring(7);t.id="popup-"+a,t.innerHTML=e,x("article#content").appendChild(t),openPopup(a)}).catch(function(e){console.warn("Nekaj je šlo narobe :-/",e)})}else if("BUTTON"==e.target.nodeName&&e.target.classList.contains("popup")){let t=e.target.dataset.popup;t&&openPopup(t)}else"BUTTON"==e.target.nodeName&&e.target.classList.contains("close")&&(popupID=e.target.parentElement.parentElement.id,closePopup(popupID))}),document.onkeydown=function(e){if("Escape"===(e=e||window.event).key||27===e.keyCode){let t=x("div.popup.show");if(!t)return!1;e.preventDefault(),closePopup(t.id)}},window.onclick=function(e){e.target==x("div.popup.show")&&closePopup(e.target.id)};var exchangeRateButtons=xx("ul.exchangeRateList button");[].forEach.call(exchangeRateButtons,function(e){e.addEventListener("click",function(t){showExchangeRates(e.id,x("#exchangeRateDate").value)})});var exchangeRateDate=x("#exchangeRateDate");exchangeRateDate&&exchangeRateDate.addEventListener("change",function(){showExchangeRates(x("ul.exchangeRateList button.on").id,this.value)});var tabs=xx("ul.tabs li button");[].forEach.call(tabs,function(e){e.addEventListener("click",function(){showTab(e)})});var tabButtons=xx("button.tab");[].forEach.call(tabButtons,function(e){e.addEventListener("click",function(){var t=x('ul.tabs li button[data-tabid="'+e.dataset.tabid+'"]');if(e.classList.contains("on")){let a=e.dataset.tabid;t.classList.remove("on"),e.classList.remove("on"),x("#"+a).classList.remove("on")}else showTab(t)})});var hash,tabLinks=xx("a.switchTab");if([].forEach.call(tabLinks,function(e){e.addEventListener("click",function(){var t=x('ul.tabs li button[data-tabid="'+e.getAttribute("href").substring(1)+'"]');t&&showTab(t)})}),hash=window.location.hash.slice(1)){var tab=x('ul.tabs li button[data-tabid="'+hash+'"]');tab&&showTab(tab)}function showTab(e){let t=e.dataset.tabid,a=x("ul.tabs li button.on");a&&a.classList.remove("on");let n=x("button.tab.on");n&&n.classList.remove("on");let o=x("div.tabcontent.on");o&&o.classList.remove("on"),e.classList.add("on"),x('button.tab[data-tabid="'+t+'"]').classList.add("on"),x("#"+t).classList.add("on"),window.location.hash=t}var appBanner=x("#appbanner");if(appBanner)var marketLink=appBanner.querySelector(".marketLink");var maxTouchPoints=window.navigator.maxTouchPoints,userAgent=window.navigator.userAgent;appBanner&&/Android/i.test(userAgent)?(appBanner.classList.remove("off"),marketLink.href="https://play.google.com/store/apps/details?id=si.delavskahranilnica.dhdenarnik"):appBanner&&(!window.MSStream&&!/X11|Linux/i.test(userAgent)&&maxTouchPoints&&maxTouchPoints>0||/iPhone|iPad|iPod/i.test(userAgent))&&(appBanner.classList.remove("off"),marketLink.href="https://apps.apple.com/si/app/dh-denarnik/id1490853552");var hideAppBanner=x("#appbanner-close");hideAppBanner&&hideAppBanner.addEventListener("click",function(){hideAppBanner.parentNode.parentNode.classList.add("off");var e=new Date;e.setTime(e.getTime()+2592e6);var t=e.toGMTString();document.cookie="cookieAppBanner=1; expires="+t+"; path=/"});var toggleSystem=x("input#toggleSystem");function js_error_log(e){var t=new FormData;t.append("message",e),fetch("/common/ajax/js_error_log.php",{method:"POST",body:t})}toggleSystem&&toggleSystem.addEventListener("click",function(){systems=xx("div.system"),[].forEach.call(systems,function(e){e.classList.toggle("off")})});const tooltips=xx("span.tooltip-text"),tooltipIcons=xx("span.tooltip-icon");[].forEach.call(tooltipIcons,function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();const a=e.dataset.tooltipId,n=x("#"+a),o=n.classList.contains("active");
1tooltips.forEach(e=>e.classList.remove("active")),o||n.classList.add("active")})}),document.addEventListener("click",function(e){e.target.closest("span.tooltip-text")||e.target.closest("span.tooltip-icon")?(e.preventDefault(),e.stopPropagation()):tooltips.forEach(e=>e.classList.remove("active"))}),document.addEventListener("keydown",function(e){"Escape"!==e.key&&27!==e.keyCode||tooltips.forEach(e=>e.classList.remove("active"))});const actionCheckboxes=xx('input[name="action"]');[].forEach.call(actionCheckboxes,function(e){e.addEventListener("change",function(){this.checked&&actionCheckboxes.forEach(e=>{e!==this&&(e.checked=!1)})})});var splideHomebanner=x("#splide-banner");splideHomebanner&&new Splide("#splide-banner",{type:"loop",autoplay:!0}).mount();var splideShortsAll=xx(".splide-shorts");[].forEach.call(splideShortsAll,function(e){new Splide(e,{type:"slide",perMove:2,arrows:!1,pagination:!0,drag:!0,gap:"25px",perPage:4,breakpoints:{600:{perPage:2},768:{perPage:3,gap:"15px"}}}).mount();var t=e.querySelectorAll("div.short-wrapper");[].forEach.call(t,function(e){const t=e.querySelector("iframe");e.addEventListener("click",function(){if(!e.classList.contains("is-playing")){e.classList.add("is-playing");var a=t.getAttribute("data-src");a&&(a+=(a.includes("?")?"&":"?")+"autoplay=1",t.setAttribute("src",a),t.removeAttribute("data-src"))}})})}),xx(".splide-cards-3").forEach(function(e){new Splide(e,{type:"slide",perMove:1,arrows:!1,pagination:!0,drag:!0,gap:"40px",perPage:3,breakpoints:{768:{perPage:2,gap:"30px"},560:{perPage:1}}}).mount()});var finishDate=1788213600;if(document.querySelector("#days"))var interval=setInterval(function(){var e=(new Date).getTime(),t=1e3*finishDate-e;if(t<0)return clearInterval(interval),document.querySelector("#days").innerHTML="00",document.querySelector("#hours").innerHTML="00",document.querySelector("#minutes").innerHTML="00",document.querySelector("#seconds").innerHTML="00",history.replaceState(null,"",location.pathname+location.search),scroll({top:0}),void location.reload();var a=Math.floor(t/864e5).toString().padStart(2,"0"),n=Math.floor(t%864e5/36e5).toString().padStart(2,"0"),o=Math.floor(t%36e5/6e4).toString().padStart(2,"0"),i=Math.floor(t%6e4/1e3).toString().padStart(2,"0");document.querySelector("#days").innerHTML=a,document.querySelector("#hours").innerHTML=n,document.querySelector("#minutes").innerHTML=o,document.querySelector("#seconds").innerHTML=i},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.