foo
This commit is contained in:
1 parent
1011e8b282
commit
0c88fa4a05
3047 files changed
+271147
-4
No files matched your search
Whitespace-only changes.
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - ACTIONS
|
||||
* @version: 1.1 (25.11.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function($){var _R=jQuery.fn.revolution,_ISM=_R.is_mobile();jQuery.extend(!0,_R,{checkActions:function(e,t,a){checkActions_intern(e,t,a)}});var checkActions_intern=function(e,t,a){a&&jQuery.each(a,function(a,o){o.delay=parseInt(o.delay,0)/1e3,e.addClass("noSwipe"),t.fullscreen_esclistener||("exitfullscreen"==o.action||"togglefullscreen"==o.action)&&(jQuery(document).keyup(function(t){27==t.keyCode&&jQuery("#rs-go-fullscreen").length>0&&e.trigger(o.event)}),t.fullscreen_esclistener=!0);var l="backgroundvideo"==o.layer?jQuery(".rs-background-video-layer"):"firstvideo"==o.layer?jQuery(".tp-revslider-slidesli").find(".tp-videolayer"):jQuery("#"+o.layer);switch(o.action){case"togglevideo":jQuery.each(l,function(t,a){a=jQuery(a);var o=a.data("videotoggledby");void 0==o&&(o=new Array),o.push(e),a.data("videotoggledby",o)});break;case"togglelayer":jQuery.each(l,function(t,a){a=jQuery(a);var o=a.data("layertoggledby");void 0==o&&(o=new Array),o.push(e),a.data("layertoggledby",o)});break;case"toggle_mute_video":jQuery.each(l,function(t,a){a=jQuery(a);var o=a.data("videomutetoggledby");void 0==o&&(o=new Array),o.push(e),a.data("videomutetoggledby",o)});break;case"toggleslider":void 0==t.slidertoggledby&&(t.slidertoggledby=new Array),t.slidertoggledby.push(e);break;case"togglefullscreen":void 0==t.fullscreentoggledby&&(t.fullscreentoggledby=new Array),t.fullscreentoggledby.push(e)}switch(e.on(o.event,function(){var a="backgroundvideo"==o.layer?jQuery(".active-revslide .slotholder .rs-background-video-layer"):"firstvideo"==o.layer?jQuery(".active-revslide .tp-videolayer").first():jQuery("#"+o.layer);if("stoplayer"==o.action||"togglelayer"==o.action||"startlayer"==o.action){if(a.length>0)if("startlayer"==o.action||"togglelayer"==o.action&&"in"!=a.data("animdirection")){a.data("animdirection","in");var l=a.data("timeline_out"),r="carousel"===t.sliderType?0:t.width/2-t.gridwidth[t.curWinRange]*t.bw/2,i=0;void 0!=l&&l.pause(0).kill(),_R.animateSingleCaption&&_R.animateSingleCaption(a,t,r,i,0,!1,!0);var n=a.data("timeline");a.data("triggerstate","on"),_R.toggleState(a.data("layertoggledby")),punchgs.TweenLite.delayedCall(o.delay,function(){n.play(0)},[n])}else("stoplayer"==o.action||"togglelayer"==o.action&&"out"!=a.data("animdirection"))&&(a.data("animdirection","out"),a.data("triggered",!0),a.data("triggerstate","off"),_R.stopVideo&&_R.stopVideo(a,t),_R.endMoveCaption&&punchgs.TweenLite.delayedCall(o.delay,_R.endMoveCaption,[a,null,null,t]),_R.unToggleState(a.data("layertoggledby")))}else!_ISM||"playvideo"!=o.action&&"stopvideo"!=o.action&&"togglevideo"!=o.action&&"mutevideo"!=o.action&&"unmutevideo"!=o.action&&"toggle_mute_video"!=o.action?punchgs.TweenLite.delayedCall(o.delay,function(){actionSwitches(a,t,o,e)},[a,t,o,e]):actionSwitches(a,t,o,e)}),o.action){case"togglelayer":case"startlayer":case"playlayer":case"stoplayer":var l=jQuery("#"+o.layer);"bytrigger"!=l.data("start")&&(l.data("triggerstate","on"),l.data("animdirection","in"))}})},actionSwitches=function(tnc,opt,a,_nc){switch(a.action){case"scrollbelow":_nc.addClass("tp-scrollbelowslider"),_nc.data("scrolloffset",a.offset),_nc.data("scrolldelay",a.delay);var off=getOffContH(opt.fullScreenOffsetContainer)||0,aof=parseInt(a.offset,0)||0;off=off-aof||0,jQuery("body,html").animate({scrollTop:opt.c.offset().top+jQuery(opt.li[0]).height()-off+"px"},{duration:400});break;case"callback":eval(a.callback);break;case"jumptoslide":switch(a.slide.toLowerCase()){case"+1":case"next":opt.sc_indicator="arrow",_R.callingNewSlide(opt,opt.c,1);break;case"previous":case"prev":case"-1":opt.sc_indicator="arrow",_R.callingNewSlide(opt,opt.c,-1);break;default:var ts=jQuery.isNumeric(a.slide)?parseInt(a.slide,0):a.slide;_R.callingNewSlide(opt,opt.c,ts)}break;case"simplelink":window.open(a.url,a.target);break;case"toggleslider":opt.noloopanymore=0,"playing"==opt.sliderstatus?(opt.c.revpause(),_R.unToggleState(opt.slidertoggledby)):(opt.c.revresume(),_R.toggleState(opt.slidertoggledby));break;case"pauseslider":opt.c.revpause(),_R.unToggleState(opt.slidertoggledby);break;case"playslider":opt.noloopanymore=0,opt.c.revresume(),_R.toggleState(opt.slidertoggledby);break;case"playvideo":tnc.length>0&&_R.playVideo(tnc,opt);break;case"stopvideo":tnc.length>0&&_R.stopVideo&&_R.stopVideo(tnc,opt);break;case"togglevideo":tnc.length>0&&(_R.isVideoPlaying(tnc,opt)?_R.stopVideo&&_R.stopVideo(tnc,opt):_R.playVideo(tnc,opt));break;case"mutevideo":tnc.length>0&&_R.muteVideo(tnc,opt);break;case"unmutevideo":tnc.length>0&&_R.unMuteVideo&&_R.unMuteVideo(tnc,opt);break;case"toggle_mute_video":tnc.length>0&&(_R.isVideoMuted(tnc,opt)?_R.unMuteVideo(tnc,opt):_R.muteVideo&&_R.muteVideo(tnc,opt)),_nc.toggleClass("rs-toggle-content-active");break;case"simulateclick":tnc.length>0&&tnc.click();break;case"toggleclass":tnc.length>0&&(tnc.hasClass(a.classname)?tnc.removeClass(a.classname):tnc.addClass(a.classname));break;case"gofullscreen":case"exitfullscreen":case"togglefullscreen":if(jQuery("#rs-go-fullscreen").lengtLine truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - CAROUSEL
|
||||
* @version: 1.0.2 (01.10.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(){var e=jQuery.fn.revolution;jQuery.extend(!0,e,{prepareCarousel:function(i,l,o){o=i.carousel.lastdirection=a(o,i.carousel.lastdirection),t(i),i.carousel.slide_offset_target=r(i),void 0==l?e.carouselToEvalPosition(i,o):s(i,o,!1)},carouselToEvalPosition:function(i,t){var l=i.carousel;t=l.lastdirection=a(t,l.lastdirection);var o="center"===l.horizontal_align?(l.wrapwidth/2-l.slide_width/2-l.slide_globaloffset)/l.slide_width:(0-l.slide_globaloffset)/l.slide_width,r=e.simp(o,i.slideamount,!1),n=r-Math.floor(r),d=0,f=-1*(Math.ceil(r)-r),h=-1*(Math.floor(r)-r);d=n>=.3&&"left"===t||n>=.7&&"right"===t?f:.3>n&&"left"===t||.7>n&&"right"===t?h:d,d="off"===l.infinity?0>r?r:o>i.slideamount-1?o-(i.slideamount-1):d:d,l.slide_offset_target=d*l.slide_width,0!==Math.abs(l.slide_offset_target)?s(i,t,!0):e.organiseCarousel(i,t)},organiseCarousel:function(e,i,t,a){i=void 0===i||"down"==i||"up"==i||null===i||jQuery.isEmptyObject(i)?"left":i;for(var s=e.carousel,l=new Array,o=s.slides.length,r="right"===s.horizontal_align?r=e.width:0,n=0;o>n;n++){var d=n*s.slide_width+s.slide_offset;"on"===s.infinity&&(d=d>s.wrapwidth-s.inneroffset&&"right"==i?s.slide_offset-(s.slides.length-n)*s.slide_width:d,d=d<0-s.inneroffset-s.slide_width&&"left"==i?d+s.maxwidth:d),l[n]=d}var f=999;s.slides&&jQuery.each(s.slides,function(a,r){var n=l[a];"on"===s.infinity&&(n=n>s.wrapwidth-s.inneroffset&&"left"===i?l[0]-(o-a)*s.slide_width:n,n=n<0-s.inneroffset-s.slide_width?"left"==i?n+s.maxwidth:"right"===i?l[o-1]+(a+1)*s.slide_width:n:n);var d=new Object;d.left=n+s.inneroffset;var h="center"===s.horizontal_align?(Math.abs(s.wrapwidth/2)-(d.left+s.slide_width/2))/s.slide_width:(s.inneroffset-d.left)/s.slide_width,w="center"===s.horizontal_align?2:1;if((t&&Math.abs(h)<f||0===h)&&(f=Math.abs(h),s.focused=a),d.width=s.slide_width,d.x=0,d.transformPerspective=1200,d.transformOrigin="50% "+s.vertical_align,"on"===s.fadeout)if("on"===s.vary_fade)d.autoAlpha=1-Math.abs(1/Math.ceil(s.maxVisibleItems/w)*h);else switch(s.horizontal_align){case"center":d.autoAlpha=Math.abs(h)<Math.ceil(s.maxVisibleItems/w-1)?1:1-(Math.abs(h)-Math.floor(Math.abs(h)));break;case"left":d.autoAlpha=1>h&&h>0?1-h:Math.abs(h)>s.maxVisibleItems-1?1-(Math.abs(h)-(s.maxVisibleItems-1)):1;break;case"right":d.autoAlpha=h>-1&&0>h?1-Math.abs(h):h>s.maxVisibleItems-1?1-(Math.abs(h)-(s.maxVisibleItems-1)):1}else d.autoAlpha=Math.abs(h)<Math.ceil(s.maxVisibleItems/w)?1:0;if(void 0!==s.minScale&&s.minScale>0)if("on"===s.vary_scale){d.scale=1-Math.abs(s.minScale/100/Math.ceil(s.maxVisibleItems/w)*h);var c=(s.slide_width-s.slide_width*d.scale)*Math.abs(h)}else{d.scale=h>=1||-1>=h?1-s.minScale/100:(100-s.minScale*Math.abs(h))/100;var c=(s.slide_width-s.slide_width*(1-s.minScale/100))*Math.abs(h)}void 0!==s.maxRotation&&0!=Math.abs(s.maxRotation)&&("on"===s.vary_rotation?(d.rotationY=Math.abs(s.maxRotation)-Math.abs((1-Math.abs(1/Math.ceil(s.maxVisibleItems/w)*h))*s.maxRotation),d.autoAlpha=Math.abs(d.rotationY)>90?0:d.autoAlpha):d.rotationY=h>=1||-1>=h?s.maxRotation:Math.abs(h)*s.maxRotation,d.rotationY=0>h?-1*d.rotationY:d.rotationY),d.x=-1*s.space*h,d.left=Math.floor(d.left),d.x=Math.floor(d.x),void 0!==d.scale?0>h?d.x-c:d.x+c:d.x,d.zIndex=Math.round(100-Math.abs(5*h)),d.transformStyle="3D"!=e.parallax.type&&"3d"!=e.parallax.type?"flat":"preserve-3d",punchgs.TweenLite.set(r,d)}),a&&(e.c.find(".next-revslide").removeClass("next-revslide"),jQuery(s.slides[s.focused]).addClass("next-revslide"),e.c.trigger("revolution.nextslide.waiting"));s.wrapwidth/2-s.slide_offset,s.maxwidth+s.slide_offset-s.wrapwidth/2}});var i=function(e){var i=e.carousel;i.infbackup=i.infinity,i.maxVisiblebackup=i.maxVisibleItems,i.slide_globaloffset="none",i.slide_offset=0,i.wrap=e.c.find(".tp-carousel-wrapper"),i.slides=e.c.find(".tp-revslider-slidesli"),0!==i.maxRotation&&("3D"!=e.parallax.type&&"3d"!=e.parallax.type?punchgs.TweenLite.set(i.wrap,{perspective:1200,transformStyle:"flat"}):punchgs.TweenLite.set(i.wrap,{perspective:1600,transformStyle:"preserve-3d"})),void 0!==i.border_radius&&parseInt(i.border_radius,0)>0&&punchgs.TweenLite.set(e.c.find(".tp-revslider-slidesli"),{borderRadius:i.border_radius})},t=function(t){void 0===t.bw&&e.setSize(t);var a=t.carousel,s=e.getHorizontalOffset(t.c,"left"),l=e.getHorizontalOffset(t.c,"right");void 0===a.wrap&&i(t),a.slide_width="on"!==a.stretch?t.gridwidth[t.curWinRange]*t.bw:t.c.width(),a.maxwidth=t.slideamount*a.slide_width,a.maxVisiblebackup>a.slides.length+1&&(a.maxVisibleItems=a.slides.length+2),a.wrapwidth=a.maxVisibleItems*a.slide_width+(a.maxVisibleItems-1)*a.space,a.wrapwidth="auto"!=t.sliderLayout?a.wrapwidth>t.c.closest(".tp-simpleresponsive").width()?t.c.closest(".tp-simpleresponsive").width():a.wrapwidth:a.wrapwidth>t.ul.width()?t.ul.width():a.wrapwidth,a.infinity=a.wrapwidth>=a.maxwidth?"off":a.infbackup,a.wrapoffset="center"===a.horizontal_align?(t.c.width()-l-s-a.wrapwidth)/2:0,a.wrapoffset="auto"!=t.sliderLayout&&t.outernav?0:a.wrapoffset<s?s:a.wrapoffset;varLine truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - KEN BURN
|
||||
* @version: 1.0.0 (03.08.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(){var t=jQuery.fn.revolution;jQuery.extend(!0,t,{stopKenBurn:function(t){void 0!=t.data("kbtl")&&t.data("kbtl").pause()},startKenBurn:function(t,e,a){var r=t.data(),n=t.find(".defaultimg"),s=n.data("lazyload")||n.data("src"),i=(r.owidth/r.oheight,"carousel"===e.sliderType?e.carousel.slide_width:e.ul.width()),o=e.ul.height();t.data("kbtl")&&t.data("kbtl").kill(),a=a||0,0==t.find(".tp-kbimg").length&&(t.append('<div class="tp-kbimg-wrap" style="z-index:2;width:100%;height:100%;top:0px;left:0px;position:absolute;"><img class="tp-kbimg" src="'+s+'" style="position:absolute;" width="'+r.owidth+'" height="'+r.oheight+'"></div>'),t.data("kenburn",t.find(".tp-kbimg")));var d=function(t,e,a,r,n,s,i){var o=t*a,d=e*a,l=Math.abs(r-o),h=Math.abs(n-d),p=new Object;return p.l=(0-s)*l,p.r=p.l+o,p.t=(0-i)*h,p.b=p.t+d,p.h=s,p.v=i,p},l=function(t,e,a,r,n){var s=t.bgposition.split(" ")||"center center",i="center"==s[0]?"50%":"left"==s[0]||"left"==s[1]?"0%":"right"==s[0]||"right"==s[1]?"100%":s[0],o="center"==s[1]?"50%":"top"==s[0]||"top"==s[1]?"0%":"bottom"==s[0]||"bottom"==s[1]?"100%":s[1];i=parseInt(i,0)/100||0,o=parseInt(o,0)/100||0;var l=new Object;return l.start=d(n.start.width,n.start.height,n.start.scale,e,a,i,o),l.end=d(n.start.width,n.start.height,n.end.scale,e,a,i,o),l},h=function(t,e,a){var r=a.scalestart/100,n=a.scaleend/100,s=void 0!=a.oofsetstart?a.offsetstart.split(" ")||[0,0]:[0,0],i=void 0!=a.offsetend?a.offsetend.split(" ")||[0,0]:[0,0];a.bgposition="center center"==a.bgposition?"50% 50%":a.bgposition;{var o=new Object,d=t*r,h=(d/a.owidth*a.oheight,t*n);h/a.owidth*a.oheight}if(o.start=new Object,o.starto=new Object,o.end=new Object,o.endo=new Object,o.start.width=t,o.start.height=o.start.width/a.owidth*a.oheight,o.start.height<e){var p=e/o.start.height;o.start.height=e,o.start.width=o.start.width*p}o.start.transformOrigin=a.bgposition,o.start.scale=r,o.end.scale=n,o.start.rotation=a.rotatestart+"deg",o.end.rotation=a.rotateend+"deg";var g=l(a,t,e,s,o);s[0]=parseFloat(s[0])+g.start.l,i[0]=parseFloat(i[0])+g.end.l,s[1]=parseFloat(s[1])+g.start.t,i[1]=parseFloat(i[1])+g.end.t;var c=g.start.r-g.start.l,b=g.start.b-g.start.t,u=g.end.r-g.end.l,f=g.end.b-g.end.t;return s[0]=s[0]>0?0:c+s[0]<t?t-c:s[0],i[0]=i[0]>0?0:u+i[0]<t?t-u:i[0],s[1]=s[1]>0?0:b+s[1]<e?e-b:s[1],i[1]=i[1]>0?0:f+i[1]<e?e-f:i[1],o.starto.x=s[0]+"px",o.starto.y=s[1]+"px",o.endo.x=i[0]+"px",o.endo.y=i[1]+"px",o.end.ease=o.endo.ease=a.ease,o.end.force3D=o.endo.force3D=!0,o};void 0!=t.data("kbtl")&&(t.data("kbtl").kill(),t.removeData("kbtl"));var p=t.data("kenburn"),g=p.parent(),c=h(i,o,r),b=new punchgs.TimelineLite;b.pause(),c.start.transformOrigin="0% 0%",c.starto.transformOrigin="0% 0%",b.add(punchgs.TweenLite.fromTo(p,r.duration/1e3,c.start,c.end),0),b.add(punchgs.TweenLite.fromTo(g,r.duration/1e3,c.starto,c.endo),0),b.progress(a),b.play(),t.data("kbtl",b)}})}(jQuery);
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - LAYER ANIMATION
|
||||
* @version: 1.4 (15.12.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(a){function e(a,e,t,i,n,o,r){var d=a.find(e);d.css("borderWidth",o+"px"),d.css(t,0-o+"px"),d.css(i,"0px solid transparent"),d.css(n,r)}var t=jQuery.fn.revolution;t.is_mobile();jQuery.extend(!0,t,{animcompleted:function(a,e){var i=a.data("videotype"),n=a.data("autoplay"),o=a.data("autoplayonlyfirsttime");void 0!=i&&"none"!=i&&(1==n||"true"==n||"on"==n||"1sttime"==n||o?(t.playVideo(a,e),t.toggleState(a.data("videotoggledby")),(o||"1sttime"==n)&&(a.data("autoplayonlyfirsttime",!1),a.data("autoplay","off"))):("no1sttime"==n&&a.data("autoplay","on"),t.unToggleState(a.data("videotoggledby"))))},handleStaticLayers:function(a,e){var t=parseInt(a.data("startslide"),0),i=parseInt(a.data("endslide"),0);0>t&&(t=0),0>i&&(i=e.slideamount),0===t&&i===e.slideamount-1&&(i=e.slideamount+1),a.data("startslide",t),a.data("endslide",i)},animateTheCaptions:function(a,e,i,n){var o="carousel"===e.sliderType?0:e.width/2-e.gridwidth[e.curWinRange]*e.bw/2,r=0,d=a.data("index");e.layers=e.layers||new Object,e.layers[d]=e.layers[d]||a.find(".tp-caption"),e.layers["static"]=e.layers["static"]||e.c.find(".tp-static-layers").find(".tp-caption");var s=new Array;if(e.conh=e.c.height(),e.conw=e.c.width(),e.ulw=e.ul.width(),e.ulh=e.ul.height(),e.debugMode){a.addClass("indebugmode"),a.find(".helpgrid").remove(),e.c.find(".hglayerinfo").remove(),a.append('<div class="helpgrid" style="width:'+e.gridwidth[e.curWinRange]*e.bw+"px;height:"+e.gridheight[e.curWinRange]*e.bw+'px;"></div>');var l=a.find(".helpgrid");l.append('<div class="hginfo">Zoom:'+Math.round(100*e.bw)+"% Device Level:"+e.curWinRange+" Grid Preset:"+e.gridwidth[e.curWinRange]+"x"+e.gridheight[e.curWinRange]+"</div>"),e.c.append('<div class="hglayerinfo"></div>'),l.append('<div class="tlhg"></div>')}s&&jQuery.each(s,function(a){var e=jQuery(this);punchgs.TweenLite.set(e.find(".tp-videoposter"),{autoAlpha:1}),punchgs.TweenLite.set(e.find("iframe"),{autoAlpha:0})}),e.layers[d]&&jQuery.each(e.layers[d],function(a,e){s.push(e)}),e.layers["static"]&&jQuery.each(e.layers["static"],function(a,e){s.push(e)}),s&&jQuery.each(s,function(a){t.animateSingleCaption(jQuery(this),e,o,r,a,i)});var p=jQuery("body").find("#"+e.c.attr("id")).find(".tp-bannertimer");p.data("opt",e),void 0!=n&&setTimeout(function(){n.resume()},30)},animateSingleCaption:function(a,n,r,u,w,y,b){var x=y,T=h(a,n,"in",!0),L=a.data("_pw")||a.closest(".tp-parallax-wrap"),W=a.data("_lw")||a.closest(".tp-loop-wrap"),C=a.data("_mw")||a.closest(".tp-mask-wrap"),j=a.data("responsive")||"on",I=a.data("responsive_offset")||"on",R=a.data("basealign")||"grid",k="grid"===R?n.width:n.ulw,_="grid"===R?n.height:n.ulh,S=jQuery("body").hasClass("rtl");if(a.data("_pw")||(a.data("_pw",L),a.data("_lw",W),a.data("_mw",C)),"fullscreen"==n.sliderLayout&&(u=_/2-n.gridheight[n.curWinRange]*n.bh/2),("on"==n.autoHeight||void 0!=n.minHeight&&n.minHeight>0)&&(u=n.conh/2-n.gridheight[n.curWinRange]*n.bh/2),0>u&&(u=0),n.debugMode){a.closest("li").find(".helpgrid").css({top:u+"px",left:r+"px"});var z=n.c.find(".hglayerinfo");a.on("hover, mouseenter",function(){var e="";a.data()&&jQuery.each(a.data(),function(a,t){"object"!=typeof t&&(e=e+'<span style="white-space:nowrap"><span style="color:#27ae60">'+a+":</span>"+t+"</span> ")}),z.html(e)})}var Q=p(a.data("visibility"),n)[n.forcedWinRange]||p(a.data("visibility"),n)||"on";if("off"==Q||k<n.hideCaptionAtLimit&&"on"==a.data("captionhidden")||k<n.hideAllCaptionAtLimit?a.addClass("tp-hidden-caption"):a.removeClass("tp-hidden-caption"),a.data("layertype","html"),0>r&&(r=0),void 0!=a.data("thumbimage")&&void 0==a.data("videoposter")&&a.data("videoposter",a.data("thumbimage")),a.find("img").length>0){var M=a.find("img");a.data("layertype","image"),0==M.width()&&M.css({width:"auto"}),0==M.height()&&M.css({height:"auto"}),void 0==M.data("ww")&&M.width()>0&&M.data("ww",M.width()),void 0==M.data("hh")&&M.height()>0&&M.data("hh",M.height());var O=M.data("ww"),H=M.data("hh"),B="slide"==R?n.ulw:n.gridwidth[n.curWinRange],A="slide"==R?n.ulh:n.gridheight[n.curWinRange],O=p(M.data("ww"),n)[n.curWinRange]||p(M.data("ww"),n)||"auto",H=p(M.data("hh"),n)[n.curWinRange]||p(M.data("hh"),n)||"auto",F="full"===O||"full-proportional"===O,D="full"===H||"full-proportional"===H;if("full-proportional"===O){var P=M.data("owidth"),X=M.data("oheight");X/A>P/B?(O=B,H=X*(B/P)):(H=A,O=P*(A/X))}else O=F?B:parseFloat(O),H=D?A:parseFloat(H);void 0==O&&(O=0),void 0==H&&(H=0),"off"!==j?("grid"!=R&&F?M.width(O):M.width(O*n.bw),"grid"!=R&&D?M.height(H):M.height(H*n.bh)):(M.width(O),M.height(H))}if("slide"===R&&(r=0,u=0),a.hasClass("tp-videolayer")||a.find("iframe").length>0||a.find("video").length>0){if(a.data("layertype","video"),t.manageVideoLayer(a,n,y,x),!y&&!x){a.data("videotype");t.resetVideo(a,n)}var Y=a.data("aspectratio");void 0!=Y&&Y.split(":").length>1&&t.prepareCoveredVideo(Y,n,a);var M=a.find("iframe")?a.find("iframe"):M=a.find("video"),V=a.find("iframe")?!1:!0,N=a.hasClass("coLine truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/*****************************************************************************************************
|
||||
* jquery.themepunch.revmigrate.js - jQuery Plugin for Revolution Slider Migration from 4.x to 5.0
|
||||
* @version: 1.0.1 (18.08.2015)
|
||||
* @requires jQuery v1.7 or later (tested on 1.9)
|
||||
* @author ThemePunch
|
||||
*****************************************************************************************************/
|
||||
!function(){var t=jQuery.fn.revolution;jQuery.extend(!0,t,{migration:function(t,e){return e=a(e),o(t,e),e}});var a=function(t){if(t.parallaxLevels||t.parallaxBgFreeze){var a=new Object;a.type=t.parallax,a.levels=t.parallaxLevels,a.bgparallax="on"==t.parallaxBgFreeze?"off":"on",a.disable_onmobile=t.parallaxDisableOnMobile,t.parallax=a}if(void 0===t.disableProgressBar&&(t.disableProgressBar=t.hideTimerBar||"off"),(t.startwidth||t.startheight)&&(t.gridwidth=t.startwidth,t.gridheight=t.startheight),void 0===t.sliderType&&(t.sliderType="standard"),"on"===t.fullScreen&&(t.sliderLayout="fullscreen"),"on"===t.fullWidth&&(t.sliderLayout="fullwidth"),void 0===t.sliderLayout&&(t.sliderLayout="auto"),void 0===t.navigation){var o=new Object;if("solo"==t.navigationArrows||"nextto"==t.navigationArrows){var e=new Object;e.enable=!0,e.style=t.navigationStyle||"",e.hide_onmobile="on"===t.hideArrowsOnMobile?!0:!1,e.hide_onleave=t.hideThumbs>0?!0:!1,e.hide_delay=t.hideThumbs>0?t.hideThumbs:200,e.hide_delay_mobile=t.hideNavDelayOnMobile||1500,e.hide_under=0,e.tmp="",e.left={h_align:t.soloArrowLeftHalign,v_align:t.soloArrowLeftValign,h_offset:t.soloArrowLeftHOffset,v_offset:t.soloArrowLeftVOffset},e.right={h_align:t.soloArrowRightHalign,v_align:t.soloArrowRightValign,h_offset:t.soloArrowRightHOffset,v_offset:t.soloArrowRightVOffset},o.arrows=e}if("bullet"==t.navigationType){var r=new Object;r.style=t.navigationStyle||"",r.enable=!0,r.hide_onmobile="on"===t.hideArrowsOnMobile?!0:!1,r.hide_onleave=t.hideThumbs>0?!0:!1,r.hide_delay=t.hideThumbs>0?t.hideThumbs:200,r.hide_delay_mobile=t.hideNavDelayOnMobile||1500,r.hide_under=0,r.direction="horizontal",r.h_align=t.navigationHAlign||"center",r.v_align=t.navigationVAlign||"bottom",r.space=5,r.h_offset=t.navigationHOffset||0,r.v_offset=t.navigationVOffset||20,r.tmp='<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>',o.bullets=r}if("thumb"==t.navigationType){var i=new Object;i.style=t.navigationStyle||"",i.enable=!0,i.width=t.thumbWidth||100,i.height=t.thumbHeight||50,i.min_width=t.thumbWidth||100,i.wrapper_padding=2,i.wrapper_color="#f5f5f5",i.wrapper_opacity=1,i.visibleAmount=t.thumbAmount||3,i.hide_onmobile="on"===t.hideArrowsOnMobile?!0:!1,i.hide_onleave=t.hideThumbs>0?!0:!1,i.hide_delay=t.hideThumbs>0?t.hideThumbs:200,i.hide_delay_mobile=t.hideNavDelayOnMobile||1500,i.hide_under=0,i.direction="horizontal",i.span=!1,i.position="inner",i.space=2,i.h_align=t.navigationHAlign||"center",i.v_align=t.navigationVAlign||"bottom",i.h_offset=t.navigationHOffset||0,i.v_offset=t.navigationVOffset||20,i.tmp='<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',o.thumbnails=i}t.navigation=o,t.navigation.keyboardNavigation=t.keyboardNavigation||"on",t.navigation.onHoverStop=t.onHoverStop||"on",t.navigation.touch={touchenabled:t.touchenabled||"on",swipe_treshold:t.swipe_treshold||75,swipe_min_touches:t.swipe_min_touches||1,drag_block_vertical:t.drag_block_vertical||!1}}return t.fallbacks={isJoomla:t.isJoomla||!1,panZoomDisableOnMobile:t.parallaxDisableOnMobile||"off",simplifyAll:t.simplifyAll||"on",nextSlideOnWindowFocus:t.nextSlideOnWindowFocus||"off",disableFocusListener:t.disableFocusListener||!0},t},o=function(t){var a=new Object,o=t.width(),e=t.height();a.skewfromleftshort="x:-50;skX:85;o:0",a.skewfromrightshort="x:50;skX:-85;o:0",a.sfl="x:-50;o:0",a.sfr="x:50;o:0",a.sft="y:-50;o:0",a.sfb="y:50;o:0",a.skewfromleft="x:top;skX:85;o:0",a.skewfromright="x:bottom;skX:-85;o:0",a.lfl="x:top;o:0",a.lfr="x:bottom;o:0",a.lft="y:left;o:0",a.lfb="y:right;o:0",a.fade="o:0";720*Math.random()-360;t.find(".tp-caption").each(function(){var t=jQuery(this),r=(2*Math.random()*o-o,2*Math.random()*e-e,3*Math.random(),720*Math.random()-360,70*Math.random()-35,70*Math.random()-35,t.attr("class"));a.randomrotate="x:{-400,400};y:{-400,400};sX:{0,2};sY:{0,2};rZ:{-180,180};rX:{-180,180};rY:{-180,180};o:0;",r.match("randomrotate")?t.data("transform_in",a.randomrotate):r.match(/\blfl\b/)?t.data("transform_in",a.lfl):r.match(/\blfr\b/)?t.data("transform_in",a.lfr):r.match(/\blft\b/)?t.data("transform_in",a.lft):r.match(/\blfb\b/)?t.data("transform_in",a.lfb):r.match(/\bsfl\b/)?t.data("transform_in",a.sfl):r.match(/\bsfr\b/)?t.data("transform_in",a.sfr):r.match(/\bsft\b/)?t.data("transform_in",a.sft):r.match(/\bsfb\b/)?t.data("transform_in",a.sfb):r.match(/\bskewfromleftshort\b/)?t.data("transform_in",a.skewfromleftshort):r.match(/\bskewfromrightshort\b/)?t.data("transform_in",a.skewfromrightshort):r.match(/\bskewfromleft\b/)?t.data("transform_in",a.skewfromleft):r.match(/\bskewfromright\b/)?t.data("transform_in",a.skewfromright):r.match(/\bfade\b/)&&t.data("transform_in",a.fade),r.match(/\brandomrotateout\b/)?t.data("transform_out",a.randomrotate):r.match(/\bltl\b/)?t.data("transform_out",a.lfl):r.match(/\bltr\b/)?t.data("transform_out",a.lfr):r.match(/\bltt\b/)?t.data("transform_out",a.lft):r.match(/\bltb\b/)?t.data("transform_out",a.lfb):r.match(/\bstl\b/)?t.data("transform_ouLine truncated
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.1.5 EXTENSION - NAVIGATION
|
||||
* @version: 1.1 (04.01.2016)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(t){var e=jQuery.fn.revolution,i=e.is_mobile();jQuery.extend(!0,e,{hideUnHideNav:function(t){var e=t.c.width(),i=t.navigation.arrows,a=t.navigation.bullets,n=t.navigation.thumbnails,s=t.navigation.tabs;p(i)&&T(t.c.find(".tparrows"),i.hide_under,e,i.hide_over),p(a)&&T(t.c.find(".tp-bullets"),a.hide_under,e,a.hide_over),p(n)&&T(t.c.parent().find(".tp-thumbs"),n.hide_under,e,n.hide_over),p(s)&&T(t.c.parent().find(".tp-tabs"),s.hide_under,e,s.hide_over),y(t)},resizeThumbsTabs:function(t,e){if(t.navigation&&t.navigation.tabs.enable||t.navigation&&t.navigation.thumbnails.enable){var i=(jQuery(window).width()-480)/500,a=new punchgs.TimelineLite,s=t.navigation.tabs,r=t.navigation.thumbnails,o=t.navigation.bullets;if(a.pause(),i=i>1?1:0>i?0:i,p(s)&&(e||s.width>s.min_width)&&n(i,a,t.c,s,t.slideamount,"tab"),p(r)&&(e||r.width>r.min_width)&&n(i,a,t.c,r,t.slideamount,"thumb"),p(o)&&e){var d=t.c.find(".tp-bullets");d.find(".tp-bullet").each(function(t){var e=jQuery(this),i=t+1,a=e.outerWidth()+parseInt(void 0===o.space?0:o.space,0),n=e.outerHeight()+parseInt(void 0===o.space?0:o.space,0);"vertical"===o.direction?(e.css({top:(i-1)*n+"px",left:"0px"}),d.css({height:(i-1)*n+e.outerHeight(),width:e.outerWidth()})):(e.css({left:(i-1)*a+"px",top:"0px"}),d.css({width:(i-1)*a+e.outerWidth(),height:e.outerHeight()}))})}a.play(),y(t)}return!0},updateNavIndexes:function(t){function i(t){a.find(t).lenght>0&&a.find(t).each(function(t){jQuery(this).data("liindex",t)})}var a=t.c;i(".tp-tab"),i(".tp-bullet"),i(".tp-thumb"),e.resizeThumbsTabs(t,!0),e.manageNavigation(t)},manageNavigation:function(t){var i=e.getHorizontalOffset(t.c.parent(),"left"),n=e.getHorizontalOffset(t.c.parent(),"right");p(t.navigation.bullets)&&("fullscreen"!=t.sliderLayout&&"fullwidth"!=t.sliderLayout&&(t.navigation.bullets.h_offset_old=void 0===t.navigation.bullets.h_offset_old?t.navigation.bullets.h_offset:t.navigation.bullets.h_offset_old,t.navigation.bullets.h_offset="center"===t.navigation.bullets.h_align?t.navigation.bullets.h_offset_old+i/2-n/2:t.navigation.bullets.h_offset_old+i-n),b(t.c.find(".tp-bullets"),t.navigation.bullets)),p(t.navigation.thumbnails)&&b(t.c.parent().find(".tp-thumbs"),t.navigation.thumbnails),p(t.navigation.tabs)&&b(t.c.parent().find(".tp-tabs"),t.navigation.tabs),p(t.navigation.arrows)&&("fullscreen"!=t.sliderLayout&&"fullwidth"!=t.sliderLayout&&(t.navigation.arrows.left.h_offset_old=void 0===t.navigation.arrows.left.h_offset_old?t.navigation.arrows.left.h_offset:t.navigation.arrows.left.h_offset_old,t.navigation.arrows.left.h_offset="right"===t.navigation.arrows.left.h_align?t.navigation.arrows.left.h_offset_old+n:t.navigation.arrows.left.h_offset_old+i,t.navigation.arrows.right.h_offset_old=void 0===t.navigation.arrows.right.h_offset_old?t.navigation.arrows.right.h_offset:t.navigation.arrows.right.h_offset_old,t.navigation.arrows.right.h_offset="right"===t.navigation.arrows.right.h_align?t.navigation.arrows.right.h_offset_old+n:t.navigation.arrows.right.h_offset_old+i),b(t.c.find(".tp-leftarrow.tparrows"),t.navigation.arrows.left),b(t.c.find(".tp-rightarrow.tparrows"),t.navigation.arrows.right)),p(t.navigation.thumbnails)&&a(t.c.parent().find(".tp-thumbs"),t.navigation.thumbnails),p(t.navigation.tabs)&&a(t.c.parent().find(".tp-tabs"),t.navigation.tabs)},createNavigation:function(t,e){var n=t.parent(),s=e.navigation.arrows,d=e.navigation.bullets,u=e.navigation.thumbnails,v=e.navigation.tabs,m=p(s),b=p(d),_=p(u),y=p(v);r(t,e),o(t,e),m&&f(t,s,e),e.li.each(function(i){var a=jQuery(this);b&&w(t,d,a,e),_&&x(t,u,a,"tp-thumb",e),y&&x(t,v,a,"tp-tab",e)}),t.bind("revolution.slide.onafterswap revolution.nextslide.waiting",function(){var i=0==t.find(".next-revslide").length?t.find(".active-revslide").data("index"):t.find(".next-revslide").data("index");t.find(".tp-bullet").each(function(){var t=jQuery(this);t.data("liref")===i?t.addClass("selected"):t.removeClass("selected")}),n.find(".tp-thumb, .tp-tab").each(function(){var t=jQuery(this);t.data("liref")===i?(t.addClass("selected"),t.hasClass("tp-tab")?a(n.find(".tp-tabs"),v):a(n.find(".tp-thumbs"),u)):t.removeClass("selected")});var r=0,o=!1;e.thumbs&&jQuery.each(e.thumbs,function(t,e){r=o===!1?t:r,o=e.id===i||t===i?!0:o});var d=r>0?r-1:e.slideamount-1,l=r+1==e.slideamount?0:r+1;if(s.enable===!0){var h=s.tmp;jQuery.each(e.thumbs[d].params,function(t,e){h=h.replace(e.from,e.to)}),s.left.j.html(h),h=s.tmp,jQuery.each(e.thumbs[l].params,function(t,e){h=h.replace(e.from,e.to)}),s.right.j.html(h),punchgs.TweenLite.set(s.left.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+e.thumbs[d].src+")"}),punchgs.TweenLite.set(s.right.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+e.thumbs[l].src+")"})}}),h(s),h(d),h(u),h(v),n.on("mouseenter mousemove",function(){n.hasClass("tp-mouseover")||(n.addClass("tp-mouseover"),punchgs.TweenLite.killDelayedCallsTo(g),m&&s.hide_onleave&&g(n.find(".tparrows"),s,"show"),b&&d.hide_onleave&&g(n.find(".tp-bullets"),d,"show"),_&&u.hide_onleave&&g(n.find("Line truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.1.6 EXTENSION - PARALLAX
|
||||
* @version: 1.2 (04.01.2016)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(e){var a=jQuery.fn.revolution,r=a.is_mobile();jQuery.extend(!0,a,{checkForParallax:function(e,t){var o=t.parallax;if(r&&"on"==o.disable_onmobile)return!1;("3D"==o.type||"3d"==o.type)&&(punchgs.TweenLite.set(t.c,{overflow:o.ddd_overflow}),punchgs.TweenLite.set(t.ul,{overflow:o.ddd_overflow}),"carousel"!=t.sliderType&&"on"==o.ddd_shadow&&(t.c.prepend('<div class="dddwrappershadow"></div>'),punchgs.TweenLite.set(t.c.find(".dddwrappershadow"),{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%",width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0}))),t.li.each(function(){var e=jQuery(this);if("3D"==o.type||"3d"==o.type){e.find(".slotholder").wrapAll('<div class="dddwrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden"></div>'),e.find(".tp-parallax-wrap").wrapAll('<div class="dddwrapper-layer" style="width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:5;overflow:'+o.ddd_layer_overflow+';"></div>'),e.find(".rs-parallaxlevel-tobggroup").closest(".tp-parallax-wrap").wrapAll('<div class="dddwrapper-layertobggroup" style="position:absolute;top:0px;left:0px;z-index:50;width:100%;height:100%"></div>');var a=e.find(".dddwrapper"),r=e.find(".dddwrapper-layer"),l=e.find(".dddwrapper-layertobggroup");l.appendTo(a),"carousel"==t.sliderType&&("on"==o.ddd_shadow&&a.addClass("dddwrappershadow"),punchgs.TweenLite.set(a,{borderRadius:t.carousel.border_radius})),punchgs.TweenLite.set(e,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600}),punchgs.TweenLite.set(a,{force3D:"auto",transformOrigin:"50% 50%"}),punchgs.TweenLite.set(r,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5}),punchgs.TweenLite.set(t.ul,{transformStyle:"preserve-3d",transformPerspective:1600})}});for(var l=1;l<=o.levels.length;l++)t.c.find(".rs-parallaxlevel-"+l).each(function(){var e=jQuery(this),a=e.closest(".tp-parallax-wrap");a.data("parallaxlevel",o.levels[l-1]),a.addClass("tp-parallax-container")});("mouse"==o.type||"scroll+mouse"==o.type||"mouse+scroll"==o.type||"3D"==o.type||"3d"==o.type)&&(e.mouseenter(function(a){var r=e.find(".active-revslide"),t=e.offset().top,o=e.offset().left,l=a.pageX-o,i=a.pageY-t;r.data("enterx",l),r.data("entery",i)}),e.on("mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath",function(a,r){var l=r&&r.li?r.li:e.find(".active-revslide");if("enterpoint"==o.origo){var i=e.offset().top,s=e.offset().left;void 0==l.data("enterx")&&l.data("enterx",a.pageX-s),void 0==l.data("entery")&&l.data("entery",a.pageY-i);var n=l.data("enterx")||a.pageX-s,d=l.data("entery")||a.pageY-i,p=n-(a.pageX-s),c=d-(a.pageY-i),u=o.speed/1e3||.4}else var i=e.offset().top,s=e.offset().left,p=t.conw/2-(a.pageX-s),c=t.conh/2-(a.pageY-i),u=o.speed/1e3||3;"mouseleave"==a.type&&(p=o.ddd_lasth||0,c=o.ddd_lastv||0,u=1.5);var h=[];if(l.find(".tp-parallax-container").each(function(e){h.push(jQuery(this))}),e.find(".tp-static-layers .tp-parallax-container").each(function(){h.push(jQuery(this))}),jQuery.each(h,function(){var e=jQuery(this),a=parseInt(e.data("parallaxlevel"),0),r="3D"==o.type||"3d"==o.type?a/200:a/100,t=p*r,l=c*r;"scroll+mouse"==o.type||"mouse+scroll"==o.type?punchgs.TweenLite.to(e,u,{force3D:"auto",x:t,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(e,u,{force3D:"auto",x:t,y:l,ease:punchgs.Power3.easeOut,overwrite:"all"})}),"3D"==o.type||"3d"==o.type){var f=".tp-revslider-slidesli .dddwrapper, .dddwrappershadow, .tp-revslider-slidesli .dddwrapper-layer";"carousel"===t.sliderType&&(f=".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer"),t.c.find(f).each(function(){var e=jQuery(this),r=o.levels[o.levels.length-1]/200,l=p*r,i=c*r,s=0==t.conw?0:Math.round(p/t.conw*r*100)||0,n=0==t.conh?0:Math.round(c/t.conh*r*100)||0,d=e.closest("li"),h=0,f=!1;e.hasClass("dddwrapper-layer")&&(h=o.ddd_z_correction||65,f=!0),e.hasClass("dddwrapper-layer")&&(l=0,i=0),d.hasClass("active-revslide")||"carousel"!=t.sliderType?"on"!=o.ddd_bgfreeze||f?punchgs.TweenLite.to(e,u,{rotationX:n,rotationY:-s,x:l,z:h,y:i,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(e,.5,{force3D:"auto",rotationY:0,rotationX:0,z:0,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(e,.5,{force3D:"auto",rotationY:0,z:0,x:0,y:0,rotationX:0,z:0,ease:punchgs.Power3.easeOut,overwrite:"all"}),"mouseleave"==a.type&&punchgs.TweenLite.to(jQuery(this),3.8,{z:0,ease:punchgs.Power3.easeOut})})}}),r&&(window.ondeviceorientation=function(a){var r=Math.round(a.beta||0)-70,l=Math.round(a.gamma||0),i=e.find(".active-revslide");if(jQuery(window).width()>jQuery(window).height()){var s=l;l=r,r=s}var n=e.width(),d=e.height(),p=360/n*l,c=180/d*r,u=o.speed/1e3||3,h=[];if(i.find(".tp-parallax-container").each(function(e){h.push(jQuery(this))}),e.find(".tp-static-layers .tp-parallax-container").each(function(){h.push(jQuery(this))}),jQuery.each(h,function(){var e=jQuery(this),a=parseInt(e.data("parallaxlevel"),0),r=a/100,t=p*r*2,o=c*r*4;punchLine truncated
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
/************************************************
|
||||
* REVOLUTION 5.0 EXTENSION - SLIDE ANIMATIONS
|
||||
* @version: 1.1.0 (10.11.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
************************************************/
|
||||
!function(){var t=jQuery.fn.revolution;jQuery.extend(!0,t,{animateSlide:function(t,e,o,a,n,r,s,l,d){return i(t,e,o,a,n,r,s,l,d)}});var e=function(e,o,a,i){var n=e,r=n.find(".defaultimg"),s=n.data("zoomstart"),l=n.data("rotationstart");void 0!=r.data("currotate")&&(l=r.data("currotate")),void 0!=r.data("curscale")&&"box"==i?s=100*r.data("curscale"):void 0!=r.data("curscale")&&(s=r.data("curscale")),t.slotSize(r,o);var d=r.attr("src"),h=r.css("backgroundColor"),f=o.width,c=o.height,p=r.data("fxof"),u=0;"on"==o.autoHeight&&(c=o.c.height()),void 0==p&&(p=0);var g=0,w=r.data("bgfit"),v=r.data("bgrepeat"),m=r.data("bgposition");switch(void 0==w&&(w="cover"),void 0==v&&(v="no-repeat"),void 0==m&&(m="center center"),i){case"box":for(var x=0,y=0,T=0;T<o.slots;T++){y=0;for(var z=0;z<o.slots;z++)n.append('<div class="slot" style="position:absolute;top:'+(u+y)+"px;left:"+(p+x)+"px;width:"+o.slotw+"px;height:"+o.sloth+'px;overflow:hidden;"><div class="slotslide" data-x="'+x+'" data-y="'+y+'" style="position:absolute;top:0px;left:0px;width:'+o.slotw+"px;height:"+o.sloth+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-y)+"px;left:"+(0-x)+"px;width:"+f+"px;height:"+c+"px;background-color:"+h+";background-image:url("+d+");background-repeat:"+v+";background-size:"+w+";background-position:"+m+';"></div></div></div>'),y+=o.sloth,void 0!=s&&void 0!=l&&punchgs.TweenLite.set(n.find(".slot").last(),{rotationZ:l});x+=o.slotw}break;case"vertical":case"horizontal":if("horizontal"==i){if(!a)var g=0-o.slotw;for(var z=0;z<o.slots;z++)n.append('<div class="slot" style="position:absolute;top:'+(0+u)+"px;left:"+(p+z*o.slotw)+"px;overflow:hidden;width:"+(o.slotw+.6)+"px;height:"+c+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+g+"px;width:"+(o.slotw+.6)+"px;height:"+c+'px;overflow:hidden;"><div style="background-color:'+h+";position:absolute;top:0px;left:"+(0-z*o.slotw)+"px;width:"+f+"px;height:"+c+"px;background-image:url("+d+");background-repeat:"+v+";background-size:"+w+";background-position:"+m+';"></div></div></div>'),void 0!=s&&void 0!=l&&punchgs.TweenLite.set(n.find(".slot").last(),{rotationZ:l})}else{if(!a)var g=0-o.sloth;for(var z=0;z<o.slots+2;z++)n.append('<div class="slot" style="position:absolute;top:'+(u+z*o.sloth)+"px;left:"+p+"px;overflow:hidden;width:"+f+"px;height:"+o.sloth+'px"><div class="slotslide" style="position:absolute;top:'+g+"px;left:0px;width:"+f+"px;height:"+o.sloth+'px;overflow:hidden;"><div style="background-color:'+h+";position:absolute;top:"+(0-z*o.sloth)+"px;left:0px;width:"+f+"px;height:"+c+"px;background-image:url("+d+");background-repeat:"+v+";background-size:"+w+";background-position:"+m+';"></div></div></div>'),void 0!=s&&void 0!=l&&punchgs.TweenLite.set(n.find(".slot").last(),{rotationZ:l})}}},o=function(t,e,o,a,i){function n(){jQuery.each(y,function(t,e){(e[0]==o||e[8]==o)&&(w=e[1],v=e[2],m=x),x+=1})}var r=punchgs.Power1.easeIn,s=punchgs.Power1.easeOut,l=punchgs.Power1.easeInOut,d=punchgs.Power2.easeIn,h=punchgs.Power2.easeOut,f=punchgs.Power2.easeInOut,c=(punchgs.Power3.easeIn,punchgs.Power3.easeOut),p=punchgs.Power3.easeInOut,u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],g=[16,17,18,19,20,21,22,23,24,25,27],w=0,v=1,m=0,x=0,y=(new Array,[["boxslide",0,1,10,0,"box",!1,null,0,s,s,500,6],["boxfade",1,0,10,0,"box",!1,null,1,l,l,700,5],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2,f,f,700,3],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3,f,f,700,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4,s,s,300,5],["curtain-2",5,3,0,0,"horizontal",!0,!0,5,s,s,300,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6,s,s,300,5],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7,s,s,300,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8,h,h,500,8],["slotfade-horizontal",9,0,0,500,"horizontal",!0,null,9,h,h,500,25],["slotfade-vertical",10,0,0,500,"vertical",!0,null,10,h,h,500,25],["fade",11,0,1,300,"horizontal",!0,null,11,f,f,1e3,1],["crossfade",11,1,1,300,"horizontal",!0,null,11,f,f,1e3,1],["fadethroughdark",11,2,1,300,"horizontal",!0,null,11,f,f,1e3,1],["fadethroughlight",11,3,1,300,"horizontal",!0,null,11,f,f,1e3,1],["fadethroughtransparent",11,4,1,300,"horizontal",!0,null,11,f,f,1e3,1],["slideleft",12,0,1,0,"horizontal",!0,!0,12,p,p,1e3,1],["slideup",13,0,1,0,"horizontal",!0,!0,13,p,p,1e3,1],["slidedown",14,0,1,0,"horizontal",!0,!0,14,p,p,1e3,1],["slideright",15,0,1,0,"horizontal",!0,!0,15,p,p,1e3,1],["slideoverleft",12,7,1,0,"horizontal",!0,!0,12,p,p,1e3,1],["slideoverup",13,7,1,0,"horizontal",!0,!0,13,p,p,1e3,1],["slideoverdown",14,7,1,0,"horizontal",!0,!0,14,p,p,1e3,1],["slideoverright",15,7,1,0,"horizontal",!0,!0,15,p,p,1e3,1],["slideremoveleft",12,8,1,0,"horizontal",!0,!0,12,p,p,1e3,1],["slideremoveup",13,8,1,0,"horizontal",!0,!0,13,p,p,1e3,1],["slideremovedown",14,8,1,0,"horizontal",!0,!0,14,p,p,1e3,1],["slideremoveright",15,8,1,0,"horizontal",!0,!0,15,p,p,1e3,1],["papercut",16,0,0,600,"",null,null,16,p,p,1e3,2],["3dcurLine truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.1 EXTENSION - VIDEO FUNCTIONS
|
||||
* @version: 1.2.1 (26.11.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(e){function t(e){return void 0==e?-1:jQuery.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e}var a=jQuery.fn.revolution,i=a.is_mobile();jQuery.extend(!0,a,{resetVideo:function(e,d){switch(e.data("videotype")){case"youtube":e.data("player");try{if("on"==e.data("forcerewind")&&!i){var o=t(e.data("videostartat"));o=-1==o?0:o,void 0!=e.data("player")&&(e.data("player").seekTo(o),e.data("player").pauseVideo())}}catch(r){}0==e.find(".tp-videoposter").length&&punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});break;case"vimeo":var n=$f(e.find("iframe").attr("id"));try{if("on"==e.data("forcerewind")&&!i){var o=t(e.data("videostartat"));o=-1==o?0:o,n.api("seekTo",o),n.api("pause")}}catch(r){}0==e.find(".tp-videoposter").length&&punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});break;case"html5":if(i&&1==e.data("disablevideoonmobile"))return!1;var s=e.find("video"),l=s[0];if(punchgs.TweenLite.to(s,.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),"on"==e.data("forcerewind")&&!e.hasClass("videoisplaying"))try{var o=t(e.data("videostartat"));l.currentTime=-1==o?0:o}catch(r){}("mute"==e.data("volume")||a.lastToggleState(e.data("videomutetoggledby")))&&(l.muted=!0)}},isVideoMuted:function(e,t){var a=!1;switch(e.data("videotype")){case"youtube":try{var i=e.data("player");a=i.isMuted()}catch(d){}break;case"vimeo":try{$f(e.find("iframe").attr("id"));"mute"==e.data("volume")&&(a=!0)}catch(d){}break;case"html5":var o=e.find("video"),r=o[0];"mute"==e.data("volume")&&(r.muted=!0)}return a},muteVideo:function(e,t){switch(e.data("videotype")){case"youtube":try{var a=e.data("player");a.mute()}catch(i){}break;case"vimeo":try{var d=$f(e.find("iframe").attr("id"));e.data("volume","mute"),d.api("setVolume",0)}catch(i){}break;case"html5":var o=e.find("video"),r=o[0];r.muted=!0}},unMuteVideo:function(e,t){switch(e.data("videotype")){case"youtube":try{var a=e.data("player");a.unMute()}catch(i){}break;case"vimeo":try{var d=$f(e.find("iframe").attr("id"));e.data("volume","1"),d.api("setVolume",1)}catch(i){}break;case"html5":var o=e.find("video"),r=o[0];r.muted=!1}},stopVideo:function(e,t){switch(e.data("videotype")){case"youtube":try{var a=e.data("player");a.pauseVideo()}catch(i){}break;case"vimeo":try{var d=$f(e.find("iframe").attr("id"));d.api("pause")}catch(i){}break;case"html5":var o=e.find("video"),r=o[0];r.pause()}},playVideo:function(e,o){switch(clearTimeout(e.data("videoplaywait")),e.data("videotype")){case"youtube":if(0==e.find("iframe").length)e.append(e.data("videomarkup")),r(e,o,!0);else if(void 0!=e.data("player").playVideo){var n=t(e.data("videostartat")),s=e.data("player").getCurrentTime();1==e.data("nextslideatend-triggered")&&(s=-1,e.data("nextslideatend-triggered",0)),-1!=n&&n>s&&e.data("player").seekTo(n),e.data("player").playVideo()}else e.data("videoplaywait",setTimeout(function(){a.playVideo(e,o)},50));break;case"vimeo":if(0==e.find("iframe").length)e.append(e.data("videomarkup")),r(e,o,!0);else if(e.hasClass("rs-apiready")){var l=e.find("iframe").attr("id"),p=$f(l);void 0==p.api("play")?e.data("videoplaywait",setTimeout(function(){a.playVideo(e,o)},50)):setTimeout(function(){p.api("play");var a=t(e.data("videostartat")),i=e.data("currenttime");1==e.data("nextslideatend-triggered")&&(i=-1,e.data("nextslideatend-triggered",0)),-1!=a&&a>i&&p.api("seekTo",a)},510)}else e.data("videoplaywait",setTimeout(function(){a.playVideo(e,o)},50));break;case"html5":if(i&&1==e.data("disablevideoonmobile"))return!1;var v=e.find("video"),u=v[0],c=v.parent();if(1!=c.data("metaloaded"))d(u,"loadedmetadata",function(e){a.resetVideo(e,o),u.play();var i=t(e.data("videostartat")),d=u.currentTime;1==e.data("nextslideatend-triggered")&&(d=-1,e.data("nextslideatend-triggered",0)),-1!=i&&i>d&&(u.currentTime=i)}(e));else{u.play();var n=t(e.data("videostartat")),s=u.currentTime;1==e.data("nextslideatend-triggered")&&(s=-1,e.data("nextslideatend-triggered",0)),-1!=n&&n>s&&(u.currentTime=n)}}},isVideoPlaying:function(e,t){var a=!1;return void 0!=t.playingvideos&&jQuery.each(t.playingvideos,function(t,i){e.attr("id")==i.attr("id")&&(a=!0)}),a},prepareCoveredVideo:function(e,t,a){var i=a.find("iframe, video"),d=e.split(":")[0],o=e.split(":")[1],r=a.closest(".tp-revslider-slidesli"),n=r.width()/r.height(),s=d/o,l=n/s*100,p=s/n*100;n>s?punchgs.TweenLite.to(i,.001,{height:l+"%",width:"100%",top:-(l-100)/2+"%",left:"0px",position:"absolute"}):punchgs.TweenLite.to(i,.001,{width:p+"%",height:"100%",left:-(p-100)/2+"%",top:"0px",position:"absolute"})},checkVideoApis:function(e,t,a){var i="https:"===location.protocol?"https":"http";if((void 0!=e.data("ytid")||e.find("iframe").length>0&&e.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&(t.youtubeapineeded=!0),(void 0!=e.data("ytid")||e.find("iframe").length>0&&e.find("iframe").attr("src").toLowerCase().indexOf("youtube")Line truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.1 EXTENSION - VIDEO FUNCTIONS
|
||||
* @version: 1.2.1 (26.11.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
!function(e){function t(e){return void 0==e?-1:jQuery.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e}var a=jQuery.fn.revolution,i=a.is_mobile();jQuery.extend(!0,a,{resetVideo:function(e,d){switch(e.data("videotype")){case"youtube":e.data("player");try{if("on"==e.data("forcerewind")&&!i){var o=t(e.data("videostartat"));o=-1==o?0:o,void 0!=e.data("player")&&(e.data("player").seekTo(o),e.data("player").pauseVideo())}}catch(r){}0==e.find(".tp-videoposter").length&&punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});break;case"vimeo":var n=$f(e.find("iframe").attr("id"));try{if("on"==e.data("forcerewind")&&!i){var o=t(e.data("videostartat"));o=-1==o?0:o,n.api("seekTo",o),n.api("pause")}}catch(r){}0==e.find(".tp-videoposter").length&&punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});break;case"html5":if(i&&1==e.data("disablevideoonmobile"))return!1;var s=e.find("video"),l=s[0];if(punchgs.TweenLite.to(s,.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),"on"==e.data("forcerewind")&&!e.hasClass("videoisplaying"))try{var o=t(e.data("videostartat"));l.currentTime=-1==o?0:o}catch(r){}("mute"==e.data("volume")||a.lastToggleState(e.data("videomutetoggledby")))&&(l.muted=!0)}},isVideoMuted:function(e,t){var a=!1;switch(e.data("videotype")){case"youtube":try{var i=e.data("player");a=i.isMuted()}catch(d){}break;case"vimeo":try{$f(e.find("iframe").attr("id"));"mute"==e.data("volume")&&(a=!0)}catch(d){}break;case"html5":var o=e.find("video"),r=o[0];"mute"==e.data("volume")&&(r.muted=!0)}return a},muteVideo:function(e,t){switch(e.data("videotype")){case"youtube":try{var a=e.data("player");a.mute()}catch(i){}break;case"vimeo":try{var d=$f(e.find("iframe").attr("id"));e.data("volume","mute"),d.api("setVolume",0)}catch(i){}break;case"html5":var o=e.find("video"),r=o[0];r.muted=!0}},unMuteVideo:function(e,t){switch(e.data("videotype")){case"youtube":try{var a=e.data("player");a.unMute()}catch(i){}break;case"vimeo":try{var d=$f(e.find("iframe").attr("id"));e.data("volume","1"),d.api("setVolume",1)}catch(i){}break;case"html5":var o=e.find("video"),r=o[0];r.muted=!1}},stopVideo:function(e,t){switch(e.data("videotype")){case"youtube":try{var a=e.data("player");a.pauseVideo()}catch(i){}break;case"vimeo":try{var d=$f(e.find("iframe").attr("id"));d.api("pause")}catch(i){}break;case"html5":var o=e.find("video"),r=o[0];r.pause()}},playVideo:function(e,o){switch(clearTimeout(e.data("videoplaywait")),e.data("videotype")){case"youtube":if(0==e.find("iframe").length)e.append(e.data("videomarkup")),r(e,o,!0);else if(void 0!=e.data("player").playVideo){var n=t(e.data("videostartat")),s=e.data("player").getCurrentTime();1==e.data("nextslideatend-triggered")&&(s=-1,e.data("nextslideatend-triggered",0)),-1!=n&&n>s&&e.data("player").seekTo(n),e.data("player").playVideo()}else e.data("videoplaywait",setTimeout(function(){a.playVideo(e,o)},50));break;case"vimeo":if(0==e.find("iframe").length)e.append(e.data("videomarkup")),r(e,o,!0);else if(e.hasClass("rs-apiready")){var l=e.find("iframe").attr("id"),p=$f(l);void 0==p.api("play")?e.data("videoplaywait",setTimeout(function(){a.playVideo(e,o)},50)):setTimeout(function(){p.api("play");var a=t(e.data("videostartat")),i=e.data("currenttime");1==e.data("nextslideatend-triggered")&&(i=-1,e.data("nextslideatend-triggered",0)),-1!=a&&a>i&&p.api("seekTo",a)},510)}else e.data("videoplaywait",setTimeout(function(){a.playVideo(e,o)},50));break;case"html5":if(i&&1==e.data("disablevideoonmobile"))return!1;var v=e.find("video"),u=v[0],c=v.parent();if(1!=c.data("metaloaded"))d(u,"loadedmetadata",function(e){a.resetVideo(e,o),u.play();var i=t(e.data("videostartat")),d=u.currentTime;1==e.data("nextslideatend-triggered")&&(d=-1,e.data("nextslideatend-triggered",0)),-1!=i&&i>d&&(u.currentTime=i)}(e));else{u.play();var n=t(e.data("videostartat")),s=u.currentTime;1==e.data("nextslideatend-triggered")&&(s=-1,e.data("nextslideatend-triggered",0)),-1!=n&&n>s&&(u.currentTime=n)}}},isVideoPlaying:function(e,t){var a=!1;return void 0!=t.playingvideos&&jQuery.each(t.playingvideos,function(t,i){e.attr("id")==i.attr("id")&&(a=!0)}),a},prepareCoveredVideo:function(e,t,a){var i=a.find("iframe, video"),d=e.split(":")[0],o=e.split(":")[1],r=a.closest(".tp-revslider-slidesli"),n=r.width()/r.height(),s=d/o,l=n/s*100,p=s/n*100;n>s?punchgs.TweenLite.to(i,.001,{height:l+"%",width:"100%",top:-(l-100)/2+"%",left:"0px",position:"absolute"}):punchgs.TweenLite.to(i,.001,{width:p+"%",height:"100%",left:-(p-100)/2+"%",top:"0px",position:"absolute"})},checkVideoApis:function(e,t,a){var i="https:"===location.protocol?"https":"http";if((void 0!=e.data("ytid")||e.find("iframe").length>0&&e.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&(t.youtubeapineeded=!0),(void 0!=e.data("ytid")||e.find("iframe").length>0&&e.find("iframe").attr("src").toLowerCase().indexOf("youtube")Line truncated
|
||||
Whitespace-only changes.
+298
@@ -0,0 +1,298 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - ACTIONS
|
||||
* @version: 1.1 (25.11.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
|
||||
(function($) {
|
||||
|
||||
var _R = jQuery.fn.revolution,
|
||||
_ISM = _R.is_mobile();
|
||||
|
||||
///////////////////////////////////////////
|
||||
// EXTENDED FUNCTIONS AVAILABLE GLOBAL //
|
||||
///////////////////////////////////////////
|
||||
jQuery.extend(true,_R, {
|
||||
checkActions : function(_nc,opt,as) {
|
||||
checkActions_intern(_nc,opt,as);
|
||||
}
|
||||
});
|
||||
|
||||
//////////////////////////////////////////
|
||||
// - INITIALISATION OF ACTIONS - //
|
||||
//////////////////////////////////////////
|
||||
var checkActions_intern = function(_nc,opt,as) {
|
||||
if (as)
|
||||
jQuery.each(as,function(i,a) {
|
||||
a.delay = parseInt(a.delay,0)/1000;
|
||||
_nc.addClass("noSwipe");
|
||||
|
||||
// LISTEN TO ESC TO EXIT FROM FULLSCREEN
|
||||
if (!opt.fullscreen_esclistener) {
|
||||
if (a.action=="exitfullscreen" || a.action=="togglefullscreen") {
|
||||
jQuery(document).keyup(function(e) {
|
||||
if (e.keyCode == 27 && jQuery('#rs-go-fullscreen').length>0)
|
||||
_nc.trigger(a.event);
|
||||
});
|
||||
opt.fullscreen_esclistener = true;
|
||||
}
|
||||
}
|
||||
|
||||
var tnc = a.layer == "backgroundvideo" ? jQuery(".rs-background-video-layer") : a.layer == "firstvideo" ? jQuery(".tp-revslider-slidesli").find('.tp-videolayer') : jQuery("#"+a.layer);
|
||||
// COLLECT ALL TOGGLE TRIGGER TO CONNECT THEM WITH TRIGGERED LAYER
|
||||
switch (a.action) {
|
||||
case "togglevideo":
|
||||
jQuery.each(tnc,function(i,_tnc) {
|
||||
_tnc = jQuery(_tnc);
|
||||
var videotoggledby = _tnc.data('videotoggledby');
|
||||
if (videotoggledby == undefined)
|
||||
videotoggledby = new Array();
|
||||
videotoggledby.push(_nc);
|
||||
_tnc.data('videotoggledby',videotoggledby)
|
||||
});
|
||||
break;
|
||||
case "togglelayer":
|
||||
jQuery.each(tnc,function(i,_tnc) {
|
||||
_tnc = jQuery(_tnc);
|
||||
var layertoggledby = _tnc.data('layertoggledby');
|
||||
if (layertoggledby == undefined)
|
||||
layertoggledby = new Array();
|
||||
layertoggledby.push(_nc);
|
||||
_tnc.data('layertoggledby',layertoggledby)
|
||||
});
|
||||
break;
|
||||
case "toggle_mute_video":
|
||||
jQuery.each(tnc,function(i,_tnc) {
|
||||
_tnc = jQuery(_tnc);
|
||||
var videomutetoggledby = _tnc.data('videomutetoggledby');
|
||||
if (videomutetoggledby == undefined)
|
||||
videomutetoggledby = new Array();
|
||||
videomutetoggledby.push(_nc);
|
||||
_tnc.data('videomutetoggledby',videomutetoggledby);
|
||||
});
|
||||
break;
|
||||
case "toggleslider":
|
||||
if (opt.slidertoggledby == undefined) opt.slidertoggledby = new Array();
|
||||
opt.slidertoggledby.push(_nc);
|
||||
break;
|
||||
case "togglefullscreen":
|
||||
if (opt.fullscreentoggledby == undefined) opt.fullscreentoggledby = new Array();
|
||||
opt.fullscreentoggledby.push(_nc);
|
||||
break;
|
||||
}
|
||||
|
||||
_nc.on(a.event,function() {
|
||||
var tnc = a.layer == "backgroundvideo" ? jQuery(".active-revslide .slotholder .rs-background-video-layer") : a.layer == "firstvideo" ? jQuery(".active-revslide .tp-videolayer").first() : jQuery("#"+a.layer);
|
||||
|
||||
if (a.action=="stoplayer" || a.action=="togglelayer" || a.action=="startlayer") {
|
||||
if (tnc.length>0)
|
||||
if (a.action=="startlayer" || (a.action=="togglelayer" && tnc.data('animdirection')!="in")) {
|
||||
tnc.data('animdirection',"in");
|
||||
var otl = tnc.data('timeline_out'),
|
||||
base_offsetx = opt.sliderType==="carousel" ? 0 : opt.width/2 - (opt.gridwidth[opt.curWinRange]*opt.bw)/2,
|
||||
base_offsety=0;
|
||||
if (otl!=undefined) otl.pause(0).kill();
|
||||
if (_R.animateSingleCaption) _R.animateSingleCaption(tnc,opt,base_offsetx,base_offsety,0,false,true);
|
||||
var tl = tnc.data('timeline');
|
||||
tnc.data('triggerstate',"on");
|
||||
_R.toggleState(tnc.data('layertoggledby'));
|
||||
punchgs.TweenLite.delayedCall(a.delay,function() {
|
||||
tl.play(0);
|
||||
},[tl]);
|
||||
} else
|
||||
|
||||
if (a.action=="stoplayer" || (a.action=="togglelayer" && tnc.data('animdirection')!="out")) {
|
||||
tnc.data('animdirection',"out");
|
||||
tnc.data('triggered',true);
|
||||
tnc.data('triggerstate',"off");
|
||||
if (_R.stopVideo) _R.stopVideo(tnc,opt);
|
||||
if (_R.endMoveCaption)
|
||||
punchgs.TweenLite.delayedCall(a.delay,_R.endMoveCaption,[tnc,null,null,opt]);
|
||||
_R.unToggleState(tnc.data('layertoggledby'))
|
||||
}
|
||||
} else {
|
||||
if (_ISM && (a.action=='playvideo' || a.action=='stopvideo' || a.action=='togglevideo' || a.action=='mutevideo' || a.action=='unmutevideo' || a.action=='toggle_mute_video')) {
|
||||
actionSwitches(tnc,opt,a,_nc);
|
||||
} else {
|
||||
punchgs.TweenLite.delayedCall(a.delay,function() {
|
||||
actionSwitches(tnc,opt,a,_nc);
|
||||
},[tnc,opt,a,_nc]);
|
||||
}
|
||||
}
|
||||
});
|
||||
switch (a.action) {
|
||||
case "togglelayer":
|
||||
case "startlayer":
|
||||
case "playlayer":
|
||||
case "stoplayer":
|
||||
var tnc = jQuery("#"+a.layer);
|
||||
if (tnc.data('start')!="bytrigger") {
|
||||
tnc.data('triggerstate',"on");
|
||||
tnc.data('animdirection',"in");
|
||||
}
|
||||
break;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
var actionSwitches = function(tnc,opt,a,_nc) {
|
||||
switch (a.action) {
|
||||
case "scrollbelow":
|
||||
|
||||
_nc.addClass("tp-scrollbelowslider");
|
||||
_nc.data('scrolloffset',a.offset);
|
||||
_nc.data('scrolldelay',a.delay);
|
||||
var off=getOffContH(opt.fullScreenOffsetContainer) || 0,
|
||||
aof = parseInt(a.offset,0) || 0;
|
||||
off = off - aof || 0;
|
||||
jQuery('body,html').animate({scrollTop:(opt.c.offset().top+(jQuery(opt.li[0]).height())-off)+"px"},{duration:400});
|
||||
break;
|
||||
case "callback":
|
||||
eval(a.callback);
|
||||
break;
|
||||
case "jumptoslide":
|
||||
switch (a.slide.toLowerCase()) {
|
||||
case "+1":
|
||||
case "next":
|
||||
opt.sc_indicator="arrow";
|
||||
_R.callingNewSlide(opt,opt.c,1);
|
||||
break;
|
||||
case "previous":
|
||||
case "prev":
|
||||
case "-1":
|
||||
opt.sc_indicator="arrow";
|
||||
_R.callingNewSlide(opt,opt.c,-1);
|
||||
break;
|
||||
default:
|
||||
var ts = jQuery.isNumeric(a.slide) ? parseInt(a.slide,0) : a.slide;
|
||||
_R.callingNewSlide(opt,opt.c,ts);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "simplelink":
|
||||
window.open(a.url,a.target);
|
||||
break;
|
||||
case "toggleslider":
|
||||
opt.noloopanymore=0;
|
||||
if (opt.sliderstatus=="playing") {
|
||||
opt.c.revpause();
|
||||
_R.unToggleState(opt.slidertoggledby);
|
||||
}
|
||||
else {
|
||||
opt.c.revresume();
|
||||
_R.toggleState(opt.slidertoggledby);
|
||||
}
|
||||
break;
|
||||
case "pauseslider":
|
||||
opt.c.revpause();
|
||||
_R.unToggleState(opt.slidertoggledby);
|
||||
break;
|
||||
case "playslider":
|
||||
opt.noloopanymore=0;
|
||||
opt.c.revresume();
|
||||
_R.toggleState(opt.slidertoggledby);
|
||||
break;
|
||||
case "playvideo":
|
||||
|
||||
if (tnc.length>0)
|
||||
_R.playVideo(tnc,opt);
|
||||
break;
|
||||
case "stopvideo":
|
||||
if (tnc.length>0)
|
||||
if (_R.stopVideo) _R.stopVideo(tnc,opt);
|
||||
break;
|
||||
case "togglevideo":
|
||||
if (tnc.length>0)
|
||||
if (!_R.isVideoPlaying(tnc,opt))
|
||||
_R.playVideo(tnc,opt);
|
||||
else
|
||||
if (_R.stopVideo) _R.stopVideo(tnc,opt);
|
||||
break;
|
||||
case "mutevideo":
|
||||
if (tnc.length>0)
|
||||
_R.muteVideo(tnc,opt);
|
||||
break;
|
||||
case "unmutevideo":
|
||||
if (tnc.length>0)
|
||||
if (_R.unMuteVideo) _R.unMuteVideo(tnc,opt);
|
||||
break;
|
||||
case "toggle_mute_video":
|
||||
if (tnc.length>0)
|
||||
if (_R.isVideoMuted(tnc,opt))
|
||||
_R.unMuteVideo(tnc,opt);
|
||||
else
|
||||
if (_R.muteVideo) _R.muteVideo(tnc,opt);
|
||||
_nc.toggleClass('rs-toggle-content-active');
|
||||
break;
|
||||
case "simulateclick":
|
||||
if (tnc.length>0) tnc.click();
|
||||
break;
|
||||
case "toggleclass":
|
||||
if (tnc.length>0)
|
||||
if (!tnc.hasClass(a.classname))
|
||||
tnc.addClass(a.classname);
|
||||
else
|
||||
tnc.removeClass(a.classname);
|
||||
break;
|
||||
case "gofullscreen":
|
||||
case "exitfullscreen":
|
||||
case "togglefullscreen":
|
||||
|
||||
if (jQuery('#rs-go-fullscreen').length>0 && (a.action=="togglefullscreen" || a.action=="exitfullscreen")) {
|
||||
jQuery('#rs-go-fullscreen').appendTo(jQuery('#rs-was-here'));
|
||||
var paw = opt.c.closest('.forcefullwidth_wrapper_tp_banner').length>0 ? opt.c.closest('.forcefullwidth_wrapper_tp_banner') : opt.c.closest('.rev_slider_wrapper');
|
||||
paw.unwrap();
|
||||
paw.unwrap();
|
||||
opt.minHeight = opt.oldminheight;
|
||||
opt.infullscreenmode = false;
|
||||
opt.c.revredraw();
|
||||
if (opt.playingvideos != undefined && opt.playingvideos.length>0) {
|
||||
jQuery.each(opt.playingvideos,function(i,_nc) {
|
||||
_R.playVideo(_nc,opt);
|
||||
});
|
||||
}
|
||||
_R.unToggleState(opt.fullscreentoggledby);
|
||||
|
||||
} else
|
||||
if (jQuery('#rs-go-fullscreen').length==0 && (a.action=="togglefullscreen" || a.action=="gofullscreen")) {
|
||||
var paw = opt.c.closest('.forcefullwidth_wrapper_tp_banner').length>0 ? opt.c.closest('.forcefullwidth_wrapper_tp_banner') : opt.c.closest('.rev_slider_wrapper');
|
||||
paw.wrap('<div id="rs-was-here"><div id="rs-go-fullscreen"></div></div>');
|
||||
var gf = jQuery('#rs-go-fullscreen');
|
||||
gf.appendTo(jQuery('body'));
|
||||
gf.css({position:'fixed',width:'100%',height:'100%',top:'0px',left:'0px',zIndex:'9999999',background:'#ffffff'});
|
||||
opt.oldminheight = opt.minHeight;
|
||||
opt.minHeight = jQuery(window).height();
|
||||
opt.infullscreenmode = true;
|
||||
opt.c.revredraw();
|
||||
if (opt.playingvideos != undefined && opt.playingvideos.length>0) {
|
||||
jQuery.each(opt.playingvideos,function(i,_nc) {
|
||||
_R.playVideo(_nc,opt);
|
||||
});
|
||||
}
|
||||
_R.toggleState(opt.fullscreentoggledby);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var getOffContH = function(c) {
|
||||
if (c==undefined) return 0;
|
||||
if (c.split(',').length>1) {
|
||||
oc = c.split(",");
|
||||
var a =0;
|
||||
if (oc)
|
||||
jQuery.each(oc,function(index,sc) {
|
||||
if (jQuery(sc).length>0)
|
||||
a = a + jQuery(sc).outerHeight(true);
|
||||
});
|
||||
return a;
|
||||
} else {
|
||||
return jQuery(c).height();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
+346
@@ -0,0 +1,346 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - CAROUSEL
|
||||
* @version: 1.0.2 (01.10.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
(function($) {
|
||||
|
||||
var _R = jQuery.fn.revolution;
|
||||
|
||||
///////////////////////////////////////////
|
||||
// EXTENDED FUNCTIONS AVAILABLE GLOBAL //
|
||||
///////////////////////////////////////////
|
||||
jQuery.extend(true,_R, {
|
||||
|
||||
// CALCULATE CAROUSEL POSITIONS
|
||||
prepareCarousel : function(opt,a,direction) {
|
||||
|
||||
direction = opt.carousel.lastdirection = dircheck(direction,opt.carousel.lastdirection);
|
||||
setCarouselDefaults(opt);
|
||||
|
||||
opt.carousel.slide_offset_target = getActiveCarouselOffset(opt);
|
||||
|
||||
if (a==undefined)
|
||||
_R.carouselToEvalPosition(opt,direction);
|
||||
else
|
||||
animateCarousel(opt,direction,false);
|
||||
|
||||
},
|
||||
|
||||
// MOVE FORWARDS/BACKWARDS DEPENDING ON THE OFFSET TO GET CAROUSEL IN EVAL POSITION AGAIN
|
||||
carouselToEvalPosition : function(opt,direction) {
|
||||
|
||||
var _ = opt.carousel;
|
||||
direction = _.lastdirection = dircheck(direction,_.lastdirection);
|
||||
|
||||
var bb = _.horizontal_align==="center" ? ((_.wrapwidth/2-_.slide_width/2) - _.slide_globaloffset) / _.slide_width : (0 - _.slide_globaloffset) / _.slide_width,
|
||||
fi = _R.simp(bb,opt.slideamount,false);
|
||||
|
||||
var cm = fi - Math.floor(fi),
|
||||
calc = 0,
|
||||
mc = -1 * (Math.ceil(fi) - fi),
|
||||
mf = -1 * (Math.floor(fi) - fi);
|
||||
|
||||
calc = cm>=0.3 && direction==="left" || cm>=0.7 && direction==="right" ? mc : cm<0.3 && direction==="left" || cm<0.7 && direction==="right" ? mf : calc;
|
||||
calc = _.infinity==="off" ? fi<0 ? fi : bb>opt.slideamount-1 ? bb-(opt.slideamount-1) : calc : calc;
|
||||
|
||||
_.slide_offset_target = calc * _.slide_width;
|
||||
// LONGER "SMASH" +/- 1 to Calc
|
||||
|
||||
if (Math.abs(_.slide_offset_target) !==0)
|
||||
animateCarousel(opt,direction,true);
|
||||
else {
|
||||
_R.organiseCarousel(opt,direction);
|
||||
}
|
||||
},
|
||||
|
||||
// ORGANISE THE CAROUSEL ELEMENTS IN POSITION AND TRANSFORMS
|
||||
organiseCarousel : function(opt,direction,setmaind,unli) {
|
||||
|
||||
direction = direction === undefined || direction=="down" || direction=="up" || direction===null || jQuery.isEmptyObject(direction) ? "left" : direction;
|
||||
var _ = opt.carousel,
|
||||
slidepositions = new Array(),
|
||||
len = _.slides.length,
|
||||
leftlimit = _.horizontal_align ==="right" ? leftlimit = opt.width : 0;
|
||||
|
||||
|
||||
for (var i=0;i<len;i++) {
|
||||
var pos = (i * _.slide_width) + _.slide_offset;
|
||||
if (_.infinity==="on") {
|
||||
pos = pos>_.wrapwidth-_.inneroffset && direction=="right" ? _.slide_offset - ((_.slides.length-i)*_.slide_width) : pos;
|
||||
pos = pos<0-_.inneroffset-_.slide_width && direction=="left" ? pos + _.maxwidth : pos;
|
||||
}
|
||||
slidepositions[i] = pos;
|
||||
}
|
||||
var maxd = 999;
|
||||
|
||||
// SECOND RUN FOR NEGATIVE ADJUSTMENETS
|
||||
if (_.slides)
|
||||
jQuery.each(_.slides,function(i,slide) {
|
||||
var pos = slidepositions[i];
|
||||
if (_.infinity==="on") {
|
||||
|
||||
pos = pos>_.wrapwidth-_.inneroffset && direction==="left" ? slidepositions[0] - ((len-i)*_.slide_width) : pos;
|
||||
pos = pos<0-_.inneroffset-_.slide_width ? direction=="left" ? pos + _.maxwidth : direction==="right" ? slidepositions[len-1] + ((i+1)*_.slide_width) : pos : pos;
|
||||
}
|
||||
|
||||
var tr= new Object();
|
||||
|
||||
tr.left = pos + _.inneroffset;
|
||||
|
||||
// CHCECK DISTANCES FROM THE CURRENT FAKE FOCUS POSITION
|
||||
var d = _.horizontal_align==="center" ? (Math.abs(_.wrapwidth/2) - (tr.left+_.slide_width/2))/_.slide_width : (_.inneroffset - tr.left)/_.slide_width,
|
||||
offsdir = d<0 ? -1:1,
|
||||
ha = _.horizontal_align==="center" ? 2 : 1;
|
||||
|
||||
|
||||
if ((setmaind && Math.abs(d)<maxd) || d===0) {
|
||||
maxd = Math.abs(d);
|
||||
_.focused = i;
|
||||
}
|
||||
|
||||
tr.width =_.slide_width;
|
||||
tr.x = 0;
|
||||
tr.transformPerspective = 1200;
|
||||
tr.transformOrigin = "50% "+_.vertical_align;
|
||||
|
||||
// SET VISIBILITY OF ELEMENT
|
||||
if (_.fadeout==="on")
|
||||
if (_.vary_fade==="on")
|
||||
tr.autoAlpha = 1-Math.abs(((1/Math.ceil(_.maxVisibleItems/ha))*d))
|
||||
else
|
||||
switch(_.horizontal_align) {
|
||||
case "center":
|
||||
tr.autoAlpha = Math.abs(d)<Math.ceil((_.maxVisibleItems/ha)-1) ? 1 : 1-(Math.abs(d)-Math.floor(Math.abs(d)));
|
||||
break;
|
||||
case "left":
|
||||
tr.autoAlpha = d<1 && d>0 ? 1-d : Math.abs(d)>_.maxVisibleItems-1 ? 1- (Math.abs(d)-(_.maxVisibleItems-1)) : 1;
|
||||
break;
|
||||
case "right":
|
||||
tr.autoAlpha = d>-1 && d<0 ? 1-Math.abs(d) : d>_.maxVisibleItems-1 ? 1- (Math.abs(d)-(_.maxVisibleItems-1)) : 1;
|
||||
break;
|
||||
}
|
||||
else
|
||||
tr.autoAlpha = Math.abs(d)<Math.ceil((_.maxVisibleItems/ha)) ? 1 : 0;
|
||||
|
||||
|
||||
|
||||
// SET SCALE DOWNS
|
||||
if (_.minScale!==undefined && _.minScale >0) {
|
||||
if (_.vary_scale==="on") {
|
||||
tr.scale = 1- Math.abs(((_.minScale/100/Math.ceil(_.maxVisibleItems/ha))*d));
|
||||
var sx = (_.slide_width - (_.slide_width*tr.scale)) *Math.abs(d);
|
||||
} else {
|
||||
tr.scale = d>=1 || d<=-1 ? 1 - _.minScale/100 : (100-( _.minScale*Math.abs(d)))/100;
|
||||
var sx=(_.slide_width - (_.slide_width*(1 - _.minScale/100)))*Math.abs(d);
|
||||
}
|
||||
}
|
||||
|
||||
// ROTATION FUNCTIONS
|
||||
if (_.maxRotation!==undefined && Math.abs(_.maxRotation)!=0) {
|
||||
if (_.vary_rotation ==="on") {
|
||||
tr.rotationY = Math.abs(_.maxRotation) - Math.abs((1-Math.abs(((1/Math.ceil(_.maxVisibleItems/ha))*d))) * _.maxRotation);
|
||||
tr.autoAlpha = Math.abs(tr.rotationY)>90 ? 0 : tr.autoAlpha;
|
||||
} else {
|
||||
tr.rotationY = d>=1 || d<=-1 ? _.maxRotation : Math.abs(d)*_.maxRotation;
|
||||
}
|
||||
tr.rotationY = d<0 ? tr.rotationY*-1 : tr.rotationY;
|
||||
}
|
||||
|
||||
// SET SPACES BETWEEN ELEMENTS
|
||||
tr.x = (-1*_.space) * d;
|
||||
|
||||
tr.left = Math.floor(tr.left);
|
||||
tr.x = Math.floor(tr.x);
|
||||
|
||||
// ADD EXTRA SPACE ADJUSTEMENT IF COVER MODE IS SELECTED
|
||||
tr.scale !== undefined ? d<0 ? tr.x-sx :tr.x+sx : tr.x;
|
||||
|
||||
// ZINDEX ADJUSTEMENT
|
||||
tr.zIndex = Math.round(100-Math.abs(d*5));
|
||||
|
||||
// TRANSFORM STYLE
|
||||
tr.transformStyle = opt.parallax.type!="3D" && opt.parallax.type!="3d" ? "flat" : "preserve-3d";
|
||||
|
||||
|
||||
|
||||
// ADJUST TRANSFORMATION OF SLIDE
|
||||
punchgs.TweenLite.set(slide,tr);
|
||||
});
|
||||
|
||||
if (unli) {
|
||||
opt.c.find('.next-revslide').removeClass("next-revslide");
|
||||
jQuery(_.slides[_.focused]).addClass("next-revslide");
|
||||
opt.c.trigger("revolution.nextslide.waiting");
|
||||
}
|
||||
|
||||
var ll = _.wrapwidth/2 - _.slide_offset ,
|
||||
rl = _.maxwidth+_.slide_offset-_.wrapwidth/2;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
/**************************************************
|
||||
- CAROUSEL FUNCTIONS -
|
||||
***************************************************/
|
||||
|
||||
var defineCarouselElements = function(opt) {
|
||||
var _ = opt.carousel;
|
||||
|
||||
_.infbackup = _.infinity;
|
||||
_.maxVisiblebackup = _.maxVisibleItems;
|
||||
// SET DEFAULT OFFSETS TO 0
|
||||
_.slide_globaloffset = "none";
|
||||
_.slide_offset = 0;
|
||||
// SET UL REFERENCE
|
||||
_.wrap = opt.c.find('.tp-carousel-wrapper');
|
||||
// COLLECT SLIDES
|
||||
_.slides = opt.c.find('.tp-revslider-slidesli');
|
||||
|
||||
// SET PERSPECTIVE IF ROTATION IS ADDED
|
||||
if (_.maxRotation!==0)
|
||||
if (opt.parallax.type!="3D" && opt.parallax.type!="3d")
|
||||
punchgs.TweenLite.set(_.wrap,{perspective:1200,transformStyle:"flat"});
|
||||
else
|
||||
punchgs.TweenLite.set(_.wrap,{perspective:1600,transformStyle:"preserve-3d"});
|
||||
|
||||
if (_.border_radius!==undefined && parseInt(_.border_radius,0) >0) {
|
||||
punchgs.TweenLite.set(opt.c.find('.tp-revslider-slidesli'),{borderRadius:_.border_radius});
|
||||
}
|
||||
}
|
||||
|
||||
var setCarouselDefaults = function(opt) {
|
||||
|
||||
if (opt.bw===undefined) _R.setSize(opt);
|
||||
var _=opt.carousel,
|
||||
loff = _R.getHorizontalOffset(opt.c,"left"),
|
||||
roff = _R.getHorizontalOffset(opt.c,"right");
|
||||
|
||||
// IF NO DEFAULTS HAS BEEN DEFINED YET
|
||||
if (_.wrap===undefined) defineCarouselElements(opt);
|
||||
// DEFAULT LI WIDTH SHOULD HAVE THE SAME WIDTH OF TH OPT WIDTH
|
||||
_.slide_width = _.stretch!=="on" ? opt.gridwidth[opt.curWinRange]*opt.bw : opt.c.width();
|
||||
|
||||
// CALCULATE CAROUSEL WIDTH
|
||||
_.maxwidth = opt.slideamount*_.slide_width;
|
||||
if (_.maxVisiblebackup>_.slides.length+1)
|
||||
_.maxVisibleItems = _.slides.length+2;
|
||||
|
||||
// SET MAXIMUM CAROUSEL WARPPER WIDTH (SHOULD BE AN ODD NUMBER)
|
||||
_.wrapwidth = (_.maxVisibleItems * _.slide_width) + ((_.maxVisibleItems - 1) * _.space);
|
||||
_.wrapwidth = opt.sliderLayout!="auto" ?
|
||||
_.wrapwidth>opt.c.closest('.tp-simpleresponsive').width() ? opt.c.closest('.tp-simpleresponsive').width() : _.wrapwidth :
|
||||
_.wrapwidth>opt.ul.width() ? opt.ul.width() : _.wrapwidth;
|
||||
|
||||
|
||||
// INFINITY MODIFICATIONS
|
||||
_.infinity = _.wrapwidth >=_.maxwidth ? "off" : _.infbackup;
|
||||
|
||||
|
||||
// SET POSITION OF WRAP CONTAINER
|
||||
_.wrapoffset = _.horizontal_align==="center" ? (opt.c.width()-roff - loff - _.wrapwidth)/2 : 0;
|
||||
_.wrapoffset = opt.sliderLayout!="auto" && opt.outernav ? 0 : _.wrapoffset < loff ? loff : _.wrapoffset;
|
||||
|
||||
var ovf = "hidden";
|
||||
if ((opt.parallax.type=="3D" || opt.parallax.type=="3d"))
|
||||
ovf = "visible";
|
||||
|
||||
|
||||
|
||||
if (_.horizontal_align==="right")
|
||||
punchgs.TweenLite.set(_.wrap,{left:"auto",right:_.wrapoffset+"px", width:_.wrapwidth, overflow:ovf});
|
||||
else
|
||||
punchgs.TweenLite.set(_.wrap,{right:"auto",left:_.wrapoffset+"px", width:_.wrapwidth, overflow:ovf});
|
||||
|
||||
|
||||
|
||||
// INNER OFFSET FOR RTL
|
||||
_.inneroffset = _.horizontal_align==="right" ? _.wrapwidth - _.slide_width : 0;
|
||||
|
||||
// THE REAL OFFSET OF THE WRAPPER
|
||||
_.realoffset = (Math.abs(_.wrap.position().left)); // + opt.c.width()/2);
|
||||
|
||||
// THE SCREEN WIDTH/2
|
||||
_.windhalf = jQuery(window).width()/2;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// DIRECTION CHECK
|
||||
var dircheck = function(d,b) {
|
||||
return d===null || jQuery.isEmptyObject(d) ? b : d === undefined ? "right" : d;;
|
||||
}
|
||||
|
||||
// ANIMATE THE CAROUSEL WITH OFFSETS
|
||||
var animateCarousel = function(opt,direction,nsae) {
|
||||
var _ = opt.carousel;
|
||||
direction = _.lastdirection = dircheck(direction,_.lastdirection);
|
||||
|
||||
var animobj = new Object();
|
||||
animobj.from = 0;
|
||||
animobj.to = _.slide_offset_target;
|
||||
if (_.positionanim!==undefined)
|
||||
_.positionanim.pause();
|
||||
_.positionanim = punchgs.TweenLite.to(animobj,1.2,{from:animobj.to,
|
||||
onUpdate:function() {
|
||||
_.slide_offset = _.slide_globaloffset + animobj.from;
|
||||
_.slide_offset = _R.simp(_.slide_offset , _.maxwidth);
|
||||
_R.organiseCarousel(opt,direction,false,false);
|
||||
},
|
||||
onComplete:function() {
|
||||
|
||||
_.slide_globaloffset = _.infinity==="off" ? _.slide_globaloffset + _.slide_offset_target : _R.simp(_.slide_globaloffset + _.slide_offset_target, _.maxwidth);
|
||||
_.slide_offset = _R.simp(_.slide_offset , _.maxwidth);
|
||||
|
||||
_R.organiseCarousel(opt,direction,false,true);
|
||||
var li = jQuery(opt.li[_.focused]);
|
||||
opt.c.find('.next-revslide').removeClass("next-revslide");
|
||||
if (nsae) _R.callingNewSlide(opt,opt.c,li.data('index'));
|
||||
}, ease:punchgs.Expo.easeOut});
|
||||
}
|
||||
|
||||
|
||||
var breduc = function(a,m) {
|
||||
return Math.abs(a)>Math.abs(m) ? a>0 ? a - Math.abs(Math.floor(a/(m))*(m)) : a + Math.abs(Math.floor(a/(m))*(m)) : a;
|
||||
}
|
||||
|
||||
// CAROUSEL INFINITY MODE, DOWN OR UP ANIMATION
|
||||
var getBestDirection = function(a,b,max) {
|
||||
var dira = b-a,max,
|
||||
dirb = (b-max) - a,max;
|
||||
dira = breduc(dira,max);
|
||||
dirb = breduc(dirb,max);
|
||||
return Math.abs(dira)>Math.abs(dirb) ? dirb : dira;
|
||||
}
|
||||
|
||||
// GET OFFSETS BEFORE ANIMATION
|
||||
var getActiveCarouselOffset = function(opt) {
|
||||
var ret = 0,
|
||||
_ = opt.carousel;
|
||||
|
||||
if (_.positionanim!==undefined) _.positionanim.kill();
|
||||
|
||||
if (_.slide_globaloffset=="none")
|
||||
_.slide_globaloffset = ret = _.horizontal_align==="center" ? (_.wrapwidth/2-_.slide_width/2) : 0;
|
||||
|
||||
else {
|
||||
|
||||
_.slide_globaloffset = _.slide_offset;
|
||||
_.slide_offset = 0;
|
||||
var ci = opt.c.find('.processing-revslide').index(),
|
||||
fi = _.horizontal_align==="center" ? ((_.wrapwidth/2-_.slide_width/2) - _.slide_globaloffset) / _.slide_width : (0 - _.slide_globaloffset) / _.slide_width;
|
||||
|
||||
fi = _R.simp(fi,opt.slideamount,false);
|
||||
ci = ci>=0 ? ci : opt.c.find('.active-revslide').index();
|
||||
ci = ci>=0 ? ci : 0;
|
||||
|
||||
ret = _.infinity==="off" ? fi-ci : -getBestDirection(fi,ci,opt.slideamount);
|
||||
ret = ret * _.slide_width;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.0 EXTENSION - KEN BURN
|
||||
* @version: 1.0.0 (03.08.2015)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
|
||||
(function($) {
|
||||
|
||||
var _R = jQuery.fn.revolution;
|
||||
|
||||
///////////////////////////////////////////
|
||||
// EXTENDED FUNCTIONS AVAILABLE GLOBAL //
|
||||
///////////////////////////////////////////
|
||||
jQuery.extend(true,_R, {
|
||||
|
||||
stopKenBurn : function(l) {
|
||||
if (l.data('kbtl')!=undefined)
|
||||
l.data('kbtl').pause();
|
||||
},
|
||||
|
||||
startKenBurn : function(l,opt,prgs) {
|
||||
var d = l.data(),
|
||||
i = l.find('.defaultimg'),
|
||||
s = i.data('lazyload') || i.data('src'),
|
||||
i_a = d.owidth / d.oheight,
|
||||
cw = opt.sliderType==="carousel" ? opt.carousel.slide_width : opt.ul.width(),
|
||||
ch = opt.ul.height(),
|
||||
c_a = cw / ch;
|
||||
|
||||
|
||||
if (l.data('kbtl'))
|
||||
l.data('kbtl').kill();
|
||||
|
||||
|
||||
prgs = prgs || 0;
|
||||
|
||||
|
||||
|
||||
|
||||
// NO KEN BURN IMAGE EXIST YET
|
||||
if (l.find('.tp-kbimg').length==0) {
|
||||
l.append('<div class="tp-kbimg-wrap" style="z-index:2;width:100%;height:100%;top:0px;left:0px;position:absolute;"><img class="tp-kbimg" src="'+s+'" style="position:absolute;" width="'+d.owidth+'" height="'+d.oheight+'"></div>');
|
||||
l.data('kenburn',l.find('.tp-kbimg'));
|
||||
}
|
||||
|
||||
var getKBSides = function(w,h,f,cw,ch,ho,vo) {
|
||||
var tw = w * f,
|
||||
th = h * f,
|
||||
hd = Math.abs(cw-tw),
|
||||
vd = Math.abs(ch-th),
|
||||
s = new Object();
|
||||
s.l = (0-ho)*hd;
|
||||
s.r = s.l + tw;
|
||||
s.t = (0-vo)*vd;
|
||||
s.b = s.t + th;
|
||||
s.h = ho;
|
||||
s.v = vo;
|
||||
return s;
|
||||
},
|
||||
|
||||
getKBCorners = function(d,cw,ch,ofs,o) {
|
||||
|
||||
var p = d.bgposition.split(" ") || "center center",
|
||||
ho = p[0] == "center" ? "50%" : p[0] == "left" || p [1] == "left" ? "0%" : p[0]=="right" || p[1] =="right" ? "100%" : p[0],
|
||||
vo = p[1] == "center" ? "50%" : p[0] == "top" || p [1] == "top" ? "0%" : p[0]=="bottom" || p[1] =="bottom" ? "100%" : p[1];
|
||||
|
||||
ho = parseInt(ho,0)/100 || 0;
|
||||
vo = parseInt(vo,0)/100 || 0;
|
||||
|
||||
|
||||
var sides = new Object();
|
||||
|
||||
|
||||
sides.start = getKBSides(o.start.width,o.start.height,o.start.scale,cw,ch,ho,vo);
|
||||
sides.end = getKBSides(o.start.width,o.start.height,o.end.scale,cw,ch,ho,vo);
|
||||
|
||||
return sides;
|
||||
},
|
||||
|
||||
kcalcL = function(cw,ch,d) {
|
||||
var f=d.scalestart/100,
|
||||
fe=d.scaleend/100,
|
||||
ofs = d.oofsetstart != undefined ? d.offsetstart.split(" ") || [0,0] : [0,0],
|
||||
ofe = d.offsetend != undefined ? d.offsetend.split(" ") || [0,0] : [0,0];
|
||||
d.bgposition = d.bgposition == "center center" ? "50% 50%" : d.bgposition;
|
||||
|
||||
|
||||
var o = new Object(),
|
||||
sw = cw*f,
|
||||
sh = sw/d.owidth * d.oheight,
|
||||
ew = cw*fe,
|
||||
eh = ew/d.owidth * d.oheight;
|
||||
|
||||
|
||||
|
||||
o.start = new Object();
|
||||
o.starto = new Object();
|
||||
o.end = new Object();
|
||||
o.endo = new Object();
|
||||
|
||||
o.start.width = cw;
|
||||
o.start.height = o.start.width / d.owidth * d.oheight;
|
||||
|
||||
if (o.start.height<ch) {
|
||||
var newf = ch / o.start.height;
|
||||
o.start.height = ch;
|
||||
o.start.width = o.start.width*newf;
|
||||
}
|
||||
o.start.transformOrigin = d.bgposition;
|
||||
o.start.scale = f;
|
||||
o.end.scale = fe;
|
||||
|
||||
o.start.rotation = d.rotatestart+"deg";
|
||||
o.end.rotation = d.rotateend+"deg";
|
||||
|
||||
// MAKE SURE THAT OFFSETS ARE NOT TOO HIGH
|
||||
var c = getKBCorners(d,cw,ch,ofs,o);
|
||||
|
||||
|
||||
ofs[0] = parseFloat(ofs[0]) + c.start.l;
|
||||
ofe[0] = parseFloat(ofe[0]) + c.end.l;
|
||||
|
||||
ofs[1] = parseFloat(ofs[1]) + c.start.t;
|
||||
ofe[1] = parseFloat(ofe[1]) + c.end.t;
|
||||
|
||||
var iws = c.start.r - c.start.l,
|
||||
ihs = c.start.b - c.start.t,
|
||||
iwe = c.end.r - c.end.l,
|
||||
ihe = c.end.b - c.end.t;
|
||||
|
||||
ofs[0] = ofs[0]>0 ? 0 : iws + ofs[0] < cw ? cw-iws : ofs[0];
|
||||
ofe[0] = ofe[0]>0 ? 0 : iwe + ofe[0] < cw ? cw-iwe : ofe[0];
|
||||
|
||||
ofs[1] = ofs[1]>0 ? 0 : ihs + ofs[1] < ch ? ch-ihs : ofs[1];
|
||||
ofe[1] = ofe[1]>0 ? 0 : ihe + ofe[1] < ch ? ch-ihe : ofe[1];
|
||||
|
||||
|
||||
|
||||
o.starto.x = ofs[0]+"px";
|
||||
o.starto.y = ofs[1]+"px";
|
||||
o.endo.x = ofe[0]+"px";
|
||||
o.endo.y = ofe[1]+"px";
|
||||
o.end.ease = o.endo.ease = d.ease;
|
||||
o.end.force3D = o.endo.force3D = true;
|
||||
return o;
|
||||
};
|
||||
|
||||
if (l.data('kbtl')!=undefined) {
|
||||
l.data('kbtl').kill();
|
||||
l.removeData('kbtl');
|
||||
}
|
||||
|
||||
var k = l.data('kenburn'),
|
||||
kw = k.parent(),
|
||||
anim = kcalcL(cw,ch,d),
|
||||
kbtl = new punchgs.TimelineLite();
|
||||
|
||||
|
||||
kbtl.pause();
|
||||
|
||||
anim.start.transformOrigin = "0% 0%";
|
||||
anim.starto.transformOrigin = "0% 0%";
|
||||
|
||||
kbtl.add(punchgs.TweenLite.fromTo(k,d.duration/1000,anim.start,anim.end),0);
|
||||
kbtl.add(punchgs.TweenLite.fromTo(kw,d.duration/1000,anim.starto,anim.endo),0);
|
||||
|
||||
kbtl.progress(prgs);
|
||||
kbtl.play();
|
||||
|
||||
l.data('kbtl',kbtl);
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
+1475
File diff suppressed because it is too large.
Load diff
+259
@@ -0,0 +1,259 @@
|
||||
/*****************************************************************************************************
|
||||
* jquery.themepunch.revmigrate.js - jQuery Plugin for Revolution Slider Migration from 4.x to 5.0
|
||||
* @version: 1.0.1 (18.08.2015)
|
||||
* @requires jQuery v1.7 or later (tested on 1.9)
|
||||
* @author ThemePunch
|
||||
*****************************************************************************************************/
|
||||
|
||||
|
||||
(function($) {
|
||||
|
||||
var _R = jQuery.fn.revolution;
|
||||
|
||||
///////////////////////////////////////////
|
||||
// EXTENDED FUNCTIONS AVAILABLE GLOBAL //
|
||||
///////////////////////////////////////////
|
||||
jQuery.extend(true,_R, {
|
||||
|
||||
// OUR PLUGIN HERE :)
|
||||
migration: function(container,options) {
|
||||
// PREPARE THE NEW OPTIONS
|
||||
options = prepOptions(options);
|
||||
// PREPARE LAYER ANIMATIONS
|
||||
prepLayerAnimations(container,options);
|
||||
return options;
|
||||
}
|
||||
});
|
||||
|
||||
var prepOptions = function(o) {
|
||||
|
||||
// PARALLAX FALLBACKS
|
||||
if (o.parallaxLevels || o.parallaxBgFreeze) {
|
||||
var p = new Object();
|
||||
p.type = o.parallax
|
||||
p.levels = o.parallaxLevels;
|
||||
p.bgparallax = o.parallaxBgFreeze == "on" ? "off" : "on";
|
||||
|
||||
p.disable_onmobile = o.parallaxDisableOnMobile;
|
||||
o.parallax = p;
|
||||
}
|
||||
if (o.disableProgressBar === undefined)
|
||||
o.disableProgressBar = o.hideTimerBar || "off";
|
||||
|
||||
// BASIC FALLBACKS
|
||||
if (o.startwidth || o.startheight) {
|
||||
o.gridwidth = o.startwidth;
|
||||
o.gridheight = o.startheight;
|
||||
}
|
||||
|
||||
if (o.sliderType===undefined)
|
||||
o.sliderType = "standard";
|
||||
|
||||
if (o.fullScreen==="on")
|
||||
o.sliderLayout = "fullscreen";
|
||||
|
||||
if (o.fullWidth==="on")
|
||||
o.sliderLayout = "fullwidth";
|
||||
|
||||
if (o.sliderLayout===undefined)
|
||||
o.sliderLayout = "auto";
|
||||
|
||||
|
||||
// NAVIGATION ARROW FALLBACKS
|
||||
if (o.navigation===undefined) {
|
||||
var n = new Object();
|
||||
if (o.navigationArrows=="solo" || o.navigationArrows=="nextto") {
|
||||
var a = new Object();
|
||||
a.enable = true;
|
||||
a.style = o.navigationStyle || "";
|
||||
a.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
|
||||
a.hide_onleave = o.hideThumbs >0 ? true : false;
|
||||
a.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
|
||||
a.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
|
||||
a.hide_under = 0;
|
||||
a.tmp = '';
|
||||
a.left = {
|
||||
h_align:o.soloArrowLeftHalign,
|
||||
v_align:o.soloArrowLeftValign,
|
||||
h_offset:o.soloArrowLeftHOffset,
|
||||
v_offset:o.soloArrowLeftVOffset
|
||||
};
|
||||
a.right = {
|
||||
h_align:o.soloArrowRightHalign,
|
||||
v_align:o.soloArrowRightValign,
|
||||
h_offset:o.soloArrowRightHOffset,
|
||||
v_offset:o.soloArrowRightVOffset
|
||||
};
|
||||
n.arrows = a;
|
||||
}
|
||||
if (o.navigationType=="bullet") {
|
||||
var b = new Object();
|
||||
b.style = o.navigationStyle || "";
|
||||
b.enable=true;
|
||||
b.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
|
||||
b.hide_onleave = o.hideThumbs >0 ? true : false;
|
||||
b.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
|
||||
b.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
|
||||
b.hide_under = 0;
|
||||
b.direction="horizontal";
|
||||
b.h_align=o.navigationHAlign || "center";
|
||||
b.v_align=o.navigationVAlign || "bottom";
|
||||
b.space=5;
|
||||
b.h_offset=o.navigationHOffset || 0;
|
||||
b.v_offset=o.navigationVOffset || 20;
|
||||
b.tmp='<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>';
|
||||
n.bullets = b;
|
||||
}
|
||||
if (o.navigationType=="thumb") {
|
||||
var t = new Object();
|
||||
t.style=o.navigationStyle || "";
|
||||
t.enable=true;
|
||||
t.width=o.thumbWidth || 100;
|
||||
t.height=o.thumbHeight || 50;
|
||||
t.min_width=o.thumbWidth || 100;
|
||||
t.wrapper_padding=2;
|
||||
t.wrapper_color="#f5f5f5";
|
||||
t.wrapper_opacity=1;
|
||||
t.visibleAmount=o.thumbAmount || 3;
|
||||
t.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
|
||||
t.hide_onleave = o.hideThumbs >0 ? true : false;
|
||||
t.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
|
||||
t.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
|
||||
t.hide_under = 0;
|
||||
t.direction="horizontal";
|
||||
t.span=false;
|
||||
t.position="inner";
|
||||
t.space=2;
|
||||
t.h_align=o.navigationHAlign || "center";
|
||||
t.v_align=o.navigationVAlign || "bottom";
|
||||
t.h_offset=o.navigationHOffset || 0;
|
||||
t.v_offset=o.navigationVOffset || 20;
|
||||
t.tmp='<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>';
|
||||
n.thumbnails = t;
|
||||
}
|
||||
|
||||
o.navigation = n;
|
||||
|
||||
o.navigation.keyboardNavigation=o.keyboardNavigation || "on";
|
||||
o.navigation.onHoverStop=o.onHoverStop || "on";
|
||||
o.navigation.touch = {
|
||||
touchenabled:o.touchenabled || "on",
|
||||
swipe_treshold : o.swipe_treshold ||75,
|
||||
swipe_min_touches : o.swipe_min_touches || 1,
|
||||
drag_block_vertical:o.drag_block_vertical || false
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
o.fallbacks = {
|
||||
isJoomla:o.isJoomla || false,
|
||||
panZoomDisableOnMobile: o.parallaxDisableOnMobile || "off",
|
||||
simplifyAll:o.simplifyAll || "on",
|
||||
nextSlideOnWindowFocus:o.nextSlideOnWindowFocus || "off",
|
||||
disableFocusListener:o.disableFocusListener || true
|
||||
};
|
||||
|
||||
return o;
|
||||
|
||||
}
|
||||
|
||||
var prepLayerAnimations = function(container,opt) {
|
||||
|
||||
var c = new Object(),
|
||||
cw = container.width(),
|
||||
ch = container.height();
|
||||
|
||||
c.skewfromleftshort = "x:-50;skX:85;o:0";
|
||||
c.skewfromrightshort = "x:50;skX:-85;o:0";
|
||||
c.sfl = "x:-50;o:0";
|
||||
c.sfr = "x:50;o:0";
|
||||
c.sft = "y:-50;o:0";
|
||||
c.sfb = "y:50;o:0";
|
||||
c.skewfromleft = "x:top;skX:85;o:0";
|
||||
c.skewfromright = "x:bottom;skX:-85;o:0";
|
||||
c.lfl = "x:top;o:0";
|
||||
c.lfr = "x:bottom;o:0";
|
||||
c.lft = "y:left;o:0";
|
||||
c.lfb = "y:right;o:0";
|
||||
c.fade = "o:0";
|
||||
var src = (Math.random()*720-360)
|
||||
|
||||
|
||||
container.find('.tp-caption').each(function() {
|
||||
var cp = jQuery(this),
|
||||
rw = Math.random()*(cw*2)-cw,
|
||||
rh = Math.random()*(ch*2)-ch,
|
||||
rs = Math.random()*3,
|
||||
rz = Math.random()*720-360,
|
||||
rx = Math.random()*70-35,
|
||||
ry = Math.random()*70-35,
|
||||
ncc = cp.attr('class');
|
||||
c.randomrotate = "x:{-400,400};y:{-400,400};sX:{0,2};sY:{0,2};rZ:{-180,180};rX:{-180,180};rY:{-180,180};o:0;";
|
||||
|
||||
if (ncc.match("randomrotate")) cp.data('transform_in',c.randomrotate)
|
||||
else
|
||||
if (ncc.match(/\blfl\b/)) cp.data('transform_in',c.lfl)
|
||||
else
|
||||
if (ncc.match(/\blfr\b/)) cp.data('transform_in',c.lfr)
|
||||
else
|
||||
if (ncc.match(/\blft\b/)) cp.data('transform_in',c.lft)
|
||||
else
|
||||
if (ncc.match(/\blfb\b/)) cp.data('transform_in',c.lfb)
|
||||
else
|
||||
if (ncc.match(/\bsfl\b/)) cp.data('transform_in',c.sfl)
|
||||
else
|
||||
if (ncc.match(/\bsfr\b/)) cp.data('transform_in',c.sfr)
|
||||
else
|
||||
if (ncc.match(/\bsft\b/)) cp.data('transform_in',c.sft)
|
||||
else
|
||||
if (ncc.match(/\bsfb\b/)) cp.data('transform_in',c.sfb)
|
||||
else
|
||||
if (ncc.match(/\bskewfromleftshort\b/)) cp.data('transform_in',c.skewfromleftshort)
|
||||
else
|
||||
if (ncc.match(/\bskewfromrightshort\b/)) cp.data('transform_in',c.skewfromrightshort)
|
||||
else
|
||||
if (ncc.match(/\bskewfromleft\b/)) cp.data('transform_in',c.skewfromleft)
|
||||
else
|
||||
if (ncc.match(/\bskewfromright\b/)) cp.data('transform_in',c.skewfromright)
|
||||
else
|
||||
if (ncc.match(/\bfade\b/)) cp.data('transform_in',c.fade);
|
||||
|
||||
if (ncc.match(/\brandomrotateout\b/)) cp.data('transform_out',c.randomrotate)
|
||||
else
|
||||
if (ncc.match(/\bltl\b/)) cp.data('transform_out',c.lfl)
|
||||
else
|
||||
if (ncc.match(/\bltr\b/)) cp.data('transform_out',c.lfr)
|
||||
else
|
||||
if (ncc.match(/\bltt\b/)) cp.data('transform_out',c.lft)
|
||||
else
|
||||
if (ncc.match(/\bltb\b/)) cp.data('transform_out',c.lfb)
|
||||
else
|
||||
if (ncc.match(/\bstl\b/)) cp.data('transform_out',c.sfl)
|
||||
else
|
||||
if (ncc.match(/\bstr\b/)) cp.data('transform_out',c.sfr)
|
||||
else
|
||||
if (ncc.match(/\bstt\b/)) cp.data('transform_out',c.sft)
|
||||
else
|
||||
if (ncc.match(/\bstb\b/)) cp.data('transform_out',c.sfb)
|
||||
else
|
||||
if (ncc.match(/\bskewtoleftshortout\b/)) cp.data('transform_out',c.skewfromleftshort)
|
||||
else
|
||||
if (ncc.match(/\bskewtorightshortout\b/)) cp.data('transform_out',c.skewfromrightshort)
|
||||
else
|
||||
if (ncc.match(/\bskewtoleftout\b/)) cp.data('transform_out',c.skewfromleft)
|
||||
else
|
||||
if (ncc.match(/\bskewtorightout\b/)) cp.data('transform_out',c.skewfromright)
|
||||
else
|
||||
if (ncc.match(/\bfadeout\b/)) cp.data('transform_out',c.fade);
|
||||
|
||||
if (cp.data('customin')!=undefined) cp.data('transform_in',cp.data('customin'));
|
||||
if (cp.data('customout')!=undefined) cp.data('transform_out',cp.data('customout'));
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
})(jQuery);
|
||||
|
||||
|
||||
|
||||
|
||||
+1051
File diff suppressed because it is too large.
Load diff
+392
@@ -0,0 +1,392 @@
|
||||
/********************************************
|
||||
* REVOLUTION 5.1.6 EXTENSION - PARALLAX
|
||||
* @version: 1.2 (04.01.2016)
|
||||
* @requires jquery.themepunch.revolution.js
|
||||
* @author ThemePunch
|
||||
*********************************************/
|
||||
(function($) {
|
||||
|
||||
var _R = jQuery.fn.revolution,
|
||||
_ISM = _R.is_mobile();
|
||||
|
||||
jQuery.extend(true,_R, {
|
||||
/*callStaticDDDParallax: function(container,opt,li) {
|
||||
// STATIC 3D PARALLAX MOVEMENTS
|
||||
if (opt.parallax && (opt.parallax.ddd_path=="static" || opt.parallax.ddd_path=="both")) {
|
||||
var coo = {},
|
||||
path = li.data('3dpath');
|
||||
coo.li = li;
|
||||
if (path.split(',').length>1) {
|
||||
coo.h = parseInt(path.split(',')[0],0);
|
||||
coo.v = parseInt(path.split(',')[1],0);
|
||||
container.trigger('trigger3dpath',coo);
|
||||
}
|
||||
}
|
||||
},*/
|
||||
|
||||
checkForParallax : function(container,opt) {
|
||||
|
||||
var _ = opt.parallax;
|
||||
|
||||
if (_ISM && _.disable_onmobile=="on") return false;
|
||||
|
||||
if (_.type=="3D" || _.type=="3d") {
|
||||
punchgs.TweenLite.set(opt.c,{overflow:_.ddd_overflow});
|
||||
punchgs.TweenLite.set(opt.ul,{overflow:_.ddd_overflow});
|
||||
if (opt.sliderType!="carousel" && _.ddd_shadow=="on") {
|
||||
opt.c.prepend('<div class="dddwrappershadow"></div>')
|
||||
punchgs.TweenLite.set(opt.c.find('.dddwrappershadow'),{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%", width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
opt.li.each(function() {
|
||||
var li = jQuery(this);
|
||||
|
||||
if (_.type=="3D" || _.type=="3d") {
|
||||
li.find('.slotholder').wrapAll('<div class="dddwrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden"></div>');
|
||||
li.find('.tp-parallax-wrap').wrapAll('<div class="dddwrapper-layer" style="width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:5;overflow:'+_.ddd_layer_overflow+';"></div>');
|
||||
|
||||
// MOVE THE REMOVED 3D LAYERS OUT OF THE PARALLAX GROUP
|
||||
li.find('.rs-parallaxlevel-tobggroup').closest('.tp-parallax-wrap').wrapAll('<div class="dddwrapper-layertobggroup" style="position:absolute;top:0px;left:0px;z-index:50;width:100%;height:100%"></div>');
|
||||
|
||||
var dddw = li.find('.dddwrapper'),
|
||||
dddwl = li.find('.dddwrapper-layer'),
|
||||
dddwlbg = li.find('.dddwrapper-layertobggroup');
|
||||
|
||||
|
||||
|
||||
dddwlbg.appendTo(dddw);
|
||||
|
||||
if (opt.sliderType=="carousel") {
|
||||
if (_.ddd_shadow=="on") dddw.addClass("dddwrappershadow");
|
||||
punchgs.TweenLite.set(dddw,{borderRadius:opt.carousel.border_radius});
|
||||
}
|
||||
punchgs.TweenLite.set(li,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600});
|
||||
punchgs.TweenLite.set(dddw,{force3D:"auto",transformOrigin:"50% 50%"});
|
||||
punchgs.TweenLite.set(dddwl,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5});
|
||||
punchgs.TweenLite.set(opt.ul,{transformStyle:"preserve-3d",transformPerspective:1600});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
for (var i = 1; i<=_.levels.length;i++)
|
||||
opt.c.find('.rs-parallaxlevel-'+i).each(function() {
|
||||
var pw = jQuery(this),
|
||||
tpw = pw.closest('.tp-parallax-wrap');
|
||||
tpw.data('parallaxlevel',_.levels[i-1])
|
||||
tpw.addClass("tp-parallax-container");
|
||||
});
|
||||
|
||||
|
||||
if (_.type=="mouse" || _.type=="scroll+mouse" || _.type=="mouse+scroll" || _.type=="3D" || _.type=="3d") {
|
||||
|
||||
container.mouseenter(function(event) {
|
||||
var currslide = container.find('.active-revslide'),
|
||||
t = container.offset().top,
|
||||
l = container.offset().left,
|
||||
ex = (event.pageX-l),
|
||||
ey = (event.pageY-t);
|
||||
currslide.data("enterx",ex);
|
||||
currslide.data("entery",ey);
|
||||
});
|
||||
|
||||
container.on('mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath',function(event,data) {
|
||||
var currslide = data && data.li ? data.li : container.find('.active-revslide');
|
||||
|
||||
|
||||
// CALCULATE DISTANCES
|
||||
if (_.origo=="enterpoint") {
|
||||
var t = container.offset().top,
|
||||
l = container.offset().left;
|
||||
|
||||
if (currslide.data("enterx")==undefined) currslide.data("enterx",(event.pageX-l));
|
||||
if (currslide.data("entery")==undefined) currslide.data("entery",(event.pageY-t));
|
||||
|
||||
var mh = currslide.data("enterx") || (event.pageX-l),
|
||||
mv = currslide.data("entery") || (event.pageY-t),
|
||||
diffh = (mh - (event.pageX - l)),
|
||||
diffv = (mv - (event.pageY - t)),
|
||||
s = _.speed/1000 || 0.4;
|
||||
} else {
|
||||
var t = container.offset().top,
|
||||
l = container.offset().left,
|
||||
diffh = (opt.conw/2 - (event.pageX-l)),
|
||||
diffv = (opt.conh/2 - (event.pageY-t)),
|
||||
s = _.speed/1000 || 3;
|
||||
}
|
||||
|
||||
/*if (event.type=="trigger3dpath") {
|
||||
diffh = data.h;
|
||||
diffv = data.v;
|
||||
_.ddd_lasth = diffh;
|
||||
_.ddd_lastv = diffv;
|
||||
}*/
|
||||
|
||||
if (event.type=="mouseleave") {
|
||||
diffh = _.ddd_lasth || 0;
|
||||
diffv = _.ddd_lastv || 0;
|
||||
s = 1.5;
|
||||
}
|
||||
|
||||
/*if (_.ddd_path=="static") {
|
||||
diffh = _.ddd_lasth || 0;
|
||||
diffv = _.ddd_lastv || 0;
|
||||
}*/
|
||||
var pcnts = [];
|
||||
currslide.find(".tp-parallax-container").each(function(i){
|
||||
pcnts.push(jQuery(this));
|
||||
});
|
||||
container.find('.tp-static-layers .tp-parallax-container').each(function(){
|
||||
pcnts.push(jQuery(this));
|
||||
});
|
||||
|
||||
jQuery.each(pcnts, function() {
|
||||
var pc = jQuery(this),
|
||||
bl = parseInt(pc.data('parallaxlevel'),0),
|
||||
pl = _.type=="3D" || _.type=="3d" ? bl/200 : bl/100,
|
||||
offsh = diffh * pl,
|
||||
offsv = diffv * pl;
|
||||
if (_.type=="scroll+mouse" || _.type=="mouse+scroll" )
|
||||
punchgs.TweenLite.to(pc,s,{force3D:"auto",x:offsh,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
else
|
||||
punchgs.TweenLite.to(pc,s,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
});
|
||||
|
||||
if (_.type=="3D" || _.type=="3d") {
|
||||
var sctor = '.tp-revslider-slidesli .dddwrapper, .dddwrappershadow, .tp-revslider-slidesli .dddwrapper-layer';
|
||||
if (opt.sliderType==="carousel") sctor = ".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer";
|
||||
opt.c.find(sctor).each(function() {
|
||||
var t = jQuery(this),
|
||||
pl = _.levels[_.levels.length-1]/200,
|
||||
offsh = diffh * pl,
|
||||
offsv = diffv * pl,
|
||||
offrv = opt.conw == 0 ? 0 : Math.round((diffh / opt.conw * pl)*100) || 0,
|
||||
offrh = opt.conh == 0 ? 0 : Math.round((diffv / opt.conh * pl)*100) || 0,
|
||||
li = t.closest('li'),
|
||||
zz = 0,
|
||||
itslayer = false;
|
||||
|
||||
if (t.hasClass("dddwrapper-layer")) {
|
||||
zz = _.ddd_z_correction || 65;
|
||||
itslayer = true;
|
||||
}
|
||||
|
||||
if (t.hasClass("dddwrapper-layer")) {
|
||||
offsh=0;
|
||||
offsv=0;
|
||||
}
|
||||
|
||||
if (li.hasClass("active-revslide") || opt.sliderType!="carousel")
|
||||
if (_.ddd_bgfreeze!="on" || (itslayer))
|
||||
punchgs.TweenLite.to(t,s,{rotationX:offrh, rotationY:-offrv, x:offsh, z:zz,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
else
|
||||
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
else
|
||||
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0,z:0,x:0,y:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
|
||||
if (event.type=="mouseleave")
|
||||
punchgs.TweenLite.to(jQuery(this),3.8,{z:0, ease:punchgs.Power3.easeOut});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if (_ISM)
|
||||
window.ondeviceorientation = function(event) {
|
||||
var y = Math.round(event.beta || 0)-70,
|
||||
x = Math.round(event.gamma || 0);
|
||||
|
||||
var currslide = container.find('.active-revslide');
|
||||
|
||||
if (jQuery(window).width() > jQuery(window).height()){
|
||||
var xx = x;
|
||||
x = y;
|
||||
y = xx;
|
||||
}
|
||||
|
||||
var cw = container.width(),
|
||||
ch = container.height(),
|
||||
diffh = (360/cw * x),
|
||||
diffv = (180/ch * y),
|
||||
s = _.speed/1000 || 3,
|
||||
pcnts = [];
|
||||
|
||||
currslide.find(".tp-parallax-container").each(function(i){
|
||||
pcnts.push(jQuery(this));
|
||||
});
|
||||
container.find('.tp-static-layers .tp-parallax-container').each(function(){
|
||||
pcnts.push(jQuery(this));
|
||||
});
|
||||
|
||||
jQuery.each(pcnts, function() {
|
||||
var pc = jQuery(this),
|
||||
bl = parseInt(pc.data('parallaxlevel'),0),
|
||||
pl = bl/100,
|
||||
offsh = diffh * pl*2,
|
||||
offsv = diffv * pl*4;
|
||||
punchgs.TweenLite.to(pc,s,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
});
|
||||
|
||||
if (_.type=="3D" || _.type=="3d") {
|
||||
var sctor = '.tp-revslider-slidesli .dddwrapper, .dddwrappershadow, .tp-revslider-slidesli .dddwrapper-layer';
|
||||
if (opt.sliderType==="carousel") sctor = ".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer";
|
||||
opt.c.find(sctor).each(function() {
|
||||
var t = jQuery(this),
|
||||
pl = _.levels[_.levels.length-1]/200
|
||||
offsh = diffh * pl,
|
||||
offsv = diffv * pl*3,
|
||||
offrv = opt.conw == 0 ? 0 : Math.round((diffh / opt.conw * pl)*500) || 0,
|
||||
offrh = opt.conh == 0 ? 0 : Math.round((diffv / opt.conh * pl)*700) || 0,
|
||||
li = t.closest('li'),
|
||||
zz = 0,
|
||||
itslayer = false;
|
||||
|
||||
if (t.hasClass("dddwrapper-layer")) {
|
||||
zz = _.ddd_z_correction || 65;
|
||||
itslayer = true;
|
||||
}
|
||||
|
||||
if (t.hasClass("dddwrapper-layer")) {
|
||||
offsh=0;
|
||||
offsv=0;
|
||||
}
|
||||
|
||||
if (li.hasClass("active-revslide") || opt.sliderType!="carousel")
|
||||
if (_.ddd_bgfreeze!="on" || (itslayer))
|
||||
punchgs.TweenLite.to(t,s,{rotationX:offrh, rotationY:-offrv, x:offsh, z:zz,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
else
|
||||
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
else
|
||||
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0,z:0,x:0,y:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
|
||||
|
||||
if (event.type=="mouseleave")
|
||||
punchgs.TweenLite.to(jQuery(this),3.8,{z:0, ease:punchgs.Power3.easeOut});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_R.scrollTicker(opt,container);
|
||||
|
||||
|
||||
},
|
||||
|
||||
scrollTicker : function(opt,container) {
|
||||
var faut;
|
||||
|
||||
if (opt.scrollTicker!=true) {
|
||||
opt.scrollTicker = true;
|
||||
if (_ISM) {
|
||||
punchgs.TweenLite.ticker.fps(150);
|
||||
punchgs.TweenLite.ticker.addEventListener("tick",function() {_R.scrollHandling(opt);},container,false,1);
|
||||
} else {
|
||||
jQuery(window).on('scroll mousewheel DOMMouseScroll', function() {
|
||||
_R.scrollHandling(opt,true);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
_R.scrollHandling(opt, true);
|
||||
},
|
||||
|
||||
|
||||
|
||||
// - SET POST OF SCROLL PARALLAX -
|
||||
scrollHandling : function(opt,fromMouse) {
|
||||
|
||||
opt.lastwindowheight = opt.lastwindowheight || jQuery(window).height();
|
||||
|
||||
var t = opt.c.offset().top,
|
||||
st = jQuery(window).scrollTop(),
|
||||
b = new Object(),
|
||||
_v = opt.viewPort,
|
||||
_ = opt.parallax;
|
||||
|
||||
|
||||
if (opt.lastscrolltop==st && !opt.duringslidechange && !fromMouse) return false;
|
||||
//if (opt.lastscrolltop==st) return false;
|
||||
|
||||
|
||||
|
||||
function saveLastScroll(opt,st) {
|
||||
opt.lastscrolltop = st;
|
||||
}
|
||||
punchgs.TweenLite.delayedCall(0.2,saveLastScroll,[opt,st]);
|
||||
|
||||
b.top = (t-st);
|
||||
b.h = opt.conh==0 ? opt.c.height() : opt.conh;
|
||||
b.bottom = (t-st) + b.h;
|
||||
|
||||
var proc = b.top<0 ? b.top / b.h : b.bottom>opt.lastwindowheight ? (b.bottom-opt.lastwindowheight) / b.h : 0;
|
||||
opt.scrollproc = proc;
|
||||
|
||||
if (_R.callBackHandling)
|
||||
_R.callBackHandling(opt,"parallax","start");
|
||||
|
||||
|
||||
|
||||
if (_v.enable) {
|
||||
var area = 1-Math.abs(proc);
|
||||
area = area<0 ? 0 : area;
|
||||
// To Make sure it is not any more in %
|
||||
if (!jQuery.isNumeric(_v.visible_area))
|
||||
if (_v.visible_area.indexOf('%')!==-1)
|
||||
_v.visible_area = parseInt(_v.visible_area)/100;
|
||||
|
||||
|
||||
if (1-_v.visible_area<=area) {
|
||||
if (!opt.inviewport) {
|
||||
opt.inviewport = true;
|
||||
_R.enterInViewPort(opt);
|
||||
}
|
||||
} else {
|
||||
if (opt.inviewport) {
|
||||
opt.inviewport = false;
|
||||
_R.leaveViewPort(opt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// SCROLL BASED PARALLAX EFFECT
|
||||
if (_ISM && opt.parallax.disable_onmobile=="on") return false;
|
||||
|
||||
var pt = new punchgs.TimelineLite();
|
||||
pt.pause();
|
||||
|
||||
if (_.type!="3d" && _.type!="3D") {
|
||||
if (_.type=="scroll" || _.type=="scroll+mouse" || _.type=="mouse+scroll")
|
||||
opt.c.find(".tp-parallax-container").each(function(i) {
|
||||
var pc = jQuery(this),
|
||||
pl = parseInt(pc.data('parallaxlevel'),0)/100,
|
||||
offsv = proc * -(pl*opt.conh) || 0;
|
||||
pc.data('parallaxoffset',offsv);
|
||||
pt.add(punchgs.TweenLite.set(pc,{force3D:"auto",y:offsv}),0);
|
||||
});
|
||||
|
||||
opt.c.find('.tp-revslider-slidesli .slotholder, .tp-revslider-slidesli .rs-background-video-layer').each(function() {
|
||||
var t = jQuery(this),
|
||||
l = t.data('bgparallax') || opt.parallax.bgparallax;
|
||||
l = l == "on" ? 1 : l;
|
||||
if (l!== undefined || l !== "off") {
|
||||
|
||||
var pl = opt.parallax.levels[parseInt(l,0)-1]/100,
|
||||
offsv = proc * -(pl*opt.conh) || 0;
|
||||
if (jQuery.isNumeric(offsv))
|
||||
pt.add(punchgs.TweenLite.set(t,{position:"absolute",top:"0px",left:"0px",backfaceVisibility:"hidden",force3D:"true",y:offsv+"px"}),0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (_R.callBackHandling)
|
||||
_R.callBackHandling(opt,"parallax","end");
|
||||
|
||||
pt.play(0);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
//// END OF PARALLAX EFFECT
|
||||
})(jQuery);
|
||||
+1397
File diff suppressed because it is too large.
Load diff
+1059
File diff suppressed because it is too large.
Load diff
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
window.tplogs = true;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**************************************************************************
|
||||
* jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider
|
||||
* @version: 5.1.6 (04.12.2015)
|
||||
* @requires jQuery v1.7 or later (tested on 1.9)
|
||||
* @author ThemePunch
|
||||
**************************************************************************/
|
||||
!function(e,t){"use strict";e.fn.extend({revolution:function(a){var n={delay:9e3,responsiveLevels:4064,visibilityLevels:[2048,1024,778,480],gridwidth:960,gridheight:500,minHeight:0,autoHeight:"off",sliderType:"standard",sliderLayout:"auto",fullScreenAutoWidth:"off",fullScreenAlignForce:"off",fullScreenOffsetContainer:"",fullScreenOffset:"0",hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,disableProgressBar:"off",stopAtSlide:-1,stopAfterLoops:-1,shadow:0,dottedOverlay:"none",startDelay:0,lazyType:"smart",spinner:"spinner0",shuffle:"off",viewPort:{enable:!1,outof:"wait",visible_area:"60%"},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:"off",simplifyAll:"on",nextSlideOnWindowFocus:"off",disableFocusListener:!0},parallax:{type:"off",levels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],origo:"enterpoint",speed:400,bgparallax:"on",opacity:"on",disable_onmobile:"off",ddd_shadow:"on",ddd_bgfreeze:"off",ddd_overflow:"visible",ddd_layer_overflow:"visible",ddd_z_correction:65,ddd_path:"mouse"},carousel:{horizontal_align:"center",vertical_align:"center",infinity:"on",space:0,maxVisibleItems:3,stretch:"off",fadeout:"on",maxRotation:0,minScale:0,vary_fade:"off",vary_rotation:"on",vary_scale:"off",border_radius:"0px",padding_top:0,padding_bottom:0},navigation:{keyboardNavigation:"on",keyboard_direction:"horizontal",mouseScrollNavigation:"off",onHoverStop:"on",touch:{touchenabled:"off",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,swipe_direction:"horizontal"},arrows:{style:"",enable:!1,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,tmp:"",left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0}},bullets:{style:"",enable:!1,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",h_align:"left",v_align:"center",space:0,h_offset:20,v_offset:0,tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'},thumbnails:{style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,position:"inner",space:2,h_align:"left",v_align:"center",h_offset:20,v_offset:0},tabs:{style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'<span class="tp-tab-image"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,space:0,position:"inner",h_align:"left",v_align:"center",h_offset:20,v_offset:0}},extensions:"extensions/",extensions_suffix:".min.js",debugMode:!1};return a=e.extend(!0,{},n,a),this.each(function(){var n=e(this);"hero"==a.sliderType&&n.find(">ul>li").each(function(t){t>0&&e(this).remove()}),a.jsFileLocation=a.jsFileLocation||d("themepunch.revolution.min.js"),a.jsFileLocation=a.jsFileLocation+a.extensions,a.scriptsneeded=s(a,n),a.curWinRange=0,a.navigation!=t&&a.navigation.touch!=t&&(a.navigation.touch.swipe_min_touches=a.navigation.touch.swipe_min_touches>5?1:a.navigation.touch.swipe_min_touches),e(this).on("scriptsloaded",function(){return a.modulesfailing?(n.html('<div style="margin:auto;line-height:40px;font-size:14px;color:#fff;padding:15px;background:#e74c3c;margin:20px 0px;">!! Error at loading Slider Revolution 5.0 Extrensions.'+a.errorm+"</div>").show(),!1):(i.migration!=t&&(a=i.migration(n,a)),punchgs.force3D=!0,"on"!==a.simplifyAll&&punchgs.TweenLite.lagSmoothing(1e3,16),u(n,a),void h(n,a))}),l(n,a.scriptsneeded)})},revremoveslide:function(a){return this.each(function(){var r=e(this);if(r!=t&&r.length>0&&e("body").find("#"+r.attr("id")).length>0){var s=r.parent().find(".tp-bannertimer"),l=s.data("opt");if(l&&l.li.length>0&&(a>0||a<=l.li.length)){var d=e(l.li[a]),c=d.data("index"),u=!1;l.slideamount=l.slideamount-1,o(".tp-bullet",c,l),o(".tp-tab",c,l),o(".tp-thumb",c,l),d.hasClass("active-revslide")&&(u=!0),d.remove(),l.li=n(l.li,a),l.carousel&&l.carousel.slides&&(l.carousel.slides=n(l.carousel.slides,a)),l.thumbs=n(l.thumbs,a),i.updateNavIndexes&&i.updateNavIndexes(l),u&&r.revnext()}}})},revaddcallback:function(i){return this.each(function(){var a=e(this);if(a!=t&&a.length>0&&e("body").find("#"+a.attr("id")).length>0){var n=a.parent().find(".tp-bannertimer"),o=n.data("opt");o.callBackArray===t&&(o.callBackArray=new Array),o.callBackArray.push(i)}})},revgetparallaxproc:function(){var i=e(this);if(i!=t&&i.length>0&&e("body").find("#"+i.attr("id")).length>0){var a=i.parent().find(".tp-bannertimer"),n=a.data("opt");return n.scrollproc}},revdebugmode:function(){return this.each(function(){var i=e(this);if(i!=t&&i.length>0&&e("body").find("#"+i.attr("id")).lLine truncated
|
||||
i.manageNavigation&&i.manageNavigation(n)}},y=function(e){e.bw=e.width/e.gridwidth[e.curWinRange],e.bh=e.height/e.gridheight[e.curWinRange],e.bh>e.bw?e.bh=e.bw:e.bw=e.bh,(e.bh>1||e.bw>1)&&(e.bw=1,e.bh=1)},w=function(n,o){if(n.find(".tp-caption").each(function(){var i=e(this);i.data("transition")!==t&&i.addClass(i.data("transition"))}),o.ul.css({overflow:"hidden",width:"100%",height:"100%",maxHeight:n.parent().css("maxHeight")}),"on"==o.autoHeight&&(o.ul.css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),n.css({maxHeight:"none"}),n.parent().css({maxHeight:"none"})),o.li.each(function(i){var a=e(this),n=a.data("originalindex");(o.startWithSlide!=t&&n==o.startWithSlide||o.startWithSlide===t&&0==i)&&a.addClass("next-revslide"),a.css({width:"100%",height:"100%",overflow:"hidden"})}),"carousel"===o.sliderType){o.ul.css({overflow:"visible"}).wrap('<div class="tp-carousel-wrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden;"></div>');var r='<div style="clear:both;display:block;width:100%;height:1px;position:relative;margin-bottom:-1px"></div>';o.c.parent().prepend(r),o.c.parent().append(r),i.prepareCarousel(o)}n.parent().css({overflow:"visible"}),o.li.find(">img").each(function(i){var n=e(this),r=n.closest("li").find(".rs-background-video-layer");r.addClass("defaultvid").css({zIndex:30}),n.addClass("defaultimg"),"on"==o.fallbacks.panZoomDisableOnMobile&&a&&(n.data("kenburns","off"),n.data("bgfit","cover")),n.wrap('<div class="slotholder" style="width:100%;height:100%;"></div>'),r.appendTo(n.closest("li").find(".slotholder"));var s=n.data();n.closest(".slotholder").data(s),r.length>0&&s.bgparallax!=t&&r.data("bgparallax",s.bgparallax),"none"!=o.dottedOverlay&&o.dottedOverlay!=t&&n.closest(".slotholder").append('<div class="tp-dottedoverlay '+o.dottedOverlay+'"></div>');var l=n.attr("src");s.src=l,s.bgfit=s.bgfit||"cover",s.bgrepeat=s.bgrepeat||"no-repeat",s.bgposition=s.bgposition||"center center";var d=n.closest(".slotholder");n.parent().append('<div class="tp-bgimg defaultimg" style="background-color:'+n.css("backgroundColor")+";background-repeat:"+s.bgrepeat+";background-image:url("+l+");background-size:"+s.bgfit+";background-position:"+s.bgposition+';width:100%;height:100%;"></div>');var c=document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - "+n.get(0).outerHTML);n.replaceWith(c),n=d.find(".tp-bgimg"),n.data(s),n.attr("src",l),("standard"===o.sliderType||"undefined"===o.sliderType)&&n.css({opacity:0})})},x=function(t,i,a,n){i.removePrepare=i.removePrepare+n,a.find(".slot, .slot-circle-wrapper").each(function(){e(this).remove()}),i.transition=0,i.removePrepare=0},_=function(e){var i=e;return e!=t&&e.length>0&&(i=e.split("?")[0]),i},k=function(e,t){var i=e.split("/"),a=t.split("/");i.pop();for(var n=0;n<a.length;n++)"."!=a[n]&&(".."==a[n]?i.pop():i.push(a[n]));return i.join("/")},T=function(t,i,a){i.syncload--,i.loadqueue&&e.each(i.loadqueue,function(e,i){var n=i.src.replace(/\.\.\/\.\.\//gi,""),o=self.location.href,r=document.location.origin,s=o.substring(0,o.length-1)+"/"+n,l=r+"/"+n,d=k(self.location.href,i.src);o=o.substring(0,o.length-1)+n,r+=n,(_(r)===_(decodeURIComponent(t.src))||_(o)===_(decodeURIComponent(t.src))||_(d)===_(decodeURIComponent(t.src))||_(l)===_(decodeURIComponent(t.src))||_(s)===_(decodeURIComponent(t.src))||_(i.src)===_(decodeURIComponent(t.src))||_(i.src).replace(/^.*\/\/[^\/]+/,"")===_(decodeURIComponent(t.src)).replace(/^.*\/\/[^\/]+/,"")||"file://"===window.location.origin&&_(t.src).match(new RegExp(n)))&&(i.progress=a,i.width=t.width,i.height=t.height)}),C(i)},C=function(t){3!=t.syncload&&t.loadqueue&&e.each(t.loadqueue,function(e,i){if(i.progress.match(/prepared/g)&&t.syncload<=3){t.syncload++;var a=new Image;a.onload=function(){T(this,t,"loaded")},a.onerror=function(){T(this,t,"failed")},a.src=i.src,i.progress="inload"}})},L=function(t,i,a){var n=!1;if(i.loadqueue&&e.each(i.loadqueue,function(e,i){i.src===t&&(n=!0)}),!n){var o=new Object;o.src=t,o.prio=a,o.progress="prepared",i.loadqueue.push(o)}},S=function(i,a,n){i.find("img,.defaultimg").each(function(){var i=e(this),o=i.data("lazyload")!==t&&"undefined"!==i.data("lazyload")?i.data("lazyload"):i.attr("src");i.data("start-to-load",e.now()),L(o,a,n)}),C(a)},A=function(t,i){var a=new Object;return t.loadqueue&&e.each(t.loadqueue,function(e,t){t.src==i&&(a=t)}),a},z=function(a,n,o){var r=!1;a.find("img,.defaultimg").each(function(){var o=e(this),s=o.data("lazyload")!=t?o.data("lazyload"):o.attr("src"),l=A(n,s);if(o.data("loaded")===t&&l!==t&&l.progress&&l.progress.match(/loaded/g)){if(o.attr("src",l.src),o.hasClass("defaultimg"))i.isIE(8)?defimg.attr("src",l.src):o.css({backgroundImage:'url("'+l.src+'")'}),a.data("owidth",l.width),a.data("oheight",l.height),a.find(".slotholder").data("owidth",l.width),a.find(".slotholder").data("oheight",l.height);else{var d=o.data("ww"),c=o.data("hh");o.data("owidth",l.width),o.data("oheight",l.heLine truncated
|
||||
@@ -0,0 +1,139 @@
|
||||
/********************************************
|
||||
- THEMEPUNCH TOOLS Ver. 1.0 -
|
||||
Last Update of Tools 27.02.2015
|
||||
*********************************************/
|
||||
|
||||
|
||||
/*
|
||||
* @fileOverview TouchSwipe - jQuery Plugin
|
||||
* @version 1.6.9
|
||||
*
|
||||
* @author Matt Bryson http://www.github.com/mattbryson
|
||||
* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
|
||||
* @see http://labs.skinkers.com/touchSwipe/
|
||||
* @see http://plugins.jquery.com/project/touchSwipe
|
||||
*
|
||||
* Copyright (c) 2010 Matt Bryson
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var y="1.6.9",p="left",o="right",e="up",x="down",c="in",A="out",m="none",s="auto",l="swipe",t="pinch",B="tap",j="doubletap",b="longtap",z="hold",E="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,C="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipetp=function(H){var G=f(this),F=G.data(C);if(F&&typeof H==="string"){if(F[H]){return F[H].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+H+" does not exist on jQuery.swipetp")}}else{if(!F&&(typeof H==="object"||!H)){return w.apply(this,arguments)}}return G};f.fn.swipetp.version=y;f.fn.swipetp.defaults=n;f.fn.swipetp.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipetp.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:A};f.fn.swipetp.pageScroll={NONE:m,HORIZONTAL:E,VERTICAL:u,AUTO:s};f.fn.swipetp.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(F){if(F&&(F.allowPageScroll===undefined&&(F.swipe!==undefined||F.swipeStatus!==undefined))){F.allowPageScroll=m}if(F.click!==undefined&&F.tap===undefined){F.tap=F.click}if(!F){F={}}F=f.extend({},f.fn.swipetp.defaults,F);return this.each(function(){var H=f(this);var G=H.data(C);if(!G){G=new D(this,F);H.data(C,G)}})}function D(a5,aw){var aA=(a||d||!aw.fallbackToMouseEvents),K=aA?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",az=aA?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",V=aA?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",T=aA?null:"mouseleave",aE=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ah=0,aQ=null,ac=0,a2=0,a0=0,H=1,ar=0,aK=0,N=null;var aS=f(a5);var aa="start";var X=0;var aR=null;var U=0,a3=0,a6=0,ae=0,O=0;var aX=null,ag=null;try{aS.bind(K,aO);aS.bind(aE,ba)}catch(al){f.error("events not supported "+K+","+aE+" on jQuery.swipetp")}this.enable=function(){aS.bind(K,aO);aS.bind(aE,ba);return aS};this.disable=function(){aL();return aS};this.destroy=function(){aL();aS.data(C,null);aS=null};this.option=function(bd,bc){if(aw[bd]!==undefined){if(bc===undefined){return aw[bd]}else{aw[bd]=bc}}else{f.error("Option "+bd+" does not exist on jQuery.swipetp.options")}return null};function aO(be){if(aC()){return}if(f(be.target).closest(aw.excludedElements,aS).length>0){return}var bf=be.originalEvent?be.originalEvent:be;var bd,bg=bf.touches,bc=bg?bg[0]:bf;aa=g;if(bg){X=bg.length}else{be.preventDefault()}ah=0;aQ=null;aK=null;ac=0;a2=0;a0=0;H=1;ar=0;aR=ak();N=ab();S();if(!bg||(X===aw.fingers||aw.fingers===i)||aY()){aj(0,bc);U=au();if(X==2){aj(1,bg[1]);a2=a0=av(aR[0].start,aR[1].start)}if(aw.swipeStatus||aw.pinchStatus){bd=P(bf,aa)}}else{bd=false}if(bd===false){aa=q;P(bf,aa);return bd}else{if(aw.hold){ag=setTimeout(f.proxy(function(){aS.trigger("hold",[bf.target]);if(aw.hold){bd=aw.hold.call(aS,bf,bf.target)}},this),aw.longTapThreshold)}ap(true)}return null}function a4(bf){var bi=bf.originalEvent?bf.originalEvent:bf;if(aa===h||aa===q||an()){return}var be,bj=bi.touches,bd=bj?bj[0]:bi;var bg=aI(bd);a3=au();if(bj){X=bj.length}if(aw.hold){clearTimeout(ag)}aa=k;if(X==2){if(a2==0){aj(1,bj[1]);a2=a0=av(aR[0].start,aR[1].start)}else{aI(bj[1]);a0=av(aR[0].end,aR[1].end);aK=at(aR[0].end,aR[1].end)}H=a8(a2,a0);ar=Math.abs(a2-a0)}if((X===aw.fingers||aw.fingers===i)||!bj||aY()){aQ=aM(bg.start,bg.end);am(bf,aQ);ah=aT(bg.start,bg.end);ac=aN();aJ(aQ,ah);if(aw.swipeStatus||aw.pinchStatus){be=P(bi,aa)}if(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave){var bc=true;if(aw.triggerOnTouchLeave){var bh=aZ(this);bc=F(bg.end,bh)}if(!aw.triggerOnTouchEnd&&bc){aa=aD(k)}else{if(aw.triggerOnTouchLeave&&!bc){aa=aD(h)}}if(aa==q||aa==h){P(bi,aa)}}}else{aa=q;P(bi,aa)}if(be===false){aa=q;P(bi,aa)}}function M(bc){var bd=bc.originalEvent?bc.originalEvent:bc,be=bd.touches;if(be){if(be.length){G();return true}}if(an()){X=ae}a3=au();ac=aN();if(bb()||!ao()){aa=q;P(bd,aa)}else{if(aw.triggerOnTouchEnd||(aw.triggerOnTouchEnd==false&&aa===k)){bc.preventDefault();aa=h;P(bd,aa)}else{if(!aw.triggerOnTouchEnd&&a7()){aa=h;aG(bd,aa,B)}else{if(aa===k){aa=q;P(bd,aa)}}}}ap(false);return null}function ba(){X=0;a3=0;U=0;a2=0;a0=0;H=1;S();ap(false)}function L(bc){var bd=bc.originalEvent?bc.originalEvent:bc;if(aw.triggerOnTouchLeave){aa=aD(h);P(bd,aa)}}function aL(){aS.Line truncated
|
||||
|
||||
if(typeof(console) === 'undefined') {
|
||||
var console = {};
|
||||
console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = console.groupCollapsed = function() {};
|
||||
}
|
||||
|
||||
if (window.tplogs==true)
|
||||
try {
|
||||
console.groupCollapsed("ThemePunch GreenSocks Logs");
|
||||
} catch(e) { }
|
||||
|
||||
|
||||
var oldgs = window.GreenSockGlobals;
|
||||
oldgs_queue = window._gsQueue;
|
||||
|
||||
var punchgs = window.GreenSockGlobals = {};
|
||||
|
||||
if (window.tplogs==true)
|
||||
try {
|
||||
console.info("Build GreenSock SandBox for ThemePunch Plugins");
|
||||
console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin");
|
||||
} catch(e) {}
|
||||
|
||||
/*!
|
||||
* VERSION: 1.18.0
|
||||
* DATE: 2015-09-03
|
||||
* UPDATES AND DOCS AT: http://greensock.com
|
||||
*
|
||||
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
|
||||
* This work is subject to the terms at http://greensock.com/standard-license or for
|
||||
* Club GreenSock members, the software agreement that was issued with your membership.
|
||||
*
|
||||
* @author: Jack Doyle, jack@greensock.com
|
||||
*/
|
||||
(function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var s,r,n,a,o,l=function(t){var e,s=t.split("."),r=i;for(e=0;s.length>e;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},f=function(){},c=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),m={},p=function(s,r,n,a){this.sc=m[s]?m[s].sc:[],m[s]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,f,c,d,v=r.length,g=v;--v>-1;)(_=m[r[v]]||new p(r[v],[])).gsClass?(o[v]=_.gsClass,g--):h&&_.sc.push(this);if(0===g&&n)for(u=("com.greensock."+s).split("."),f=u.pop(),c=l(u.join("."))[f]=this.gsClass=n.apply(n,o),a&&(i[f]=c,d="undefined"!=typeof module&&module.exports,!d&&"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return c}):s===e&&d&&(module.exports=c)),v=0;this.sc.length>v;v++)this.sc[v].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],T=[],y=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},P=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getRatio?t:t[o]||new t};for(n=y.prototype,n._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=s.length;--r>-1;)n=s[r]+",Power"+r,P(new y(null,null,1,r),n,"easeOut",!0),P(new y(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),P(new y(null,null,3,r),n,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});n=b.prototype,n.addEventListener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestAnimationFrame,A=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},x=S();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"RequestAnimationFrame"],A=t[s[r]+"CancelAnimationFrame"]||t[s[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,r,n,l,h=this,u=S(),c=e!==!1&&k,m=500,p=33,d="tick",v=function(t){var e,a,o=S()-x;o>m&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(v)),a&&h.dispatchEvent(d)};b.call(h),h.time=h.frame=0,h.tick=function(){v(!0)},h.lagSmoothing=function(t,e){m=t||1/_,p=Math.min(e,m,0)},h.sleep=function(){null!=r&&(c&&A?A(r):clearTimeout(r),s=f,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=S()-m+5),s=0===i?f:c&&k?k:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),v(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),c=t,h.fps(i),void 0):c},h.fps(t),setTimeout(function(){c&&5>h.frame&&h.useRAF(!1)},1500)}),n=h.Ticker.prototype=new h.events.EventDispatcher,n.constructor=h.Ticker;var R=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,H){o||a.wake();var i=this.vars.useFrames?K:H;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=R.ticker=new h.Ticker,n=R.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var C=function(){o&&S()-x>2e3&&a.wake(),setTimeout(C,2e3)};C(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},n.restart=functiLine truncated
|
||||
|
||||
/*!
|
||||
* VERSION: 1.18.0
|
||||
* DATE: 2015-08-29
|
||||
* UPDATES AND DOCS AT: http://greensock.com
|
||||
*
|
||||
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
|
||||
* This work is subject to the terms at http://greensock.com/standard-license or for
|
||||
* Club GreenSock members, the software agreement that was issued with your membership.
|
||||
*
|
||||
* @author: Jack Doyle, jack@greensock.com
|
||||
*/
|
||||
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=s._internals={},o=n.isSelector,l=n.isArray,h=n.lazyTweens,_=n.lazyRender,u=_gsScope._gsDefine.globals,f=function(t){var e,i={};for(e in t)i[e]=t[e];return i},c=function(t,e,i){var s,r,n=t.cycle;for(s in n)r=n[s],t[s]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=a.pauseCallback=function(){},m=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},d=s.prototype=new e;return s.version="1.18.0",d.constructor=s,d.kill()._gc=d._forcingPlayhead=d._hasPause=!1,d.to=function(t,e,s,r){var n=s.repeat&&u.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},d.from=function(t,e,s,r){return this.add((s.repeat&&u.TweenMax||i).from(t,e,s),r)},d.fromTo=function(t,e,s,r,n){var a=r.repeat&&u.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},d.staggerTo=function(t,e,r,n,a,l,h,_){var u,p,d=new s({onComplete:l,onCompleteParams:h,callbackScope:_,smoothChildTiming:this.smoothChildTiming}),g=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=m(t)),n=n||0,0>n&&(t=m(t),t.reverse(),n*=-1),p=0;t.length>p;p++)u=f(r),u.startAt&&(u.startAt=f(u.startAt),u.startAt.cycle&&c(u.startAt,t,p)),g&&c(u,t,p),d.to(t[p],e,u,p*n);return this.add(d,a)},d.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},d.staggerFromTo=function(t,e,i,s,r,n,a,o,l){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,l)},d.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},d.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},d.add=function(r,n,a,o){var h,_,u,f,c,p;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(a=a||"normal",o=o||0,h=n,_=r.length,u=0;_>u;u++)l(f=r[u])&&(f=new s({tweens:f})),this.add(f,h),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?h=f._startTime+f.totalDuration()/f._timeScale:"start"===a&&(f._startTime-=f.delay())),h+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,p=c.rawTime()>r._startTime;c._timeline;)p&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},d.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var s=e.length;--s>-1;)this.remove(e[s]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},d._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},d.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},d.insert=d.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},d.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},d.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},d.addPause=function(t,e,s,r){var n=i.delayedCall(0,p,s,r||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},d.removeLabel=function(t){return delete this._labels[t],this},d.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:Line truncated
|
||||
|
||||
/*!
|
||||
* VERSION: beta 1.15.2
|
||||
* DATE: 2015-01-27
|
||||
* UPDATES AND DOCS AT: http://greensock.com
|
||||
*
|
||||
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
|
||||
* This work is subject to the terms at http://greensock.com/standard-license or for
|
||||
* Club GreenSock members, the software agreement that was issued with your membership.
|
||||
*
|
||||
* @author: Jack Doyle, jack@greensock.com
|
||||
**/
|
||||
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},p=u("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),f=u,p=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/u*f,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),p?s+=Math.random()*r-.5*r:f%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),f=u;--f>-1;)a=l[f],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||s)/(1>t?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();
|
||||
|
||||
|
||||
/*!
|
||||
* VERSION: 1.18.0
|
||||
* DATE: 2015-09-05
|
||||
* UPDATES AND DOCS AT: http://greensock.com
|
||||
*
|
||||
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
|
||||
* This work is subject to the terms at http://greensock.com/standard-license or for
|
||||
* Club GreenSock members, the software agreement that was issued with your membership.
|
||||
*
|
||||
* @author: Jack Doyle, jack@greensock.com
|
||||
*/
|
||||
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.18.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,f,c,_,p,d,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,g=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,b=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,S=/([A-Z])/g,O=/-([a-z])/gi,C=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,k=function(t,e){return e.toUpperCase()},R=/(?:Left|Right|Width)/i,A=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,M=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,L=Math.PI/180,N=180/Math.PI,F={},X=document,z=function(t){return X.createElementNS?X.createElementNS("http://www.w3.org/1999/xhtml",t):X.createElement(t)},B=z("div"),I=z("img"),E=a._internals={_specialProps:l},Y=navigator.userAgent,W=function(){var t=Y.indexOf("Android"),e=z("a");return c=-1!==Y.indexOf("Safari")&&-1===Y.indexOf("Chrome")&&(-1===t||Number(Y.substr(t+8,1))>3),p=c&&6>Number(Y.substr(Y.indexOf("Version/")+8,1)),_=-1!==Y.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Y)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Y))&&(d=parseFloat(RegExp.$1)),e?(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity)):!1}(),V=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},j=function(t){window.console&&console.log(t)},G="",U="",q=function(t,e){e=e||B;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(U=3===r?"ms":i[r],G="-"+U.toLowerCase()+"-",U+t):null},H=X.defaultView?X.defaultView.getComputedStyle:function(){},Q=a.getStyle=function(t,e,i,r,s){var n;return W||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||H(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):V(t)},Z=E.convertToPixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=R.test(i),f=t,c=B.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(c.cssText="border:0 solid red;position:"+Q(t,"position")+";line-height:0;","%"!==s&&f.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)c[u?"borderLeftWidth":"borderTopWidth"]=r+s;else{if(f=t.parentNode||X.body,l=f._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;c[u?"width":"height"]=r+s}f.appendChild(B),o=parseFloat(B[u?"offsetWidth":"offsetHeight"]),f.removeChild(B),u&&"%"===s&&a.cacheWidths!==!1&&(l=f._gsCache=f._gsCache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=Z(t,i,r,s,!0))}return _?-o:o},$=E.calculateOffset=function(t,e,i){if("absolute"!==Q(t,"position",i))return 0;var r="left"===e?"Left":"Top",s=Q(t,"margin"+r,i);return t["offset"+r]-(Z(t,e,parseFloat(s),s.replace(x,""))||0)},K=function(t,e){var i,r,s,n={};if(e=e||H(t,null))if(i=e.length)for(;--i>-1;)s=e[i],(-1===s.indexOf("-transform")||Se===s)&&(n[s.replace(O,k)]=e.getPropertyValue(s));else for(i in e)(-1===i.indexOf("Transform")||Pe===i)&&(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(O,k)]=e[i]);return W||(n.opacity=V(t)),r=ze(t,e,!1),n.rotation=r.rotation,n.skewX=r.skewX,n.scaleX=r.scaleX,n.scaleY=r.scaleY,n.x=r.x,n.y=r.y,Ce&&(n.z=r.z,n.rotationX=r.rotationX,n.rotationY=r.rotationY,n.scaleZ=r.scaleZ),n.filters&&delete n.filters,n},J=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(y,"")?n:0:$(t,a),void 0!==h[a]&&(o=new pe(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},te={width:["Left","Right"],height:["Top","Bottom"]},ee=["marginLeft","marginRight","marginTop","marginBottom"],ie=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=te[e],n=s.length;for(i=i||H(t,null);--n>-1;)r-=parseFloat(Q(t,"padding"+s[n],i,!0))||0,r-=parseFloat(Q(t,"border"+s[n]+"Width",i,!0))||0;return r},re=function(tLine truncated
|
||||
f.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:p.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=J(t,u,K(t),l,c),t.setAttribute("class",p),a.data=h.firstMPT,t.style.cssText=d,a=a.xfirst=n.parse(t,h.difs,a,o)}});var Ve=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,s,n,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],l[i]&&(l[i].parse===o?s=!0:i="transformOrigin"===i?Oe:l[i].p),Ye(a,i);s&&(Ye(a,Pe),n=this.t._gsTransform,n&&(n.svg&&this.t.removeAttribute("data-svg-origin"),delete this.t._gsTransform))}};for(xe("clearProps",{parser:function(t,e,r,s,n){return n=new de(t,r,0,0,n,2),n.setRatio=Ve,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),h="bezier,throwProps,physicsProps,physics2D".split(","),ve=h.length;ve--;)Te(h[ve]);h=a.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,u=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,s=H(t,""),n=this._overwriteProps;var h,_,d,m,g,v,y,x,T,b=t.style;if(f&&""===b.zIndex&&(h=Q(t,"zIndex",s),("auto"===h||""===h)&&this._addLazySet(b,"zIndex",0)),"string"==typeof e&&(m=b.cssText,h=K(t,s),b.cssText=m+";"+e,h=J(t,h,K(t)).difs,!W&&w.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,b.cssText=m),this._firstPT=_=e.className?l.className.parse(t,e.className,"className",this,null,null,e):this.parse(t,e,null),this._transformType){for(T=3===this._transformType,Pe?c&&(f=!0,""===b.zIndex&&(y=Q(t,"zIndex",s),("auto"===y||""===y)&&this._addLazySet(b,"zIndex",0)),p&&this._addLazySet(b,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(T?"visible":"hidden"))):b.zoom=1,d=_;d&&d._next;)d=d._next;x=new de(t,"transform",0,0,null,2),this._linkCSSP(x,null,d),x.setRatio=Pe?Ie:Be,x.data=this._transform||ze(t,s,!0),x.tween=o,x.pr=-1,n.pop()}if(i){for(;_;){for(v=_._next,d=m;d&&d.pr>_.pr;)d=d._next;(_._prev=d?d._prev:g)?_._prev._next=_:m=_,(_._next=d)?d._prev=_:g=_,_=v}this._firstPT=m}return!0},h.parse=function(t,e,i,n){var a,o,h,f,c,_,p,d,m,g,v=t.style;for(a in e)_=e[a],o=l[a],o?i=o.parse(t,_,a,this,i,n,e):(c=Q(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&P.test(_)?(m||(_=he(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=ge(v,a,c,_,!0,"transparent",i,0,n)):!m||-1===_.indexOf(" ")&&-1===_.indexOf(",")?(h=parseFloat(c),p=h||0===h?c.substr((h+"").length):"",(""===c||"auto"===c)&&("width"===a||"height"===a?(h=ie(t,a,s),p="px"):"left"===a||"top"===a?(h=$(t,a,s),p="px"):(h="opacity"!==a?0:1,p="")),g=m&&"="===_.charAt(1),g?(f=parseInt(_.charAt(0)+"1",10),_=_.substr(2),f*=parseFloat(_),d=_.replace(x,"")):(f=parseFloat(_),d=m?_.replace(x,""):""),""===d&&(d=a in r?r[a]:p),_=f||0===f?(g?f+h:f)+d:e[a],p!==d&&""!==d&&(f||0===f)&&h&&(h=Z(t,a,h,p),"%"===d?(h/=Z(t,a,100,"%")/100,e.strictUnits!==!0&&(c=h+"%")):"em"===d||"rem"===d?h/=Z(t,a,1,d):"px"!==d&&(f=Z(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+h+d)),g&&(f+=h),!h&&0!==h||!f&&0!==f?void 0!==v[a]&&(_||"NaN"!=_+""&&null!=_)?(i=new de(v,a,f||h||0,0,i,-1,a,!1,0,c,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexOf("Style")?_:c):j("invalid "+a+" tween value: "+e[a]):(i=new de(v,a,h,f-h,i,0,a,u!==!1&&("px"===d||"zIndex"===a),0,c,_),i.xs0=d)):i=ge(v,a,c,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n);return i},h.setRatio=function(t){var e,i,r,s=this._firstPT,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;){if(2!==s.type)if(s.r&&-1!==s.type)if(e=Math.round(s.s+s.c),s.type){if(1===s.type){for(r=s.l,i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}}else s.t[s.p]=e+s.xs0;else s.t[s.p]=s.e;else s.setRatio(t);s=s._next}},h._enableTransforms=function(t){this._transform=this._transform||ze(this._target,s,!0),this._transformType=this._transform.svg&&we||!t&&3!==this._transformType?2:3};var je=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var r=this._firstPT=new de(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=je,r.data=this},h._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t)Line truncated
|
||||
|
||||
|
||||
/*!
|
||||
* VERSION: beta 0.3.4
|
||||
* DATE: 2015-08-15
|
||||
* UPDATES AND DOCS AT: http://greensock.com
|
||||
*
|
||||
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
|
||||
* SplitText is a Club GreenSock membership benefit; You must have a valid membership to use
|
||||
* this code without violating the terms of use. Visit http://www.greensock.com/club/ to sign up or get more details.
|
||||
* This work is subject to the software agreement that was issued with your membership.
|
||||
*
|
||||
* @author: Jack Doyle, jack@greensock.com
|
||||
*/
|
||||
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===e||4===e)return t.nodeValue;return i},n=document,a=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,l=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),r=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,r=i[e]),s?r:parseInt(r,10)||0},h=function(t){return t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],h(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:<br>|<br\/>|<br \/>)/gi,f=n.all&&!n.addEventListener,p="<div style='position:relative;display:inline-block;"+(f?"*display:inline;*zoom:1;'":"'"),m=function(t){t=t||"";var e=-1!==t.indexOf("++"),i=1;return e&&(t=t.split("++").join("")),function(){return p+(t?" class='"+t+(e?i++:"")+"'>":">")}},d=s.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=h(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodeType;if(1===s||9===s||11===s)for(t=t.firstChild;t;t=t.nextSibling)g(t,e,i);else(3===s||4===s)&&(t.nodeValue=t.nodeValue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(c,u));var h,_,f,p,d,y,T,w,b,x,P,S,k,C,R=r(t),O=e.type||e.split||"chars,words,lines",A=-1!==O.indexOf("lines")?[]:null,D=-1!==O.indexOf("words"),M=-1!==O.indexOf("chars"),L="absolute"===e.position||e.absolute===!0,F=L?"­ ":" ",z=-999,I=a(t),E=l(t,"paddingLeft",I),N=l(t,"borderBottomWidth",I)+l(t,"borderTopWidth",I),X=l(t,"borderLeftWidth",I)+l(t,"borderRightWidth",I),B=l(t,"paddingTop",I)+l(t,"paddingBottom",I),j=l(t,"paddingLeft",I)+l(t,"paddingRight",I),U=l(t,"textAlign",I,!0),Y=t.clientHeight,q=t.clientWidth,V="</div>",G=m(e.wordsClass),Q=m(e.charsClass),W=-1!==(e.linesClass||"").indexOf("++"),Z=e.linesClass,H=-1!==R.indexOf("<"),$=!0,K=[],J=[],te=[];for(W&&(Z=Z.split("++").join("")),H&&(R=R.split("<").join("{{LT}}")),h=R.length,p=G(),d=0;h>d;d++)if(T=R.charAt(d),")"===T&&R.substr(d,20)===u)p+=($?V:"")+"<BR/>",$=!1,d!==h-20&&R.substr(d+20,20)!==u&&(p+=" "+G(),$=!0),d+=19;else if(" "===T&&" "!==R.charAt(d-1)&&d!==h-1&&R.substr(d-20,20)!==u){for(p+=$?V:"",$=!1;" "===R.charAt(d+1);)p+=F,d++;(")"!==R.charAt(d+1)||R.substr(d+1,20)!==u)&&(p+=F+G(),$=!0)}else"{"===T&&"{{LT}}"===R.substr(d,6)?(p+=M?Q()+"{{LT}}"+"</div>":"{{LT}}",d+=5):p+=M&&" "!==T?Q()+T+"</div>":T;for(t.innerHTML=p+($?V:""),H&&g(t,"{{LT}}","<"),y=t.getElementsByTagName("*"),h=y.length,w=[],d=0;h>d;d++)w[d]=y[d];if(A||L)for(d=0;h>d;d++)b=w[d],f=b.parentNode===t,(f||L||M&&!D)&&(x=b.offsetTop,A&&f&&x!==z&&"BR"!==b.nodeName&&(_=[],A.push(_),z=x),L&&(b._x=b.offsetLeft,b._y=x,b._w=b.offsetWidth,b._h=b.offsetHeight),A&&(D!==f&&M||(_.push(b),b._x-=E),f&&d&&(w[d-1]._wordEnd=!0),"BR"===b.nodeName&&b.nextSibling&&"BR"===b.nextSibling.nodeName&&A.push([])));for(d=0;h>d;d++)b=w[d],f=b.parentNode===t,"BR"!==b.nodeName?(L&&(S=b.style,D||f||(b._x+=b.parentNode._x,b._y+=b.parentNode._y),S.left=b._x+"px",S.top=b._y+"px",S.position="absolute",S.display="block",S.width=b._w+1+"px",S.height=b._h+"px"),D?f&&""!==b.innerHTML?J.push(b):M&&K.push(b):f?(t.removeChild(b),w.splice(d--,1),h--):!f&&M&&(x=!A&&!L&&b.nextSibling,t.appendChild(b),x||t.appendChild(n.createTextNode(" ")),K.push(b))):A||L?(t.removeChild(b),w.splice(d--,1),h--):D||t.appendChild(b);if(A){for(L&&(P=n.createElement("div"),t.appendChild(P),k=P.offsetWidth+"px",x=P.offsetParent===t?0:t.offsetLeft,t.removeChild(P)),S=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(C=!L||!D&&!M,d=0;A.length>d;d++){for(_=A[d],P=n.createElement("div"),P.style.cssText="display:block;text-align:"+U+";position:"+(L?"absolute;":"relative;"),Z&&(P.className=Z+(W?d+1:"")),te.push(P),h=_.length,y=0;h>y;y++)"BR"!==_[y].nodeName&&(b=_[y],P.appendChild(b),C&&(b._wordEnd||D)&&P.appendChild(n.createTextNode(" ")),L&&(0===y&&(P.style.top=b._y+"px",P.style.left=E+x+"px"),b.style.top="0px",x&&(b.style.left=b._x-x+"px")));0===h&&(P.innerHTML=" "),D||M||(P.innerHTML=r(P).split(String.fromCharCode(160)).join(" ")),L&&(P.style.width=k,P.style.height=b._h+"px"),t.appendChild(P)}t.style.cssText=S}L&&(Y>t.clientHeight&&(t.style.height=Y-B+"px",Y>t.clientHeight&&(t.style.height=Y+N+"px")),q>t.clientWidth&&(t.style.width=q-j+"px",q>t.clientWidth&Line truncated
|
||||
|
||||
|
||||
try{
|
||||
window.GreenSockGlobals = null;
|
||||
window._gsQueue = null;
|
||||
window._gsDefine = null;
|
||||
|
||||
delete(window.GreenSockGlobals);
|
||||
delete(window._gsQueue);
|
||||
delete(window._gsDefine);
|
||||
} catch(e) {}
|
||||
|
||||
try{
|
||||
window.GreenSockGlobals = oldgs;
|
||||
window._gsQueue = oldgs_queue;
|
||||
} catch(e) {}
|
||||
|
||||
if (window.tplogs==true)
|
||||
try {
|
||||
console.groupEnd();
|
||||
} catch(e) {}
|
||||
|
||||
(function(e,t){
|
||||
e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})};
|
||||
})(jQuery)
|
||||
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
window.tplogs = true;
|
||||
File diff suppressed because it is too large.
Load diff
+8503
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user