PageSourceSearch

https://www.ku.ac.th/assets/js/components/hero-banner.js

js ku.ac.th collected 2026-09-24 08:42:14 UTC 2,094 bytes, 1 lines download raw bytes

1"use strict";window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(){var i=0,r=[],a=document.querySelectorAll(".swiper-banner .swiper-slide").length,n=document.querySelector(".swiper-banner");if(n){1<a&&n.classList.add("many-slide");var e=new Swiper(n,{speed:500,preloadImages:!0,updateOnImagedReady:!0,virtualTranslate:!0,loop:!0,followFinger:!1,pagination:{el:".banner-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{imagesReady:function(){this.wrapperEl&&this.wrapperEl.classList.add("active"),this.wrapperEl&&this.wrapperEl.classList.remove("invisible");var e,t=n.querySelector(".swiper-lazy-preloader");t&&t.classList.add("invisible"),setTimeout((e=this,function(){1<a?(e.params.autoplay.disableOnInteraction=!1,e.autoplay.start()):(e.allowSlidePrev=!1,e.allowSlideNext=!1)}),100)},setTransition:function(e){i=e},setTranslate:function(t){var a=this,e=a.activeIndex,n=a.slides[e];r.push(n),0===i?(a.wrapperEl&&(a.wrapperEl.style.transitionDuration=i),a.wrapperEl&&(a.wrapperEl.style.transform="translateX("+t+"px)")):(n&&n.classList.add("clip-before-move-out"),setTimeout(function(){var e=i;a.wrapperEl&&(a.wrapperEl.style.transitionDuration=e),a.wrapperEl&&(a.wrapperEl.style.transform="translateX("+t+"px)"),function(e){if(!r.length)return;setTimeout(function(){r.forEach(function(e){e&&e.classList.remove("clip-before-move-out")}),r=[]},e)}(e)},550))}}});n.addEventListener("mouseenter",function(){e.autoplay.stop()}),n.addEventListener("mouseleave",function(){e.autoplay.start()}),n.addEventListener("click",function(e){e.stopPropagation(),n.classList.toggle("show-nav")}),document.body.addEventListener("click",function(e){n.classList.remove("show-nav")},!1),e.navigation.nextEl&&e.navigation.nextEl.addEventListener("click",function(e){return e.stopPropagation()}),e.navigation.prevEl&&e.navigation.prevEl.addEventListener("click",function(e){return e.stopPropagation()}),e.pagination.el&&e.pagination.el.addEventListener("click",function(e){return e.stopPropagation()})}}();

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.