Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/slider.js.tar
Назад
home/wuectly/www/modules/mod_djimageslider/assets/js/slider.js 0000604 00000017567 15245700355 0020706 0 ustar 00 /** * @version $Id$ * @package DJ-ImageSlider * @subpackage DJ-ImageSlider Component * @copyright Copyright (C) 2017 DJ-Extensions.com, All rights reserved. * @license DJ-Extensions.com Proprietary Use License * @author url: http://dj-extensions.com * @author email contact@dj-extensions.com * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu * */ !function(C){var t=function(r){r.data();var d=r.data("djslider"),i=r.data("animation");r.removeAttr("data-djslider"),r.removeAttr("data-animation");var h=C("#djslider"+d.id).css("opacity",0),u=C("#slider"+d.id).css("position","relative"),s="1"==d.css3&&function(t){var i=(document.body||document.documentElement).style;if(void 0===i)return!1;if("string"==typeof i[t])return t;v=["Moz","Webkit","Khtml","O","ms","Icab"],pu=t.charAt(0).toUpperCase()+t.substr(1);for(var n=0;n<v.length;n++)if("string"==typeof i[v[n]+pu])return"-"+v[n].toLowerCase()+"-"+t;return!1}("transition"),t="ontouchstart"in window||0<navigator.MaxTouchPoints||0<navigator.msMaxTouchPoints,p=u.children("li"),l=d.slide_size,g=d.visible_slides,f=l*p.length,y=p.length-g,b=0,n="1"==i.auto?1:0,o="1"==i.looponce?1:0,e=0,a=!1,m=[];if(2==d.slider_type?(p.css("position","absolute"),p.css("top",0),p.css("left",0),u.css("width",l),p.css("opacity",0),p.css("visibility","hidden"),C(p[0]).css("opacity",1),C(p[0]).css("visibility","visible"),s&&p.css(s,"opacity "+i.duration+"ms "+i.css3transition)):1==d.slider_type?(u.css("top",0),u.css("height",f),s&&u.css(s,"top "+i.duration+"ms "+i.css3transition)):(u.css(d.direction,0),u.css("width",f),s&&u.css(s,d.direction+" "+i.duration+"ms "+i.css3transition)),0<d.show_arrows&&(C("#next"+d.id).on("click",function(){"right"==d.direction?k():x()}).on("keydown",function(t){var i=t.which;13!=i&&32!=i||("right"==d.direction?k():x(),t.preventDefault(),t.stopPropagation())}),C("#prev"+d.id).on("click",function(){"right"==d.direction?x():k()}).on("keydown",function(t){var i=t.which;13!=i&&32!=i||("right"==d.direction?x():k(),t.preventDefault(),t.stopPropagation())})),0<d.show_buttons&&(C("#play"+d.id).on("click",function(){n=1,j()}).on("keydown",function(t){var i=t.which;13!=i&&32!=i||(n=1,j(),C("#pause"+d.id).focus(),t.preventDefault(),t.stopPropagation())}),C("#pause"+d.id).on("click",function(){n=0,j()}).on("keydown",function(t){var i=t.which;13!=i&&32!=i||(n=0,j(),C("#play"+d.id).focus(),t.preventDefault(),t.stopPropagation())})),r.on("mouseenter",function(){t||(e=1)}).on("mouseleave",function(){r.removeClass("focused"),e=0}).on("focus",function(){r.addClass("focused"),r.trigger("mouseenter")}).on("keydown",function(t){var i=t.which;37!=i&&39!=i||(39==i?"right"==d.direction?k():x():"right"==d.direction?x():k(),t.preventDefault(),t.stopPropagation())}),C(".djslider-end").on("focus",function(){r.trigger("mouseleave")}),r.djswipe(function(t,i){i.x<50||50<i.y||("left"==t.x?"right"==d.direction?k():x():"right"==t.x&&("right"==d.direction?x():k()))}),C("#cust-navigation"+d.id).length){var c=C("#cust-navigation"+d.id).find(".load-button");c.each(function(n){var s=C(this);s.on("click",function(t){a||s.hasClass("load-button-active")||I(n)}).on("keydown",function(t){var i=t.which;13!=i&&32!=i||(a||s.hasClass("load-button-active")||I(n),t.preventDefault(),t.stopPropagation())}),y<n&&s.css("display","none")})}function w(t){var i={x:t.width(),y:t.height()};if((0==i.x||0==i.y)&&t.is(":hidden")){for(var n,s,o=t.parent();o.is(":hidden");)o=(n=o).parent();s=o.width(),n&&(s-=parseInt(n.css("margin-left")),s-=parseInt(n.css("margin-right")),s-=parseInt(n.css("border-left-width")),s-=parseInt(n.css("border-right-width")),s-=parseInt(n.css("padding-left")),s-=parseInt(n.css("padding-right")));var e=t.clone();e.css({position:"absolute",visibility:"hidden","max-width":s}),C(document.body).append(e),i={x:e.width(),y:e.height()},e.remove()}return i}function _(){var t=w(r.parent()).x,i=parseInt(h.css("max-width")),n=w(h),s=n.x;t<s?s=t:s<=t&&(!i||s<i)&&(s=i<t?i:t),m[g]||(m[g]=n.x/n.y);var o=m[g],e=s/o;if(h.css("width",s),h.css("height",e),2==d.slider_type)u.css("width",s),p.css("width",s),p.css("height",e);else if(1==d.slider_type){var a=parseInt(C(p[0]).css("margin-bottom"));l=(e+a)/g,f=p.length*l+p.length,u.css("height",f),p.css("width",s),p.css("height",l-a),u.css("top",-l*b)}else{a="right"==d.direction?parseInt(C(p[0]).css("margin-left")):parseInt(C(p[0]).css("margin-right"));var c=Math.ceil(s/(d.slide_size+a));if(c!=g){if(g=c>d.visible_slides?d.visible_slides:c,y=p.length-g,C("#cust-navigation"+d.id).length)C("#cust-navigation"+d.id).find(".load-button").each(function(t){var i=C(this);y<t?i.css("display","none"):i.css("display","")});m[g]||(m[g]=(g*l-a)/n.y),e=s/(o=m[g]),h.css("height",e)}l=(s+a)/g,f=p.length*l+p.length,u.css("width",f),p.css("width",l-a),p.css("height",e),u.css(d.direction,-l*b),y<b&&I(y)}(0<d.show_buttons||0<d.show_arrows)&&(button_pos=C("#navigation"+d.id).position().top,button_pos<0?(r.css("padding-top",-button_pos),r.css("padding-bottom",0)):((buttons_height=0)<d.show_arrows&&(buttons_height=w(C("#next"+d.id)).y,buttons_height=Math.max(buttons_height,w(C("#prev"+d.id)).y)),0<d.show_buttons&&(buttons_height=Math.max(buttons_height,w(C("#play"+d.id)).y),buttons_height=Math.max(buttons_height,w(C("#pause"+d.id)).y)),padding=button_pos+buttons_height-e,0<padding?(r.css("padding-top",0),r.css("padding-bottom",padding)):(r.css("padding-top",0),r.css("padding-bottom",0))),buttons_margin=parseInt(C("#navigation"+d.id).css("margin-left"))+parseInt(C("#navigation"+d.id).css("margin-right")),buttons_margin<0&&w(C(window)).x<w(C("#navigation"+d.id)).x-buttons_margin&&(C("#navigation"+d.id).css("margin-left",0),C("#navigation"+d.id).css("margin-right",0))),P()}function x(){b<y?(I(b+1),o&&b==y&&(n=0,j())):I(0)}function k(){I(0<b?b-1:y)}function I(t){if(b!=t){if(2==d.slider_type){if(a)return;a=!0,prev_slide=b,b=t,function(t){C(p[b]).css("visibility","visible"),s?(C(p[b]).css("opacity",1),C(p[t]).css("opacity",0)):(C(p[b]).animate({opacity:1},i.duration,i.transition),C(p[t]).animate({opacity:0},i.duration,i.transition));setTimeout(function(){C(p[t]).css("visibility","hidden"),a=!1},i.duration)}(prev_slide)}else b=t,1==d.slider_type?s?u.css("top",-l*b):u.animate({top:-l*b},i.duration,i.transition):s?u.css(d.direction,-l*b):"right"==d.direction?u.animate({right:-l*b},i.duration,i.transition):u.animate({left:-l*b},i.duration,i.transition);var n;P(),n=b,C("#cust-navigation"+d.id).length&&c.each(function(t){var i=C(this);i.removeClass("load-button-active"),t==n&&i.addClass("load-button-active")})}}function j(){n?(C("#play"+d.id).css("display","none"),C("#pause"+d.id).css("display","block")):(C("#pause"+d.id).css("display","none"),C("#play"+d.id).css("display","block"))}function M(){r.css("background","none"),h.css("opacity",1),0<d.show_buttons&&(play_width=w(C("#play"+d.id)).x,C("#play"+d.id).css("margin-left",-play_width/2),pause_width=w(C("#pause"+d.id)).x,C("#pause"+d.id).css("margin-left",-pause_width/2),n?C("#play"+d.id).css("display","none"):C("#pause"+d.id).css("display","none")),function t(){setTimeout(function(){n&&!e&&x(),t()},i.delay)}()}function P(){p.each(function(t){var i=C(this).find("a[href], input, select, textarea, button");b<=t&&t<b+parseInt(g)?i.each(function(){C(this).removeProp("tabindex")}):i.each(function(){C(this).prop("tabindex","-1")})})}d.preload?setTimeout(M,d.preload):C(window).load(M),_(),C(window).on("resize",_),C(window).on("load",_)};C.fn.djswipe=C.fn.djswipe||function(t){var o=!1,a=null,c=null;return $el=C(this),$el.on("touchstart",function(t){o=!0;var i=t.originalEvent.changedTouches||e.originalEvent.touches;a={x:i[0].pageX,y:i[0].pageY}}),$el.on("touchend",function(){o=!1,c&&t(c.direction,c.offset),c=a=null}),$el.on("touchmove",function(t){var i,n,s;o&&(i=t.originalEvent.changedTouches||e.originalEvent.touches,n=i[0].pageX,s=i[0].pageY,c={direction:{x:n>a.x?"right":"left",y:s>a.y?"down":"up"},offset:{x:Math.abs(n-a.x),y:Math.abs(a.y-s)}})}),!0},C(document).ready(function(){C("[data-djslider]").each(function(){t(C(this))})})}(jQuery); home/wuectly/www/modules/mod_djimageslider/assets/slider.js 0000604 00000012463 15245700422 0020253 0 ustar 00 /** * @version $Id: slider.js 12 2014-01-24 10:20:16Z szymon $ * @package DJ-ImageSlider * @subpackage DJ-ImageSlider Component * @copyright Copyright (C) 2012 DJ-Extensions.com, All rights reserved. * @license DJ-Extensions.com Proprietary Use License * @author url: http://dj-extensions.com * @author email contact@dj-extensions.com * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu * */ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){1D.1Z=S 20({21:6(j,k){7 l=0;7 m=0;7 n=0;7 o=0;7 p=\'1E\'+j.3;7 q=k.22;7 r=0;7 s=0;7 t=1F;$(\'8\'+j.3).1b(\'1G\');7 u=$(\'1E\'+j.3).23(\'24\');4(1H.1I){7 v=S 25();26(7 i=0;i<j.1c;i++){v[i]=u[i];v[i].1b(\'1G\')}}u.1d(6(){l+=j.G;m++});n=m-j.1c;$(p).5(\'1J\',\'27\');7 w;4(j.17==2){u.5(\'1J\',\'28\');u.5(\'Y\',0);u.5(\'N\',0);$(p).5(\'O\',j.G);u.5(\'C\',0);u.5(\'1e\',\'1K\');u[0].5(\'C\',1);u[0].5(\'1e\',\'1L\');u.H(\'1p\',{T:\'C\',K:k.K})}9 4(j.17==1){$(p).5(\'Y\',0);$(p).5(\'Z\',l);w=S 10.11(p,{T:\'Y\',K:k.K,1f:k.1f,12:\'13\'})}9{$(p).5(\'N\',0);$(p).5(\'O\',l);w=S 10.11(p,{T:\'N\',K:k.K,1f:k.1f,12:\'13\'})}4(j.D==1){7 x=S 10.11(\'I\'+j.3,{T:\'C\',K:1g,12:\'13\'}).H(\'C\',0);7 y=S 10.11(\'P\'+j.3,{T:\'C\',K:1g,12:\'13\'}).H(\'C\',0)}4(j.14==1){7 z=S 10.11(\'1q\'+j.3,{T:\'C\',K:1g,12:\'13\'}).H(\'C\',0);7 A=S 10.11(\'1r\'+j.3,{T:\'C\',K:1g,12:\'13\'}).H(\'C\',0)}4(j.14){$(\'1q\'+j.3).U(\'18\',6(){4(j.D==1)1h();1i()});$(\'1r\'+j.3).U(\'18\',6(){4(j.D==1)1h();1s()})}4(j.D){$(\'I\'+j.3).U(\'18\',6(){1t();q=1});$(\'P\'+j.3).U(\'18\',6(){1t();q=0})}$(\'8-L\'+j.3).29({\'2a\':6(){4(j.D==1)1M();4(j.14==1){z.J(1);A.J(1)}r=1},\'2b\':6(){4(j.D==1)1h();4(j.14==1){z.J(0);A.J(0)}r=0},\'1N\':6(a){4(a.1O==\'N\'){1i()}9 4(a.1O==\'19\'){1s()}}});$(\'8-L\'+j.3).2c(\'1N:2d\',1P);4($(\'1u-Q\'+j.3)){7 B=$(\'1u-Q\'+j.3).2e(\'.1a-1j\');B.1d(6(a,b){a.U(\'18\',6(e){4(!t&&!a.2f(\'1a-1j-1v\')){15(b)}})})}6 F(a){1k a.2g(6(){1k 1D.F()})}6 1w(){7 a=$(\'8-L\'+j.3).2h();7 b=F(a).x;b-=a.V(\'E-N\').W();b-=a.V(\'E-19\').W();7 c=$(\'8\'+j.3).V(\'1l-O\').W();7 d=F($(\'8\'+j.3));7 e=d.x;4(e>b){e=b}9 4(e<=b&&e<c){e=(b>c?c:b)}7 f=d.x/d.y;7 g=e/f;$(\'8\'+j.3).5(\'O\',e);$(\'8\'+j.3).5(\'Z\',g);4(j.17==2){$(p).5(\'O\',e);u.5(\'O\',e);u.5(\'Z\',g)}9 4(j.17==1){7 h=u[0].V(\'E-1m\').W();j.G=(g+h)/j.1c;l=m*j.G+m;$(p).5(\'Z\',l);u.5(\'O\',e);u.5(\'Z\',j.G-h);w.H(-j.G*o)}9{7 h=u[0].V(\'E-19\').W();j.G=(e+h)/j.1c;l=m*j.G+m;$(p).5(\'O\',l);u.5(\'O\',j.G-h);u.5(\'Z\',g);w.H(-j.G*o)}4(j.D||j.14){1n=$(\'Q\'+j.3).2i(\'8\'+j.3).y;4(1n<0){$(\'8-L\'+j.3).5(\'E-Y\',-1n);$(\'8-L\'+j.3).5(\'E-1m\',0)}9{R=0;4(j.14){R=F($(\'1q\'+j.3)).y;R=1x.1l(R,F($(\'1r\'+j.3)).y)}4(j.D){R=1x.1l(R,F($(\'I\'+j.3)).y);R=1x.1l(R,F($(\'P\'+j.3)).y)}E=1n+R-g;4(E>0){$(\'8-L\'+j.3).5(\'E-Y\',0);$(\'8-L\'+j.3).5(\'E-1m\',E)}9{$(\'8-L\'+j.3).5(\'E-Y\',0);$(\'8-L\'+j.3).5(\'E-1m\',0)}}1y=$(\'Q\'+j.3).V(\'16-N\').W()+$(\'Q\'+j.3).V(\'16-19\').W();4(1y<0&&1z.F().x<F($(\'Q\'+j.3)).x-1y){$(\'Q\'+j.3).5(\'16-N\',0);$(\'Q\'+j.3).5(\'16-19\',0)}}}6 1Q(c){4($(\'1u-Q\'+j.3))B.1d(6(a,b){a.2j(\'1a-1j-1v\');4(b==c)a.2k(\'1a-1j-1v\')})}6 1i(){4(o<n)15(o+1);9 15(0)}6 1s(){4(o>0)15(o-1);9 15(n)}6 15(a){4(o==a)1k;4(j.17==2){4(t)1k;t=1P;1R=o;o=a;1S(1R)}9{o=a;w.J(-j.G*o)}1Q(o)}6 1S(a){u[o].5(\'1e\',\'1L\');u[o].1T(\'1p\').J(1);u[a].1T(\'1p\').J(0).1A(6(){u[a].5(\'1e\',\'1K\');t=1F})}6 1h(){4(!q){x.J(r,0).1A(6(){4(!s)$(\'I\'+j.3).5(\'M\',\'X\')})}9{y.J(r,0).1A(6(){4(!s)$(\'P\'+j.3).5(\'M\',\'X\')})}s=0}6 1M(){4(!q){$(\'I\'+j.3).5(\'M\',\'1o\');x.J(r,1)}9{$(\'P\'+j.3).5(\'M\',\'1o\');y.J(r,1)}s=1}6 1t(){4(q){$(\'P\'+j.3).5(\'M\',\'X\');4(j.D==1)y.H(\'C\',0);$(\'I\'+j.3).5(\'M\',\'1o\');4(j.D==1)x.H(\'C\',1)}9{$(\'I\'+j.3).5(\'M\',\'X\');4(j.D==1)x.H(\'C\',0);$(\'P\'+j.3).5(\'M\',\'1o\');4(j.D==1)y.H(\'C\',1)}}6 1B(){2l(6(){4(q&&!r)1i();1B()},k.1U)}6 1C(){$(\'8-L\'+j.3).5(\'2m\',\'X\');$(\'8\'+j.3).1b(\'1V\');4(1H.1I){v.1d(6(a){4(a)a.1b(\'1V\')})}1w();4(j.D){1W=F($(\'I\'+j.3)).x;$(\'I\'+j.3).5(\'16-N\',-1W/2);1X=F($(\'I\'+j.3)).x;$(\'P\'+j.3).5(\'16-N\',-1X/2);4(q){$(\'I\'+j.3).5(\'M\',\'X\')}9{$(\'P\'+j.3).5(\'M\',\'X\')}}1B()}4(j.1Y)1C.1U(j.1Y);9 1z.U(\'1a\',1C);1z.U(\'2n\',1w)}})})(2o.3);',62,149,'|||id|if|setStyle|function|var|djslider|else|||||||||||||||||||||||||||||opacity|show_buttons|padding|getSize|slide_size|set|play|start|duration|loader|display|left|width|pause|navigation|buttons_height|new|property|addEvent|getStyle|toInt|none|top|height|Fx|Tween|link|cancel|show_arrows|loadSlide|margin|slider_type|click|right|load|fade|visible_slides|each|visibility|transition|200|hideNavigation|nextSlide|button|return|max|bottom|button_pos|block|tween|next|prev|prevSlide|changeNavigation|cust|active|responsive|Math|buttons_margin|window|chain|slidePlay|sliderLoaded|this|slider|false|hide|Browser|ie8|position|hidden|visible|showNavigation|swipe|direction|true|updateActiveButton|prev_slide|makeFade|get|delay|in|play_width|pause_width|preload|DJImageSliderModule|Class|initialize|auto|getChildren|li|Array|for|relative|absolute|addEvents|mouseenter|mouseleave|store|cancelVertical|getElements|hasClass|measure|getParent|getPosition|removeClass|addClass|setTimeout|background|resize|document'.split('|'),0,{}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка