1 2/*! Sheet Slider v2.2.0 | Copyright: 2018 zkreations | Licensed under MIT | github.com/zkreations/SheetSlider/blob/master/LICENSE */ 3var sheetSlider = function () { 4 function e() { 5 r = setInterval(t, l); 6 } 7 8 function t() { 9 for (var e = 0; e < s.length; e++) if (s[e].checked) { 10 e === s.length - 1 ? s[0].checked = !0 : s[e + 1].checked = !0; 11 break; 12 } 13 } 14 15 function n() { 16 clearInterval(r); 17 } 18 19 function c() { 20 v || e(); 21 } 22 23 function o() { 24 v = !v; 25 n(); 26 h.classList.add("is-active"); 27 v || (t(), c(), h.classList.remove("is-active")); 28 } 29 30 var r, l = 4000, i = false, s = document.querySelectorAll(".sh-auto input"), a = document.querySelector(".sh-auto .sh__content"), u = document.querySelectorAll(".sh-auto .sh__btns label"), d = document.querySelectorAll(".sh-auto .sh__arrows label"), h = document.querySelector(".sh-control"), v = false; 31 32 i && (a.addEventListener("mouseover", n), a.addEventListener("mouseout", c)); 33 h && h.addEventListener("click", o); 34 35 for (var f = 0; f < s.length; f++) { 36 if (u.length) { 37 u[f].addEventListener("click", function () { 38 n(); 39 c(); 40 }); 41 } 42 43 if (d.length) { 44 d[f].addEventListener("click", function () { 45 n(); 46 c(); 47 }); 48 } 49 } 50 51 window.addEventListener("load", function () { 52 e(); 53 // Add this code to adjust the parent container's height 54 const parentContainer = document.querySelector('.sheetSlider'); // Change the selector to match your parent container 55 const absoluteDiv = document.querySelector('.sh__item'); // Change the selector to match your absolute div 56 57 // Set the parent container's height to match the height of the absolute div 58 parentContainer.style.height = absoluteDiv.offsetHeight + 'px'; 59 }); 60 61}(); 62 63
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.