AlkantarClanX12

Your IP : 18.226.17.251


Current Path : /home/thanudqk/shenpokertour.com/staging/assets/js/
Upload File :
Current File : /home/thanudqk/shenpokertour.com/staging/assets/js/acmeticker.min.js

!function(t){"use strict";t.fn.AcmeTicker=function(e){let n,i,o=t.extend({},t.fn.AcmeTicker.defaults,e),c=t(this),r=!1;function a(){switch(o.type){case"vertical":case"horizontal":l();break;case"marquee":!function(){let e,n,i,r=o.speed,a=o.direction,l="left",s=0,u=!1;function f(t,o){c.animate({[l]:"-="+t},o,"linear",function(){c.css({[l]:e}),f(n,i)})}function p(){let t=c.offset(),e="right"===a?s-t.left:t.left,n=e+s,i=n/r;f(n,i)}(function(){c.css({position:"absolute"}),c.find("li").css({display:"inline-block",marginRight:"10px"});let o=c.find("li");e=c.parent().outerWidth(!0),"right"===a&&(l="right"),c.width(1e4),o.each(function(){s+=t(this).outerWidth(!0)+5}),c.width(s),i=(n=s+e)/r,f(s,s/r)})(),o.controls.toggle&&o.controls.toggle.on("click",function(e){console.log("mToggle"),u=!u,t(document).trigger("acmeTickerToggle",c,u),u?c.stop():p()}),o.pauseOnHover&&c.on("mouseenter",function(){c.stop()}).on("mouseleave",function(){p()});o.pauseOnFocus&&c.on("focusin",function(){c.stop()}).on("focusout",function(){p()})}();break;case"typewriter":s()}}function l(t=!1){let e=o.speed,i=o.autoplay,a=o.direction;if(t&&(e=0,i=0,clearInterval(n),n=!1),n)return!1;n=setInterval(function(){if(r)return clearInterval(n),n=!1,!1;let i,s,u,f;i=c.find("li:first"),s="up"===a||"right"===a?"-=":"+=","horizontal"===o.type?(u="left",f=i.outerWidth(!0)):(u="margin-top",f=i.outerHeight(!0)),"prev"===t?c.find("li:last").detach().prependTo(c):i.detach().appendTo(c),c.find("li").css({opacity:"0",display:"none"}),c.find("li:first").css({opacity:"1",position:"absolute",display:"block",[u]:s+f+"px"}),c.find("li:first").animate({[u]:"0px"},e,function(){clearInterval(n),n=!1,l()})},i)}function s(t=!1){if(r)return!1;t&&(clearInterval(n),n=!1,clearTimeout(i),i=!1,"prev"===t?c.find("li:last").detach().prependTo(c):c.find("li:first").detach().appendTo(c));let e=o.speed,a=o.autoplay,l=c.find("li:first"),u=l.children(),f=0;l.attr("data-text")&&u.text(l.attr("data-text"));let p=l.text();function d(){c.find("li:first").detach().appendTo(c),clearTimeout(i),i=!1,s()}c.find("li").css({opacity:"0",display:"none"}),n||(n=setInterval(function(){f++;let t=p.substring(0,f);l.attr("data-text")||l.attr("data-text",p),f<=p.length?(u.text(t),l.css({opacity:"1",display:"block"})):(clearInterval(n),n=!1,i=setTimeout(d,a))},e))}if(c.wrap("<div class='acmeticker-wrap'></div>"),c.parent().css({position:"relative"}),c.children("li").not(":first").hide(),a(),"marquee"!==o.type){function u(){r||a()}o.controls.prev&&o.controls.prev.on("click",function(t){switch(t.preventDefault(),o.type){case"typewriter":s("prev");break;default:l("prev")}}),o.controls.next&&o.controls.next.on("click",function(t){switch(t.preventDefault(),o.type){case"typewriter":s("next");break;default:l("next")}}),o.controls.toggle&&o.controls.toggle.on("click",function(e){e.preventDefault(),r=!r,t(document).trigger("acmeTickerToggle",c,r),u()}),o.pauseOnHover&&c.on("mouseenter",function(){r=!0,u()}).on("mouseleave",function(){r=!1,u()}),o.pauseOnFocus&&c.on("focusin",function(){r=!0,u()}).on("focusout",function(){r=!1,u()})}},t.fn.AcmeTicker.defaults={type:"horizontal",autoplay:2e3,speed:50,direction:"up",pauseOnFocus:!0,pauseOnHover:!0,controls:{prev:"",next:"",toggle:""}}}(jQuery);
//# sourceMappingURL=acmeticker.min.js.map