PageSourceSearch

https://mohe.gov.my/media/smartslider3/src/SmartSlider3Pro/Widget/…/dist/w-arrow-reveal.min.js?ver=1c12b24c

js mohe.gov.my collected 2026-10-01 10:18:40 UTC 4,089 bytes, 1 lines download raw bytes

1!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s=t.document,h=(s.documentElement,t.setTimeout),n=t.clearTimeout,o=i._N2,c=(t.requestAnimationFrame,Object.assign,function(t,i,s){t.style.setProperty(i,s)}),a=function(t,i,s,h){h=h||{},t.addEventListener(i,s,h)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;!function(t){if("complete"===s.readyState||"interactive"===s.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener){const i=()=>{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)}((function(){s.body})),o.d("SmartSliderWidgetArrowReveal","SmartSliderWidget",(function(){function t(t,i,s){this.ts=32,this.ys=s,o.SmartSliderWidget.prototype.constructor.call(this,t,i,"#"+t.elementID+"-arrow-"+i)}function i(i,s){this.Cs=1,t.prototype.constructor.call(this,i,"previous",s)}function s(i,s){this.Cs=-1,t.prototype.constructor.call(this,i,"next",s)}return t.prototype=Object.create(o.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){a(this.widget,"click",function(e){e.stopPropagation(),this.action()}.bind(this)),this.ks=o.MW.I(this.widget,{width:this.ts}),this.cn=this.widget.querySelector(".nextend-arrow-image"),this.hi=o.MW.I(this.cn,{opacity:0}),this.Os=this.widget.querySelector(".nextend-arrow-title"),this.js={focus:!1,mouse:!1},a(this.widget,"focus",this.mouseEnter.bind(this,"focus")),a(this.widget,"blur",this.mouseLeave.bind(this,"focus")),a(this.widget,"mouseenter",this.mouseEnter.bind(this,"mouse")),a(this.widget,"mouseleave",this.mouseLeave.bind(this,"mouse")),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){this.onRefresh(),a(this.slider.sliderElement,"SliderResize",this.onRefresh.bind(this)),a(this.slider.sliderElement,"CurrentSlideChanged",this.onRefresh.bind(this)),a(this.slider.sliderElement,"visibleSlidesChanged",this.onRefresh.bind(this)),a(this.slider.sliderElement,"mainAnimationComplete",this.onRefresh.bind(this))},t.prototype.onRefresh=function(){var t=this.slider.currentSlide;if(this.slider.getDirectionPrevious()===this.key){var i=t.getPrevious();if(i){var s=i.getThumbnail();s&&c(this.cn,"background-image","url("+s+")"),this.Os&&(this.Os.innerHTML=i.getTitle())}}else if(this.slider.getDirectionNext()===this.key){var h=t.getNext();if(h){var n=h.getThumbnail();n&&c(this.cn,"background-image","url("+n+")"),this.Os&&(this.Os.innerHTML=h.getTitle())}}},t.prototype.mouseEnter=function(t){if(!this.js.mouse&&!this.js.focus)switch(this.tween&&this.tween.pause(),this.ys){case"turn":this.tween=o.J.to(this.hi,.4,{rotationY:0,opacity:1});break;case"fade":this.ks.overflow="visible",this.tween=o.J.to(this.hi,.4,{opacity:1});break;default:this.tween=new o.H,this.tween.to(this.ks,.4,{width:(i=this.cn,i.getBoundingClientRect().width)},0),this.tween.to(this.hi,.4,{opacity:1},0)}var i;this.js[t]=!0},t.prototype.mouseLeave=function(t){if(this.js[t]=!1,!this.js.mouse&&!this.js.focus)switch(this.tween&&this.tween.pause(),this.ys){case"turn":this.tween=o.J.to(this.hi,.4,{rotationY:90*this.Cs,opacity:0});break;case"fade":this.tween=o.J.to(this.hi,.4,{opacity:0}),this.tween.eventCallback("onComplete",function(){this.ks.overflow="hidden"}.bind(this));break;default:this.tween=new o.H,this.tween.to(this.ks,.4,{width:this.ts},0),this.tween.to(this.hi,.4,{opacity:0},0)}},i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.action=function(){this.slider.previousWithDirection()},s.prototype=Object.create(t.prototype),s.prototype.constructor=s,s.prototype.action=function(){this.slider.nextWithDirection()},function(t,h){this.previous=new i(t,h),this.next=new s(t,h)}}))}(window);

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.