PageSourceSearch

https://www.tecc.com.my/catalog/view/theme/pavilion/javascript/libs.js

js tecc.com.my collected 2026-10-06 13:17:36 UTC 17,200 bytes, 25 lines download raw bytes

1// jQuery Cookie Plugin v1.4.1 | (c)2014 Klaus Hartl | https://github.com/carhartl/jquery-cookie | Licensed under the MIT License
2(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a);}else{if(typeof exports==="object"){a(require("jquery"));}else{a(jQuery);}}}(function(f){var a=/\+/g;function d(i){return b.raw?i:encodeURIComponent(i);}function g(i){return b.raw?i:decodeURIComponent(i);}function h(i){return d(b.json?JSON.stringify(i):String(i));}function c(i){if(i.indexOf('"')===0){i=i.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\");}try{i=decodeURIComponent(i.replace(a," "));return b.json?JSON.parse(i):i;}catch(j){}}function e(j,i){var k=b.raw?j:c(j);return f.isFunction(i)?i(k):k;}var b=f.cookie=function(q,p,v){if(arguments.length>1&&!f.isFunction(p)){v=f.extend({},b.defaults,v);if(typeof v.expires==="number"){var r=v.expires,u=v.expires=new Date();u.setTime(+u+r*86400000);}return(document.cookie=[d(q),"=",h(p),v.expires?"; expires="+v.expires.toUTCString():"",v.path?"; path="+v.path:"",v.domain?"; domain="+v.domain:"",v.secure?"; secure":""].join(""));}var w=q?undefined:{};var s=document.cookie?document.cookie.split("; "):[];for(var o=0,m=s.length;o<m;o++){var n=s[o].split("=");var j=g(n.shift());var k=n.join("=");if(q&&q===j){w=e(k,p);break;}if(!q&&(k=e(k))!==undefined){w[j]=k;}}return w;};b.defaults={};f.removeCookie=function(j,i){if(f.cookie(j)===undefined){return false;}f.cookie(j,"",f.extend({},i,{expires:-1}));return !f.cookie(j);};}));
3
4// tinytim.js v0.3.0 (http://github.com/premasagar/tim) | Licensed under the MIT License
5jQuery.tim=(function(){var path="[a-z0-9_][\\.a-z0-9_]*",start="{{",end="}}",undef;return function(template,data){var pattern=new RegExp(start+"\\s*("+path+")\\s*"+end,"gi");return template.replace(pattern,function(tag,token){var path=token.split("."),len=path.length,lookup=data,i=0;for(;i<len;i++){lookup=lookup[path[i]];if(lookup===undef){throw new Error("tim: '"+path[i]+"' not found in "+tag);}if(i===len-1){return lookup;}}});};}());
6
7// jQuery Mobile v1.4.0 | (c)2010, 2013 jQuery Foundation, Inc. | jquery.org/license
8(function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,n){e.extend(e.support,{orientation:"orientation"in t&&"onorientationchange"in t})})(e),function(e){e.event.special.throttledresize={setup:function(){e(this).bind("resize",n)},teardown:function(){e(this).unbind("resize",n)}};var t=250,n=function(){s=(new Date).getTime(),o=s-r,o>=t?(r=s,e(this).trigger("throttledresize")):(i&&clearTimeout(i),i=setTimeout(n,t-o))},r=0,i,s,o}(e),function(e,t){function p(){var e=s();e!==o&&(o=e,r.trigger(i))}var r=e(t),i="orientationchange",s,o,u,a,f={0:!0,180:!0},l,c,h;if(e.support.orientation){l=t.innerWidth||r.width(),c=t.innerHeight||r.height(),h=50,u=l>c&&l-c>h,a=f[t.orientation];if(u&&a||!u&&!a)f={"-90":!0,90:!0}}e.event.special.orientationchange=e.extend({},e.event.special.orientationchange,{setup:function(){if(e.support.orientation&&!e.event.special.orientationchange.disabled)return!1;o=s(),r.bind("throttledresize",p)},teardown:function(){if(e.support.orientation&&!e.event.special.orientationchange.disabled)return!1;r.unbind("throttledresize",p)},add:function(e){var t=e.handler;e.handler=function(e){return e.orientation=s(),t.apply(this,arguments)}}}),e.event.special.orientationchange.orientation=s=function(){var r=!0,i=n.documentElement;return e.support.orientation?r=f[t.orientation]:r=i&&i.clientWidth/i.clientHeight<1.1,r?"portrait":"landscape"},e.fn[i]=function(e){return e?this.bind(i,e):this.trigger(i)},e.attrFn&&(e.attrFn[i]=!0)}(e,this)});
9
10// jQuery Within Viewport v0.2 | (c)2011 Craig Patik | http://patik.com/
11(function(d){var withinViewport=function(elem,settings){var result=false;try{if(typeof elem!=="object"||elem.nodeType!==1){throw new Error("First argument should be a DOM element")}var arr,i,side,metadata=elem.getAttribute("data-withinviewport-settings")&&window.JSON?JSON.parse(elem.getAttribute("data-withinviewport-settings")):{}
11,settings=typeof settings==="string"?{sides:settings}:settings||{},config={sides:settings.sides||metadata.sides||withinViewport.defaults.sides||"all",top:settings.top||metadata.top||withinViewport.defaults.top||0,right:settings.right||metadata.right||withinViewport.defaults.right||0,bottom:settings.bottom||metadata.bottom||withinViewport.defaults.bottom||0,left:settings.left||metadata.left||withinViewport.defaults.left||0},isWithin={top:function(){return elemOffset[1]>=scrollOffset[1]+config.top},right:function(){var width=window.innerWidth||document.documentElement.clientWidth;return elemOffset[0]+elem.offsetWidth<=width+scrollOffset[0]-config.right},bottom:function(){var height=window.innerHeight||document.documentElement.clientHeight;return elemOffset[1]+elem.offsetHeight<=height+scrollOffset[1]-config.bottom},left:function(){return elemOffset[0]>=scrollOffset[0]+config.left},all:function(){return(isWithin.top()&&isWithin.right()&&isWithin.bottom()&&isWithin.left())}},scrollOffset=(function(){var x=d.body.scrollLeft,y=d.body.scrollTop;if(y==0){if(window.pageYOffset){y=window.pageYOffset}else{y=(d.body.parentElement)?d.body.parentElement.scrollTop:0}}if(x==0){if(window.pageXOffset){x=window.pageXOffset}else{x=(d.body.parentElement)?d.body.parentElement.scrollLeft:0}}return[x,y]})(),elemOffset=(function(){var el=elem,x=0,y=0;if(el.offsetParent){x=el.offsetLeft;y=el.offsetTop;while(el=el.offsetParent){x+=el.offsetLeft;y+=el.offsetTop}}return[x,y]})();arr=config.sides.split(" ");i=arr.length;while(i--){side=arr[i].toLowerCase();if(/top|right|bottom|left|all/.test(side)){if(isWithin[side]()){result=true}else{return false}}}return result}catch(e){}finally{return result}};withinViewport.prototype.defaults={sides:"all",top:0,right:0,bottom:0,left:0};withinViewport.defaults=withinViewport.prototype.defaults;window.withinViewport=withinViewport;var arr=["top","right","bottom","left"];var i=arr.length;while(i--){var side=arr[i];withinViewport.prototype[side]=function(element){return withinViewport(element,side)};withinViewport[side]=withinViewport.prototype[side]}})(document);
12(function($,window,undefined){$.fn.withinViewport=function(settings){if(typeof settings==="string"){settings={sides:settings}}var opts=$.extend({},settings,{sides:"all"}),elems=[];this.each(function(){if(withinViewport(this,opts)){elems.push(this)}});return $(elems)};$.extend($.expr[":"],{"within-viewport":function(element){return withinViewport(element,"all")}});$.fn.withinViewportTop=function(settings){if(typeof settings==="string"){settings={sides:settings}}var opts=$.extend({},settings,{sides:"top"}),elems=[];this.each(function(){if(withinViewport(this,opts)){elems.push(this)}});return $(elems)};$.fn.withinViewportRight=function(settings){if(typeof settings==="string"){settings={sides:settings}}var opts=$.extend({},settings,{sides:"right"}),elems=[];this.each(function(){if(withinViewport(this,opts)){elems.push(this)}});return $(elems)};$.fn.withinViewportBottom=function(settings){if(typeof settings==="string"){settings={sides:settings}}var opts=$.extend({},settings,{sides:"bottom"}),elems=[];this.each(function(){if(withinViewport(this,opts)){elems.push(this)}});return $(elems)};$.fn.withinViewportLeft=function(settings){if(typeof settings==="string"){settings={sides:settings}}var opts=$.extend({},settings,{sides:"left"}),elems=[];this.each(function(){if(withinViewport(this,opts)){elems.push(this)}});return $(elems)};$.extend($.expr[":"],{"within-viewport-top":function(element){return withinViewport(element,"top")},"within-viewport-right":function(element){return withinViewport(element,"right")},"within-viewport-bottom":function(element){return withinViewport(element,"bottom")},"within-viewport-left":function(element){return withinViewport(element,"left")}})})(jQuery,window);
13
14// jQuery Noty v1.1.1 | Licensed under the MIT License
15(function(b){b.noty=function(d,e){var a=this,c=null,g=!1;a.init=function(c){a.options=b.extend({},b.noty.defaultOptions,c);a.options.type=a.options.cssPrefix+a.options.type;a.options.id=a.options.type+"_"+(new Date).getTime();a.options.layout=a.options.cssPrefix+"layout_"+a.options.layout;a.options.custom.container&&(e=a.options.custom.container);g="object"===b.type(e)?!0:!1;return a.addQueue()};a.addQueue=function(){var c=-1==b.inArray(a.options.layout,b.noty.growls)?!1:!0;c||(a.options.force?b.noty.queue.unshift({options:a.options}
15): b.noty.queue.push({options:a.options}));return a.render(c)};a.render=function(d){var f=g?e.addClass(a.options.theme+" "+a.options.layout+" noty_custom_container"):b("body");if(d)0==b("ul.noty_cont."+a.options.layout).length&&f.prepend(b("<ul/>").addClass("noty_cont "+a.options.layout)),f=b("ul.noty_cont."+a.options.layout);else if(b.noty.available){var h=b.noty.queue.shift();if("object"===b.type(h))b.noty.available=!1,a.options=h.options;else return b.noty.available=!0,a.options.id}else return a.options.id; a.container=f;a.bar=b('<div class="noty_bar"/>').attr("id",a.options.id).addClass(a.options.theme+" "+a.options.layout+" "+a.options.type);c=a.bar;c.append(a.options.template).find(".noty_text").html(a.options.text);c.data("noty_options",a.options);a.options.closeButton?c.addClass("noty_closable").find(".noty_close").show():c.find(".noty_close").remove();c.find(".noty_close").bind("click",function(){c.trigger("noty.close")});a.options.buttons&&(a.options.closeOnSelfClick=a.options.closeOnSelfOver= !1);a.options.closeOnSelfClick&&c.bind("click",function(){c.trigger("noty.close")}).css("cursor","pointer");a.options.closeOnSelfOver&&c.bind("mouseover",function(){c.trigger("noty.close")}).css("cursor","pointer");a.options.buttons&&($buttons=b("<div/>").addClass("noty_buttons"),c.find(".noty_message").append($buttons),b.each(a.options.buttons,function(a,d){bclass=d.type?d.type:"gray";$button=b("<button/>").addClass(bclass).html(d.text).appendTo(c.find(".noty_buttons")).bind("click",function(){b.isFunction(d.click)&& d.click.call($button,c)})}));return a.show(d)};a.show=function(d){a.options.modal&&b("<div/>").addClass("noty_modal").addClass(a.options.theme).prependTo(b("body")).fadeIn("fast");c.close=function(){return this.trigger("noty.close")};d?a.container.prepend(b("<li/>").append(c)):a.container.prepend(c);("noty_layout_topCenter"==a.options.layout||"noty_layout_center"==a.options.layout)&&b.noty.reCenter(c);c.bind("noty.setText",function(a,d){c.find(".noty_text").html(d);b.noty.reCenter(c)});c.bind("noty.getId", function(){return c.data("noty_options").id});c.one("noty.close",function(){c.data("noty_options").modal&&b(".noty_modal").fadeOut("fast",function(){b(this).remove()});c.clearQueue().stop().animate(c.data("noty_options").animateClose,c.data("noty_options").close_speed,c.data("noty_options").easing,c.data("noty_options").onClose).promise().done(function(){-1<b.inArray(c.data("noty_options").layout,b.noty.growls)?c.parent().remove():(c.remove(),b.noty.available=!0,a.render(!1))})});c.animate(a.options.animateOpen, a.options.speed,a.options.easing,a.options.onShow);a.options.timeout&&c.delay(a.options.timeout).promise().done(function(){c.trigger("noty.close")});return a.options.id};return a.init(d)};b.noty.get=function(d){return b("#"+d)};b.noty.close=function(d){b.noty.get(d).trigger("noty.close")};b.noty.setText=function(d,e){b.noty.get(d).trigger("noty.setText",e)};b.noty.closeAll=function(){b.noty.clearQueue();b(".noty_bar").trigger("noty.close")};b.noty.reCenter=function(d){d.css({left:(b(window).width()- d.outerWidth())/2+"px"})};b.noty.clearQueue=function(){b.noty.queue=[]};b.noty.queue=[];b.noty.growls=["noty_layout_bottomCenter","noty_layout_topCenter","noty_layout_center","noty_layout_topLeft","noty_layout_topRight","noty_layout_bottomLeft","noty_layout_bottomRight"];b.noty.available=!0;b.noty.defaultOptions={layout:"top",theme:"noty_theme_default",animateOpen:{height:"toggle"},animateClose:{height:"toggle"},easing:"swing",text:"",type:"alert",speed:500, close_speed:500,timeout:5E3,closeButton:!1,closeOnSelfClick:!0,closeOnSelfOver:!1,force:!1,onShow:!1,onClose:!1,buttons:!1,modal:!1, template:'<div class="noty_message"><div class="noty_text"></div><div class="noty_close tb_button_remove tb_button tb_bg_str_3 tb_text_str_6 tb_h_20 tb_fixed"></div></div>',cssPrefix:"noty_",custom:{container:null}};b.fn.noty=function(d){return this.each(function(){new b.noty(d,b(this))})}})(jQuery);function noty(b){return jQuery.noty(b)};
16
17// jQuery MouseWheel v3.1.11 | (c)2013 Brandon Aaron | (http://brandon.aaron.sh) | Licensed under the MIT License.
18!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1
18),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b)["offsetParent"in a.fn?"offsetParent":"parent"]();return c.length||(c=a("body")),parseInt(c.css("fontSize"),10)},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
19
20// hoverIntent r7 2013.03.11 | (c) 2007, 2013 Brian Cherne | Licensed under the MIT License.
21(function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:7,timeout:0};if(typeof handlerIn==="object"){cfg=$.extend(cfg,handlerIn);}else{if($.isFunction(handlerOut)){cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector});}else{cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});}}var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).off("mousemove.hoverIntent",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).on("mousemove.hoverIntent",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).off("mousemove.hoverIntent",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector);};})(jQuery);
22
23window.hasOwnProperty = window.hasOwnProperty || Object.prototype.hasOwnProperty;
24
25$.fn.outerHTML=function(){return(!this.length)?this:(this[0].outerHTML||(function(a){var c=document.createElement("div");c.appendChild(a.cloneNode(true));var b=c.innerHTML;c=null;return b})(this[0]))};function empty(b){var a;var c;if(b===""||b===0||b==="0"||b===null||b===false||b===c){return true}if(typeof b=="object"){for(a in b){return false}return true}return false};

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.