1document.addEventListener("DOMContentLoaded", (event) => { 2 const backToTop = document.querySelector(".back-to-top"); 3 window.addEventListener("scroll", function () { 4 if (backToTop) { 5 const maxHeight = document.body.scrollHeight - window.innerHeight; 6 let foo = (window.scrollY * 100) / maxHeight; 7 if (foo > 10) { 8 backToTop.classList.add("uk-animation-slide-right"); 9 backToTop.style.visibility = "visible"; 10 } else { 11 backToTop.classList.remove("uk-animation-slide-right"); 12 backToTop.style.visibility = "hidden"; 13 } 14 } 15 }); 16 // poup wyskakujacy raz dziennie 17 const modal = UIkit.modal("#modal-media-image"); 18 function hasOneDayPassed() { 19 const date = new Date().toLocaleDateString(); 20 21 if (localStorage.yourapp_date == date) return false; 22 23 localStorage.yourapp_date = date; 24 return true; 25 } 26 27 function runOncePerDay() { 28 if (!hasOneDayPassed()) return false; 29 setTimeout(() => { 30 modal.show(); 31 }, "7000"); 32 } 33 runOncePerDay(); 34 document.querySelectorAll(".uk-tab li").forEach((el) => { 35 el.classList.remove("uk-active"); 36 }); 37});
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.