/***************************************************************************************************** * 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='',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='',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_out",a.sfl):r.match(/\bstr\b/)?t.data("transform_out",a.sfr):r.match(/\bstt\b/)?t.data("transform_out",a.sft):r.match(/\bstb\b/)?t.data("transform_out",a.sfb):r.match(/\bskewtoleftshortout\b/)?t.data("transform_out",a.skewfromleftshort):r.match(/\bskewtorightshortout\b/)?t.data("transform_out",a.skewfromrightshort):r.match(/\bskewtoleftout\b/)?t.data("transform_out",a.skewfromleft):r.match(/\bskewtorightout\b/)?t.data("transform_out",a.skewfromright):r.match(/\bfadeout\b/)&&t.data("transform_out",a.fade),void 0!=t.data("customin")&&t.data("transform_in",t.data("customin")),void 0!=t.data("customout")&&t.data("transform_out",t.data("customout"))})}}(jquery);