PageSourceSearch

https://karokab.go.id/media/sigplus/engines/slideplus/js/slideplus.min.js?v=dac28dfe81e6eabcf76d9a175695b884

js karokab.go.id collected 2026-10-02 11:55:33 UTC 10,247 bytes, 30 lines download raw bytes

1(function(){/*
2slideplus image rotator
3@author  Levente Hunyadi
4@version 1.5.0
5@remarks Copyright (C) 2011-2017 Levente Hunyadi
6@see     https://hunyadi.info.hu/projects/slideplus
7*/
8'use strict';const t={rows:2,cols:3,step:"page",loop:!1,random:!1,transition:"slide",timing:"linear",orientation:"horizontal",layout:"natural",captions:"bottom",links:!0,counter:!0,protection:!1,delay:0,dir:"ltr",lazyload:!0};function w(){return document.createElement("div")}function E(a){["src","srcset","sizes"].forEach(function(b){if(a.hasAttribute(b)){const c="data-"+b,d=a.getAttribute(b);a.setAttribute(c,d);a.removeAttribute(b)}})}
9function aa(a){["src","srcset","sizes"].forEach(function(b){const c="data-"+b;if(a.hasAttribute(c)){const d=a.getAttribute(c);a.setAttribute(b,d);a.removeAttribute(c)}})}function G(a){let b=this,c=[].filter.call(a.getElementsByTagName("img"),function(e){return!e.complete&&e.src});this.pending=c;if(!(1>c.length)){var d=w();d.classList.add("loadplus-progress");a.appendChild(d);this.a=d;c.forEach(function(e){e.classList.add("loadplus-hidden");E(e);e.preloader=b})}}
10G.prototype.load=function(){let a=this;this.pending.forEach(function(b){b.src||(b.addEventListener("load",function(){b.classList.remove("loadplus-hidden");var c=a.pending.indexOf(b);0<=c&&a.pending.splice(c,1);0==a.pending.length&&(c=a.a.parentNode)&&c.removeChild(a.a)}),aa(b),delete b.preloader)})};G.prototype.load=G.prototype.load;function ba(a){a=a||{};for(const b in JSON.parse(JSON.stringify(t)))a[b]=a[b]||t[b];return a}
11function ca(a){let b=a.length;for(;0!==b;){let c=Math.floor(Math.random()*b);--b;let d=a[b];a[b]=a[c];a[c]=d}return a}function H(a){["left","right","top","bottom"].forEach(function(b){a.style.removeProperty(b)})}function I(a){a&&a.forEach(function(b){let c=b.parentNode;c&&c.removeChild(b)})}function J(a){return a.map(function(b){return b.cloneNode(!0)})}
12(function(){const a=new Map([["left",{x:-1,y:0}],["right",{x:1,y:0}],["top",{x:0,y:-1}],["bottom",{x:0,y:1}]]);let b=[];(new Map([["linear",[{t:0,p:0},{t:100,p:100}]],["elastic",[{t:0,p:0},{t:4,p:.1},{t:8,p:.1},{t:18,p:-.5},{t:20,p:-.5},{t:28,p:2.4},{t:30,p:2.4},{t:38,p:-10},{t:40,p:-10},{t:60,p:110},{t:62,p:110},{t:70,p:97.6},{t:72,p:97.6},{t:80,p:100.5},{t:82,p:100.5},{t:90,p:99.9},{t:92,p:99.9},{t:100,p:100}]],["bounce",[{t:0,p:0},{t:12,p:10.89},{t:24,p:43.56},{t:36,p:98},{t:54,p:75},{t:74,p:98.4},
13{t:82,p:93.75},{t:92,p:99.3},{t:96,p:98.5},{t:100,p:100}]]])).forEach(function(d,e){a.forEach(function(l,h){for(let g=1;10>g;++g)b.push("@keyframes slideplus-push-"+e+"-"+h+"-"+g+"{\n"+d.map(function(m){return m.t+"%{transform:translate("+m.p*l.x/g+"%,"+m.p*l.y/g+"%);}"}).join("\n")+"\n}")})});let c=document.createElement("style");c.type="text/css";c.textContent=b.join("\n");document.head.appendChild(c)})();function da(a,b){this.b=a;this.a=b}
14function K(a,b,c){function d(f,n){f.style.setProperty("aspect-ratio",n.naturalWidth+" / "+n.naturalHeight)}function e(f){let n=w();n.classList.add("slideplus-stripe");n.classList.add("slideplus-timing-"+h.a.timing);for(let r=0;r<m;++r){let y=w();for(let z=0;z<k;++z){let A=w();A.classList.add("slideplus-slot");A.classList.add("slideplus-"+h.a.captions);let F=w();F.classList.add("slideplus-content");A.appendChild(F);let u=w();u.classList.add("slideplus-caption");y.appendChild(A);f.push(new da(F,u))}n.appendChild(y)}return n}
15function l(f){function n(u,B,ea,fa){let C=document.createElement("a");C.href="#";C.classList.add(B);C.innerHTML="<span>"+ea+"</span>";C.addEventListener("click",function(ha){ha.preventDefault();fa()});u.appendChild(C);u.appendChild(document.createTextNode(" "));return C}function r(u,B){n(z,"slideplus-"+u,"",B)}function y(u,B){return n(A,"slideplus-pager",""+B,function(){u!=h.c&&L(h,u)})}let z=w();z.classList.add("slideplus-navigation");z.dir=x;let A=document.createElement("span");A.classList.add("slideplus-paging");
16r("first",h.o.bind(h));r("previous",h.i.bind(h));z.appendChild(A);r("next",h.g.bind(h));r("last",h.s.bind(h));z.classList.add("slideplus-"+f);f=h.f.length;const F=M(h);for(let u=0,B=1;u<f;u+=F,++B)y(u,B);return z}let h=this;if(a){c=c||function(){return null};var g=a;"noscript"===a.tagName.toLowerCase()&&(g=w(),g.innerHTML=a.innerText);this.a=ba(b);this.c=0;g=[].slice.call(g.getElementsByTagName("li"));this.a.random&&(g=ca(g));this.A=g.map(c);this.f=c=g.map(function(f){let n=w(),r=f.querySelector("img");
17r&&(r.complete?d(n,r):r.addEventListener("load",function(){d(n,r)}));for(let y=f.firstChild;y;y=f.firstChild)n.appendChild(y);return n});var m=this.a.rows,k=this.a.cols;g=this.a.loop;m=Math.max(1,m);k=Math.max(1,k);c.length<=m*k&&(g=!1);this.a.rows=m;this.a.cols=k;this.a.loop=g;var v=this.a.orientation,x=this.a.dir,p=[];if(c.length<2*m*k)for(;p.length<2*m*k;
17)p=p.concat(J(c));else g&&(p=J(c.slice(0,m*k)),p.length=c.length-m*k,p=p.concat(c.slice(-m*k)));this.l=p;b.lazyload&&(this.u=c.map(function(f){return new G(f)}));
18this.w=b=[];b=e(b);b.addEventListener("animationend",function(){N(h)});this.h=b;this.v=g=[];g=e(g);g.classList.add("slideplus-successor");g.classList.add("slideplus-hidden");this.b=g;var q=w();q.classList.add("slideplus-viewport");q.classList.add("slideplus-"+v);q.appendChild(b);q.appendChild(g);var D,V;q.addEventListener("touchstart",function(f){f=f.changedTouches[0];D=f.pageX;V=f.pageY});q.addEventListener("touchend",function(f){function n(r,y){50<=y-r?h.i.call(h):50<=r-y&&h.g.call(h)}f=f.changedTouches[0];
19"horizontal"===v?n(D,f.pageX):"vertical"===v&&n(V,f.pageY)});q.addEventListener("mouseenter",function(){var f=h;f.j&&(f.j=!1,O(f))});q.addEventListener("mouseleave",function(){P(h)});b=w();b.classList.add("slideplus-previous");b.classList.add("slideplus-button");b.addEventListener("click",function(f){f.preventDefault();h.i()});q.appendChild(b);b=w();b.classList.add("slideplus-next");b.classList.add("slideplus-button");b.addEventListener("click",function(f){f.preventDefault();h.g()});q.appendChild(b);
20this.a.protection&&(document.addEventListener("contextmenu",function(f){q.contains(f.target)&&f.preventDefault()}),document.addEventListener("dragstart",function(f){q.contains(f.target)&&f.preventDefault()}));b=l("top");g=l("bottom");this.m=p=w();p.classList.add("slideplus-container");p.dir=x;(c=c.length>m*k)&&p.appendChild(b);p.appendChild(q);c&&p.appendChild(g);a.parentNode.replaceChild(p,a);Q(this);N(this);0<this.a.delay&&P(h)}}function R(a,b){return 0<=b&&b<a.f.length}
21function M(a){const b=a.a.rows,c=a.a.cols,d=a.a.orientation;a=a.a.step;let e=0;"horizontal"===d?e="single"===a?b:b*c:"vertical"===d&&(e="single"===a?c:b*c);return e}function S(a,b,c){[].forEach.call(a.m.querySelectorAll(b),function(d){c(d)})}function T(a,b){S(a,b,function(c){c.classList.add("slideplus-hidden")})}function U(a,b){S(a,b,function(c){c.classList.remove("slideplus-hidden")})}
22function Q(a){const b=a.f.length,c=b>a.a.rows*a.a.cols,d=M(a);if(!a.a.loop||2>b)c&&0<a.c?(U(a,".slideplus-first"),U(a,".slideplus-previous")):(T(a,".slideplus-first"),T(a,".slideplus-previous")),c&&R(a,a.c+d)?(U(a,".slideplus-next"),U(a,".slideplus-last")):(T(a,".slideplus-next"),T(a,".slideplus-last"));S(a,".slideplus-pager",function(l){l.classList.remove("slideplus-current")});const e=Math.floor(a.c/d);[].forEach.call(a.m.querySelectorAll(".slideplus-paging"),function(l){l.querySelectorAll(".slideplus-pager")[e].classList.add("slideplus-current")})}
23function W(a,b){a=a.f.length;return(b%a+a)%a}
24function X(a,b,c){var d=a.a.layout;if("natural"===d){var e=a.a.orientation;"horizontal"===e?d="column":"vertical"===e&&(d="row")}e=a.a.rows;const l=a.a.cols,h=a.a.loop;let g=0,m=0;"row"===d?(g=l,m=1):"column"===d&&(g=1,m=e);for(let x=0,p=c;x<e;++x,p+=g)for(let q=0,D=p;q<l;++q,D+=m){c=W(a,D);var k=a.f[c];d=null;if(k.parentNode){if(h)for(k=c;k<a.l.length&&(!(d=a.l[k])||d.parentNode);k+=a.f.length);}else if(h||R(a,D))d=k;var v=b[x*l+q];k=v.a;k.parentNode&&k.parentNode.removeChild(k);d&&(v=v.b,v.appendChild(d),
25c=a.A[c],k.innerHTML=c||"",c&&(c=a.a.captions,("top"===c||"bottom"===c?v.firstChild:v.parentNode).appendChild(k)))}}function N(a){a.h.style.removeProperty("animation-name");a.b.style.removeProperty("animation-name");a.b.classList.add("slideplus-hidden");I(a.f);I(a.l);X(a,a.w,a.c);var b=a.a.rows;const c=a.a.cols,d=a.c;var e=d-b*c;b=d+2*b*c;a.a.loop||(e=Math.max(0,e),b=Math.min(a.f.length,b));if(a.u)for(;e<b;++e)a.u[W(a,e)].load();Y(a)}
26function Z(a,b,c,d){if(a.b.classList.contains("slideplus-hidden")){O(a);var e=a.c+b*M(a);if(a.a.loop||R(a,e))if("fade"===a.a.transition){var l=a.f.length;L(a,(e+l)%l)}else{var h=a.a.rows,g=a.a.cols,m=a.a.orientation,k=a.a.step,v=l="",x=0;"horizontal"===m?(x="single"===k?g:1,l=c,v=d):"vertical"===m&&(x="single"===k?h:1,l=d,v=c);X(a,a.v,a.c+b*h*g);H(a.b);b=a.a.timing;x="slideplus-push-"+("elastic"===b?"elastic":"bounce"===b?"bounce":"linear")+"-"+l+"-"+x;a.h.style.setProperty("animation-name",x);a.b.style.setProperty("animation-name",
27x);a.b.style[l]="100%";a.b.style[v]="0";a.b.classList.remove("slideplus-hidden");a.c=W(a,e);Q(a)}}}function L(a,b){b!=a.c&&a.b.classList.contains("slideplus-hidden")&&(O(a),X(a,a.v,b),H(a.b),a.b.style.top="0",a.b.style.left="0",a.h.style.animationName="slideplus-fade-out",a.b.style.animationName="slideplus-fade-in",a.b.classList.remove("slideplus-hidden"),a.c=b,Q(a))}K.prototype.o=function(){L(this,0)};K.prototype.i=function(){Z(this,-1,"ltr"==this.a.dir?"right":"left","bottom")};
28K.prototype.g=function(){Z(this,1,"ltr"==this.a.dir?"left":"right","top")};K.prototype.s=function(){const a=M(this),b=this.f.length,c=b%a;L(this,b-(0!=c?c:a))};K.prototype.first=K.prototype.o;K.prototype.previous=K.prototype.i;K.prototype.next=K.prototype.g;K.prototype.last=K.prototype.s;function P(a){a.j||(a.j=!0,Y(a))}
29function Y(a){if(a.j&&!a.timeout){const b=a.a.delay;0<b&&(a.timeout=window.setInterval(function(){let c=a.h.getBoundingClientRect();for(let d=0;2>=d;++d)for(let e=0;2>=e;
29++e){let l=document.elementFromPoint(c.left+d*c.width/2,c.top+e*c.height/2);a.m.contains(l)&&a.g()}},b))}}function O(a){a.timeout&&(window.clearInterval(a.timeout),a.timeout=null)}K.discover=function(a,b){[].forEach.call(document.querySelectorAll("ul.slideplus, noscript.slideplus"),function(c){new K(c,a,b)})};
30window.SlidePlusSlider=K;window.Preloader=G;}).call(this);

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.