commit 315b59dc9296b372f046fe7c51c820236cb1bc09 Author: dev-chiefworks Date: Sat Apr 30 21:53:39 2022 -0400 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e77370e --- /dev/null +++ b/.gitignore @@ -0,0 +1,131 @@ +#------------------------- +# Operating Specific Junk Files +#------------------------- + +# OS X +.DS_Store +.AppleDouble +.LSOverride + +# OS X Thumbnails +._* + +# Windows image file caches +Thumbs.db +ehthumbs.db +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +apache_log +apache_log/* + + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# Linux +*~ + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +#------------------------- +# Environment Files +#------------------------- +# These should never be under version control, +# as it poses a security risk. +.env +.vagrant +Vagrantfile + +#------------------------- +# Temporary Files +#------------------------- +writable/cache/* +!writable/cache/index.html + +writable/logs/* +!writable/logs/index.html + +writable/session/* +!writable/session/index.html + +writable/uploads/* +!writable/uploads/index.html + +writable/debugbar/* + +php_errors.log + +#------------------------- +# User Guide Temp Files +#------------------------- +user_guide_src/build/* +user_guide_src/cilexer/build/* +user_guide_src/cilexer/dist/* +user_guide_src/cilexer/pycilexer.egg-info/* + +#------------------------- +# Test Files +#------------------------- +tests/coverage* + +# Don't save phpunit under version control. +phpunit + +#------------------------- +# Composer +#------------------------- +vendor/ + +#------------------------- +# IDE / Development Files +#------------------------- + +# Modules Testing +_modules/* + +# phpenv local config +.php-version + +# Jetbrains editors (PHPStorm, etc) +.idea/ +*.iml + +# Netbeans +nbproject/ +build/ +nbbuild/ +dist/ +nbdist/ +nbactions.xml +nb-configuration.xml +.nb-gradle/ + +# Sublime Text +*.tmlanguage.cache +*.tmPreferences.cache +*.stTheme.cache +*.sublime-workspace +*.sublime-project +.phpintel +/api/ + +# Visual Studio Code +.vscode/ + +/results/ +/phpunit*.xml +/.phpunit.*.cache + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3142503 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2014-2019 British Columbia Institute of Technology +Copyright (c) 2019-2022 CodeIgniter Foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..6b7c667 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# CodeIgniter 4 Framework + +## What is CodeIgniter? + +CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. +More information can be found at the [official site](http://codeigniter.com). + +This repository holds the distributable version of the framework, +including the user guide. It has been built from the +[development repository](https://github.com/codeigniter4/CodeIgniter4). + +More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums. + +The user guide corresponding to this version of the framework can be found +[here](https://codeigniter4.github.io/userguide/). + + +## Important Change with index.php + +`index.php` is no longer in the root of the project! It has been moved inside the *public* folder, +for better security and separation of components. + +This means that you should configure your web server to "point" to your project's *public* folder, and +not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the +framework are exposed. + +**Please** read the user guide for a better explanation of how CI4 works! + +## Repository Management + +We use GitHub issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages. +We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss +FEATURE REQUESTS. + +This repository is a "distribution" one, built by our release preparation script. +Problems with it can be raised on our forum, or as issues in the main repository. + +## Contributing + +We welcome contributions from the community. + +Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/CodeIgniter4/blob/develop/CONTRIBUTING.md) section in the development repository. + +## Server Requirements + +PHP version 7.3 or higher is required, with the following extensions installed: + +- [intl](http://php.net/manual/en/intl.requirements.php) +- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library + +Additionally, make sure that the following extensions are enabled in your PHP: + +- json (enabled by default - don't turn it off) +- [mbstring](http://php.net/manual/en/mbstring.installation.php) +- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) +- xml (enabled by default - don't turn it off) diff --git a/app/.htaccess b/app/.htaccess new file mode 100644 index 0000000..f24db0a --- /dev/null +++ b/app/.htaccess @@ -0,0 +1,6 @@ + + Require all denied + + + Deny from all + diff --git a/app/Common.php b/app/Common.php new file mode 100644 index 0000000..a74d46d --- /dev/null +++ b/app/Common.php @@ -0,0 +1,15 @@ + SYSTEMPATH, + * 'App' => APPPATH + * ]; + *``` + * + * @var array + */ + public $psr4 = [ + APP_NAMESPACE => APPPATH, // For custom app namespace + 'Config' => APPPATH . 'Config', + ]; + + /** + * ------------------------------------------------------------------- + * Class Map + * ------------------------------------------------------------------- + * The class map provides a map of class names and their exact + * location on the drive. Classes loaded in this manner will have + * slightly faster performance because they will not have to be + * searched for within one or more directories as they would if they + * were being autoloaded through a namespace. + * + * Prototype: + *``` + * $classmap = [ + * 'MyClass' => '/path/to/class/file.php' + * ]; + *``` + * + * @var array + */ + public $classmap = []; + + /** + * ------------------------------------------------------------------- + * Files + * ------------------------------------------------------------------- + * The files array provides a list of paths to __non-class__ files + * that will be autoloaded. This can be useful for bootstrap operations + * or for loading functions. + * + * Prototype: + * ``` + * $files = [ + * '/path/to/my/file.php', + * ]; + * ``` + * + * @var array + */ + public $files = []; +} diff --git a/app/Config/Boot/development.php b/app/Config/Boot/development.php new file mode 100644 index 0000000..05a8612 --- /dev/null +++ b/app/Config/Boot/development.php @@ -0,0 +1,32 @@ + + */ + public $file = [ + 'storePath' => WRITEPATH . 'cache/', + 'mode' => 0640, + ]; + + /** + * ------------------------------------------------------------------------- + * Memcached settings + * ------------------------------------------------------------------------- + * Your Memcached servers can be specified below, if you are using + * the Memcached drivers. + * + * @see https://codeigniter.com/user_guide/libraries/caching.html#memcached + * + * @var array + */ + public $memcached = [ + 'host' => '127.0.0.1', + 'port' => 11211, + 'weight' => 1, + 'raw' => false, + ]; + + /** + * ------------------------------------------------------------------------- + * Redis settings + * ------------------------------------------------------------------------- + * Your Redis server can be specified below, if you are using + * the Redis or Predis drivers. + * + * @var array + */ + public $redis = [ + 'host' => '127.0.0.1', + 'password' => null, + 'port' => 6379, + 'timeout' => 0, + 'database' => 0, + ]; + + /** + * -------------------------------------------------------------------------- + * Available Cache Handlers + * -------------------------------------------------------------------------- + * + * This is an array of cache engine alias' and class names. Only engines + * that are listed here are allowed to be used. + * + * @var array + */ + public $validHandlers = [ + 'dummy' => DummyHandler::class, + 'file' => FileHandler::class, + 'memcached' => MemcachedHandler::class, + 'predis' => PredisHandler::class, + 'redis' => RedisHandler::class, + 'wincache' => WincacheHandler::class, + ]; +} diff --git a/app/Config/Constants.php b/app/Config/Constants.php new file mode 100644 index 0000000..58a9e29 --- /dev/null +++ b/app/Config/Constants.php @@ -0,0 +1,98 @@ + Send us a message.'); +define('SITE_CONTACT_OTHER_TXT','We love to hear from you. You can send a message anytime, and we will get back with you soon.
'); + + + + diff --git a/app/Config/ContentSecurityPolicy.php b/app/Config/ContentSecurityPolicy.php new file mode 100644 index 0000000..6fa5bd7 --- /dev/null +++ b/app/Config/ContentSecurityPolicy.php @@ -0,0 +1,167 @@ +` element. + * + * Will default to self if not overridden + * + * @var string|string[]|null + */ + public $baseURI; + + /** + * Lists the URLs for workers and embedded frame contents + * + * @var string|string[] + */ + public $childSrc = 'self'; + + /** + * Limits the origins that you can connect to (via XHR, + * WebSockets, and EventSource). + * + * @var string|string[] + */ + public $connectSrc = 'self'; + + /** + * Specifies the origins that can serve web fonts. + * + * @var string|string[] + */ + public $fontSrc; + + /** + * Lists valid endpoints for submission from `
` tags. + * + * @var string|string[] + */ + public $formAction = 'self'; + + /** + * Specifies the sources that can embed the current page. + * This directive applies to ``, `',inline_markup:'
{content}
',custom_markup:"",social_tools:''},a);var f,v,y,w,b,k,P,x=this,$=!1,I=e(window).height(),j=e(window).width();return doresize=!0,scroll_pos=_(),e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){c(),g()}),a.keyboard_shortcuts&&e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous"),t.preventDefault();break;case 39:e.prettyPhoto.changePage("next"),t.preventDefault();break;case 27:settings.modal||e.prettyPhoto.close(),t.preventDefault()}}),e.prettyPhoto.initialize=function(){return settings=a,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=e(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).attr("href"):void 0}):e.makeArray(e(this).attr("href")),pp_titles=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):"":void 0}):e.makeArray(e(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).attr("title")?e(t).attr("title"):"":void 0}):e.makeArray(e(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(e(this).attr("href"),pp_images),rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this)),u(this),settings.allow_resize&&e(window).bind("scroll.prettyphoto",function(){c()}),e.prettyPhoto.open(),!1},e.prettyPhoto.open=function(t){return"undefined"==typeof settings&&(settings=a,pp_images=e.makeArray(arguments[0]),pp_titles=e.makeArray(arguments[1]?arguments[1]:""),pp_descriptions=e.makeArray(arguments[2]?arguments[2]:""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,u(t.target)),settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),r(e(pp_images).size()),e(".pp_loaderIcon").show(),settings.deeplinking&&i(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size()),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(o("width",pp_images[set_position]))?o("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(o("height",pp_images[set_position]))?o("height",pp_images[set_position]):settings.default_height.toString(),$=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150),$=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150),$=!0),$pp_pic_holder.fadeIn(function(){switch($ppt.html(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?unescape(pp_titles[set_position]):" "),imgPreloader="",skipInjection=!1,h(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="https://www.youtube.com/embed/"+movie_id,movie+=o("rel",pp_images[set_position])?"?rel="+o("rel",pp_images[set_position]):"?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":f=l(movie_width,movie_height),movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,i=movie_id.match(t);movie="http://player.vimeo.com/video/"+i[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=f.width+"/embed/?moog_width="+f.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,f.height).replace(/{path}/g,movie);break;case"quicktime":f=l(movie_width,movie_height),f.height+=15,f.contentHeight+=15,f.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":f=l(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":f=l(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,f=l(movie_width,movie_height),doresize=!0,skipInjection=!0,e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s()});break;case"custom":f=l(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('
').appendTo(e("body")).show(),doresize=!1,f=l(e(myClone).width(),e(myClone).height()),doresize=!0,e(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s())}),!1},e.prettyPhoto.changePage=function(t){currentGalleryPage=0,"previous"==t?(set_position--,set_position<0&&(set_position=e(pp_images).size()-1)):"next"==t?(set_position++,set_position>e(pp_images).size()-1&&(set_position=0)):set_position=t,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&e(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),n(function(){e.prettyPhoto.open()})},e.prettyPhoto.changeGalleryPage=function(e){"next"==e?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==e?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=e,slide_speed="next"==e||"previous"==e?settings.animation_speed:0,slide_to=currentGalleryPage*itemsPerPage*itemWidth,$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},e.prettyPhoto.startSlideshow=function(){"undefined"==typeof P?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return e.prettyPhoto.stopSlideshow(),!1}),P=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)):e.prettyPhoto.changePage("next")},e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return e.prettyPhoto.startSlideshow(),!1}),clearInterval(P),P=void 0},e.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(e.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),e(this).remove(),e(window).unbind("scroll.prettyphoto"),p(),settings.callback(),doresize=!0,v=!1,delete settings}))},!pp_alreadyInitialized&&t()&&(pp_alreadyInitialized=!0,hashIndex=t(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){e("a["+a.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1; + + +/** + * Resize + * + * debouncedresize + * + * @louis_remi | https://github.com/louisremi/jquery-smartresize | Licensed under the MIT license. + */ +(function(e){var t=e.event,n,r;n=t.special.debouncedresize={setup:function(){e(this).on("resize",n.handler)},teardown:function(){e(this).off("resize",n.handler)},handler:function(e,i){var s=this,o=arguments,u=function(){e.type="debouncedresize";t.dispatch.apply(s,o)};if(r){clearTimeout(r)}i?u():r=setTimeout(u,n.threshold)},threshold:150}})(jQuery); + + +/** + * Scroll + * + * Nice Scroll + * + * 3.6.6 | InuYaksa | 2015 MIT | http://nicescroll.areaaperta.com + */ +!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function o(){var e=document.getElementsByTagName("script"),o=e.length?e[e.length-1].src.split("?")[0]:"";return o.split("/").length>0?o.split("/").slice(0,-1).join("/")+"/":""}function t(e,o,t){for(var r=0;r=9,n.isie10=n.isie&&"performance"in window&&10==document.documentMode,n.isie11="msRequestFullscreen"in o&&document.documentMode>=11,n.isieedge=navigator.userAgent.match(/Edge\/12\./),n.isie9mobile=/iemobile.9/i.test(r),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(r),n.ismozilla="MozAppearance"in t,n.iswebkit="WebkitAppearance"in t,n.ischrome="chrome"in window,n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&"transition"in t,n.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window,n.hasmstouch=window.MSPointerEvent||!1,n.hasw3ctouch=(window.PointerEvent||!1)&&(navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0),n.ismac=/^mac$/i.test(i),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(i),n.isios4=n.isios&&!("seal"in Object),n.isios7=n.isios&&"webkitHidden"in document,n.isandroid=/android/i.test(r),n.haseventlistener="addEventListener"in o,n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1;var s,l=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(s=0;s0;){if(9==e[0].nodeType)return!1;var o=e.css("zIndex");if(!isNaN(o)&&0!=o)return parseInt(o);e=e.parent()}return!1}function h(e,o,t){var r=e.css(o),i=parseFloat(r);if(isNaN(i)){i=k[r]||0;var n=3==i?t?v.win.outerHeight()-v.win.innerHeight():v.win.outerWidth()-v.win.innerWidth():1;return v.isie8&&i&&(i+=1),n?i:0}return i}function p(e,o,t,r){v._bind(e,o,function(r){var r=r?r:window.event,i={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==r.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return"mousewheel"==o?(i.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(i.deltaX=-1/40*r.wheelDeltaX)):i.deltaY=r.detail,t.call(e,i)},r)}function g(e,o,t){var r,i;if(0==e.deltaMode?(r=-Math.floor(e.deltaX*(v.opt.mousescrollstep/54)),i=-Math.floor(e.deltaY*(v.opt.mousescrollstep/54))):1==e.deltaMode&&(r=-Math.floor(e.deltaX*v.opt.mousescrollstep),i=-Math.floor(e.deltaY*v.opt.mousescrollstep)),o&&v.opt.oneaxismousemode&&0==r&&i&&(r=i,i=0,t)){var n=0>r?v.getScrollLeft()>=v.page.maxw:v.getScrollLeft()<=0;n&&(i=r,r=0)}if(r&&(v.scrollmom&&v.scrollmom.stop(),v.lastdeltax+=r,v.debounced("mousewheelx",function(){var e=v.lastdeltax;v.lastdeltax=0,v.rail.drag||v.doScrollLeftBy(e)},15)),i){if(v.opt.nativeparentscrolling&&t&&!v.ispage&&!v.zoomactive)if(0>i){if(v.getScrollTop()>=v.page.maxh)return!0}else if(v.getScrollTop()<=0)return!0;v.scrollmom&&v.scrollmom.stop(),v.lastdeltay+=i,v.debounced("mousewheely",function(){var e=v.lastdeltay;v.lastdeltay=0,v.rail.drag||v.doScrollBy(e)},15)}return e.stopImmediatePropagation(),e.preventDefault()}var v=this;if(this.version="3.6.6",this.name="nicescroll",this.me=o,this.opt={doc:a("body"),win:!1},a.extend(this.opt,f),this.opt.snapbackspeed=80,e)for(var y in v.opt)"undefined"!=typeof e[y]&&(v.opt[y]=e[y]);this.doc=v.opt.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/^BODY|HTML/.test(v.opt.win?v.opt.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=v.opt.win!==!1,this.win=v.opt.win||(this.ispage?a(window):this.doc),this.docscroll=this.ispage&&!this.haswrapper?a(window):this.win,this.body=a("body"),this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=v.opt.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):this.opt.rtlmode===!0,this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1;do this.id="ascrail"+s++;while(document.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=v.opt.overflowx,this.overflowy=v.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=w();var x=a.extend({},this.detected);this.canhwscroll=x.hastransform&&v.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&v.haswrapper,this.hasreversehr=this.isrtlmode&&!x.iswebkit,this.istouchcapable=!1,!x.cantouch||x.isios||x.isandroid||!x.iswebkit&&!x.ismozilla||(this.istouchcapable=!0,x.cantouch=!1),v.opt.enablemouselockapi||(x.hasmousecapture=!1,x.haspointerlock=!1),this.debounced=function(e,o,t){var r=v.delaylist[e];v.delaylist[e]=o,r||(v.debouncedelayed=setTimeout(function(){if(v){var o=v.delaylist[e];v.delaylist[e]=!1,o.call(v)}},t))};var S=!1;this.synched=function(e,o){function t(){S||(d(function(){S=!1;for(var e in v.synclist){var o=v.synclist[e];o&&o.call(v),v.synclist[e]=!1}}),S=!0)}return v.synclist[e]=o,t(),e},this.unsynched=function(e){v.synclist[e]&&(v.synclist[e]=!1)},this.css=function(e,o){for(var t in o)v.saved.css.push([e,t,e.css(t)]),e.css(t,o[t])},this.scrollTop=function(e){return"undefined"==typeof e?v.getScrollTop():v.setScrollTop(e)},this.scrollLeft=function(e){return"undefined"==typeof e?v.getScrollLeft():v.setScrollLeft(e)};var z=function(e,o,t,r,i,n,s){this.st=e,this.ed=o,this.spd=t,this.p1=r||0,this.p2=i||1,this.p3=n||0,this.p4=s||1,this.ts=(new Date).getTime(),this.df=this.ed-this.st};if(z.prototype={B2:function(e){return 3*e*e*(1-e)},B3:function(e){return 3*e*(1-e)*(1-e)},B4:function(e){return(1-e)*(1-e)*(1-e)},getNow:function(){var e=(new Date).getTime(),o=1-(e-this.ts)/this.spd,t=this.B2(o)+this.B3(o)+this.B4(o);return 0>o?this.ed:this.st+Math.round(this.df*t)},update:function(e,o){return this.st=this.getNow(),this.ed=e,this.spd=o,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},x.hastranslate3d&&x.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(e){if(!e){var o=t();if(o)return 16==o.length?-o[13]:-o[5];if(v.timerscroll&&v.timerscroll.bz)return v.timerscroll.bz.getNow()}return v.doc.translate.y},this.getScrollLeft=function(e){if(!e){var o=t();if(o)return 16==o.length?-o[12]:-o[4];if(v.timerscroll&&v.timerscroll.bh)return v.timerscroll.bh.getNow()}return v.doc.translate.x},this.notifyScrollEvent=function(e){var o=document.createEvent("UIEvents");o.initUIEvent("scroll",!1,!0,window,1),o.niceevent=!0,e.dispatchEvent(o)};var T=this.isrtlmode?1:-1;x.hastranslate3d&&v.opt.enabletranslate3d?(this.setScrollTop=function(e,o){v.doc.translate.y=e,v.doc.translate.ty=-1*e+"px",v.doc.css(x.trstyle,"translate3d("+v.doc.translate.tx+","+v.doc.translate.ty+",0px)"),o||v.notifyScrollEvent(v.win[0])},this.setScrollLeft=function(e,o){v.doc.translate.x=e,v.doc.translate.tx=e*T+"px",v.doc.css(x.trstyle,"translate3d("+v.doc.translate.tx+","+v.doc.translate.ty+",0px)"),o||v.notifyScrollEvent(v.win[0])}):(this.setScrollTop=function(e,o){v.doc.translate.y=e,v.doc.translate.ty=-1*e+"px",v.doc.css(x.trstyle,"translate("+v.doc.translate.tx+","+v.doc.translate.ty+")"),o||v.notifyScrollEvent(v.win[0])},this.setScrollLeft=function(e,o){v.doc.translate.x=e,v.doc.translate.tx=e*T+"px",v.doc.css(x.trstyle,"translate("+v.doc.translate.tx+","+v.doc.translate.ty+")"),o||v.notifyScrollEvent(v.win[0])})}else this.getScrollTop=function(){return v.docscroll.scrollTop()},this.setScrollTop=function(e){return setTimeout(function(){v.docscroll.scrollTop(e)},1)},this.getScrollLeft=function(){return v.detected.ismozilla&&v.isrtlmode?Math.abs(v.docscroll.scrollLeft()):v.docscroll.scrollLeft()},this.setScrollLeft=function(e){return setTimeout(function(){v.docscroll.scrollLeft(v.detected.ismozilla&&v.isrtlmode?-e:e)},1)};this.getTarget=function(e){return e?e.target?e.target:e.srcElement?e.srcElement:!1:!1},this.hasParent=function(e,o){if(!e)return!1;for(var t=e.target||e.srcElement||e||!1;t&&t.id!=o;)t=t.parentNode||!1;return t!==!1};var k={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}},this.getOffset=function(){if(v.isfixed){var e=v.win.offset(),o=v.getDocumentScrollOffset();return e.top-=o.top,e.left-=o.left,e}var t=v.win.offset();if(!v.viewport)return t;var r=v.viewport.offset();return{top:t.top-r.top,left:t.left-r.left}},this.updateScrollBar=function(e){if(v.ishwscroll)v.rail.css({height:v.win.innerHeight()-(v.opt.railpadding.top+v.opt.railpadding.bottom)}),v.railh&&v.railh.css({width:v.win.innerWidth()-(v.opt.railpadding.left+v.opt.railpadding.right)});else{var o=v.getOffset(),t={top:o.top,left:o.left-(v.opt.railpadding.left+v.opt.railpadding.right)};t.top+=h(v.win,"border-top-width",!0),t.left+=v.rail.align?v.win.outerWidth()-h(v.win,"border-right-width")-v.rail.width:h(v.win,"border-left-width");var r=v.opt.railoffset;if(r&&(r.top&&(t.top+=r.top),r.left&&(t.left+=r.left)),v.railslocked||v.rail.css({top:t.top,left:t.left,height:(e?e.h:v.win.innerHeight())-(v.opt.railpadding.top+v.opt.railpadding.bottom)}),v.zoom&&v.zoom.css({top:t.top+1,left:1==v.rail.align?t.left-20:t.left+v.rail.width+4}),v.railh&&!v.railslocked){var t={top:o.top,left:o.left},r=v.opt.railhoffset;r&&(r.top&&(t.top+=r.top),r.left&&(t.left+=r.left));var i=v.railh.align?t.top+h(v.win,"border-top-width",!0)+v.win.innerHeight()-v.railh.height:t.top+h(v.win,"border-top-width",!0),n=t.left+h(v.win,"border-left-width");v.railh.css({top:i-(v.opt.railpadding.top+v.opt.railpadding.bottom),left:n,width:v.railh.width})}}},this.doRailClick=function(e,o,t){var r,i,n,s;v.railslocked||(v.cancelEvent(e),o?(r=t?v.doScrollLeft:v.doScrollTop,n=t?(e.pageX-v.railh.offset().left-v.cursorwidth/2)*v.scrollratio.x:(e.pageY-v.rail.offset().top-v.cursorheight/2)*v.scrollratio.y,r(n)):(r=t?v.doScrollLeftBy:v.doScrollBy,n=t?v.scroll.x:v.scroll.y,s=t?e.pageX-v.railh.offset().left:e.pageY-v.rail.offset().top,i=t?v.view.w:v.view.h,r(n>=s?i:-i)))},v.hasanimationframe=d,v.hascancelanimationframe=u,v.hasanimationframe?v.hascancelanimationframe||(u=function(){v.cancelAnimationFrame=!0}):(d=function(e){return setTimeout(e,15-Math.floor(+new Date/1e3)%16)},u=clearInterval),this.init=function(){if(v.saved.css=[],x.isie7mobile)return!0;if(x.isoperamini)return!0;if(x.hasmstouch&&v.css(v.ispage?a("html"):v.win,{"-ms-touch-action":"none"}),v.zindex="auto",v.ispage||"auto"!=v.opt.zindex?v.zindex=v.opt.zindex:v.zindex=c()||"auto",v.ispage||"auto"==v.zindex||v.zindex>l&&(l=v.zindex),v.isie&&0==v.zindex&&"auto"==v.opt.zindex&&(v.zindex="auto"),!v.ispage||!x.cantouch&&!x.isieold&&!x.isie9mobile){var e=v.docscroll;v.ispage&&(e=v.haswrapper?v.win:v.doc),x.isie9mobile||v.css(e,{"overflow-y":"hidden"}),v.ispage&&x.isie7&&("BODY"==v.doc[0].nodeName?v.css(a("html"),{"overflow-y":"hidden"}):"HTML"==v.doc[0].nodeName&&v.css(a("body"),{"overflow-y":"hidden"})),!x.isios||v.ispage||v.haswrapper||v.css(a("body"),{"-webkit-overflow-scrolling":"touch"});var o=a(document.createElement("div"));o.css({position:"relative",top:0,"float":"right",width:v.opt.cursorwidth,height:"0px","background-color":v.opt.cursorcolor,border:v.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":v.opt.cursorborderradius,"-moz-border-radius":v.opt.cursorborderradius,"border-radius":v.opt.cursorborderradius}),o.hborder=parseFloat(o.outerHeight()-o.innerHeight()),o.addClass("nicescroll-cursors"),v.cursor=o;var t=a(document.createElement("div"));t.attr("id",v.id),t.addClass("nicescroll-rails nicescroll-rails-vr");var s,d,u=["left","right","top","bottom"];for(var h in u)d=u[h],s=v.opt.railpadding[d],s?t.css("padding-"+d,s+"px"):v.opt.railpadding[d]=0;t.append(o),t.width=Math.max(parseFloat(v.opt.cursorwidth),o.outerWidth()),t.css({width:t.width+"px",zIndex:v.zindex,background:v.opt.background,cursor:"default"}),t.visibility=!0,t.scrollable=!0,t.align="left"==v.opt.railalign?0:1,v.rail=t,v.rail.drag=!1;var p=!1;!v.opt.boxzoom||v.ispage||x.isieold||(p=document.createElement("div"),v.bind(p,"click",v.doZoom),v.bind(p,"mouseenter",function(){v.zoom.css("opacity",v.opt.cursoropacitymax)}),v.bind(p,"mouseleave",function(){v.zoom.css("opacity",v.opt.cursoropacitymin)}),v.zoom=a(p),v.zoom.css({cursor:"pointer","z-index":v.zindex,backgroundImage:"url("+v.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),v.opt.dblclickzoom&&v.bind(v.win,"dblclick",v.doZoom),x.cantouch&&v.opt.gesturezoom&&(v.ongesturezoom=function(e){return e.scale>1.5&&v.doZoomIn(e),e.scale<.8&&v.doZoomOut(e),v.cancelEvent(e)},v.bind(v.win,"gestureend",v.ongesturezoom))),v.railh=!1;var f;if(v.opt.horizrailenabled){v.css(e,{"overflow-x":"hidden"});var o=a(document.createElement("div"));o.css({position:"absolute",top:0,height:v.opt.cursorwidth,width:"0px","background-color":v.opt.cursorcolor,border:v.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":v.opt.cursorborderradius,"-moz-border-radius":v.opt.cursorborderradius,"border-radius":v.opt.cursorborderradius}),x.isieold&&o.css({overflow:"hidden"}),o.wborder=parseFloat(o.outerWidth()-o.innerWidth()),o.addClass("nicescroll-cursors"),v.cursorh=o,f=a(document.createElement("div")),f.attr("id",v.id+"-hr"),f.addClass("nicescroll-rails nicescroll-rails-hr"),f.height=Math.max(parseFloat(v.opt.cursorwidth),o.outerHeight()),f.css({height:f.height+"px",zIndex:v.zindex,background:v.opt.background}),f.append(o),f.visibility=!0,f.scrollable=!0,f.align="top"==v.opt.railvalign?0:1,v.railh=f,v.railh.drag=!1}if(v.ispage)t.css({position:"fixed",top:"0px",height:"100%"}),t.align?t.css({right:"0px"}):t.css({left:"0px"}),v.body.append(t),v.railh&&(f.css({position:"fixed",left:"0px",width:"100%"}),f.align?f.css({bottom:"0px"}):f.css({top:"0px"}),v.body.append(f));else{if(v.ishwscroll){"static"==v.win.css("position")&&v.css(v.win,{position:"relative"});var g="HTML"==v.win[0].nodeName?v.body:v.win;a(g).scrollTop(0).scrollLeft(0),v.zoom&&(v.zoom.css({position:"absolute",top:1,right:0,"margin-right":t.width+4}),g.append(v.zoom)),t.css({position:"absolute",top:0}),t.align?t.css({right:0}):t.css({left:0}),g.append(t),f&&(f.css({position:"absolute",left:0,bottom:0}),f.align?f.css({bottom:0}):f.css({top:0}),g.append(f))}else{v.isfixed="fixed"==v.win.css("position");var w=v.isfixed?"fixed":"absolute";v.isfixed||(v.viewport=v.getViewport(v.win[0])),v.viewport&&(v.body=v.viewport,0==/fixed|absolute/.test(v.viewport.css("position"))&&v.css(v.viewport,{position:"relative"})),t.css({position:w}),v.zoom&&v.zoom.css({position:w}),v.updateScrollBar(),v.body.append(t),v.zoom&&v.body.append(v.zoom),v.railh&&(f.css({position:w}),v.body.append(f))}x.isios&&v.css(v.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),x.isie&&v.opt.disableoutline&&v.win.attr("hideFocus","true"),x.iswebkit&&v.opt.disableoutline&&v.win.css({outline:"none"})}if(v.opt.autohidemode===!1?(v.autohidedom=!1,v.rail.css({opacity:v.opt.cursoropacitymax}),v.railh&&v.railh.css({opacity:v.opt.cursoropacitymax})):v.opt.autohidemode===!0||"leave"===v.opt.autohidemode?(v.autohidedom=a().add(v.rail),x.isie8&&(v.autohidedom=v.autohidedom.add(v.cursor)),v.railh&&(v.autohidedom=v.autohidedom.add(v.railh)),v.railh&&x.isie8&&(v.autohidedom=v.autohidedom.add(v.cursorh))):"scroll"==v.opt.autohidemode?(v.autohidedom=a().add(v.rail),v.railh&&(v.autohidedom=v.autohidedom.add(v.railh))):"cursor"==v.opt.autohidemode?(v.autohidedom=a().add(v.cursor),v.railh&&(v.autohidedom=v.autohidedom.add(v.cursorh))):"hidden"==v.opt.autohidemode&&(v.autohidedom=!1,v.hide(),v.railslocked=!1),x.isie9mobile){v.scrollmom=new b(v),v.onmangotouch=function(){var e=v.getScrollTop(),o=v.getScrollLeft();if(e==v.scrollmom.lastscrolly&&o==v.scrollmom.lastscrollx)return!0;var t=e-v.mangotouch.sy,r=o-v.mangotouch.sx,i=Math.round(Math.sqrt(Math.pow(r,2)+Math.pow(t,2)));if(0!=i){var n=0>t?-1:1,s=0>r?-1:1,l=+new Date;if(v.mangotouch.lazy&&clearTimeout(v.mangotouch.lazy),l-v.mangotouch.tm>80||v.mangotouch.dry!=n||v.mangotouch.drx!=s)v.scrollmom.stop(),v.scrollmom.reset(o,e),v.mangotouch.sy=e,v.mangotouch.ly=e,v.mangotouch.sx=o,v.mangotouch.lx=o,v.mangotouch.dry=n,v.mangotouch.drx=s,v.mangotouch.tm=l;else{v.scrollmom.stop(),v.scrollmom.update(v.mangotouch.sx-r,v.mangotouch.sy-t),v.mangotouch.tm=l;var a=Math.max(Math.abs(v.mangotouch.ly-e),Math.abs(v.mangotouch.lx-o));v.mangotouch.ly=e,v.mangotouch.lx=o,a>2&&(v.mangotouch.lazy=setTimeout(function(){v.mangotouch.lazy=!1,v.mangotouch.dry=0,v.mangotouch.drx=0,v.mangotouch.tm=0,v.scrollmom.doMomentum(30)},100))}}};var y=v.getScrollTop(),S=v.getScrollLeft();v.mangotouch={sy:y,ly:y,dry:0,sx:S,lx:S,drx:0,lazy:!1,tm:0},v.bind(v.docscroll,"scroll",v.onmangotouch)}else{if(x.cantouch||v.istouchcapable||v.opt.touchbehavior||x.hasmstouch){v.scrollmom=new b(v),v.ontouchstart=function(e){if(e.pointerType&&2!=e.pointerType&&"touch"!=e.pointerType)return!1;if(v.hasmoving=!1,!v.railslocked){var o;if(x.hasmstouch)for(o=e.target?e.target:!1;o;){var t=a(o).getNiceScroll();if(t.length>0&&t[0].me==v.me)break;if(t.length>0)return!1;if("DIV"==o.nodeName&&o.id==v.id)break;o=o.parentNode?o.parentNode:!1}if(v.cancelScroll(),o=v.getTarget(e)){var r=/INPUT/i.test(o.nodeName)&&/range/i.test(o.type);if(r)return v.stopPropagation(e)}if(!("clientX"in e)&&"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),v.forcescreen){var i=e;e={original:e.original?e.original:e},e.clientX=i.screenX,e.clientY=i.screenY}if(v.rail.drag={x:e.clientX,y:e.clientY,sx:v.scroll.x,sy:v.scroll.y,st:v.getScrollTop(),sl:v.getScrollLeft(),pt:2,dl:!1},v.ispage||!v.opt.directionlockdeadzone)v.rail.drag.dl="f";else{var n={w:a(window).width(),h:a(window).height()},s={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},l=Math.max(0,s.h-n.h),c=Math.max(0,s.w-n.w);!v.rail.scrollable&&v.railh.scrollable?v.rail.drag.ck=l>0?"v":!1:v.rail.scrollable&&!v.railh.scrollable?v.rail.drag.ck=c>0?"h":!1:v.rail.drag.ck=!1,v.rail.drag.ck||(v.rail.drag.dl="f")}if(v.opt.touchbehavior&&v.isiframe&&x.isie){var d=v.win.position();v.rail.drag.x+=d.left,v.rail.drag.y+=d.top}if(v.hasmoving=!1,v.lastmouseup=!1,v.scrollmom.reset(e.clientX,e.clientY),!x.cantouch&&!this.istouchcapable&&!e.pointerType){var u=o?/INPUT|SELECT|TEXTAREA/i.test(o.nodeName):!1;if(!u)return!v.ispage&&x.hasmousecapture&&o.setCapture(),v.opt.touchbehavior?(o.onclick&&!o._onclick&&(o._onclick=o.onclick,o.onclick=function(e){return v.hasmoving?!1:void o._onclick.call(this,e)}),v.cancelEvent(e)):v.stopPropagation(e);/SUBMIT|CANCEL|BUTTON/i.test(a(o).attr("type"))&&(pc={tg:o,click:!1},v.preventclick=pc)}}},v.ontouchend=function(e){if(!v.rail.drag)return!0;if(2==v.rail.drag.pt){if(e.pointerType&&2!=e.pointerType&&"touch"!=e.pointerType)return!1;if(v.scrollmom.doMomentum(),v.rail.drag=!1,v.hasmoving&&(v.lastmouseup=!0,v.hideCursor(),x.hasmousecapture&&document.releaseCapture(),!x.cantouch))return v.cancelEvent(e)}else if(1==v.rail.drag.pt)return v.onmouseup(e)};var z=v.opt.touchbehavior&&v.isiframe&&!x.hasmousecapture;v.ontouchmove=function(e,o){if(!v.rail.drag)return!1;if(e.targetTouches&&v.opt.preventmultitouchscrolling&&e.targetTouches.length>1)return!1;if(e.pointerType&&2!=e.pointerType&&"touch"!=e.pointerType)return!1;if(2==v.rail.drag.pt){if(x.cantouch&&x.isios&&"undefined"==typeof e.original)return!0;v.hasmoving=!0,v.preventclick&&!v.preventclick.click&&(v.preventclick.click=v.preventclick.tg.onclick||!1,v.preventclick.tg.onclick=v.onpreventclick);var t=a.extend({original:e},e);if(e=t,"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),v.forcescreen){var r=e;e={original:e.original?e.original:e},e.clientX=r.screenX,e.clientY=r.screenY}var i,n;if(n=i=0,z&&!o){var s=v.win.position();n=-s.left,i=-s.top}var l=e.clientY+i,c=l-v.rail.drag.y,d=e.clientX+n,u=d-v.rail.drag.x,h=v.rail.drag.st-c;v.ishwscroll&&v.opt.bouncescroll?0>h?h=Math.round(h/2):h>v.page.maxh&&(h=v.page.maxh+Math.round((h-v.page.maxh)/2)):(0>h&&(h=0,l=0),h>v.page.maxh&&(h=v.page.maxh,l=0));var p;v.railh&&v.railh.scrollable&&(p=v.isrtlmode?u-v.rail.drag.sl:v.rail.drag.sl-u,v.ishwscroll&&v.opt.bouncescroll?0>p?p=Math.round(p/2):p>v.page.maxw&&(p=v.page.maxw+Math.round((p-v.page.maxw)/2)):(0>p&&(p=0,d=0),p>v.page.maxw&&(p=v.page.maxw,d=0)));var m=!1;if(v.rail.drag.dl)m=!0,"v"==v.rail.drag.dl?p=v.rail.drag.sl:"h"==v.rail.drag.dl&&(h=v.rail.drag.st);else{var f=Math.abs(c),g=Math.abs(u),w=v.opt.directionlockdeadzone;if("v"==v.rail.drag.ck){if(f>w&&.3*f>=g)return v.rail.drag=!1,!0;g>w&&(v.rail.drag.dl="f",a("body").scrollTop(a("body").scrollTop()))}else if("h"==v.rail.drag.ck){if(g>w&&.3*g>=f)return v.rail.drag=!1,!0;f>w&&(v.rail.drag.dl="f",a("body").scrollLeft(a("body").scrollLeft()))}}if(v.synched("touchmove",function(){v.rail.drag&&2==v.rail.drag.pt&&(v.prepareTransition&&v.prepareTransition(0),v.rail.scrollable&&v.setScrollTop(h),v.scrollmom.update(d,l),v.railh&&v.railh.scrollable?(v.setScrollLeft(p),v.showCursor(h,p)):v.showCursor(h),x.isie10&&document.selection.clear())}),x.ischrome&&v.istouchcapable&&(m=!1),m)return v.cancelEvent(e)}else if(1==v.rail.drag.pt)return v.onmousemove(e)}}if(v.onmousedown=function(e,o){if(!v.rail.drag||1==v.rail.drag.pt){if(v.railslocked)return v.cancelEvent(e);v.cancelScroll(),v.rail.drag={x:e.clientX,y:e.clientY,sx:v.scroll.x,sy:v.scroll.y,pt:1,hr:!!o};var t=v.getTarget(e);return!v.ispage&&x.hasmousecapture&&t.setCapture(),v.isiframe&&!x.hasmousecapture&&(v.saved.csspointerevents=v.doc.css("pointer-events"),v.css(v.doc,{"pointer-events":"none"})),v.hasmoving=!1,v.cancelEvent(e)}},v.onmouseup=function(e){return v.rail.drag?1!=v.rail.drag.pt?!0:(x.hasmousecapture&&document.releaseCapture(),v.isiframe&&!x.hasmousecapture&&v.doc.css("pointer-events",v.saved.csspointerevents),v.rail.drag=!1,v.hasmoving&&v.triggerScrollEnd(),v.cancelEvent(e)):void 0},v.onmousemove=function(e){if(v.rail.drag){if(1!=v.rail.drag.pt)return;if(x.ischrome&&0==e.which)return v.onmouseup(e);if(v.cursorfreezed=!0,v.hasmoving=!0,v.rail.drag.hr){v.scroll.x=v.rail.drag.sx+(e.clientX-v.rail.drag.x),v.scroll.x<0&&(v.scroll.x=0);var o=v.scrollvaluemaxw;v.scroll.x>o&&(v.scroll.x=o)}else{v.scroll.y=v.rail.drag.sy+(e.clientY-v.rail.drag.y),v.scroll.y<0&&(v.scroll.y=0);var t=v.scrollvaluemax;v.scroll.y>t&&(v.scroll.y=t)}return v.synched("mousemove",function(){v.rail.drag&&1==v.rail.drag.pt&&(v.showCursor(),v.rail.drag.hr?v.hasreversehr?v.doScrollLeft(v.scrollvaluemaxw-Math.round(v.scroll.x*v.scrollratio.x),v.opt.cursordragspeed):v.doScrollLeft(Math.round(v.scroll.x*v.scrollratio.x),v.opt.cursordragspeed):v.doScrollTop(Math.round(v.scroll.y*v.scrollratio.y),v.opt.cursordragspeed))}),v.cancelEvent(e)}v.checkarea=0},x.cantouch||v.opt.touchbehavior)v.onpreventclick=function(e){return v.preventclick?(v.preventclick.tg.onclick=v.preventclick.click,v.preventclick=!1,v.cancelEvent(e)):void 0},v.bind(v.win,"mousedown",v.ontouchstart),v.onclick=x.isios?!1:function(e){return v.lastmouseup?(v.lastmouseup=!1,v.cancelEvent(e)):!0},v.opt.grabcursorenabled&&x.cursorgrabvalue&&(v.css(v.ispage?v.doc:v.win,{cursor:x.cursorgrabvalue}),v.css(v.rail,{cursor:x.cursorgrabvalue}));else{var T=function(e){if(v.selectiondrag){if(e){var o=v.win.outerHeight(),t=e.pageY-v.selectiondrag.top;t>0&&o>t&&(t=0),t>=o&&(t-=o),v.selectiondrag.df=t}if(0!=v.selectiondrag.df){var r=2*-Math.floor(v.selectiondrag.df/6);v.doScrollBy(r),v.debounced("doselectionscroll",function(){T()},50)}}};"getSelection"in document?v.hasTextSelected=function(){return document.getSelection().rangeCount>0}:"selection"in document?v.hasTextSelected=function(){return"None"!=document.selection.type}:v.hasTextSelected=function(){return!1},v.onselectionstart=function(e){v.ispage||(v.selectiondrag=v.win.offset())},v.onselectionend=function(e){v.selectiondrag=!1},v.onselectiondrag=function(e){v.selectiondrag&&v.hasTextSelected()&&v.debounced("selectionscroll",function(){T(e)},250)}}x.hasw3ctouch?(v.css(v.rail,{"touch-action":"none"}),v.css(v.cursor,{"touch-action":"none"}),v.bind(v.win,"pointerdown",v.ontouchstart),v.bind(document,"pointerup",v.ontouchend),v.bind(document,"pointermove",v.ontouchmove)):x.hasmstouch?(v.css(v.rail,{"-ms-touch-action":"none"}),v.css(v.cursor,{"-ms-touch-action":"none"}),v.bind(v.win,"MSPointerDown",v.ontouchstart),v.bind(document,"MSPointerUp",v.ontouchend),v.bind(document,"MSPointerMove",v.ontouchmove),v.bind(v.cursor,"MSGestureHold",function(e){e.preventDefault()}),v.bind(v.cursor,"contextmenu",function(e){e.preventDefault()})):this.istouchcapable&&(v.bind(v.win,"touchstart",v.ontouchstart),v.bind(document,"touchend",v.ontouchend),v.bind(document,"touchcancel",v.ontouchend),v.bind(document,"touchmove",v.ontouchmove)),(v.opt.cursordragontouch||!x.cantouch&&!v.opt.touchbehavior)&&(v.rail.css({cursor:"default"}),v.railh&&v.railh.css({cursor:"default"}),v.jqbind(v.rail,"mouseenter",function(){return v.ispage||v.win.is(":visible")?(v.canshowonmouseevent&&v.showCursor(),void(v.rail.active=!0)):!1}),v.jqbind(v.rail,"mouseleave",function(){v.rail.active=!1,v.rail.drag||v.hideCursor()}),v.opt.sensitiverail&&(v.bind(v.rail,"click",function(e){v.doRailClick(e,!1,!1)}),v.bind(v.rail,"dblclick",function(e){v.doRailClick(e,!0,!1)}),v.bind(v.cursor,"click",function(e){v.cancelEvent(e)}),v.bind(v.cursor,"dblclick",function(e){v.cancelEvent(e)})),v.railh&&(v.jqbind(v.railh,"mouseenter",function(){return v.ispage||v.win.is(":visible")?(v.canshowonmouseevent&&v.showCursor(),void(v.rail.active=!0)):!1}),v.jqbind(v.railh,"mouseleave",function(){v.rail.active=!1,v.rail.drag||v.hideCursor()}),v.opt.sensitiverail&&(v.bind(v.railh,"click",function(e){v.doRailClick(e,!1,!0)}),v.bind(v.railh,"dblclick",function(e){v.doRailClick(e,!0,!0)}),v.bind(v.cursorh,"click",function(e){v.cancelEvent(e)}),v.bind(v.cursorh,"dblclick",function(e){v.cancelEvent(e)})))),x.cantouch||v.opt.touchbehavior?(v.bind(x.hasmousecapture?v.win:document,"mouseup",v.ontouchend),v.bind(document,"mousemove",v.ontouchmove),v.onclick&&v.bind(document,"click",v.onclick),v.opt.cursordragontouch&&(v.bind(v.cursor,"mousedown",v.onmousedown),v.bind(v.cursor,"mouseup",v.onmouseup),v.cursorh&&v.bind(v.cursorh,"mousedown",function(e){v.onmousedown(e,!0)}),v.cursorh&&v.bind(v.cursorh,"mouseup",v.onmouseup))):(v.bind(x.hasmousecapture?v.win:document,"mouseup",v.onmouseup),v.bind(document,"mousemove",v.onmousemove),v.onclick&&v.bind(document,"click",v.onclick),v.bind(v.cursor,"mousedown",v.onmousedown),v.bind(v.cursor,"mouseup",v.onmouseup),v.railh&&(v.bind(v.cursorh,"mousedown",function(e){v.onmousedown(e,!0)}),v.bind(v.cursorh,"mouseup",v.onmouseup)),!v.ispage&&v.opt.enablescrollonselection&&(v.bind(v.win[0],"mousedown",v.onselectionstart),v.bind(document,"mouseup",v.onselectionend),v.bind(v.cursor,"mouseup",v.onselectionend),v.cursorh&&v.bind(v.cursorh,"mouseup",v.onselectionend),v.bind(document,"mousemove",v.onselectiondrag)),v.zoom&&(v.jqbind(v.zoom,"mouseenter",function(){v.canshowonmouseevent&&v.showCursor(),v.rail.active=!0}),v.jqbind(v.zoom,"mouseleave",function(){v.rail.active=!1,v.rail.drag||v.hideCursor()}))),v.opt.enablemousewheel&&(v.isiframe||v.bind(x.isie&&v.ispage?document:v.win,"mousewheel",v.onmousewheel),v.bind(v.rail,"mousewheel",v.onmousewheel),v.railh&&v.bind(v.railh,"mousewheel",v.onmousewheelhr)),v.ispage||x.cantouch||/HTML|^BODY/.test(v.win[0].nodeName)||(v.win.attr("tabindex")||v.win.attr({tabindex:n++}),v.jqbind(v.win,"focus",function(e){r=v.getTarget(e).id||!0,v.hasfocus=!0,v.canshowonmouseevent&&v.noticeCursor()}), +v.jqbind(v.win,"blur",function(e){r=!1,v.hasfocus=!1}),v.jqbind(v.win,"mouseenter",function(e){i=v.getTarget(e).id||!0,v.hasmousefocus=!0,v.canshowonmouseevent&&v.noticeCursor()}),v.jqbind(v.win,"mouseleave",function(){i=!1,v.hasmousefocus=!1,v.rail.drag||v.hideCursor()}))}if(v.onkeypress=function(e){if(v.railslocked&&0==v.page.maxh)return!0;e=e?e:window.e;var o=v.getTarget(e);if(o&&/INPUT|TEXTAREA|SELECT|OPTION/.test(o.nodeName)){var t=o.getAttribute("type")||o.type||!1;if(!t||!/submit|button|cancel/i.tp)return!0}if(a(o).attr("contenteditable"))return!0;if(v.hasfocus||v.hasmousefocus&&!r||v.ispage&&!r&&!i){var n=e.keyCode;if(v.railslocked&&27!=n)return v.cancelEvent(e);var s=e.ctrlKey||!1,l=e.shiftKey||!1,c=!1;switch(n){case 38:case 63233:v.doScrollBy(72),c=!0;break;case 40:case 63235:v.doScrollBy(-72),c=!0;break;case 37:case 63232:v.railh&&(s?v.doScrollLeft(0):v.doScrollLeftBy(72),c=!0);break;case 39:case 63234:v.railh&&(s?v.doScrollLeft(v.page.maxw):v.doScrollLeftBy(-72),c=!0);break;case 33:case 63276:v.doScrollBy(v.view.h),c=!0;break;case 34:case 63277:v.doScrollBy(-v.view.h),c=!0;break;case 36:case 63273:v.railh&&s?v.doScrollPos(0,0):v.doScrollTo(0),c=!0;break;case 35:case 63275:v.railh&&s?v.doScrollPos(v.page.maxw,v.page.maxh):v.doScrollTo(v.page.maxh),c=!0;break;case 32:v.opt.spacebarenabled&&(l?v.doScrollBy(v.view.h):v.doScrollBy(-v.view.h),c=!0);break;case 27:v.zoomactive&&(v.doZoom(),c=!0)}if(c)return v.cancelEvent(e)}},v.opt.enablekeyboard&&v.bind(document,x.isopera&&!x.isopera12?"keypress":"keydown",v.onkeypress),v.bind(document,"keydown",function(e){var o=e.ctrlKey||!1;o&&(v.wheelprevented=!0)}),v.bind(document,"keyup",function(e){var o=e.ctrlKey||!1;o||(v.wheelprevented=!1)}),v.bind(window,"blur",function(e){v.wheelprevented=!1}),v.bind(window,"resize",v.lazyResize),v.bind(window,"orientationchange",v.lazyResize),v.bind(window,"load",v.lazyResize),x.ischrome&&!v.ispage&&!v.haswrapper){var k=v.win.attr("style"),M=parseFloat(v.win.css("width"))+1;v.win.css("width",M),v.synched("chromefix",function(){v.win.attr("style",k)})}v.onAttributeChange=function(e){v.lazyResize(v.isieold?250:30)},m!==!1&&(v.observerbody=new m(function(e){return e.forEach(function(e){return"attributes"==e.type?a("body").hasClass("modal-open")&&!a.contains(a(".modal-dialog")[0],v.doc[0])?v.hide():v.show():void 0}),document.body.scrollHeight!=v.page.maxh?v.lazyResize(30):void 0}),v.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),v.ispage||v.haswrapper||(m!==!1?(v.observer=new m(function(e){e.forEach(v.onAttributeChange)}),v.observer.observe(v.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),v.observerremover=new m(function(e){e.forEach(function(e){if(e.removedNodes.length>0)for(var o in e.removedNodes)if(v&&e.removedNodes[o]==v.win[0])return v.remove()})}),v.observerremover.observe(v.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(v.bind(v.win,x.isie&&!x.isie9?"propertychange":"DOMAttrModified",v.onAttributeChange),x.isie9&&v.win[0].attachEvent("onpropertychange",v.onAttributeChange),v.bind(v.win,"DOMNodeRemoved",function(e){e.target==v.win[0]&&v.remove()}))),!v.ispage&&v.opt.boxzoom&&v.bind(window,"resize",v.resizeZoom),v.istextarea&&(v.bind(v.win,"keydown",v.lazyResize),v.bind(v.win,"mouseup",v.lazyResize)),v.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var E=function(){v.iframexd=!1;var e;try{e="contentDocument"in this?this.contentDocument:this.contentWindow.document;e.domain}catch(o){v.iframexd=!0,e=!1}if(v.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;if(v.forcescreen=!0,v.isiframe&&(v.iframe={doc:a(e),html:v.doc.contents().find("html")[0],body:v.doc.contents().find("body")[0]},v.getContentSize=function(){return{w:Math.max(v.iframe.html.scrollWidth,v.iframe.body.scrollWidth),h:Math.max(v.iframe.html.scrollHeight,v.iframe.body.scrollHeight)}},v.docscroll=a(v.iframe.body)),!x.isios&&v.opt.iframeautoresize&&!v.isiframe){v.win.scrollTop(0),v.doc.height("");var t=Math.max(e.getElementsByTagName("html")[0].scrollHeight,e.body.scrollHeight);v.doc.height(t)}v.lazyResize(30),x.isie7&&v.css(a(v.iframe.html),{"overflow-y":"hidden"}),v.css(a(v.iframe.body),{"overflow-y":"hidden"}),x.isios&&v.haswrapper&&v.css(a(e.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?v.bind(this.contentWindow,"scroll",v.onscroll):v.bind(e,"scroll",v.onscroll),v.opt.enablemousewheel&&v.bind(e,"mousewheel",v.onmousewheel),v.opt.enablekeyboard&&v.bind(e,x.isopera?"keypress":"keydown",v.onkeypress),(x.cantouch||v.opt.touchbehavior)&&(v.bind(e,"mousedown",v.ontouchstart),v.bind(e,"mousemove",function(e){return v.ontouchmove(e,!0)}),v.opt.grabcursorenabled&&x.cursorgrabvalue&&v.css(a(e.body),{cursor:x.cursorgrabvalue})),v.bind(e,"mouseup",v.ontouchend),v.zoom&&(v.opt.dblclickzoom&&v.bind(e,"dblclick",v.doZoom),v.ongesturezoom&&v.bind(e,"gestureend",v.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){E.call(v.doc[0],!1)},500),v.bind(this.doc,"load",E)}},this.showCursor=function(e,o){if(v.cursortimeout&&(clearTimeout(v.cursortimeout),v.cursortimeout=0),v.rail){if(v.autohidedom&&(v.autohidedom.stop().css({opacity:v.opt.cursoropacitymax}),v.cursoractive=!0),v.rail.drag&&1==v.rail.drag.pt||("undefined"!=typeof e&&e!==!1&&(v.scroll.y=Math.round(1*e/v.scrollratio.y)),"undefined"!=typeof o&&(v.scroll.x=Math.round(1*o/v.scrollratio.x))),v.cursor.css({height:v.cursorheight,top:v.scroll.y}),v.cursorh){var t=v.hasreversehr?v.scrollvaluemaxw-v.scroll.x:v.scroll.x;!v.rail.align&&v.rail.visibility?v.cursorh.css({width:v.cursorwidth,left:t+v.rail.width}):v.cursorh.css({width:v.cursorwidth,left:t}),v.cursoractive=!0}v.zoom&&v.zoom.stop().css({opacity:v.opt.cursoropacitymax})}},this.hideCursor=function(e){v.cursortimeout||v.rail&&v.autohidedom&&(v.hasmousefocus&&"leave"==v.opt.autohidemode||(v.cursortimeout=setTimeout(function(){v.rail.active&&v.showonmouseevent||(v.autohidedom.stop().animate({opacity:v.opt.cursoropacitymin}),v.zoom&&v.zoom.stop().animate({opacity:v.opt.cursoropacitymin}),v.cursoractive=!1),v.cursortimeout=0},e||v.opt.hidecursordelay)))},this.noticeCursor=function(e,o,t){v.showCursor(o,t),v.rail.active||v.hideCursor(e)},this.getContentSize=v.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:v.haswrapper?function(){return{w:v.doc.outerWidth()+parseInt(v.win.css("paddingLeft"))+parseInt(v.win.css("paddingRight")),h:v.doc.outerHeight()+parseInt(v.win.css("paddingTop"))+parseInt(v.win.css("paddingBottom"))}}:function(){return{w:v.docscroll[0].scrollWidth,h:v.docscroll[0].scrollHeight}},this.onResize=function(e,o){if(!v||!v.win)return!1;if(!v.haswrapper&&!v.ispage){if("none"==v.win.css("display"))return v.visibility&&v.hideRail().hideRailHr(),!1;v.hidden||v.visibility||v.showRail().showRailHr()}var t=v.page.maxh,r=v.page.maxw,i={h:v.view.h,w:v.view.w};if(v.view={w:v.ispage?v.win.width():parseInt(v.win[0].clientWidth),h:v.ispage?v.win.height():parseInt(v.win[0].clientHeight)},v.page=o?o:v.getContentSize(),v.page.maxh=Math.max(0,v.page.h-v.view.h),v.page.maxw=Math.max(0,v.page.w-v.view.w),v.page.maxh==t&&v.page.maxw==r&&v.view.w==i.w&&v.view.h==i.h){if(v.ispage)return v;var n=v.win.offset();if(v.lastposition){var s=v.lastposition;if(s.top==n.top&&s.left==n.left)return v}v.lastposition=n}if(0==v.page.maxh?(v.hideRail(),v.scrollvaluemax=0,v.scroll.y=0,v.scrollratio.y=0,v.cursorheight=0,v.setScrollTop(0),v.rail&&(v.rail.scrollable=!1)):(v.page.maxh-=v.opt.railpadding.top+v.opt.railpadding.bottom,v.rail.scrollable=!0),0==v.page.maxw?(v.hideRailHr(),v.scrollvaluemaxw=0,v.scroll.x=0,v.scrollratio.x=0,v.cursorwidth=0,v.setScrollLeft(0),v.railh&&(v.railh.scrollable=!1)):(v.page.maxw-=v.opt.railpadding.left+v.opt.railpadding.right,v.railh&&(v.railh.scrollable=v.opt.horizrailenabled)),v.railslocked=v.locked||0==v.page.maxh&&0==v.page.maxw,v.railslocked)return v.ispage||v.updateScrollBar(v.view),!1;v.hidden||v.visibility?!v.railh||v.hidden||v.railh.visibility||v.showRailHr():v.showRail().showRailHr(),v.istextarea&&v.win.css("resize")&&"none"!=v.win.css("resize")&&(v.view.h-=20),v.cursorheight=Math.min(v.view.h,Math.round(v.view.h*(v.view.h/v.page.h))),v.cursorheight=v.opt.cursorfixedheight?v.opt.cursorfixedheight:Math.max(v.opt.cursorminheight,v.cursorheight),v.cursorwidth=Math.min(v.view.w,Math.round(v.view.w*(v.view.w/v.page.w))),v.cursorwidth=v.opt.cursorfixedheight?v.opt.cursorfixedheight:Math.max(v.opt.cursorminheight,v.cursorwidth),v.scrollvaluemax=v.view.h-v.cursorheight-v.cursor.hborder-(v.opt.railpadding.top+v.opt.railpadding.bottom),v.railh&&(v.railh.width=v.page.maxh>0?v.view.w-v.rail.width:v.view.w,v.scrollvaluemaxw=v.railh.width-v.cursorwidth-v.cursorh.wborder-(v.opt.railpadding.left+v.opt.railpadding.right)),v.ispage||v.updateScrollBar(v.view),v.scrollratio={x:v.page.maxw/v.scrollvaluemaxw,y:v.page.maxh/v.scrollvaluemax};var l=v.getScrollTop();return l>v.page.maxh?v.doScrollTop(v.page.maxh):(v.scroll.y=Math.round(v.getScrollTop()*(1/v.scrollratio.y)),v.scroll.x=Math.round(v.getScrollLeft()*(1/v.scrollratio.x)),v.cursoractive&&v.noticeCursor()),v.scroll.y&&0==v.getScrollTop()&&v.doScrollTo(Math.floor(v.scroll.y*v.scrollratio.y)),v},this.resize=v.onResize,this.lazyResize=function(e){return e=isNaN(e)?30:e,v.debounced("resize",v.resize,e),v},this.jqbind=function(e,o,t){v.events.push({e:e,n:o,f:t,q:!0}),a(e).bind(o,t)},this.bind=function(e,o,t,r){var i="jquery"in e?e[0]:e;if("mousewheel"==o)if("onwheel"in v.win)v._bind(i,"wheel",t,r||!1);else{var n="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll";p(i,n,t,r||!1),"DOMMouseScroll"==n&&p(i,"MozMousePixelScroll",t,r||!1)}else if(i.addEventListener){if(x.cantouch&&/mouseup|mousedown|mousemove/.test(o)){var s="mousedown"==o?"touchstart":"mouseup"==o?"touchend":"touchmove";v._bind(i,s,function(e){if(e.touches){if(e.touches.length<2){var o=e.touches.length?e.touches[0]:e;o.original=e,t.call(this,o)}}else if(e.changedTouches){var o=e.changedTouches[0];o.original=e,t.call(this,o)}},r||!1)}v._bind(i,o,t,r||!1),x.cantouch&&"mouseup"==o&&v._bind(i,"touchcancel",t,r||!1)}else v._bind(i,o,function(e){return e=e||window.event||!1,e&&e.srcElement&&(e.target=e.srcElement),"pageY"in e||(e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop),t.call(i,e)===!1||r===!1?v.cancelEvent(e):!0})},x.haseventlistener?(this._bind=function(e,o,t,r){v.events.push({e:e,n:o,f:t,b:r,q:!1}),e.addEventListener(o,t,r||!1)},this.cancelEvent=function(e){if(!e)return!1;var e=e.original?e.original:e;return e.preventDefault(),e.stopPropagation(),e.preventManipulation&&e.preventManipulation(),!1},this.stopPropagation=function(e){if(!e)return!1;var e=e.original?e.original:e;return e.stopPropagation(),!1},this._unbind=function(e,o,t,r){e.removeEventListener(o,t,r)}):(this._bind=function(e,o,t,r){v.events.push({e:e,n:o,f:t,b:r,q:!1}),e.attachEvent?e.attachEvent("on"+o,t):e["on"+o]=t},this.cancelEvent=function(e){var e=window.event||!1;return e?(e.cancelBubble=!0,e.cancel=!0,e.returnValue=!1,!1):!1},this.stopPropagation=function(e){var e=window.event||!1;return e?(e.cancelBubble=!0,!1):!1},this._unbind=function(e,o,t,r){e.detachEvent?e.detachEvent("on"+o,t):e["on"+o]=!1}),this.unbindAll=function(){for(var e=0;e0)return t;o=o.parentNode?o.parentNode:!1}return!1},this.triggerScrollEnd=function(){if(v.onscrollend){var e=v.getScrollLeft(),o=v.getScrollTop(),t={type:"scrollend",current:{x:e,y:o},end:{x:e,y:o}};v.onscrollend.call(v,t)}},this.onmousewheel=function(e){if(!v.wheelprevented){if(v.railslocked)return v.debounced("checkunlock",v.resize,250),!0;if(v.rail.drag)return v.cancelEvent(e);if("auto"==v.opt.oneaxismousemode&&0!=e.deltaX&&(v.opt.oneaxismousemode=!1),v.opt.oneaxismousemode&&0==e.deltaX&&!v.rail.scrollable)return v.railh&&v.railh.scrollable?v.onmousewheelhr(e):!0;var o=+new Date,t=!1;if(v.opt.preservenativescrolling&&v.checkarea+60020?t:0},v.opt.smoothscroll?v.ishwscroll&&x.hastransition&&v.opt.usetransition&&v.opt.smoothscroll?(this.prepareTransition=function(e,o){var t=o?e>20?e:0:v.getTransitionSpeed(e),r=t?x.prefixstyle+"transform "+t+"ms ease-out":"";return v.lasttransitionstyle&&v.lasttransitionstyle==r||(v.lasttransitionstyle=r,v.doc.css(x.transitionstyle,r)),t},this.doScrollLeft=function(e,o){var t=v.scrollrunning?v.newscrolly:v.getScrollTop();v.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=v.scrollrunning?v.newscrollx:v.getScrollLeft();v.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){var r=v.getScrollTop(),i=v.getScrollLeft();return((v.newscrolly-r)*(o-r)<0||(v.newscrollx-i)*(e-i)<0)&&v.cancelScroll(),0==v.opt.bouncescroll&&(0>o?o=0:o>v.page.maxh&&(o=v.page.maxh),0>e?e=0:e>v.page.maxw&&(e=v.page.maxw)),v.scrollrunning&&e==v.newscrollx&&o==v.newscrolly?!1:(v.newscrolly=o,v.newscrollx=e,v.newscrollspeed=t||!1,v.timer?!1:void(v.timer=setTimeout(function(){var t=v.getScrollTop(),r=v.getScrollLeft(),i={};i.x=e-r,i.y=o-t,i.px=r,i.py=t;var n=Math.round(Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2))),s=v.newscrollspeed&&v.newscrollspeed>1?v.newscrollspeed:v.getTransitionSpeed(n);if(v.newscrollspeed&&v.newscrollspeed<=1&&(s*=v.newscrollspeed),v.prepareTransition(s,!0),v.timerscroll&&v.timerscroll.tm&&clearInterval(v.timerscroll.tm),s>0){if(!v.scrollrunning&&v.onscrollstart){var l={type:"scrollstart",current:{x:r,y:t},request:{x:e,y:o},end:{x:v.newscrollx,y:v.newscrolly},speed:s};v.onscrollstart.call(v,l)}x.transitionend?v.scrollendtrapped||(v.scrollendtrapped=!0,v.bind(v.doc,x.transitionend,v.onScrollTransitionEnd,!1)):(v.scrollendtrapped&&clearTimeout(v.scrollendtrapped),v.scrollendtrapped=setTimeout(v.onScrollTransitionEnd,s));var a=t,c=r;v.timerscroll={bz:new z(a,v.newscrolly,s,0,0,.58,1),bh:new z(c,v.newscrollx,s,0,0,.58,1)},v.cursorfreezed||(v.timerscroll.tm=setInterval(function(){v.showCursor(v.getScrollTop(),v.getScrollLeft())},60))}v.synched("doScroll-set",function(){v.timer=0,v.scrollendtrapped&&(v.scrollrunning=!0),v.setScrollTop(v.newscrolly),v.setScrollLeft(v.newscrollx),v.scrollendtrapped||v.onScrollTransitionEnd()})},50)))},this.cancelScroll=function(){if(!v.scrollendtrapped)return!0;var e=v.getScrollTop(),o=v.getScrollLeft();return v.scrollrunning=!1,x.transitionend||clearTimeout(x.transitionend),v.scrollendtrapped=!1,v._unbind(v.doc[0],x.transitionend,v.onScrollTransitionEnd),v.prepareTransition(0),v.setScrollTop(e),v.railh&&v.setScrollLeft(o),v.timerscroll&&v.timerscroll.tm&&clearInterval(v.timerscroll.tm),v.timerscroll=!1,v.cursorfreezed=!1,v.showCursor(e,o),v},this.onScrollTransitionEnd=function(){v.scrollendtrapped&&v._unbind(v.doc[0],x.transitionend,v.onScrollTransitionEnd),v.scrollendtrapped=!1,v.prepareTransition(0),v.timerscroll&&v.timerscroll.tm&&clearInterval(v.timerscroll.tm),v.timerscroll=!1;var e=v.getScrollTop(),o=v.getScrollLeft();return v.setScrollTop(e),v.railh&&v.setScrollLeft(o),v.noticeCursor(!1,e,o),v.cursorfreezed=!1,0>e?e=0:e>v.page.maxh&&(e=v.page.maxh),0>o?o=0:o>v.page.maxw&&(o=v.page.maxw),e!=v.newscrolly||o!=v.newscrollx?v.doScrollPos(o,e,v.opt.snapbackspeed):(v.onscrollend&&v.scrollrunning&&v.triggerScrollEnd(),void(v.scrollrunning=!1))}):(this.doScrollLeft=function(e,o){var t=v.scrollrunning?v.newscrolly:v.getScrollTop();v.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=v.scrollrunning?v.newscrollx:v.getScrollLeft();v.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){function r(){if(v.cancelAnimationFrame)return!0;if(v.scrollrunning=!0,h=1-h)return v.timer=d(r)||1;var e,o,t=0,i=o=v.getScrollTop();if(v.dst.ay){i=v.bzscroll?v.dst.py+v.bzscroll.getNow()*v.dst.ay:v.newscrolly;var n=i-o;(0>n&&i0&&i>v.newscrolly)&&(i=v.newscrolly),v.setScrollTop(i),i==v.newscrolly&&(t=1)}else t=1;var s=e=v.getScrollLeft();if(v.dst.ax){s=v.bzscroll?v.dst.px+v.bzscroll.getNow()*v.dst.ax:v.newscrollx;var n=s-e;(0>n&&s0&&s>v.newscrollx)&&(s=v.newscrollx),v.setScrollLeft(s),s==v.newscrollx&&(t+=1)}else t+=1;2==t?(v.timer=0,v.cursorfreezed=!1,v.bzscroll=!1,v.scrollrunning=!1,0>i?i=0:i>v.page.maxh&&(i=v.page.maxh),0>s?s=0:s>v.page.maxw&&(s=v.page.maxw),s!=v.newscrollx||i!=v.newscrolly?v.doScrollPos(s,i):v.onscrollend&&v.triggerScrollEnd()):v.timer=d(r)||1}var o="undefined"==typeof o||o===!1?v.getScrollTop(!0):o;if(v.timer&&v.newscrolly==o&&v.newscrollx==e)return!0;v.timer&&u(v.timer),v.timer=0;var i=v.getScrollTop(),n=v.getScrollLeft();((v.newscrolly-i)*(o-i)<0||(v.newscrollx-n)*(e-n)<0)&&v.cancelScroll(),v.newscrolly=o,v.newscrollx=e,v.bouncescroll&&v.rail.visibility||(v.newscrolly<0?v.newscrolly=0:v.newscrolly>v.page.maxh&&(v.newscrolly=v.page.maxh)),v.bouncescroll&&v.railh.visibility||(v.newscrollx<0?v.newscrollx=0:v.newscrollx>v.page.maxw&&(v.newscrollx=v.page.maxw)),v.dst={},v.dst.x=e-n,v.dst.y=o-i,v.dst.px=n,v.dst.py=i;var s=Math.round(Math.sqrt(Math.pow(v.dst.x,2)+Math.pow(v.dst.y,2)));v.dst.ax=v.dst.x/s,v.dst.ay=v.dst.y/s;var l=0,a=s;0==v.dst.x?(l=i,a=o,v.dst.ay=1,v.dst.py=0):0==v.dst.y&&(l=n,a=e,v.dst.ax=1,v.dst.px=0);var c=v.getTransitionSpeed(s);if(t&&1>=t&&(c*=t),c>0?v.bzscroll=v.bzscroll?v.bzscroll.update(a,c):new z(l,a,c,0,1,0,1):v.bzscroll=!1,!v.timer){(i==v.page.maxh&&o>=v.page.maxh||n==v.page.maxw&&e>=v.page.maxw)&&v.checkContentSize();var h=1;if(v.cancelAnimationFrame=!1,v.timer=1,v.onscrollstart&&!v.scrollrunning){var p={type:"scrollstart",current:{x:n,y:i},request:{x:e,y:o},end:{x:v.newscrollx,y:v.newscrolly},speed:c};v.onscrollstart.call(v,p)}r(),(i==v.page.maxh&&o>=i||n==v.page.maxw&&e>=n)&&v.checkContentSize(),v.noticeCursor()}},this.cancelScroll=function(){return v.timer&&u(v.timer),v.timer=0,v.bzscroll=!1,v.scrollrunning=!1,v}):(this.doScrollLeft=function(e,o){var t=v.getScrollTop();v.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=v.getScrollLeft();v.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){var r=e>v.page.maxw?v.page.maxw:e;0>r&&(r=0);var i=o>v.page.maxh?v.page.maxh:o;0>i&&(i=0),v.synched("scroll",function(){v.setScrollTop(i),v.setScrollLeft(r)})},this.cancelScroll=function(){}),this.doScrollBy=function(e,o){var t=0;if(o)t=Math.floor((v.scroll.y-e)*v.scrollratio.y);else{var r=v.timer?v.newscrolly:v.getScrollTop(!0);t=r-e}if(v.bouncescroll){var i=Math.round(v.view.h/2);-i>t?t=-i:t>v.page.maxh+i&&(t=v.page.maxh+i)}v.cursorfreezed=!1;var n=v.getScrollTop(!0);return 0>t&&0>=n?v.noticeCursor():t>v.page.maxh&&n>=v.page.maxh?(v.checkContentSize(),v.noticeCursor()):void v.doScrollTop(t)},this.doScrollLeftBy=function(e,o){var t=0;if(o)t=Math.floor((v.scroll.x-e)*v.scrollratio.x);else{var r=v.timer?v.newscrollx:v.getScrollLeft(!0);t=r-e}if(v.bouncescroll){var i=Math.round(v.view.w/2);-i>t?t=-i:t>v.page.maxw+i&&(t=v.page.maxw+i)}v.cursorfreezed=!1;var n=v.getScrollLeft(!0);return 0>t&&0>=n?v.noticeCursor():t>v.page.maxw&&n>=v.page.maxw?v.noticeCursor():void v.doScrollLeft(t)},this.doScrollTo=function(e,o){var t=o?Math.round(e*v.scrollratio.y):e;0>t?t=0:t>v.page.maxh&&(t=v.page.maxh),v.cursorfreezed=!1,v.doScrollTop(e)},this.checkContentSize=function(){var e=v.getContentSize();(e.h!=v.page.h||e.w!=v.page.w)&&v.resize(!1,e)},v.onscroll=function(e){v.rail.drag||v.cursorfreezed||v.synched("scroll",function(){v.scroll.y=Math.round(v.getScrollTop()*(1/v.scrollratio.y)),v.railh&&(v.scroll.x=Math.round(v.getScrollLeft()*(1/v.scrollratio.x))),v.noticeCursor()})},v.bind(v.docscroll,"scroll",v.onscroll),this.doZoomIn=function(e){if(!v.zoomactive){v.zoomactive=!0,v.zoomrestore={style:{}};var o=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],t=v.win[0].style;for(var r in o){var i=o[r];v.zoomrestore.style[i]="undefined"!=typeof t[i]?t[i]:""}v.zoomrestore.style.width=v.win.css("width"),v.zoomrestore.style.height=v.win.css("height"),v.zoomrestore.padding={w:v.win.outerWidth()-v.win.width(),h:v.win.outerHeight()-v.win.height()},x.isios4&&(v.zoomrestore.scrollTop=a(window).scrollTop(),a(window).scrollTop(0)),v.win.css({position:x.isios4?"absolute":"fixed",top:0,left:0,"z-index":l+100,margin:"0px"});var n=v.win.css("backgroundColor");return(""==n||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(n))&&v.win.css("backgroundColor","#fff"),v.rail.css({"z-index":l+101}),v.zoom.css({"z-index":l+102}),v.zoom.css("backgroundPosition","0px -18px"),v.resizeZoom(),v.onzoomin&&v.onzoomin.call(v),v.cancelEvent(e)}},this.doZoomOut=function(e){return v.zoomactive?(v.zoomactive=!1,v.win.css("margin",""),v.win.css(v.zoomrestore.style),x.isios4&&a(window).scrollTop(v.zoomrestore.scrollTop),v.rail.css({"z-index":v.zindex}),v.zoom.css({"z-index":v.zindex}),v.zoomrestore=!1,v.zoom.css("backgroundPosition","0px 0px"),v.onResize(),v.onzoomout&&v.onzoomout.call(v),v.cancelEvent(e)):void 0},this.doZoom=function(e){return v.zoomactive?v.doZoomOut(e):v.doZoomIn(e)},this.resizeZoom=function(){if(v.zoomactive){var e=v.getScrollTop();v.win.css({width:a(window).width()-v.zoomrestore.padding.w+"px",height:a(window).height()-v.zoomrestore.padding.h+"px"}),v.onResize(),v.setScrollTop(Math.min(v.page.maxh,e))}},this.init(),a.nicescroll.push(this)},b=function(e){var o=this;this.nc=e,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.time=function(){return+new Date},this.reset=function(e,t){o.stop();var r=o.time();o.steptime=0,o.lasttime=r,o.speedx=0,o.speedy=0,o.lastx=e,o.lasty=t,o.lastscrollx=-1,o.lastscrolly=-1},this.update=function(e,t){var r=o.time();o.steptime=r-o.lasttime,o.lasttime=r;var i=t-o.lasty,n=e-o.lastx,s=o.nc.getScrollTop(),l=o.nc.getScrollLeft(),a=s+i,c=l+n;o.snapx=0>c||c>o.nc.page.maxw,o.snapy=0>a||a>o.nc.page.maxh,o.speedx=n,o.speedy=i,o.lastx=e,o.lasty=t},this.stop=function(){o.nc.unsynched("domomentum2d"),o.timer&&clearTimeout(o.timer),o.timer=0,o.lastscrollx=-1,o.lastscrolly=-1},this.doSnapy=function(e,t){var r=!1;0>t?(t=0,r=!0):t>o.nc.page.maxh&&(t=o.nc.page.maxh,r=!0),0>e?(e=0,r=!0):e>o.nc.page.maxw&&(e=o.nc.page.maxw,r=!0),r?o.nc.doScrollPos(e,t,o.nc.opt.snapbackspeed):o.nc.triggerScrollEnd()},this.doMomentum=function(e){var t=o.time(),r=e?t+e:o.lasttime,i=o.nc.getScrollLeft(),n=o.nc.getScrollTop(),s=o.nc.page.maxh,l=o.nc.page.maxw;o.speedx=l>0?Math.min(60,o.speedx):0,o.speedy=s>0?Math.min(60,o.speedy):0;var a=r&&60>=t-r;(0>n||n>s||0>i||i>l)&&(a=!1);var c=o.speedy&&a?o.speedy:!1,d=o.speedx&&a?o.speedx:!1;if(c||d){var u=Math.max(16,o.steptime);if(u>50){var h=u/50;o.speedx*=h,o.speedy*=h,u=50}o.demulxy=0,o.lastscrollx=o.nc.getScrollLeft(),o.chkx=o.lastscrollx,o.lastscrolly=o.nc.getScrollTop(),o.chky=o.lastscrolly;var p=o.lastscrollx,m=o.lastscrolly,f=function(){var e=o.time()-t>600?.04:.02;o.speedx&&(p=Math.floor(o.lastscrollx-o.speedx*(1-o.demulxy)),o.lastscrollx=p,(0>p||p>l)&&(e=.1)),o.speedy&&(m=Math.floor(o.lastscrolly-o.speedy*(1-o.demulxy)),o.lastscrolly=m,(0>m||m>s)&&(e=.1)),o.demulxy=Math.min(1,o.demulxy+e),o.nc.synched("domomentum2d",function(){if(o.speedx){var e=o.nc.getScrollLeft();e!=o.chkx&&o.stop(),o.chkx=p,o.nc.setScrollLeft(p)}if(o.speedy){var t=o.nc.getScrollTop();t!=o.chky&&o.stop(),o.chky=m,o.nc.setScrollTop(m)}o.timer||(o.nc.hideCursor(),o.doSnapy(p,m))}),o.demulxy<1?o.timer=setTimeout(f,u):(o.stop(),o.nc.hideCursor(),o.doSnapy(p,m))};f()}else o.doSnapy(o.nc.getScrollLeft(),o.nc.getScrollTop())}},y=e.fn.scrollTop;e.cssHooks.pageYOffset={get:function(e,o,t){var r=a.data(e,"__nicescroll")||!1;return r&&r.ishwscroll?r.getScrollTop():y.call(e)},set:function(e,o){var t=a.data(e,"__nicescroll")||!1;return t&&t.ishwscroll?t.setScrollTop(parseInt(o)):y.call(e,o),this}},e.fn.scrollTop=function(e){if("undefined"==typeof e){var o=this[0]?a.data(this[0],"__nicescroll")||!1:!1;return o&&o.ishwscroll?o.getScrollTop():y.call(this)}return this.each(function(){var o=a.data(this,"__nicescroll")||!1;o&&o.ishwscroll?o.setScrollTop(parseInt(e)):y.call(a(this),e)})};var x=e.fn.scrollLeft;a.cssHooks.pageXOffset={get:function(e,o,t){var r=a.data(e,"__nicescroll")||!1;return r&&r.ishwscroll?r.getScrollLeft():x.call(e)},set:function(e,o){var t=a.data(e,"__nicescroll")||!1;return t&&t.ishwscroll?t.setScrollLeft(parseInt(o)):x.call(e,o),this}},e.fn.scrollLeft=function(e){if("undefined"==typeof e){var o=this[0]?a.data(this[0],"__nicescroll")||!1:!1;return o&&o.ishwscroll?o.getScrollLeft():x.call(this)}return this.each(function(){var o=a.data(this,"__nicescroll")||!1;o&&o.ishwscroll?o.setScrollLeft(parseInt(e)):x.call(a(this),e)})};var S=function(e){var o=this;if(this.length=0,this.name="nicescrollarray",this.each=function(e){for(var t=0,r=0;tPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('").addClass(this._triggerClass).html(a?e("").attr({src:a,alt:n,title:n}):n)),t[r?"before":"after"](i.trigger),i.trigger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,s,n,a=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(i=0,s=0,n=0;e.length>n;n++)e[n].length>i&&(i=e[n].length,s=n);return s},a.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var s=e(t);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,s,n,a){var o,h,l,u,d,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e(""),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},e.data(this._dialogInput[0],"datepicker",c)),r(c.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(c,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(h=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+u,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(t){var i,s=e(t),n=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),v===n&&(v=null))},_enableDatepicker:function(t){var i,s,n=e(t),a=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,s,n=e(t),a=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,s){var n,a,o,h,l=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?e.extend({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(l,"min"),h=this._getMinMaxDate(l,"max"),r(l.settings,n),null!==o&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._formatDate(l,o)),null!==h&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,h)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,a),this._updateAlternate(l),this._updateDatepicker(l)),void 0)},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,s,n,a=e.datepicker._getInst(t.target),o=!0,r=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),o=!1;break;case 13:return n=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv),n[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,n[0]),i=e.datepicker._get(a,"onSelect"),i?(s=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[s,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,s,n=e.datepicker._getInst(t.target); +return e.datepicker._get(n,"constrainInput")?(i=e.datepicker._possibleChars(e.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(t){var i,s=e.datepicker._getInst(t.target);if(s.input.val()!==s.lastVal)try{i=e.datepicker.parseDate(e.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,e.datepicker._getFormatConfig(s)),i&&(e.datepicker._setDateFromField(s),e.datepicker._updateAlternate(s),e.datepicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),!e.datepicker._isDisabledDatepicker(t)&&e.datepicker._lastInput!==t){var i,n,a,o,h,l,u;i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),n=e.datepicker._get(i,"beforeShow"),a=n?n.apply(t,[t,i]):{},a!==!1&&(r(i.settings,a),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each(function(){return o|="fixed"===e(this).css("position"),!o}),h={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),h=e.datepicker._checkOffset(i,h,o),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),u=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",s(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),e.datepicker._shouldFocusInput(i)&&i.input.focus(),e.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,v=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,s=this._getNumberOfMonths(t),n=s[1],a=17,r=t.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),t.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,s){var n=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?n-o:0,i.left-=s&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=s&&i.top===t.input.offset().top+r?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+a>l&&l>a?Math.abs(a+r):0),i},_findPos:function(t){for(var i,s=this._getInst(t),n=this._get(s,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return i=e(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var i,s,n,a,o=this._curInst;!o||t&&o!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),s=this._get(o,"duration"),n=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.effects.effect[i]||e.effects[i])?o.dpDiv.hide(i,e.datepicker._get(o,"showOptions"),s,n):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),s=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==s)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,s){var n=e(t),a=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(a,i+("M"===s?this._get(a,"showCurrentAtPos"):0),s),this._updateDatepicker(a))},_gotoToday:function(t){var i,s=e(t),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(t,i,s){var n=e(t),a=this._getInst(n[0]);a["selected"+("M"===s?"Month":"Year")]=a["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(n)},_selectDay:function(t,i,s,n){var a,o=e(t);e(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(a=this._getInst(o[0]),a.selectedDay=a.currentDay=e("a",n).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=s,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var s,n=e(t),a=this._getInst(n[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),s=this._get(a,"onSelect"),s?s.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,s,n,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(i,s,this._getFormatConfig(t)),e(a).each(function(){e(this).val(n)}))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,s){if(null==t||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,a,o,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),d=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,c=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1,_=function(e){var i=t.length>n+1&&t.charAt(n+1)===e;return i&&n++,i},x=function(e){var t=_(e),s="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n="y"===e?s:1,a=RegExp("^\\d{"+n+","+s+"}"),o=i.substring(h).match(a);if(!o)throw"Missing number at position "+h;return h+=o[0].length,parseInt(o[0],10)},w=function(t,s,n){var a=-1,o=e.map(_(t)?n:s,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(o,function(e,t){var s=t[1];return i.substr(h,s.length).toLowerCase()===s.toLowerCase()?(a=t[0],h+=s.length,!1):void 0}),-1!==a)return a+1;throw"Unknown name at position "+h},k=function(){if(i.charAt(h)!==t.charAt(n))throw"Unexpected literal at position "+h;h++};for(n=0;t.length>n;n++)if(b)"'"!==t.charAt(n)||_("'")?k():b=!1;else switch(t.charAt(n)){case"d":v=x("d");break;case"D":w("D",d,c);break;case"o":y=x("o");break;case"m":g=x("m");break;case"M":g=w("M",p,f);break;case"y":m=x("y");break;case"@":r=new Date(x("@")),m=r.getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"!":r=new Date((x("!")-this._ticksTo1970)/1e4),m=r.getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"'":_("'")?k():b=!0;break;default:k()}if(i.length>h&&(o=i.substr(h),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===m?m=(new Date).getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=m?0:-100)),y>-1)for(g=1,v=y;;){if(a=this._getDaysInMonth(m,g-1),a>=v)break;g++,v-=a}if(r=this._daylightSavingAdjust(new Date(m,g-1,v)),r.getFullYear()!==m||r.getMonth()+1!==g||r.getDate()!==v)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function(t){var i=e.length>s+1&&e.charAt(s+1)===t;return i&&s++,i},l=function(e,t,i){var s=""+t;if(h(e))for(;i>s.length;)s="0"+s;return s},u=function(e,t,i,s){return h(e)?s[t]:i[t]},d="",c=!1;if(t)for(s=0;e.length>s;s++)if(c)"'"!==e.charAt(s)||h("'")?d+=e.charAt(s):c=!1;else switch(e.charAt(s)){case"d":d+=l("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),n,a);break;case"o":d+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=l("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),o,r);break;case"y":d+=h("y")?t.getFullYear():(10>t.getYear()%100?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":h("'")?d+="'":c=!0;break;default:d+=e.charAt(s)}return d},_possibleChars:function(e){var t,i="",s=!1,n=function(i){var s=e.length>t+1&&e.charAt(t+1)===i;return s&&t++,s};for(t=0;e.length>t;t++)if(s)"'"!==e.charAt(t)||n("'")?i+=e.charAt(t):s=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),s=e.lastVal=e.input?e.input.val():null,n=this._getDefaultDate(e),a=n,o=this._getFormatConfig(e);try{a=this.parseDate(i,s,o)||n}catch(r){s=t?"":s}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=s?a.getDate():0,e.currentMonth=s?a.getMonth():0,e.currentYear=s?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,s){var n=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,a=n.getFullYear(),o=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,o))}l=h.exec(i)}return new Date(a,o,r)},o=null==i||""===i?s:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return o=o&&"Invalid Date"==""+o?s:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var s=!t,n=e.selectedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),n===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(s?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(s,-i,"M")},next:function(){e.datepicker._adjustDate(s,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(s)},selectDay:function(){return e.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(s,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,s,n,a,o,r,h,l,u,d,c,p,f,m,g,v,y,b,_,x,w,k,T,D,S,M,C,N,A,P,I,H,z,F,E,O,j,W,L=new Date,R=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),Y=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),J=this._get(e,"hideIfNoPrevNext"),q=this._get(e,"navigationAsDateFormat"),K=this._getNumberOfMonths(e),V=this._get(e,"showCurrentAtPos"),U=this._get(e,"stepMonths"),Q=1!==K[0]||1!==K[1],G=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),$=this._getMinMaxDate(e,"max"),Z=e.drawMonth-V,et=e.drawYear;if(0>Z&&(Z+=12,et--),$)for(t=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-K[0]*K[1]+1,$.getDate())),t=X&&X>t?X:t;this._daylightSavingAdjust(new Date(et,Z,1))>t;)Z--,0>Z&&(Z=11,et--);for(e.drawMonth=Z,e.drawYear=et,i=this._get(e,"prevText"),i=q?this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z-U,1)),this._getFormatConfig(e)):i,s=this._canAdjustMonth(e,-1,et,Z)?""+i+"":J?"":""+i+"",n=this._get(e,"nextText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(et,Z+U,1)),this._getFormatConfig(e)):n,a=this._canAdjustMonth(e,1,et,Z)?""+n+"":J?"":""+n+"",o=this._get(e,"currentText"),r=this._get(e,"gotoCurrent")&&e.currentDay?G:R,o=q?this.formatDate(o,r,this._getFormatConfig(e)):o,h=e.inline?"":"",l=B?"
"+(Y?h:"")+(this._isInRange(e,r)?"":"")+(Y?"":h)+"
":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),c=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",w=0;K[0]>w;w++){for(k="",this.maxRows=4,T=0;K[1]>T;T++){if(D=this._daylightSavingAdjust(new Date(et,Z,e.selectedDay)),S=" ui-corner-all",M="",Q){if(M+="
"}for(M+="
"+(/all|left/.test(S)&&0===w?Y?a:s:"")+(/all|right/.test(S)&&0===w?Y?s:a:"")+this._generateMonthYearHeader(e,Z,et,X,$,w>0||T>0,f,m)+"
"+"",C=d?"":"",x=0;7>x;x++)N=(x+u)%7,C+="";for(M+=C+"",A=this._getDaysInMonth(et,Z),et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),P=(this._getFirstDayOfMonth(et,Z)-u+7)%7,I=Math.ceil((P+A)/7),H=Q?this.maxRows>I?this.maxRows:I:I,this.maxRows=H,z=this._daylightSavingAdjust(new Date(et,Z,1-P)),F=0;H>F;F++){for(M+="",E=d?"":"",x=0;7>x;x++)O=g?g.apply(e.input?e.input[0]:null,[z]):[!0,""],j=z.getMonth()!==Z,W=j&&!y||!O[0]||X&&X>z||$&&z>$,E+="",z.setDate(z.getDate()+1),z=this._daylightSavingAdjust(z);M+=E+""}Z++,Z>11&&(Z=0,et++),M+="
"+this._get(e,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+""+p[N]+"
"+this._get(e,"calculateWeek")(z)+""+(j&&!v?" ":W?""+z.getDate()+"":""+z.getDate()+"")+"
"+(Q?"
"+(K[0]>0&&T===K[1]-1?"
":""):""),k+=M}_+=k}return _+=l,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,s,n,a,o,r){var h,l,u,d,c,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="
",_="";if(a||!g)_+=""+o[t]+"";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,_+=""}if(y||(b+=_+(!a&&g&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!v)b+=""+i+"";else{for(d=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10);return isNaN(t)?c:t},f=p(d[0]),m=Math.max(f,p(d[1]||"")),f=s?Math.max(f,s.getFullYear()):f,m=n?Math.min(m,n.getFullYear()):m,e.yearshtml+="",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!a&&g&&v?"":" ")+_),b+="
"},_adjustInstDate:function(e,t,i){var s=e.drawYear+("Y"===i?t:0),n=e.drawMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(s,n))+("D"===i?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(s,n,a)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),n=i&&i>t?i:t;return s&&n>s?s:n},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,s){var n=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,s+(0>t?t:n[0]*n[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,s,n=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),o=null,r=null,h=this._get(e,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),o=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||t.getTime()>=n.getTime())&&(!a||t.getTime()<=a.getTime())&&(!o||t.getFullYear()>=o)&&(!r||r>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,s){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var n=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(s,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),n,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.11.4",e.datepicker,e.widget("ui.draggable",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(t){var i=this.options;return this._blurActiveElement(t),this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("
").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0];if(this.handleElement.is(t.target))try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&e(i.activeElement).blur()}catch(s){}},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._normalizeRightBottom(),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)return this._mouseUp({}),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",t)!==!1&&i._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.focus(),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper),n=s?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,n=this.options,a=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,e(a).width()-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=e(n.containment),s=i[0],s&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0) +},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,s,n,a,o=this.options,r=this._isRootNode(this.scrollParent[0]),h=e.pageX,l=e.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,e.pageX-this.offset.click.lefti[2]&&(h=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,h=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a),"y"===o.axis&&(h=this.originalPageX),"x"===o.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,s){var n=e.extend({},i,{item:s.element});s.sortables=[],e(s.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,n))})},stop:function(t,i,s){var n=e.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,e.each(s.sortables,function(){var e=this;e.isOver?(e.isOver=0,s.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(t,i,s){e.each(s.sortables,function(){var n=!1,a=this;a.positionAbs=s.positionAbs,a.helperProportions=s.helperProportions,a.offset.click=s.offset.click,a._intersectsWith(a.containerCache)&&(n=!0,e.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.contains(a.element[0],this.element[0])&&(n=!1),n})),n?(a.isOver||(a.isOver=1,s._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=s.offset.click.top,a.offset.click.left=s.offset.click.left,a.offset.parent.left-=s.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=s.offset.parent.top-a.offset.parent.top,s._trigger("toSortable",t),s.dropped=a.element,e.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,a.fromOutside=s),a.currentItem&&(a._mouseDrag(t),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(t),i.position=s._generatePosition(t,!0),s._trigger("fromSortable",t),s.dropped=!1,e.each(s.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,s){var n=e("body"),a=s.options;n.css("cursor")&&(a._cursor=n.css("cursor")),n.css("cursor",a.cursor)},stop:function(t,i,s){var n=s.options;n._cursor&&e("body").css("cursor",n._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,s){var n=e(i.helper),a=s.options;n.css("opacity")&&(a._opacity=n.css("opacity")),n.css("opacity",a.opacity)},stop:function(t,i,s){var n=s.options;n._opacity&&e(i.helper).css("opacity",n._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,s){var n=s.options,a=!1,o=s.scrollParentNotHidden[0],r=s.document[0];o!==r&&"HTML"!==o.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+o.offsetHeight-t.pageY=0;c--)h=s.snapElements[c].left-s.margins.left,l=h+s.snapElements[c].width,u=s.snapElements[c].top-s.margins.top,d=u+s.snapElements[c].height,h-m>v||g>l+m||u-m>b||y>d+m||!e.contains(s.snapElements[c].item.ownerDocument,s.snapElements[c].item)?(s.snapElements[c].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[c].item})),s.snapElements[c].snapping=!1):("inner"!==f.snapMode&&(n=m>=Math.abs(u-b),a=m>=Math.abs(d-y),o=m>=Math.abs(h-v),r=m>=Math.abs(l-g),n&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.top=s._convertPositionTo("relative",{top:d,left:0}).top),o&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left)),p=n||a||o||r,"outer"!==f.snapMode&&(n=m>=Math.abs(u-y),a=m>=Math.abs(d-b),o=m>=Math.abs(h-g),r=m>=Math.abs(l-v),n&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.top=s._convertPositionTo("relative",{top:d-s.helperProportions.height,left:0}).top),o&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left)),!s.snapElements[c].snapping&&(n||a||o||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[c].item})),s.snapElements[c].snapping=n||a||o||r||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,s){var n,a=s.options,o=e.makeArray(e(a.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});o.length&&(n=parseInt(e(o[0]).css("zIndex"),10)||0,e(o).each(function(t){e(this).css("zIndex",n+t)}),this.css("zIndex",n+o.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,s){var n=e(i.helper),a=s.options;n.css("zIndex")&&(a._zIndex=n.css("zIndex")),n.css("zIndex",a.zIndex)},stop:function(t,i,s){var n=s.options;n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}}),e.ui.draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isNumber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return t[s]>0?!0:(t[s]=1,n=t[s]>0,t[s]=0,n)},_create:function(){var t,i,s,n,a,o=this,r=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},i=0;t.length>i;i++)s=e.trim(t[i]),a="ui-resizable-"+s,n=e("
"),n.css({zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(t){var i,s,n,a;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=e(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")}),r.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(e(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){r.disabled||o.resizing||(e(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var i,s,n=!1;for(i in this.handles)s=e(this.handles[i])[0],(s===t.target||e.contains(s,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var i,s,n,a=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),a.containment&&(i+=e(a.containment).scrollLeft()||0,s+=e(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===n?this.axis+"-resize":n),o.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,s,n=this.originalMousePosition,a=this.axis,o=t.pageX-n.left||0,r=t.pageY-n.top||0,h=this._change[a];return this._updatePrevProperties(),h?(i=h.apply(this,[t,o,r]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(t){this.resizing=!1;var i,s,n,a,o,r,h,l=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,a=s?0:u.sizeDiff.width,o={width:u.helper.width()-a,height:u.helper.height()-n},r=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(e.extend(o,{top:h,left:r})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,s,n,a,o=this.options;a={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||e)&&(t=a.minHeight*this.aspectRatio,s=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,n=a.maxWidth/this.aspectRatio,t>a.minWidth&&(a.minWidth=t),s>a.minHeight&&(a.minHeight=s),a.maxWidth>i&&(a.maxWidth=i),a.maxHeight>n&&(a.maxHeight=n)),this._vBoundaries=a},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,s=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===s&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===s&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,s=this._isNumber(e.width)&&t.maxWidth&&t.maxWidthe.width,o=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,r=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,l=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return a&&(e.width=t.minWidth),o&&(e.height=t.minHeight),s&&(e.width=t.maxWidth),n&&(e.height=t.maxHeight),a&&l&&(e.left=r-t.minWidth),s&&l&&(e.left=r-t.maxWidth),o&&u&&(e.top=h-t.minHeight),n&&u&&(e.top=h-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],s=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],n=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];4>t;t++)i[t]=parseInt(s[t],10)||0,i[t]+=parseInt(n[t],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,s,n,a,o,r,h=e(this).resizable("instance"),l=h.options,u=h.element,d=l.containment,c=d instanceof e?d.get(0):/parent/.test(d)?u.parent().get(0):d;c&&(h.containerElement=e(c),/document/.test(d)||d===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(c),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,s){i[e]=h._num(t.css("padding"+s))}),h.containerOffset=t.offset(),h.containerPosition=t.position(),h.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},s=h.containerOffset,n=h.containerSize.height,a=h.containerSize.width,o=h._hasScroll(c,"left")?c.scrollWidth:a,r=h._hasScroll(c)?c.scrollHeight:n,h.parentData={element:c,left:s.left,top:s.top,width:o,height:r}))},resize:function(t){var i,s,n,a,o=e(this).resizable("instance"),r=o.options,h=o.containerOffset,l=o.position,u=o._aspectRatio||t.shiftKey,d={top:0,left:0},c=o.containerElement,p=!0;c[0]!==document&&/static/.test(c.css("position"))&&(d=h),l.left<(o._helper?h.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-h.left:o.position.left-d.left),u&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.position.left=r.helper?h.left:0),l.top<(o._helper?h.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-h.top:o.position.top),u&&(o.size.width=o.size.height*o.aspectRatio,p=!1),o.position.top=o._helper?h.top:0),n=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),n&&a?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-h.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-h.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,u&&(o.size.height=o.size.width/o.aspectRatio,p=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,u&&(o.size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,s=t.containerOffset,n=t.containerPosition,a=t.containerElement,o=e(t.helper),r=o.offset(),h=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance"),i=t.options;e(i.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})},resize:function(t,i){var s=e(this).resizable("instance"),n=s.options,a=s.originalSize,o=s.originalPosition,r={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0};e(n.alsoResize).each(function(){var t=e(this),s=e(this).data("ui-resizable-alsoresize"),n={},a=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(a,function(e,t){var i=(s[t]||0)+(r[t]||0);i&&i>=0&&(n[t]=i||null)}),t.css(n)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),s=i.options,n=i.size,a=i.originalSize,o=i.originalPosition,r=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,u=h[1]||1,d=Math.round((n.width-a.width)/l)*l,c=Math.round((n.height-a.height)/u)*u,p=a.width+d,f=a.height+c,m=s.maxWidth&&p>s.maxWidth,g=s.maxHeight&&f>s.maxHeight,v=s.minWidth&&s.minWidth>p,y=s.minHeight&&s.minHeight>f;s.grid=h,v&&(p+=l),y&&(f+=u),m&&(p-=l),g&&(f-=u),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=o.top-c):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=o.left-d):((0>=f-u||0>=p-l)&&(t=i._getPaddingPlusBorderDimensions(this)),f-u>0?(i.size.height=f,i.position.top=o.top-c):(f=u-t.height,i.size.height=f,i.position.top=o.top+a.height-f),p-l>0?(i.size.width=p,i.position.left=o.left-d):(p=l-t.width,i.size.width=p,i.position.left=o.left+a.width-p))}}),e.ui.resizable,e.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;0>i&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i,s=this;if(this._isOpen&&this._trigger("beforeClose",t)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{i=this.document[0].activeElement,i&&"body"!==i.nodeName.toLowerCase()&&e(i).blur()}catch(n){}this._hide(this.uiDialog,this.options.hide,function(){s._trigger("close",t)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index")}).get(),a=Math.max.apply(null,n);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),s=!0),s&&!i&&this._trigger("focus",t),s},open:function(){var t=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=e(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(t){function i(){var t=this.document[0].activeElement,i=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=e("
").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),this.close(t),void 0; +if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==s[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){n.focus()}),t.preventDefault()):(this._delay(function(){s.focus()}),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("
").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=e("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title||e.html(" "),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=e("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("
").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||e.isArray(i)&&!i.length?(this.uiDialog.removeClass("ui-dialog-buttons"),void 0):(e.each(i,function(i,s){var n,a;s=e.isFunction(s)?{click:s,text:i}:s,s=e.extend({type:"button"},s),n=s.click,s.click=function(){n.apply(t.element[0],arguments)},a={icons:s.icons,text:s.showText},delete s.icons,delete s.showText,e("",s).button(a).appendTo(t.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){e(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,t(n))},drag:function(e,s){i._trigger("drag",e,t(s))},stop:function(n,a){var o=a.offset.left-i.document.scrollLeft(),r=a.offset.top-i.document.scrollTop();s.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" "+"top"+(r>=0?"+":"")+r,of:i.window},e(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,t(a))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var i=this,s=this.options,n=s.resizable,a=this.uiDialog.css("position"),o="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:o,start:function(s,n){e(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,t(n))},resize:function(e,s){i._trigger("resize",e,t(s))},stop:function(n,a){var o=i.uiDialog.offset(),r=o.left-i.document.scrollLeft(),h=o.top-i.document.scrollTop();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(h>=0?"+":"")+h,of:i.window},e(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,t(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};e.each(t,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(s=!0),e in i.resizableRelatedOptions&&(n[e]=t)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(e,t){var i,s,n=this.uiDialog;"dialogClass"===e&&n.removeClass(this.options.dialogClass).addClass(t),"disabled"!==e&&(this._super(e,t),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:""+t}),"draggable"===e&&(i=n.is(":data(ui-draggable)"),i&&!t&&n.draggable("destroy"),!i&&t&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(s=n.is(":data(ui-resizable)"),s&&!t&&n.resizable("destroy"),s&&"string"==typeof t&&n.resizable("option","handles",t),s||t===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),t=Math.max(0,s.minHeight-e),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-e):"none","auto"===s.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("
").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return e(t.target).closest(".ui-dialog").length?!0:!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("
").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),e.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(s)?s:function(e){return e.is(s)},this.proportions=function(){return arguments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;e.length>t;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){if("accept"===t)this.accept=e.isFunction(i)?i:function(e){return e.is(i)};else if("scope"===t){var s=e.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var s=i||e.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=e(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&e.ui.intersect(s,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t)?(n=!0,!1):void 0}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(s)),this.element):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(){function e(e,t,i){return e>=t&&t+i>e}return function(t,i,s,n){if(!i.offset)return!1;var a=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,r=a+t.helperProportions.width,h=o+t.helperProportions.height,l=i.offset.left,u=i.offset.top,d=l+i.proportions().width,c=u+i.proportions().height;switch(s){case"fit":return a>=l&&d>=r&&o>=u&&c>=h;case"intersect":return a+t.helperProportions.width/2>l&&d>r-t.helperProportions.width/2&&o+t.helperProportions.height/2>u&&c>h-t.helperProportions.height/2;case"pointer":return e(n.pageY,u,i.proportions().height)&&e(n.pageX,l,i.proportions().width);case"touch":return(o>=u&&c>=o||h>=u&&c>=h||u>o&&h>c)&&(a>=l&&d>=a||r>=l&&d>=r||l>a&&r>d);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var s,n,a=e.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(s=0;a.length>s;s++)if(!(a[s].options.disabled||t&&!a[s].accept.call(a[s].element[0],t.currentItem||t.element))){for(n=0;r.length>n;n++)if(r[n]===a[s].element[0]){a[s].proportions().height=0;continue e}a[s].visible="none"!==a[s].element.css("display"),a[s].visible&&("mousedown"===o&&a[s]._activate.call(a[s],i),a[s].offset=a[s].element.offset(),a[s].proportions({width:a[s].element[0].offsetWidth,height:a[s].element[0].offsetHeight}))}},drop:function(t,i){var s=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,a,o=e.ui.intersect(t,this,this.options.tolerance,i),r=!o&&this.isover?"isout":o&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===n}),a.length&&(s=e(a[0]).droppable("instance"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},e.ui.droppable;var y="ui-effects-",b=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var s=d[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(e,a){var o,r=a.re.exec(i),h=r&&a.parse(r),l=a.space||"rgba";return h?(o=s[l](h),s[u[l].cache]=o[u[l].cache],n=s._rgba=o._rgba,!1):t}),n.length?("0,0,0,0"===n.join()&&e.extend(n,a.transparent),s):a[i]}function n(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,s,n){return new e.Color.fn.parse(t,i,s,n)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=l.support={},p=e("

")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(n,o,r,h){if(n===t)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=e(n).css(o),o=t);var d=this,c=e.type(n),p=this._rgba=[];return o!==t&&(n=[n,o,r,h],c="array"),"string"===c?this.parse(s(n)||a._default):"array"===c?(f(u.rgba.props,function(e,t){p[t.idx]=i(n[t.idx],t)}),this):"object"===c?(n instanceof l?f(u,function(e,t){n[t.cache]&&(d[t.cache]=n[t.cache].slice())}):f(u,function(t,s){var a=s.cache;f(s.props,function(e,t){if(!d[a]&&s.to){if("alpha"===e||null==n[e])return;d[a]=s.to(d._rgba)}d[a][t.idx]=i(n[e],t,!0)}),d[a]&&0>e.inArray(null,d[a].slice(0,3))&&(d[a][3]=1,s.from&&(d._rgba=s.from(d[a])))}),this):t},is:function(e){var i=l(e),s=!0,n=this;return f(u,function(e,a){var o,r=i[a.cache];return r&&(o=n[a.cache]||a.to&&a.to(n._rgba)||[],f(a.props,function(e,i){return null!=r[i.idx]?s=r[i.idx]===o[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),n=s._space(),a=u[n],o=0===this.alpha()?l("transparent"):this,r=o[a.cache]||a.to(o._rgba),h=r.slice();return s=s[a.cache],f(a.props,function(e,n){var a=n.idx,o=r[a],l=s[a],u=d[n.type]||{};null!==l&&(null===o?h[a]=l:(u.mod&&(l-o>u.mod/2?o+=u.mod:o-l>u.mod/2&&(o-=u.mod)),h[a]=i((l-o)*t+o,n)))}),this[n](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*n[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,n=e[1]/255,a=e[2]/255,o=e[3],r=Math.max(s,n,a),h=Math.min(s,n,a),l=r-h,u=r+h,d=.5*u;return t=h===r?0:s===r?60*(n-a)/l+360:n===r?60*(a-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=d?l/u:l/(2-u),[Math.round(t)%360,i,d,null==o?1:o]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],a=e[3],o=.5>=s?s*(1+i):s+i-s*i,r=2*s-o;return[Math.round(255*n(r,o,t+1/3)),Math.round(255*n(r,o,t)),Math.round(255*n(r,o,t-1/3)),a]},f(u,function(s,n){var a=n.props,o=n.cache,h=n.to,u=n.from;l.fn[s]=function(s){if(h&&!this[o]&&(this[o]=h(this._rgba)),s===t)return this[o].slice();var n,r=e.type(s),d="array"===r||"object"===r?s:arguments,c=this[o].slice();return f(a,function(e,t){var s=d["object"===r?e:t.idx];null==s&&(s=c[t.idx]),c[t.idx]=i(s,t)}),u?(n=l(u(c)),n[o]=c,n):l(c)},f(a,function(t,i){l.fn[t]||(l.fn[t]=function(n){var a,o=e.type(n),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===o?u:("function"===o&&(n=n.call(this,u),o=e.type(n)),null==n&&i.empty?this:("string"===o&&(a=r.exec(n),a&&(n=u+parseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,n){var a,o,r="";if("transparent"!==n&&("string"!==e.type(n)||(a=s(n)))){if(n=l(a||n),!c.rgba&&1!==n._rgba[3]){for(o="backgroundColor"===i?t.parentNode:t;(""===r||"transparent"===r)&&o&&o.style;)try{r=e.css(o,"backgroundColor"),o=o.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{t.style[i]=n}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(o),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},a=e.Color.names={aqua:"#00ffff",black:"#000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#fff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#fff"}}(b),function(){function t(t){var i,s,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(a[e.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(a[i]=n[i]);return a}function i(t,i){var s,a,o={};for(s in i)a=i[s],t[s]!==a&&(n[s]||(e.fx.step[s]||!isNaN(parseFloat(a)))&&(o[s]=a));return o}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(b.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(n,a,o,r){var h=e.speed(a,o,r);return this.queue(function(){var a,o=e(this),r=o.attr("class")||"",l=h.children?o.find("*").addBack():o;l=l.map(function(){var i=e(this);return{el:i,start:t(this)}}),a=function(){e.each(s,function(e,t){n[t]&&o[t+"Class"](n[t])})},a(),l=l.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr("class",r),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.call(o[0])})})},e.fn.extend({addClass:function(t){return function(i,s,n,a){return s?e.effects.animateClass.call(this,{add:i},s,n,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,n,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,n,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,n,a,o){return"boolean"==typeof s||void 0===s?n?e.effects.animateClass.call(this,s?{add:i}:{remove:i},n,a,o):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,n,a)}}(e.fn.toggleClass),switchClass:function(t,i,s,n,a){return e.effects.animateClass.call(this,{add:i,remove:t},s,n,a)}})}(),function(){function t(t,i,s,n){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(n=s,s=i,i={}),e.isFunction(s)&&(n=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=n||i.complete,t}function i(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.11.4",save:function(e,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(y+t[i],e[0].style[t[i]])},restore:function(e,t){var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(y+t[s]),void 0===i&&(i=""),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return t.wrap(s),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(n),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,s,n){return n=n||{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(a)&&a.call(n[0]),e.isFunction(t)&&t()}var n=e(this),a=s.complete,r=s.mode;(n.is(":hidden")?"hide"===r:"show"===r)?(n[r](),i()):o.call(n[0],s,i)}var s=t.apply(this,arguments),n=s.mode,a=s.queue,o=e.effects.effect[s.effect];return e.fx.off||!o?n?this[n](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):a===!1?this.each(i):this.queue(a||"fx",i)},show:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)||"boolean"==typeof s)return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.effect.blind=function(t,i){var s,n,a,o=e(this),r=/up|down|vertical/,h=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(o,t.mode||"hide"),d=t.direction||"up",c=r.test(d),p=c?"height":"width",f=c?"top":"left",m=h.test(d),g={},v="show"===u;o.parent().is(".ui-effects-wrapper")?e.effects.save(o.parent(),l):e.effects.save(o,l),o.show(),s=e.effects.createWrapper(o).css({overflow:"hidden"}),n=s[p](),a=parseFloat(s.css(f))||0,g[p]=v?n:0,m||(o.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[f]=v?a:n+a),v&&(s.css(p,0),m||s.css(f,a+n)),s.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===u&&o.hide(),e.effects.restore(o,l),e.effects.removeWrapper(o),i()}})},e.effects.effect.bounce=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(o,t.mode||"effect"),l="hide"===h,u="show"===h,d=t.direction||"up",c=t.distance,p=t.times||5,f=2*p+(u||l?1:0),m=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",y="up"===d||"left"===d,b=o.queue(),_=b.length;for((u||l)&&r.push("opacity"),e.effects.save(o,r),o.show(),e.effects.createWrapper(o),c||(c=o["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a={opacity:1},a[v]=0,o.css("opacity",0).css(v,y?2*-c:2*c).animate(a,m,g)),l&&(c/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(y?"-=":"+=")+c,o.animate(n,m,g).animate(a,m,g),c=l?2*c:c/2;l&&(n={opacity:0},n[v]=(y?"-=":"+=")+c,o.animate(n,m,g)),o.queue(function(){l&&o.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),o.dequeue()},e.effects.effect.clip=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(o,t.mode||"hide"),l="show"===h,u=t.direction||"vertical",d="vertical"===u,c=d?"height":"width",p=d?"top":"left",f={};e.effects.save(o,r),o.show(),s=e.effects.createWrapper(o).css({overflow:"hidden"}),n="IMG"===o[0].tagName?s:o,a=n[c](),l&&(n.css(c,0),n.css(p,a/2)),f[c]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){l||o.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()}})},e.effects.effect.drop=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","opacity","height","width"],o=e.effects.setMode(n,t.mode||"hide"),r="show"===o,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h?"pos":"neg",d={opacity:r?1:0};e.effects.save(n,a),n.show(),e.effects.createWrapper(n),s=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===u?-s:s),d[l]=(r?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===d*c&&n()}function n(){p.css({visibility:"visible"}),e(b).remove(),m||p.hide(),i()}var a,o,r,h,l,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/c),y=Math.ceil(p.outerHeight()/d),b=[];for(a=0;d>a;a++)for(h=g.top+a*y,u=a-(d-1)/2,o=0;c>o;o++)r=g.left+o*v,l=o-(c-1)/2,p.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:r+(m?l*v:0),top:h+(m?u*y:0),opacity:m?0:1}).animate({left:r+(m?0:l*v),top:h+(m?0:u*y),opacity:m?1:0},t.duration||500,t.easing,s)},e.effects.effect.fade=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},e.effects.effect.fold=function(t,i){var s,n,a=e(this),o=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(a,t.mode||"hide"),h="show"===r,l="hide"===r,u=t.size||15,d=/([0-9]+)%/.exec(u),c=!!t.horizFirst,p=h!==c,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(a,o),a.show(),s=e.effects.createWrapper(a).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],d&&(u=parseInt(d[1],10)/100*n[l?0:1]),h&&s.css(c?{height:0,width:u}:{height:u,width:0}),g[f[0]]=h?n[0]:u,v[f[1]]=h?n[1]:0,s.animate(g,m,t.easing).animate(v,m,t.easing,function(){l&&a.hide(),e.effects.restore(a,o),e.effects.removeWrapper(a),i()})},e.effects.effect.highlight=function(t,i){var s=e(this),n=["backgroundImage","backgroundColor","opacity"],a=e.effects.setMode(s,t.mode||"show"),o={backgroundColor:s.css("backgroundColor")};"hide"===a&&(o.opacity=0),e.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&s.hide(),e.effects.restore(s,n),i()}})},e.effects.effect.size=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],u=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(o,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=o.css("position"),y=f?r:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&o.show(),s={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===t.mode&&"show"===p?(o.from=t.to||b,o.to=t.from||s):(o.from=t.from||("show"===p?b:s),o.to=t.to||("hide"===p?b:s)),a={from:{y:o.from.height/s.height,x:o.from.width/s.width},to:{y:o.to.height/s.height,x:o.to.width/s.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(y=y.concat(d),o.from=e.effects.setTransition(o,d,a.from.y,o.from),o.to=e.effects.setTransition(o,d,a.to.y,o.to)),a.from.x!==a.to.x&&(y=y.concat(c),o.from=e.effects.setTransition(o,c,a.from.x,o.from),o.to=e.effects.setTransition(o,c,a.to.x,o.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(y=y.concat(u).concat(l),o.from=e.effects.setTransition(o,u,a.from.y,o.from),o.to=e.effects.setTransition(o,u,a.to.y,o.to)),e.effects.save(o,y),o.show(),e.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),g&&(n=e.effects.getBaseline(g,s),o.from.top=(s.outerHeight-o.outerHeight())*n.y,o.from.left=(s.outerWidth-o.outerWidth())*n.x,o.to.top=(s.outerHeight-o.to.outerHeight)*n.y,o.to.left=(s.outerWidth-o.to.outerWidth)*n.x),o.css(o.from),("content"===m||"both"===m)&&(d=d.concat(["marginTop","marginBottom"]).concat(u),c=c.concat(["marginLeft","marginRight"]),l=r.concat(d).concat(c),o.find("*[width]").each(function(){var i=e(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()}; +f&&e.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.from),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,c,a.from.x,i.from),i.to=e.effects.setTransition(i,c,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,l)})})),o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),e.effects.restore(o,y),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):e.each(["top","left"],function(e,t){o.css(t,function(t,i){var s=parseInt(i,10),n=e?o.to.left:o.to.top;return"auto"===i?n+"px":s+n+"px"})})),e.effects.removeWrapper(o),i()}})},e.effects.effect.scale=function(t,i){var s=e(this),n=e.extend(!0,{},t),a=e.effects.setMode(s,t.mode||"effect"),o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===a?0:100),r=t.direction||"both",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},u={y:"horizontal"!==r?o/100:1,x:"vertical"!==r?o/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==a&&(n.origin=h||["middle","center"],n.restore=!0),n.from=t.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*u.y,width:l.width*u.x,outerHeight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},n.fade&&("show"===a&&(n.from.opacity=0,n.to.opacity=1),"hide"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},e.effects.effect.puff=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"hide"),a="hide"===n,o=parseInt(t.percent,10)||150,r=o/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?o:100,from:a?h:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r}}),s.effect(t)},e.effects.effect.pulsate=function(t,i){var s,n=e(this),a=e.effects.setMode(n,t.mode||"show"),o="show"===a,r="hide"===a,h=o||"hide"===a,l=2*(t.times||5)+(h?1:0),u=t.duration/l,d=0,c=n.queue(),p=c.length;for((o||!n.is(":visible"))&&(n.css("opacity",0).show(),d=1),s=1;l>s;s++)n.animate({opacity:d},u,t.easing),d=1-d;n.animate({opacity:d},u,t.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,l+1))),n.dequeue()},e.effects.effect.shake=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","height","width"],o=e.effects.setMode(n,t.mode||"effect"),r=t.direction||"left",h=t.distance||20,l=t.times||3,u=2*l+1,d=Math.round(t.duration/u),c="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},m={},g={},v=n.queue(),y=v.length;for(e.effects.save(n,a),n.show(),e.effects.createWrapper(n),f[c]=(p?"-=":"+=")+h,m[c]=(p?"+=":"-=")+2*h,g[c]=(p?"-=":"+=")+2*h,n.animate(f,d,t.easing),s=1;l>s;s++)n.animate(m,d,t.easing).animate(g,d,t.easing);n.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),n.dequeue()},e.effects.effect.slide=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","width","height"],o=e.effects.setMode(n,t.mode||"show"),r="show"===o,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h,d={};e.effects.save(n,a),n.show(),s=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(l,u?isNaN(s)?"-"+s:-s:s),d[l]=(r?u?"+=":"-=":u?"-=":"+=")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.transfer=function(t,i){var s=e(this),n=e(t.to),a="fixed"===n.css("position"),o=e("body"),r=a?o.scrollTop():0,h=a?o.scrollLeft():0,l=n.offset(),u={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},d=s.offset(),c=e("
").appendTo(document.body).addClass(t.className).css({top:d.top-r,left:d.left-h,height:s.innerHeight(),width:s.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){c.remove(),i()})},e.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=e("
").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),this._refreshValue(),void 0)},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=e===!1,"number"!=typeof e&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("
").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectable",e.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=e(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this,s=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=e.data(this,"selectable-item");s.startselected=!0,t.metaKey||t.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",t,{unselecting:s.element}))}),e(t.target).parents().addBack().each(function(){var s,n=e.data(this,"selectable-item");return n?(s=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",t,{selecting:n.element}):i._trigger("unselecting",t,{unselecting:n.element}),!1):void 0}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,a=this.opos[0],o=this.opos[1],r=t.pageX,h=t.pageY;return a>r&&(i=r,r=a,a=i),o>h&&(i=h,h=o,o=i),this.helper.css({left:a,top:o,width:r-a,height:h-o}),this.selectees.each(function(){var i=e.data(this,"selectable-item"),l=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?l=!(i.left>r||a>i.right||i.top>h||o>i.bottom):"fit"===n.tolerance&&(l=i.left>a&&r>i.right&&i.top>o&&h>i.bottom),l?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",t,{unselecting:i.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",t,{unselected:s.element})}),e(".ui-selecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",t,{selected:s.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return e.each(["min","max","step"],function(e,s){var n=i.attr(s);void 0!==n&&n.length&&(t[s]=n)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t)===!1?!1:(this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var i=this.options,s=e.ui.keyCode;switch(t.keyCode){case s.UP:return this._repeat(null,1,t),!0;case s.DOWN:return this._repeat(null,-1,t),!0;case s.PAGE_UP:return this._repeat(null,i.page,t),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""+""+""+""+""},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,s=this.options;return t=null!==s.min?s.min:0,i=e-t,i=Math.round(i/s.step)*s.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==s.max&&e>s.max?s.max:null!==s.min&&s.min>e?s.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,this.element.val(this._format(i)),void 0}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(e,t),"disabled"===e&&(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable"))},_setOptions:h(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null===e?!1:e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&(i=this._parse(e),null!==i&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:h(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:h(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:h(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:h(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(h(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),e.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var i,s;t=t.cloneNode(!1),i=t.href.replace(e,""),s=location.href.replace(e,"");try{i=decodeURIComponent(i)}catch(n){}try{s=decodeURIComponent(s)}catch(n){}return t.hash.length>1&&i===s}}(),_create:function(){var t=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible),this._processTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===t&&(s&&this.tabs.each(function(i,n){return e(n).attr("aria-controls")===s?(t=i,!1):void 0}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:s++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:n=!1,s--;break;case e.ui.keyCode.END:s=this.anchors.length-1;break;case e.ui.keyCode.HOME:s=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(s),void 0;case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(s===this.options.active?!1:s),void 0;default:return}t.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function s(){return t>n&&(t=0),0>t&&(t=n),t}for(var n=this.tabs.length-1;-1!==e.inArray(s(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):"disabled"===e?(this._setupDisabled(t),void 0):(this._super(e,t),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t),void 0)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,s=this.anchors,n=this.panels; +this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(i,s){var n,a,o,r=e(s).uniqueId().attr("id"),h=e(s).closest("li"),l=h.attr("aria-controls");t._isLocal(s)?(n=s.hash,o=n.substring(1),a=t.element.find(t._sanitizeSelector(n))):(o=h.attr("aria-controls")||e({}).uniqueId()[0].id,n="#"+o,a=t.element.find(n),a.length||(a=t._createPanel(o),a.insertAfter(t.panels[i-1]||t.tablist)),a.attr("aria-live","polite")),a.length&&(t.panels=t.panels.add(a)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-controls":o,"aria-labelledby":r}),a.attr("aria-labelledby",r)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("
").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,s=0;i=this.tabs[s];s++)t===!0||-1!==e.inArray(s,t)?e(i).addClass("ui-state-disabled").attr("aria-disabled","true"):e(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,s=this.element.parent();"fill"===t?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),s=t.css("position");"absolute"!==s&&"fixed"!==s&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,s=this.active,n=e(t.currentTarget),a=n.closest("li"),o=a[0]===s[0],r=o&&i.collapsible,h=r?e():this._getPanelForTab(a),l=s.length?this._getPanelForTab(s):e(),u={oldTab:s,oldPanel:l,newTab:r?e():a,newPanel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||this._trigger("beforeActivate",t,u)===!1||(i.active=r?!1:this.tabs.index(a),this.active=o?e():a,this.xhr&&this.xhr.abort(),l.length||h.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,u))},_toggle:function(t,i){function s(){a.running=!1,a._trigger("activate",t,i)}function n(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&a.options.show?a._show(o,a.options.show,s):(o.show(),s())}var a=this,o=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&r.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,s=this._findActive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(void 0===t?i=!1:(t=this._getIndex(t),i=e.isArray(i)?e.map(i,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,i){return i!==t?i:null})),this._setupDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=e.isArray(i)?e.merge([t],i).sort():[t]}this._setupDisabled(i)}},load:function(t,i){t=this._getIndex(t);var s=this,n=this.tabs.eq(t),a=n.find(".ui-tabs-anchor"),o=this._getPanelForTab(n),r={tab:n,panel:o},h=function(e,t){"abort"===t&&s.panels.stop(!1,!0),n.removeClass("ui-tabs-loading"),o.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};this._isLocal(a[0])||(this.xhr=e.ajax(this._ajaxSettings(a,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(n.addClass("ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(e,t,n){setTimeout(function(){o.html(e),s._trigger("load",i,r),h(n,t)},1)}).fail(function(e,t){setTimeout(function(){h(e,t)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href"),beforeSend:function(t,a){return n._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:a},s))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),e.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var t=e(this).attr("title")||"";return e("").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var s=(t.attr("aria-describedby")||"").split(/\s+/);s.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(s.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),s=(t.attr("aria-describedby")||"").split(/\s+/),n=e.inArray(i,s);-1!==n&&s.splice(n,1),t.removeData("ui-tooltip-id"),s=e.trim(s.join(" ")),s?t.attr("aria-describedby",s):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=e("
").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,i){var s=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){s._updateContent(t.element)}),void 0)},_disable:function(){var t=this;e.each(this.tooltips,function(i,s){var n=e.Event("blur");n.target=n.currentTarget=s.element[0],t.close(n,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,s=e(t?t.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&s.parents().each(function(){var t,s=e(this);s.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerCloseHandlers(t,s),this._updateContent(s,t))},_updateContent:function(e,t){var i,s=this.options.content,n=this,a=t?t.type:null;return"string"==typeof s?this._open(t,e,s):(i=s.call(e[0],function(i){n._delay(function(){e.data("ui-tooltip-open")&&(t&&(t.type=a),this._open(t,e,i))})}),i&&this._open(t,e,i),void 0)},_open:function(t,i,s){function n(e){l.of=e,o.is(":hidden")||o.position(l)}var a,o,r,h,l=e.extend({},this.options.position);if(s){if(a=this._find(i))return a.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),o=a.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),s.clone?(h=s.clone(),h.removeAttr("id").find("[id]").removeAttr("id")):h=s,e("
").html(h).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:n}),n(t)):o.position(e.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){o.is(":visible")&&(n(l.of),clearInterval(r))},e.fx.interval)),this._trigger("open",t,{tooltip:o})}},_registerCloseHandlers:function(t,i){var s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var s=e.Event(t);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(s.mouseleave="close"),t&&"focusin"!==t.type||(s.focusout="close"),this._on(!0,i,s)},close:function(t){var i,s=this,n=e(t?t.currentTarget:this.element),a=this._find(n);return a?(i=a.tooltip,a.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),a.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(e(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete s.parents[t]}),a.closing=!0,this._trigger("close",t,{tooltip:i}),a.hiding||(a.closing=!1)),void 0):(n.removeData("ui-tooltip-open"),void 0)},_tooltip:function(t){var i=e("
").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),s=i.uniqueId().attr("id");return e("
").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,s){var n=e.Event("blur"),a=s.element;n.target=n.currentTarget=a[0],t.close(n,!0),e("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}); \ No newline at end of file diff --git a/public/assets/js/ui/jquery.ui.accordion.js b/public/assets/js/ui/jquery.ui.accordion.js new file mode 100644 index 0000000..d3dbdec --- /dev/null +++ b/public/assets/js/ui/jquery.ui.accordion.js @@ -0,0 +1,611 @@ +/*! + * jQuery UI Accordion 1.8.22 + * + * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Accordion + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function( $, undefined ) { + +$.widget( "ui.accordion", { + options: { + active: 0, + animated: "slide", + autoHeight: true, + clearStyle: false, + collapsible: false, + event: "click", + fillSpace: false, + header: "> li > :first-child,> :not(li):even", + icons: { + header: "ui-icon-triangle-1-e", + headerSelected: "ui-icon-triangle-1-s" + }, + navigation: false, + navigationFilter: function() { + return this.href.toLowerCase() === location.href.toLowerCase(); + } + }, + + _create: function() { + var self = this, + options = self.options; + + self.running = 0; + + self.element + .addClass( "ui-accordion ui-widget ui-helper-reset" ) + // in lack of child-selectors in CSS + // we need to mark top-LIs in a UL-accordion for some IE-fix + .children( "li" ) + .addClass( "ui-accordion-li-fix" ); + + self.headers = self.element.find( options.header ) + .addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" ) + .bind( "mouseenter.accordion", function() { + if ( options.disabled ) { + return; + } + $( this ).addClass( "ui-state-hover" ); + }) + .bind( "mouseleave.accordion", function() { + if ( options.disabled ) { + return; + } + $( this ).removeClass( "ui-state-hover" ); + }) + .bind( "focus.accordion", function() { + if ( options.disabled ) { + return; + } + $( this ).addClass( "ui-state-focus" ); + }) + .bind( "blur.accordion", function() { + if ( options.disabled ) { + return; + } + $( this ).removeClass( "ui-state-focus" ); + }); + + self.headers.next() + .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" ); + + if ( options.navigation ) { + var current = self.element.find( "a" ).filter( options.navigationFilter ).eq( 0 ); + if ( current.length ) { + var header = current.closest( ".ui-accordion-header" ); + if ( header.length ) { + // anchor within header + self.active = header; + } else { + // anchor within content + self.active = current.closest( ".ui-accordion-content" ).prev(); + } + } + } + + self.active = self._findActive( self.active || options.active ) + .addClass( "ui-state-default ui-state-active" ) + .toggleClass( "ui-corner-all" ) + .toggleClass( "ui-corner-top" ); + self.active.next().addClass( "ui-accordion-content-active" ); + + self._createIcons(); + self.resize(); + + // ARIA + self.element.attr( "role", "tablist" ); + + self.headers + .attr( "role", "tab" ) + .bind( "keydown.accordion", function( event ) { + return self._keydown( event ); + }) + .next() + .attr( "role", "tabpanel" ); + + self.headers + .not( self.active || "" ) + .attr({ + "aria-expanded": "false", + "aria-selected": "false", + tabIndex: -1 + }) + .next() + .hide(); + + // make sure at least one header is in the tab order + if ( !self.active.length ) { + self.headers.eq( 0 ).attr( "tabIndex", 0 ); + } else { + self.active + .attr({ + "aria-expanded": "true", + "aria-selected": "true", + tabIndex: 0 + }); + } + + // only need links in tab order for Safari + if ( !$.browser.safari ) { + self.headers.find( "a" ).attr( "tabIndex", -1 ); + } + + if ( options.event ) { + self.headers.bind( options.event.split(" ").join(".accordion ") + ".accordion", function(event) { + self._clickHandler.call( self, event, this ); + event.preventDefault(); + }); + } + }, + + _createIcons: function() { + var options = this.options; + if ( options.icons ) { + $( "" ) + .addClass( "ui-icon " + options.icons.header ) + .prependTo( this.headers ); + this.active.children( ".ui-icon" ) + .toggleClass(options.icons.header) + .toggleClass(options.icons.headerSelected); + this.element.addClass( "ui-accordion-icons" ); + } + }, + + _destroyIcons: function() { + this.headers.children( ".ui-icon" ).remove(); + this.element.removeClass( "ui-accordion-icons" ); + }, + + destroy: function() { + var options = this.options; + + this.element + .removeClass( "ui-accordion ui-widget ui-helper-reset" ) + .removeAttr( "role" ); + + this.headers + .unbind( ".accordion" ) + .removeClass( "ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" ) + .removeAttr( "role" ) + .removeAttr( "aria-expanded" ) + .removeAttr( "aria-selected" ) + .removeAttr( "tabIndex" ); + + this.headers.find( "a" ).removeAttr( "tabIndex" ); + this._destroyIcons(); + var contents = this.headers.next() + .css( "display", "" ) + .removeAttr( "role" ) + .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled" ); + if ( options.autoHeight || options.fillHeight ) { + contents.css( "height", "" ); + } + + return $.Widget.prototype.destroy.call( this ); + }, + + _setOption: function( key, value ) { + $.Widget.prototype._setOption.apply( this, arguments ); + + if ( key == "active" ) { + this.activate( value ); + } + if ( key == "icons" ) { + this._destroyIcons(); + if ( value ) { + this._createIcons(); + } + } + // #5332 - opacity doesn't cascade to positioned elements in IE + // so we need to add the disabled class to the headers and panels + if ( key == "disabled" ) { + this.headers.add(this.headers.next()) + [ value ? "addClass" : "removeClass" ]( + "ui-accordion-disabled ui-state-disabled" ); + } + }, + + _keydown: function( event ) { + if ( this.options.disabled || event.altKey || event.ctrlKey ) { + return; + } + + var keyCode = $.ui.keyCode, + length = this.headers.length, + currentIndex = this.headers.index( event.target ), + toFocus = false; + + switch ( event.keyCode ) { + case keyCode.RIGHT: + case keyCode.DOWN: + toFocus = this.headers[ ( currentIndex + 1 ) % length ]; + break; + case keyCode.LEFT: + case keyCode.UP: + toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; + break; + case keyCode.SPACE: + case keyCode.ENTER: + this._clickHandler( { target: event.target }, event.target ); + event.preventDefault(); + } + + if ( toFocus ) { + $( event.target ).attr( "tabIndex", -1 ); + $( toFocus ).attr( "tabIndex", 0 ); + toFocus.focus(); + return false; + } + + return true; + }, + + resize: function() { + var options = this.options, + maxHeight; + + if ( options.fillSpace ) { + if ( $.browser.msie ) { + var defOverflow = this.element.parent().css( "overflow" ); + this.element.parent().css( "overflow", "hidden"); + } + maxHeight = this.element.parent().height(); + if ($.browser.msie) { + this.element.parent().css( "overflow", defOverflow ); + } + + this.headers.each(function() { + maxHeight -= $( this ).outerHeight( true ); + }); + + this.headers.next() + .each(function() { + $( this ).height( Math.max( 0, maxHeight - + $( this ).innerHeight() + $( this ).height() ) ); + }) + .css( "overflow", "auto" ); + } else if ( options.autoHeight ) { + maxHeight = 0; + this.headers.next() + .each(function() { + maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() ); + }) + .height( maxHeight ); + } + + return this; + }, + + activate: function( index ) { + // TODO this gets called on init, changing the option without an explicit call for that + this.options.active = index; + // call clickHandler with custom event + var active = this._findActive( index )[ 0 ]; + this._clickHandler( { target: active }, active ); + + return this; + }, + + _findActive: function( selector ) { + return selector + ? typeof selector === "number" + ? this.headers.filter( ":eq(" + selector + ")" ) + : this.headers.not( this.headers.not( selector ) ) + : selector === false + ? $( [] ) + : this.headers.filter( ":eq(0)" ); + }, + + // TODO isn't event.target enough? why the separate target argument? + _clickHandler: function( event, target ) { + var options = this.options; + if ( options.disabled ) { + return; + } + + // called only when using activate(false) to close all parts programmatically + if ( !event.target ) { + if ( !options.collapsible ) { + return; + } + this.active + .removeClass( "ui-state-active ui-corner-top" ) + .addClass( "ui-state-default ui-corner-all" ) + .children( ".ui-icon" ) + .removeClass( options.icons.headerSelected ) + .addClass( options.icons.header ); + this.active.next().addClass( "ui-accordion-content-active" ); + var toHide = this.active.next(), + data = { + options: options, + newHeader: $( [] ), + oldHeader: options.active, + newContent: $( [] ), + oldContent: toHide + }, + toShow = ( this.active = $( [] ) ); + this._toggle( toShow, toHide, data ); + return; + } + + // get the click target + var clicked = $( event.currentTarget || target ), + clickedIsActive = clicked[0] === this.active[0]; + + // TODO the option is changed, is that correct? + // TODO if it is correct, shouldn't that happen after determining that the click is valid? + options.active = options.collapsible && clickedIsActive ? + false : + this.headers.index( clicked ); + + // if animations are still active, or the active header is the target, ignore click + if ( this.running || ( !options.collapsible && clickedIsActive ) ) { + return; + } + + // find elements to show and hide + var active = this.active, + toShow = clicked.next(), + toHide = this.active.next(), + data = { + options: options, + newHeader: clickedIsActive && options.collapsible ? $([]) : clicked, + oldHeader: this.active, + newContent: clickedIsActive && options.collapsible ? $([]) : toShow, + oldContent: toHide + }, + down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] ); + + // when the call to ._toggle() comes after the class changes + // it causes a very odd bug in IE 8 (see #6720) + this.active = clickedIsActive ? $([]) : clicked; + this._toggle( toShow, toHide, data, clickedIsActive, down ); + + // switch classes + active + .removeClass( "ui-state-active ui-corner-top" ) + .addClass( "ui-state-default ui-corner-all" ) + .children( ".ui-icon" ) + .removeClass( options.icons.headerSelected ) + .addClass( options.icons.header ); + if ( !clickedIsActive ) { + clicked + .removeClass( "ui-state-default ui-corner-all" ) + .addClass( "ui-state-active ui-corner-top" ) + .children( ".ui-icon" ) + .removeClass( options.icons.header ) + .addClass( options.icons.headerSelected ); + clicked + .next() + .addClass( "ui-accordion-content-active" ); + } + + return; + }, + + _toggle: function( toShow, toHide, data, clickedIsActive, down ) { + var self = this, + options = self.options; + + self.toShow = toShow; + self.toHide = toHide; + self.data = data; + + var complete = function() { + if ( !self ) { + return; + } + return self._completed.apply( self, arguments ); + }; + + // trigger changestart event + self._trigger( "changestart", null, self.data ); + + // count elements to animate + self.running = toHide.size() === 0 ? toShow.size() : toHide.size(); + + if ( options.animated ) { + var animOptions = {}; + + if ( options.collapsible && clickedIsActive ) { + animOptions = { + toShow: $( [] ), + toHide: toHide, + complete: complete, + down: down, + autoHeight: options.autoHeight || options.fillSpace + }; + } else { + animOptions = { + toShow: toShow, + toHide: toHide, + complete: complete, + down: down, + autoHeight: options.autoHeight || options.fillSpace + }; + } + + if ( !options.proxied ) { + options.proxied = options.animated; + } + + if ( !options.proxiedDuration ) { + options.proxiedDuration = options.duration; + } + + options.animated = $.isFunction( options.proxied ) ? + options.proxied( animOptions ) : + options.proxied; + + options.duration = $.isFunction( options.proxiedDuration ) ? + options.proxiedDuration( animOptions ) : + options.proxiedDuration; + + var animations = $.ui.accordion.animations, + duration = options.duration, + easing = options.animated; + + if ( easing && !animations[ easing ] && !$.easing[ easing ] ) { + easing = "slide"; + } + if ( !animations[ easing ] ) { + animations[ easing ] = function( options ) { + this.slide( options, { + easing: easing, + duration: duration || 700 + }); + }; + } + + animations[ easing ]( animOptions ); + } else { + if ( options.collapsible && clickedIsActive ) { + toShow.toggle(); + } else { + toHide.hide(); + toShow.show(); + } + + complete( true ); + } + + // TODO assert that the blur and focus triggers are really necessary, remove otherwise + toHide.prev() + .attr({ + "aria-expanded": "false", + "aria-selected": "false", + tabIndex: -1 + }) + .blur(); + toShow.prev() + .attr({ + "aria-expanded": "true", + "aria-selected": "true", + tabIndex: 0 + }) + .focus(); + }, + + _completed: function( cancel ) { + this.running = cancel ? 0 : --this.running; + if ( this.running ) { + return; + } + + if ( this.options.clearStyle ) { + this.toShow.add( this.toHide ).css({ + height: "", + overflow: "" + }); + } + + // other classes are removed before the animation; this one needs to stay until completed + this.toHide.removeClass( "ui-accordion-content-active" ); + // Work around for rendering bug in IE (#5421) + if ( this.toHide.length ) { + this.toHide.parent()[0].className = this.toHide.parent()[0].className; + } + + this._trigger( "change", null, this.data ); + } +}); + +$.extend( $.ui.accordion, { + version: "1.8.22", + animations: { + slide: function( options, additions ) { + options = $.extend({ + easing: "swing", + duration: 300 + }, options, additions ); + if ( !options.toHide.size() ) { + options.toShow.animate({ + height: "show", + paddingTop: "show", + paddingBottom: "show" + }, options ); + return; + } + if ( !options.toShow.size() ) { + options.toHide.animate({ + height: "hide", + paddingTop: "hide", + paddingBottom: "hide" + }, options ); + return; + } + var overflow = options.toShow.css( "overflow" ), + percentDone = 0, + showProps = {}, + hideProps = {}, + fxAttrs = [ "height", "paddingTop", "paddingBottom" ], + originalWidth; + // fix width before calculating height of hidden element + var s = options.toShow; + originalWidth = s[0].style.width; + s.width( s.parent().width() + - parseFloat( s.css( "paddingLeft" ) ) + - parseFloat( s.css( "paddingRight" ) ) + - ( parseFloat( s.css( "borderLeftWidth" ) ) || 0 ) + - ( parseFloat( s.css( "borderRightWidth" ) ) || 0 ) ); + + $.each( fxAttrs, function( i, prop ) { + hideProps[ prop ] = "hide"; + + var parts = ( "" + $.css( options.toShow[0], prop ) ).match( /^([\d+-.]+)(.*)$/ ); + showProps[ prop ] = { + value: parts[ 1 ], + unit: parts[ 2 ] || "px" + }; + }); + options.toShow.css({ height: 0, overflow: "hidden" }).show(); + options.toHide + .filter( ":hidden" ) + .each( options.complete ) + .end() + .filter( ":visible" ) + .animate( hideProps, { + step: function( now, settings ) { + // only calculate the percent when animating height + // IE gets very inconsistent results when animating elements + // with small values, which is common for padding + if ( settings.prop == "height" ) { + percentDone = ( settings.end - settings.start === 0 ) ? 0 : + ( settings.now - settings.start ) / ( settings.end - settings.start ); + } + + options.toShow[ 0 ].style[ settings.prop ] = + ( percentDone * showProps[ settings.prop ].value ) + + showProps[ settings.prop ].unit; + }, + duration: options.duration, + easing: options.easing, + complete: function() { + if ( !options.autoHeight ) { + options.toShow.css( "height", "" ); + } + options.toShow.css({ + width: originalWidth, + overflow: overflow + }); + options.complete(); + } + }); + }, + bounceslide: function( options ) { + this.slide( options, { + easing: options.down ? "easeOutBounce" : "swing", + duration: options.down ? 1000 : 200 + }); + } + } +}); + +})( jQuery ); diff --git a/public/assets/js/ui/jquery.ui.core.js b/public/assets/js/ui/jquery.ui.core.js new file mode 100644 index 0000000..40211cc --- /dev/null +++ b/public/assets/js/ui/jquery.ui.core.js @@ -0,0 +1,334 @@ +/*! + * jQuery UI 1.8.22 + * + * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI + */ +(function( $, undefined ) { + +// prevent duplicate loading +// this is only a problem because we proxy existing functions +// and we don't want to double proxy them +$.ui = $.ui || {}; +if ( $.ui.version ) { + return; +} + +$.extend( $.ui, { + version: "1.8.22", + + keyCode: { + ALT: 18, + BACKSPACE: 8, + CAPS_LOCK: 20, + COMMA: 188, + COMMAND: 91, + COMMAND_LEFT: 91, // COMMAND + COMMAND_RIGHT: 93, + CONTROL: 17, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + INSERT: 45, + LEFT: 37, + MENU: 93, // COMMAND_RIGHT + NUMPAD_ADD: 107, + NUMPAD_DECIMAL: 110, + NUMPAD_DIVIDE: 111, + NUMPAD_ENTER: 108, + NUMPAD_MULTIPLY: 106, + NUMPAD_SUBTRACT: 109, + PAGE_DOWN: 34, + PAGE_UP: 33, + PERIOD: 190, + RIGHT: 39, + SHIFT: 16, + SPACE: 32, + TAB: 9, + UP: 38, + WINDOWS: 91 // COMMAND + } +}); + +// plugins +$.fn.extend({ + propAttr: $.fn.prop || $.fn.attr, + + _focus: $.fn.focus, + focus: function( delay, fn ) { + return typeof delay === "number" ? + this.each(function() { + var elem = this; + setTimeout(function() { + $( elem ).focus(); + if ( fn ) { + fn.call( elem ); + } + }, delay ); + }) : + this._focus.apply( this, arguments ); + }, + + scrollParent: function() { + var scrollParent; + if (($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { + scrollParent = this.parents().filter(function() { + return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } else { + scrollParent = this.parents().filter(function() { + return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } + + return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; + }, + + zIndex: function( zIndex ) { + if ( zIndex !== undefined ) { + return this.css( "zIndex", zIndex ); + } + + if ( this.length ) { + var elem = $( this[ 0 ] ), position, value; + while ( elem.length && elem[ 0 ] !== document ) { + // Ignore z-index if position is set to a value where z-index is ignored by the browser + // This makes behavior of this function consistent across browsers + // WebKit always returns auto if the element is positioned + position = elem.css( "position" ); + if ( position === "absolute" || position === "relative" || position === "fixed" ) { + // IE returns 0 when zIndex is not specified + // other browsers return a string + // we ignore the case of nested elements with an explicit value of 0 + //
+ value = parseInt( elem.css( "zIndex" ), 10 ); + if ( !isNaN( value ) && value !== 0 ) { + return value; + } + } + elem = elem.parent(); + } + } + + return 0; + }, + + disableSelection: function() { + return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) + + ".ui-disableSelection", function( event ) { + event.preventDefault(); + }); + }, + + enableSelection: function() { + return this.unbind( ".ui-disableSelection" ); + } +}); + +// support: jQuery <1.8 +if ( !$( "
" ).outerWidth( 1 ).jquery ) { + $.each( [ "Width", "Height" ], function( i, name ) { + var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], + type = name.toLowerCase(), + orig = { + innerWidth: $.fn.innerWidth, + innerHeight: $.fn.innerHeight, + outerWidth: $.fn.outerWidth, + outerHeight: $.fn.outerHeight + }; + + function reduce( elem, size, border, margin ) { + $.each( side, function() { + size -= parseFloat( $.curCSS( elem, "padding" + this, true) ) || 0; + if ( border ) { + size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0; + } + if ( margin ) { + size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0; + } + }); + return size; + } + + $.fn[ "inner" + name ] = function( size ) { + if ( size === undefined ) { + return orig[ "inner" + name ].call( this ); + } + + return this.each(function() { + $( this ).css( type, reduce( this, size ) + "px" ); + }); + }; + + $.fn[ "outer" + name] = function( size, margin ) { + if ( typeof size !== "number" ) { + return orig[ "outer" + name ].call( this, size ); + } + + return this.each(function() { + $( this).css( type, reduce( this, size, true, margin ) + "px" ); + }); + }; + }); +} + +// selectors +function focusable( element, isTabIndexNotNaN ) { + var nodeName = element.nodeName.toLowerCase(); + if ( "area" === nodeName ) { + var map = element.parentNode, + mapName = map.name, + img; + if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) { + return false; + } + img = $( "img[usemap=#" + mapName + "]" )[0]; + return !!img && visible( img ); + } + return ( /input|select|textarea|button|object/.test( nodeName ) + ? !element.disabled + : "a" == nodeName + ? element.href || isTabIndexNotNaN + : isTabIndexNotNaN) + // the element and all of its ancestors must be visible + && visible( element ); +} + +function visible( element ) { + return !$( element ).parents().andSelf().filter(function() { + return $.curCSS( this, "visibility" ) === "hidden" || + $.expr.filters.hidden( this ); + }).length; +} + +$.extend( $.expr[ ":" ], { + data: $.expr.createPseudo ? + $.expr.createPseudo(function( dataName ) { + return function( elem ) { + return !!$.data( elem, dataName ); + }; + }) : + // support: jQuery <1.8 + function( elem, i, match ) { + return !!$.data( elem, match[ 3 ] ); + }, + + focusable: function( element ) { + return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) ); + }, + + tabbable: function( element ) { + var tabIndex = $.attr( element, "tabindex" ), + isTabIndexNaN = isNaN( tabIndex ); + return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN ); + } +}); + +// support +$(function() { + var body = document.body, + div = body.appendChild( div = document.createElement( "div" ) ); + + // access offsetHeight before setting the style to prevent a layout bug + // in IE 9 which causes the elemnt to continue to take up space even + // after it is removed from the DOM (#8026) + div.offsetHeight; + + $.extend( div.style, { + minHeight: "100px", + height: "auto", + padding: 0, + borderWidth: 0 + }); + + $.support.minHeight = div.offsetHeight === 100; + $.support.selectstart = "onselectstart" in div; + + // set display to none to avoid a layout bug in IE + // http://dev.jquery.com/ticket/4014 + body.removeChild( div ).style.display = "none"; +}); + +// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css +if ( !$.curCSS ) { + $.curCSS = $.css; +} + + + + + +// deprecated +$.extend( $.ui, { + // $.ui.plugin is deprecated. Use the proxy pattern instead. + plugin: { + add: function( module, option, set ) { + var proto = $.ui[ module ].prototype; + for ( var i in set ) { + proto.plugins[ i ] = proto.plugins[ i ] || []; + proto.plugins[ i ].push( [ option, set[ i ] ] ); + } + }, + call: function( instance, name, args ) { + var set = instance.plugins[ name ]; + if ( !set || !instance.element[ 0 ].parentNode ) { + return; + } + + for ( var i = 0; i < set.length; i++ ) { + if ( instance.options[ set[ i ][ 0 ] ] ) { + set[ i ][ 1 ].apply( instance.element, args ); + } + } + } + }, + + // will be deprecated when we switch to jQuery 1.4 - use jQuery.contains() + contains: function( a, b ) { + return document.compareDocumentPosition ? + a.compareDocumentPosition( b ) & 16 : + a !== b && a.contains( b ); + }, + + // only used by resizable + hasScroll: function( el, a ) { + + //If overflow is hidden, the element might have extra content, but the user wants to hide it + if ( $( el ).css( "overflow" ) === "hidden") { + return false; + } + + var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop", + has = false; + + if ( el[ scroll ] > 0 ) { + return true; + } + + // TODO: determine which cases actually cause this to happen + // if the element doesn't have the scroll set, see if it's possible to + // set the scroll + el[ scroll ] = 1; + has = ( el[ scroll ] > 0 ); + el[ scroll ] = 0; + return has; + }, + + // these are odd functions, fix the API or move into individual plugins + isOverAxis: function( x, reference, size ) { + //Determines when x coordinate is over "b" element axis + return ( x > reference ) && ( x < ( reference + size ) ); + }, + isOver: function( y, x, top, left, height, width ) { + //Determines when x, y coordinates is over "b" element + return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width ); + } +}); + +})( jQuery ); diff --git a/public/assets/js/ui/jquery.ui.tabs.js b/public/assets/js/ui/jquery.ui.tabs.js new file mode 100644 index 0000000..1180b0d --- /dev/null +++ b/public/assets/js/ui/jquery.ui.tabs.js @@ -0,0 +1,757 @@ +/*! + * jQuery UI Tabs 1.8.22 + * + * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function( $, undefined ) { + +var tabId = 0, + listId = 0; + +function getNextTabId() { + return ++tabId; +} + +function getNextListId() { + return ++listId; +} + +$.widget( "ui.tabs", { + options: { + add: null, + ajaxOptions: null, + cache: false, + cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true } + collapsible: false, + disable: null, + disabled: [], + enable: null, + event: "click", + fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 } + idPrefix: "ui-tabs-", + load: null, + panelTemplate: "
", + remove: null, + select: null, + show: null, + spinner: "Loading…", + tabTemplate: "
  • #{label}
  • " + }, + + _create: function() { + this._tabify( true ); + }, + + _setOption: function( key, value ) { + if ( key == "selected" ) { + if (this.options.collapsible && value == this.options.selected ) { + return; + } + this.select( value ); + } else { + this.options[ key ] = value; + this._tabify(); + } + }, + + _tabId: function( a ) { + return a.title && a.title.replace( /\s/g, "_" ).replace( /[^\w\u00c0-\uFFFF-]/g, "" ) || + this.options.idPrefix + getNextTabId(); + }, + + _sanitizeSelector: function( hash ) { + // we need this because an id may contain a ":" + return hash.replace( /:/g, "\\:" ); + }, + + _cookie: function() { + var cookie = this.cookie || + ( this.cookie = this.options.cookie.name || "ui-tabs-" + getNextListId() ); + return $.cookie.apply( null, [ cookie ].concat( $.makeArray( arguments ) ) ); + }, + + _ui: function( tab, panel ) { + return { + tab: tab, + panel: panel, + index: this.anchors.index( tab ) + }; + }, + + _cleanup: function() { + // restore all former loading tabs labels + this.lis.filter( ".ui-state-processing" ) + .removeClass( "ui-state-processing" ) + .find( "span:data(label.tabs)" ) + .each(function() { + var el = $( this ); + el.html( el.data( "label.tabs" ) ).removeData( "label.tabs" ); + }); + }, + + _tabify: function( init ) { + var self = this, + o = this.options, + fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash + + this.list = this.element.find( "ol,ul" ).eq( 0 ); + this.lis = $( " > li:has(a[href])", this.list ); + this.anchors = this.lis.map(function() { + return $( "a", this )[ 0 ]; + }); + this.panels = $( [] ); + + this.anchors.each(function( i, a ) { + var href = $( a ).attr( "href" ); + // For dynamically created HTML that contains a hash as href IE < 8 expands + // such href to the full page url with hash and then misinterprets tab as ajax. + // Same consideration applies for an added tab with a fragment identifier + // since a[href=#fragment-identifier] does unexpectedly not match. + // Thus normalize href attribute... + var hrefBase = href.split( "#" )[ 0 ], + baseEl; + if ( hrefBase && ( hrefBase === location.toString().split( "#" )[ 0 ] || + ( baseEl = $( "base" )[ 0 ]) && hrefBase === baseEl.href ) ) { + href = a.hash; + a.href = href; + } + + // inline tab + if ( fragmentId.test( href ) ) { + self.panels = self.panels.add( self.element.find( self._sanitizeSelector( href ) ) ); + // remote tab + // prevent loading the page itself if href is just "#" + } else if ( href && href !== "#" ) { + // required for restore on destroy + $.data( a, "href.tabs", href ); + + // TODO until #3808 is fixed strip fragment identifier from url + // (IE fails to load from such url) + $.data( a, "load.tabs", href.replace( /#.*$/, "" ) ); + + var id = self._tabId( a ); + a.href = "#" + id; + var $panel = self.element.find( "#" + id ); + if ( !$panel.length ) { + $panel = $( o.panelTemplate ) + .attr( "id", id ) + .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ) + .insertAfter( self.panels[ i - 1 ] || self.list ); + $panel.data( "destroy.tabs", true ); + } + self.panels = self.panels.add( $panel ); + // invalid tab href + } else { + o.disabled.push( i ); + } + }); + + // initialization from scratch + if ( init ) { + // attach necessary classes for styling + this.element.addClass( "ui-tabs ui-widget ui-widget-content ui-corner-all" ); + this.list.addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" ); + this.lis.addClass( "ui-state-default ui-corner-top" ); + this.panels.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ); + + // Selected tab + // use "selected" option or try to retrieve: + // 1. from fragment identifier in url + // 2. from cookie + // 3. from selected class attribute on
  • + if ( o.selected === undefined ) { + if ( location.hash ) { + this.anchors.each(function( i, a ) { + if ( a.hash == location.hash ) { + o.selected = i; + return false; + } + }); + } + if ( typeof o.selected !== "number" && o.cookie ) { + o.selected = parseInt( self._cookie(), 10 ); + } + if ( typeof o.selected !== "number" && this.lis.filter( ".ui-tabs-selected" ).length ) { + o.selected = this.lis.index( this.lis.filter( ".ui-tabs-selected" ) ); + } + o.selected = o.selected || ( this.lis.length ? 0 : -1 ); + } else if ( o.selected === null ) { // usage of null is deprecated, TODO remove in next release + o.selected = -1; + } + + // sanity check - default to first tab... + o.selected = ( ( o.selected >= 0 && this.anchors[ o.selected ] ) || o.selected < 0 ) + ? o.selected + : 0; + + // Take disabling tabs via class attribute from HTML + // into account and update option properly. + // A selected tab cannot become disabled. + o.disabled = $.unique( o.disabled.concat( + $.map( this.lis.filter( ".ui-state-disabled" ), function( n, i ) { + return self.lis.index( n ); + }) + ) ).sort(); + + if ( $.inArray( o.selected, o.disabled ) != -1 ) { + o.disabled.splice( $.inArray( o.selected, o.disabled ), 1 ); + } + + // highlight selected tab + this.panels.addClass( "ui-tabs-hide" ); + this.lis.removeClass( "ui-tabs-selected ui-state-active" ); + // check for length avoids error when initializing empty list + if ( o.selected >= 0 && this.anchors.length ) { + self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ).removeClass( "ui-tabs-hide" ); + this.lis.eq( o.selected ).addClass( "ui-tabs-selected ui-state-active" ); + + // seems to be expected behavior that the show callback is fired + self.element.queue( "tabs", function() { + self._trigger( "show", null, + self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) )[ 0 ] ) ); + }); + + this.load( o.selected ); + } + + // clean up to avoid memory leaks in certain versions of IE 6 + // TODO: namespace this event + $( window ).bind( "unload", function() { + self.lis.add( self.anchors ).unbind( ".tabs" ); + self.lis = self.anchors = self.panels = null; + }); + // update selected after add/remove + } else { + o.selected = this.lis.index( this.lis.filter( ".ui-tabs-selected" ) ); + } + + // update collapsible + // TODO: use .toggleClass() + this.element[ o.collapsible ? "addClass" : "removeClass" ]( "ui-tabs-collapsible" ); + + // set or update cookie after init and add/remove respectively + if ( o.cookie ) { + this._cookie( o.selected, o.cookie ); + } + + // disable tabs + for ( var i = 0, li; ( li = this.lis[ i ] ); i++ ) { + $( li )[ $.inArray( i, o.disabled ) != -1 && + // TODO: use .toggleClass() + !$( li ).hasClass( "ui-tabs-selected" ) ? "addClass" : "removeClass" ]( "ui-state-disabled" ); + } + + // reset cache if switching from cached to not cached + if ( o.cache === false ) { + this.anchors.removeData( "cache.tabs" ); + } + + // remove all handlers before, tabify may run on existing tabs after add or option change + this.lis.add( this.anchors ).unbind( ".tabs" ); + + if ( o.event !== "mouseover" ) { + var addState = function( state, el ) { + if ( el.is( ":not(.ui-state-disabled)" ) ) { + el.addClass( "ui-state-" + state ); + } + }; + var removeState = function( state, el ) { + el.removeClass( "ui-state-" + state ); + }; + this.lis.bind( "mouseover.tabs" , function() { + addState( "hover", $( this ) ); + }); + this.lis.bind( "mouseout.tabs", function() { + removeState( "hover", $( this ) ); + }); + this.anchors.bind( "focus.tabs", function() { + addState( "focus", $( this ).closest( "li" ) ); + }); + this.anchors.bind( "blur.tabs", function() { + removeState( "focus", $( this ).closest( "li" ) ); + }); + } + + // set up animations + var hideFx, showFx; + if ( o.fx ) { + if ( $.isArray( o.fx ) ) { + hideFx = o.fx[ 0 ]; + showFx = o.fx[ 1 ]; + } else { + hideFx = showFx = o.fx; + } + } + + // Reset certain styles left over from animation + // and prevent IE's ClearType bug... + function resetStyle( $el, fx ) { + $el.css( "display", "" ); + if ( !$.support.opacity && fx.opacity ) { + $el[ 0 ].style.removeAttribute( "filter" ); + } + } + + // Show a tab... + var showTab = showFx + ? function( clicked, $show ) { + $( clicked ).closest( "li" ).addClass( "ui-tabs-selected ui-state-active" ); + $show.hide().removeClass( "ui-tabs-hide" ) // avoid flicker that way + .animate( showFx, showFx.duration || "normal", function() { + resetStyle( $show, showFx ); + self._trigger( "show", null, self._ui( clicked, $show[ 0 ] ) ); + }); + } + : function( clicked, $show ) { + $( clicked ).closest( "li" ).addClass( "ui-tabs-selected ui-state-active" ); + $show.removeClass( "ui-tabs-hide" ); + self._trigger( "show", null, self._ui( clicked, $show[ 0 ] ) ); + }; + + // Hide a tab, $show is optional... + var hideTab = hideFx + ? function( clicked, $hide ) { + $hide.animate( hideFx, hideFx.duration || "normal", function() { + self.lis.removeClass( "ui-tabs-selected ui-state-active" ); + $hide.addClass( "ui-tabs-hide" ); + resetStyle( $hide, hideFx ); + self.element.dequeue( "tabs" ); + }); + } + : function( clicked, $hide, $show ) { + self.lis.removeClass( "ui-tabs-selected ui-state-active" ); + $hide.addClass( "ui-tabs-hide" ); + self.element.dequeue( "tabs" ); + }; + + // attach tab event handler, unbind to avoid duplicates from former tabifying... + this.anchors.bind( o.event + ".tabs", function() { + var el = this, + $li = $(el).closest( "li" ), + $hide = self.panels.filter( ":not(.ui-tabs-hide)" ), + $show = self.element.find( self._sanitizeSelector( el.hash ) ); + + // If tab is already selected and not collapsible or tab disabled or + // or is already loading or click callback returns false stop here. + // Check if click handler returns false last so that it is not executed + // for a disabled or loading tab! + if ( ( $li.hasClass( "ui-tabs-selected" ) && !o.collapsible) || + $li.hasClass( "ui-state-disabled" ) || + $li.hasClass( "ui-state-processing" ) || + self.panels.filter( ":animated" ).length || + self._trigger( "select", null, self._ui( this, $show[ 0 ] ) ) === false ) { + this.blur(); + return false; + } + + o.selected = self.anchors.index( this ); + + self.abort(); + + // if tab may be closed + if ( o.collapsible ) { + if ( $li.hasClass( "ui-tabs-selected" ) ) { + o.selected = -1; + + if ( o.cookie ) { + self._cookie( o.selected, o.cookie ); + } + + self.element.queue( "tabs", function() { + hideTab( el, $hide ); + }).dequeue( "tabs" ); + + this.blur(); + return false; + } else if ( !$hide.length ) { + if ( o.cookie ) { + self._cookie( o.selected, o.cookie ); + } + + self.element.queue( "tabs", function() { + showTab( el, $show ); + }); + + // TODO make passing in node possible, see also http://dev.jqueryui.com/ticket/3171 + self.load( self.anchors.index( this ) ); + + this.blur(); + return false; + } + } + + if ( o.cookie ) { + self._cookie( o.selected, o.cookie ); + } + + // show new tab + if ( $show.length ) { + if ( $hide.length ) { + self.element.queue( "tabs", function() { + hideTab( el, $hide ); + }); + } + self.element.queue( "tabs", function() { + showTab( el, $show ); + }); + + self.load( self.anchors.index( this ) ); + } else { + throw "jQuery UI Tabs: Mismatching fragment identifier."; + } + + // Prevent IE from keeping other link focussed when using the back button + // and remove dotted border from clicked link. This is controlled via CSS + // in modern browsers; blur() removes focus from address bar in Firefox + // which can become a usability and annoying problem with tabs('rotate'). + //if ( $.browser.msie ) { + // this.blur(); + //} + }); + + // disable click in any case + this.anchors.bind( "click.tabs", function(){ + return false; + }); + }, + + _getIndex: function( index ) { + // meta-function to give users option to provide a href string instead of a numerical index. + // also sanitizes numerical indexes to valid values. + if ( typeof index == "string" ) { + index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) ); + } + + return index; + }, + + destroy: function() { + var o = this.options; + + this.abort(); + + this.element + .unbind( ".tabs" ) + .removeClass( "ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible" ) + .removeData( "tabs" ); + + this.list.removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" ); + + this.anchors.each(function() { + var href = $.data( this, "href.tabs" ); + if ( href ) { + this.href = href; + } + var $this = $( this ).unbind( ".tabs" ); + $.each( [ "href", "load", "cache" ], function( i, prefix ) { + $this.removeData( prefix + ".tabs" ); + }); + }); + + this.lis.unbind( ".tabs" ).add( this.panels ).each(function() { + if ( $.data( this, "destroy.tabs" ) ) { + $( this ).remove(); + } else { + $( this ).removeClass([ + "ui-state-default", + "ui-corner-top", + "ui-tabs-selected", + "ui-state-active", + "ui-state-hover", + "ui-state-focus", + "ui-state-disabled", + "ui-tabs-panel", + "ui-widget-content", + "ui-corner-bottom", + "ui-tabs-hide" + ].join( " " ) ); + } + }); + + if ( o.cookie ) { + this._cookie( null, o.cookie ); + } + + return this; + }, + + add: function( url, label, index ) { + if ( index === undefined ) { + index = this.anchors.length; + } + + var self = this, + o = this.options, + $li = $( o.tabTemplate.replace( /#\{href\}/g, url ).replace( /#\{label\}/g, label ) ), + id = !url.indexOf( "#" ) ? url.replace( "#", "" ) : this._tabId( $( "a", $li )[ 0 ] ); + + $li.addClass( "ui-state-default ui-corner-top" ).data( "destroy.tabs", true ); + + // try to find an existing element before creating a new one + var $panel = self.element.find( "#" + id ); + if ( !$panel.length ) { + $panel = $( o.panelTemplate ) + .attr( "id", id ) + .data( "destroy.tabs", true ); + } + $panel.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" ); + + if ( index >= this.lis.length ) { + $li.appendTo( this.list ); + $panel.appendTo( this.list[ 0 ].parentNode ); + } else { + $li.insertBefore( this.lis[ index ] ); + $panel.insertBefore( this.panels[ index ] ); + } + + o.disabled = $.map( o.disabled, function( n, i ) { + return n >= index ? ++n : n; + }); + + this._tabify(); + + if ( this.anchors.length == 1 ) { + o.selected = 0; + $li.addClass( "ui-tabs-selected ui-state-active" ); + $panel.removeClass( "ui-tabs-hide" ); + this.element.queue( "tabs", function() { + self._trigger( "show", null, self._ui( self.anchors[ 0 ], self.panels[ 0 ] ) ); + }); + + this.load( 0 ); + } + + this._trigger( "add", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); + return this; + }, + + remove: function( index ) { + index = this._getIndex( index ); + var o = this.options, + $li = this.lis.eq( index ).remove(), + $panel = this.panels.eq( index ).remove(); + + // If selected tab was removed focus tab to the right or + // in case the last tab was removed the tab to the left. + if ( $li.hasClass( "ui-tabs-selected" ) && this.anchors.length > 1) { + this.select( index + ( index + 1 < this.anchors.length ? 1 : -1 ) ); + } + + o.disabled = $.map( + $.grep( o.disabled, function(n, i) { + return n != index; + }), + function( n, i ) { + return n >= index ? --n : n; + }); + + this._tabify(); + + this._trigger( "remove", null, this._ui( $li.find( "a" )[ 0 ], $panel[ 0 ] ) ); + return this; + }, + + enable: function( index ) { + index = this._getIndex( index ); + var o = this.options; + if ( $.inArray( index, o.disabled ) == -1 ) { + return; + } + + this.lis.eq( index ).removeClass( "ui-state-disabled" ); + o.disabled = $.grep( o.disabled, function( n, i ) { + return n != index; + }); + + this._trigger( "enable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); + return this; + }, + + disable: function( index ) { + index = this._getIndex( index ); + var self = this, o = this.options; + // cannot disable already selected tab + if ( index != o.selected ) { + this.lis.eq( index ).addClass( "ui-state-disabled" ); + + o.disabled.push( index ); + o.disabled.sort(); + + this._trigger( "disable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); + } + + return this; + }, + + select: function( index ) { + index = this._getIndex( index ); + if ( index == -1 ) { + if ( this.options.collapsible && this.options.selected != -1 ) { + index = this.options.selected; + } else { + return this; + } + } + this.anchors.eq( index ).trigger( this.options.event + ".tabs" ); + return this; + }, + + load: function( index ) { + index = this._getIndex( index ); + var self = this, + o = this.options, + a = this.anchors.eq( index )[ 0 ], + url = $.data( a, "load.tabs" ); + + this.abort(); + + // not remote or from cache + if ( !url || this.element.queue( "tabs" ).length !== 0 && $.data( a, "cache.tabs" ) ) { + this.element.dequeue( "tabs" ); + return; + } + + // load remote from here on + this.lis.eq( index ).addClass( "ui-state-processing" ); + + if ( o.spinner ) { + var span = $( "span", a ); + span.data( "label.tabs", span.html() ).html( o.spinner ); + } + + this.xhr = $.ajax( $.extend( {}, o.ajaxOptions, { + url: url, + success: function( r, s ) { + self.element.find( self._sanitizeSelector( a.hash ) ).html( r ); + + // take care of tab labels + self._cleanup(); + + if ( o.cache ) { + $.data( a, "cache.tabs", true ); + } + + self._trigger( "load", null, self._ui( self.anchors[ index ], self.panels[ index ] ) ); + try { + o.ajaxOptions.success( r, s ); + } + catch ( e ) {} + }, + error: function( xhr, s, e ) { + // take care of tab labels + self._cleanup(); + + self._trigger( "load", null, self._ui( self.anchors[ index ], self.panels[ index ] ) ); + try { + // Passing index avoid a race condition when this method is + // called after the user has selected another tab. + // Pass the anchor that initiated this request allows + // loadError to manipulate the tab content panel via $(a.hash) + o.ajaxOptions.error( xhr, s, index, a ); + } + catch ( e ) {} + } + } ) ); + + // last, so that load event is fired before show... + self.element.dequeue( "tabs" ); + + return this; + }, + + abort: function() { + // stop possibly running animations + this.element.queue( [] ); + this.panels.stop( false, true ); + + // "tabs" queue must not contain more than two elements, + // which are the callbacks for the latest clicked tab... + this.element.queue( "tabs", this.element.queue( "tabs" ).splice( -2, 2 ) ); + + // terminate pending requests from other tabs + if ( this.xhr ) { + this.xhr.abort(); + delete this.xhr; + } + + // take care of tab labels + this._cleanup(); + return this; + }, + + url: function( index, url ) { + this.anchors.eq( index ).removeData( "cache.tabs" ).data( "load.tabs", url ); + return this; + }, + + length: function() { + return this.anchors.length; + } +}); + +$.extend( $.ui.tabs, { + version: "1.8.22" +}); + +/* + * Tabs Extensions + */ + +/* + * Rotate + */ +$.extend( $.ui.tabs.prototype, { + rotation: null, + rotate: function( ms, continuing ) { + var self = this, + o = this.options; + + var rotate = self._rotate || ( self._rotate = function( e ) { + clearTimeout( self.rotation ); + self.rotation = setTimeout(function() { + var t = o.selected; + self.select( ++t < self.anchors.length ? t : 0 ); + }, ms ); + + if ( e ) { + e.stopPropagation(); + } + }); + + var stop = self._unrotate || ( self._unrotate = !continuing + ? function(e) { + if (e.clientX) { // in case of a true click + self.rotate(null); + } + } + : function( e ) { + rotate(); + }); + + // start rotation + if ( ms ) { + this.element.bind( "tabsshow", rotate ); + this.anchors.bind( o.event + ".tabs", stop ); + rotate(); + // stop rotation + } else { + clearTimeout( self.rotation ); + this.element.unbind( "tabsshow", rotate ); + this.anchors.unbind( o.event + ".tabs", stop ); + delete this._rotate; + delete this._unrotate; + } + + return this; + } +}); + +})( jQuery ); diff --git a/public/assets/js/ui/jquery.ui.widget.js b/public/assets/js/ui/jquery.ui.widget.js new file mode 100644 index 0000000..8a9cc3f --- /dev/null +++ b/public/assets/js/ui/jquery.ui.widget.js @@ -0,0 +1,272 @@ +/*! + * jQuery UI Widget 1.8.22 + * + * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Widget + */ +(function( $, undefined ) { + +// jQuery 1.4+ +if ( $.cleanData ) { + var _cleanData = $.cleanData; + $.cleanData = function( elems ) { + for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { + try { + $( elem ).triggerHandler( "remove" ); + // http://bugs.jquery.com/ticket/8235 + } catch( e ) {} + } + _cleanData( elems ); + }; +} else { + var _remove = $.fn.remove; + $.fn.remove = function( selector, keepData ) { + return this.each(function() { + if ( !keepData ) { + if ( !selector || $.filter( selector, [ this ] ).length ) { + $( "*", this ).add( [ this ] ).each(function() { + try { + $( this ).triggerHandler( "remove" ); + // http://bugs.jquery.com/ticket/8235 + } catch( e ) {} + }); + } + } + return _remove.call( $(this), selector, keepData ); + }); + }; +} + +$.widget = function( name, base, prototype ) { + var namespace = name.split( "." )[ 0 ], + fullName; + name = name.split( "." )[ 1 ]; + fullName = namespace + "-" + name; + + if ( !prototype ) { + prototype = base; + base = $.Widget; + } + + // create selector for plugin + $.expr[ ":" ][ fullName ] = function( elem ) { + return !!$.data( elem, name ); + }; + + $[ namespace ] = $[ namespace ] || {}; + $[ namespace ][ name ] = function( options, element ) { + // allow instantiation without initializing for simple inheritance + if ( arguments.length ) { + this._createWidget( options, element ); + } + }; + + var basePrototype = new base(); + // we need to make the options hash a property directly on the new instance + // otherwise we'll modify the options hash on the prototype that we're + // inheriting from +// $.each( basePrototype, function( key, val ) { +// if ( $.isPlainObject(val) ) { +// basePrototype[ key ] = $.extend( {}, val ); +// } +// }); + basePrototype.options = $.extend( true, {}, basePrototype.options ); + $[ namespace ][ name ].prototype = $.extend( true, basePrototype, { + namespace: namespace, + widgetName: name, + widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name, + widgetBaseClass: fullName + }, prototype ); + + $.widget.bridge( name, $[ namespace ][ name ] ); +}; + +$.widget.bridge = function( name, object ) { + $.fn[ name ] = function( options ) { + var isMethodCall = typeof options === "string", + args = Array.prototype.slice.call( arguments, 1 ), + returnValue = this; + + // allow multiple hashes to be passed on init + options = !isMethodCall && args.length ? + $.extend.apply( null, [ true, options ].concat(args) ) : + options; + + // prevent calls to internal methods + if ( isMethodCall && options.charAt( 0 ) === "_" ) { + return returnValue; + } + + if ( isMethodCall ) { + this.each(function() { + var instance = $.data( this, name ), + methodValue = instance && $.isFunction( instance[options] ) ? + instance[ options ].apply( instance, args ) : + instance; + // TODO: add this back in 1.9 and use $.error() (see #5972) +// if ( !instance ) { +// throw "cannot call methods on " + name + " prior to initialization; " + +// "attempted to call method '" + options + "'"; +// } +// if ( !$.isFunction( instance[options] ) ) { +// throw "no such method '" + options + "' for " + name + " widget instance"; +// } +// var methodValue = instance[ options ].apply( instance, args ); + if ( methodValue !== instance && methodValue !== undefined ) { + returnValue = methodValue; + return false; + } + }); + } else { + this.each(function() { + var instance = $.data( this, name ); + if ( instance ) { + instance.option( options || {} )._init(); + } else { + $.data( this, name, new object( options, this ) ); + } + }); + } + + return returnValue; + }; +}; + +$.Widget = function( options, element ) { + // allow instantiation without initializing for simple inheritance + if ( arguments.length ) { + this._createWidget( options, element ); + } +}; + +$.Widget.prototype = { + widgetName: "widget", + widgetEventPrefix: "", + options: { + disabled: false + }, + _createWidget: function( options, element ) { + // $.widget.bridge stores the plugin instance, but we do it anyway + // so that it's stored even before the _create function runs + $.data( element, this.widgetName, this ); + this.element = $( element ); + this.options = $.extend( true, {}, + this.options, + this._getCreateOptions(), + options ); + + var self = this; + this.element.bind( "remove." + this.widgetName, function() { + self.destroy(); + }); + + this._create(); + this._trigger( "create" ); + this._init(); + }, + _getCreateOptions: function() { + return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ]; + }, + _create: function() {}, + _init: function() {}, + + destroy: function() { + this.element + .unbind( "." + this.widgetName ) + .removeData( this.widgetName ); + this.widget() + .unbind( "." + this.widgetName ) + .removeAttr( "aria-disabled" ) + .removeClass( + this.widgetBaseClass + "-disabled " + + "ui-state-disabled" ); + }, + + widget: function() { + return this.element; + }, + + option: function( key, value ) { + var options = key; + + if ( arguments.length === 0 ) { + // don't return a reference to the internal hash + return $.extend( {}, this.options ); + } + + if (typeof key === "string" ) { + if ( value === undefined ) { + return this.options[ key ]; + } + options = {}; + options[ key ] = value; + } + + this._setOptions( options ); + + return this; + }, + _setOptions: function( options ) { + var self = this; + $.each( options, function( key, value ) { + self._setOption( key, value ); + }); + + return this; + }, + _setOption: function( key, value ) { + this.options[ key ] = value; + + if ( key === "disabled" ) { + this.widget() + [ value ? "addClass" : "removeClass"]( + this.widgetBaseClass + "-disabled" + " " + + "ui-state-disabled" ) + .attr( "aria-disabled", value ); + } + + return this; + }, + + enable: function() { + return this._setOption( "disabled", false ); + }, + disable: function() { + return this._setOption( "disabled", true ); + }, + + _trigger: function( type, event, data ) { + var prop, orig, + callback = this.options[ type ]; + + data = data || {}; + event = $.Event( event ); + event.type = ( type === this.widgetEventPrefix ? + type : + this.widgetEventPrefix + type ).toLowerCase(); + // the original event may come from any element + // so we need to reset the target on the new event + event.target = this.element[ 0 ]; + + // copy original event properties over to the new event + orig = event.originalEvent; + if ( orig ) { + for ( prop in orig ) { + if ( !( prop in event ) ) { + event[ prop ] = orig[ prop ]; + } + } + } + + this.element.trigger( event, data ); + + return !( $.isFunction(callback) && + callback.call( this.element[0], event, data ) === false || + event.isDefaultPrevented() ); + } +}; + +})( jQuery ); diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/coloredbg.png b/public/assets/plugins/rs-plugin-5.3.1/assets/coloredbg.png new file mode 100644 index 0000000..db75b7a Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/coloredbg.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile.png b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile.png new file mode 100644 index 0000000..b07e396 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_3x3.png b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_3x3.png new file mode 100644 index 0000000..6f2c31d Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_3x3.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_3x3_white.png b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_3x3_white.png new file mode 100644 index 0000000..a8830fc Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_3x3_white.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_white.png b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_white.png new file mode 100644 index 0000000..7f2599e Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/gridtile_white.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/loader.gif b/public/assets/plugins/rs-plugin-5.3.1/assets/loader.gif new file mode 100644 index 0000000..53dd589 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/loader.gif differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/fb.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/fb.png new file mode 100644 index 0000000..9eb46b9 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/fb.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/fr.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/fr.png new file mode 100644 index 0000000..827859a Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/fr.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/ig.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/ig.png new file mode 100644 index 0000000..0ddc86e Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/ig.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/post.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/post.png new file mode 100644 index 0000000..45ddcc9 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/post.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/revolution_slide1.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/revolution_slide1.png new file mode 100644 index 0000000..99ead16 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/revolution_slide1.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/revolution_slide2.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/revolution_slide2.png new file mode 100644 index 0000000..4b945ef Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/revolution_slide2.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/tw.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/tw.png new file mode 100644 index 0000000..53b1133 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/tw.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/vm.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/vm.png new file mode 100644 index 0000000..824933b Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/vm.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/wc.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/wc.png new file mode 100644 index 0000000..80233ca Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/wc.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/sources/yt.png b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/yt.png new file mode 100644 index 0000000..84849e8 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/sources/yt.png differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/svg/index.php b/public/assets/plugins/rs-plugin-5.3.1/assets/svg/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/assets/svg/svg.zip b/public/assets/plugins/rs-plugin-5.3.1/assets/svg/svg.zip new file mode 100644 index 0000000..7c95040 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/assets/svg/svg.zip differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/closedhand.cur b/public/assets/plugins/rs-plugin-5.3.1/css/closedhand.cur new file mode 100644 index 0000000..41aaa62 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/css/closedhand.cur differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/index.php b/public/assets/plugins/rs-plugin-5.3.1/css/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/layers.css b/public/assets/plugins/rs-plugin-5.3.1/css/layers.css new file mode 100644 index 0000000..c9263a3 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/layers.css @@ -0,0 +1,5805 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Layer Style Settings - + +Screen Stylesheet + +version: 5.0.0 +date: 18/03/15 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.tp-caption.Twitter-Content a,.tp-caption.Twitter-Content a:visited +{ + color:#0084B4!important; +} + +.tp-caption.Twitter-Content a:hover +{ + color:#0084B4!important; + text-decoration:underline!important; +} + +.tp-caption.medium_grey,.medium_grey +{ + background-color:#888; + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:20px; + font-weight:700; + line-height:20px; + margin:0; + padding:2px 4px; + position:absolute; + text-shadow:0 2px 5px rgba(0,0,0,0.5); + white-space:nowrap; +} + +.tp-caption.small_text,.small_text +{ + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:14px; + font-weight:700; + line-height:20px; + margin:0; + position:absolute; + text-shadow:0 2px 5px rgba(0,0,0,0.5); + white-space:nowrap; +} + +.tp-caption.medium_text,.medium_text +{ + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:20px; + font-weight:700; + line-height:20px; + margin:0; + position:absolute; + text-shadow:0 2px 5px rgba(0,0,0,0.5); + white-space:nowrap; +} + +.tp-caption.large_text,.large_text +{ + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:40px; + font-weight:700; + line-height:40px; + margin:0; + position:absolute; + text-shadow:0 2px 5px rgba(0,0,0,0.5); + white-space:nowrap; +} + +.tp-caption.very_large_text,.very_large_text +{ + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:60px; + font-weight:700; + letter-spacing:-2px; + line-height:60px; + margin:0; + position:absolute; + text-shadow:0 2px 5px rgba(0,0,0,0.5); + white-space:nowrap; +} + +.tp-caption.very_big_white,.very_big_white +{ + background-color:#000; + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:60px; + font-weight:800; + line-height:60px; + margin:0; + padding:1px 4px 0; + position:absolute; + text-shadow:none; + white-space:nowrap; +} + +.tp-caption.very_big_black,.very_big_black +{ + background-color:#fff; + border-style:none; + border-width:0; + color:#000; + font-family:Arial; + font-size:60px; + font-weight:700; + line-height:60px; + margin:0; + padding:1px 4px 0; + position:absolute; + text-shadow:none; + white-space:nowrap; +} + +.tp-caption.modern_medium_fat,.modern_medium_fat +{ + border-style:none; + border-width:0; + color:#000; + font-family:"Open Sans", sans-serif; + font-size:24px; + font-weight:800; + line-height:20px; + margin:0; + position:absolute; + text-shadow:none; + white-space:nowrap; +} + +.tp-caption.modern_medium_fat_white,.modern_medium_fat_white +{ + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans", sans-serif; + font-size:24px; + font-weight:800; + line-height:20px; + margin:0; + position:absolute; + text-shadow:none; + white-space:nowrap; +} + +.tp-caption.modern_medium_light,.modern_medium_light +{ + border-style:none; + border-width:0; + color:#000; + font-family:"Open Sans", sans-serif; + font-size:24px; + font-weight:300; + line-height:20px; + margin:0; + position:absolute; + text-shadow:none; + white-space:nowrap; +} + +.tp-caption.modern_big_bluebg,.modern_big_bluebg +{ + background-color:#4e5b6c; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans", sans-serif; + font-size:30px; + font-weight:800; + letter-spacing:0; + line-height:36px; + margin:0; + padding:3px 10px; + position:absolute; + text-shadow:none; +} + +.tp-caption.modern_big_redbg,.modern_big_redbg +{ + background-color:#de543e; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans", sans-serif; + font-size:30px; + font-weight:300; + letter-spacing:0; + line-height:36px; + margin:0; + padding:1px 10px 3px; + position:absolute; + text-shadow:none; +} + +.tp-caption.modern_small_text_dark,.modern_small_text_dark +{ + border-style:none; + border-width:0; + color:#555; + font-family:Arial; + font-size:14px; + line-height:22px; + margin:0; + position:absolute; + text-shadow:none; + white-space:nowrap; +} + +.tp-caption.boxshadow,.boxshadow +{ + box-shadow:0 0 20px rgba(0,0,0,0.5); +} + +.tp-caption.black,.black +{ + color:#000; + text-shadow:none; +} + +.tp-caption.noshadow,.noshadow +{ + text-shadow:none; +} + +.tp-caption.thinheadline_dark,.thinheadline_dark +{ + background-color:transparent; + color:rgba(0,0,0,0.85); + font-family:"Open Sans"; + font-size:30px; + font-weight:300; + line-height:30px; + position:absolute; + text-shadow:none; +} + +.tp-caption.thintext_dark,.thintext_dark +{ + background-color:transparent; + color:rgba(0,0,0,0.85); + font-family:"Open Sans"; + font-size:16px; + font-weight:300; + line-height:26px; + position:absolute; + text-shadow:none; +} + +.tp-caption.largeblackbg,.largeblackbg +{ + + + background-color:#000; + border-radius:0; + color:#fff; + font-family:"Open Sans"; + font-size:50px; + font-weight:300; + line-height:70px; + padding:0 20px; + position:absolute; + text-shadow:none; +} + +.tp-caption.largepinkbg,.largepinkbg +{ + + + background-color:#db4360; + border-radius:0; + color:#fff; + font-family:"Open Sans"; + font-size:50px; + font-weight:300; + line-height:70px; + padding:0 20px; + position:absolute; + text-shadow:none; +} + +.tp-caption.largewhitebg,.largewhitebg +{ + + + background-color:#fff; + border-radius:0; + color:#000; + font-family:"Open Sans"; + font-size:50px; + font-weight:300; + line-height:70px; + padding:0 20px; + position:absolute; + text-shadow:none; +} + +.tp-caption.largegreenbg,.largegreenbg +{ + + + background-color:#67ae73; + border-radius:0; + color:#fff; + font-family:"Open Sans"; + font-size:50px; + font-weight:300; + line-height:70px; + padding:0 20px; + position:absolute; + text-shadow:none; +} + +.tp-caption.excerpt,.excerpt +{ + background-color:rgba(0,0,0,1); + border-color:#fff; + border-style:none; + border-width:0; + color:#fff; + font-family:Arial; + font-size:36px; + font-weight:700; + height:auto; + letter-spacing:-1.5px; + line-height:36px; + margin:0; + padding:1px 4px 0; + text-decoration:none; + text-shadow:none; + white-space:normal!important; + width:150px; +} + +.tp-caption.large_bold_grey,.large_bold_grey +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#666; + font-family:"Open Sans"; + font-size:60px; + font-weight:800; + line-height:60px; + margin:0; + padding:1px 4px 0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.medium_thin_grey,.medium_thin_grey +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#666; + font-family:"Open Sans"; + font-size:34px; + font-weight:300; + line-height:30px; + margin:0; + padding:1px 4px 0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.small_thin_grey,.small_thin_grey +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#757575; + font-family:"Open Sans"; + font-size:18px; + font-weight:300; + line-height:26px; + margin:0; + padding:1px 4px 0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.lightgrey_divider,.lightgrey_divider +{ + background-color:rgba(235,235,235,1); + background-position:initial; + background-repeat:initial; + border-color:#222; + border-style:none; + border-width:0; + height:3px; + text-decoration:none; + width:370px; +} + +.tp-caption.large_bold_darkblue,.large_bold_darkblue +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#34495e; + font-family:"Open Sans"; + font-size:58px; + font-weight:800; + line-height:60px; + text-decoration:none; +} + +.tp-caption.medium_bg_darkblue,.medium_bg_darkblue +{ + background-color:#34495e; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:20px; + font-weight:800; + line-height:20px; + padding:10px; + text-decoration:none; +} + +.tp-caption.medium_bold_red,.medium_bold_red +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#e33a0c; + font-family:"Open Sans"; + font-size:24px; + font-weight:800; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.medium_light_red,.medium_light_red +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#e33a0c; + font-family:"Open Sans"; + font-size:21px; + font-weight:300; + line-height:26px; + padding:0; + text-decoration:none; +} + +.tp-caption.medium_bg_red,.medium_bg_red +{ + background-color:#e33a0c; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:20px; + font-weight:800; + line-height:20px; + padding:10px; + text-decoration:none; +} + +.tp-caption.medium_bold_orange,.medium_bold_orange +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#f39c12; + font-family:"Open Sans"; + font-size:24px; + font-weight:800; + line-height:30px; + text-decoration:none; +} + +.tp-caption.medium_bg_orange,.medium_bg_orange +{ + background-color:#f39c12; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:20px; + font-weight:800; + line-height:20px; + padding:10px; + text-decoration:none; +} + +.tp-caption.grassfloor,.grassfloor +{ + background-color:rgba(160,179,151,1); + border-color:#222; + border-style:none; + border-width:0; + height:150px; + text-decoration:none; + width:4000px; +} + +.tp-caption.large_bold_white,.large_bold_white +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:58px; + font-weight:800; + line-height:60px; + text-decoration:none; +} + +.tp-caption.medium_light_white,.medium_light_white +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:30px; + font-weight:300; + line-height:36px; + padding:0; + text-decoration:none; +} + +.tp-caption.mediumlarge_light_white,.mediumlarge_light_white +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:34px; + font-weight:300; + line-height:40px; + padding:0; + text-decoration:none; +} + +.tp-caption.mediumlarge_light_white_center,.mediumlarge_light_white_center +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:34px; + font-weight:300; + line-height:40px; + padding:0; + text-align:center; + text-decoration:none; +} + +.tp-caption.medium_bg_asbestos,.medium_bg_asbestos +{ + background-color:#7f8c8d; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:20px; + font-weight:800; + line-height:20px; + padding:10px; + text-decoration:none; +} + +.tp-caption.medium_light_black,.medium_light_black +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#000; + font-family:"Open Sans"; + font-size:30px; + font-weight:300; + line-height:36px; + padding:0; + text-decoration:none; +} + +.tp-caption.large_bold_black,.large_bold_black +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#000; + font-family:"Open Sans"; + font-size:58px; + font-weight:800; + line-height:60px; + text-decoration:none; +} + +.tp-caption.mediumlarge_light_darkblue,.mediumlarge_light_darkblue +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#34495e; + font-family:"Open Sans"; + font-size:34px; + font-weight:300; + line-height:40px; + padding:0; + text-decoration:none; +} + +.tp-caption.small_light_white,.small_light_white +{ + background-color:transparent; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:17px; + font-weight:300; + line-height:28px; + padding:0; + text-decoration:none; +} + +.tp-caption.roundedimage,.roundedimage +{ + border-color:#222; + border-style:none; + border-width:0; +} + +.tp-caption.large_bg_black,.large_bg_black +{ + background-color:#000; + border-color:#ffd658; + border-style:none; + border-width:0; + color:#fff; + font-family:"Open Sans"; + font-size:40px; + font-weight:800; + line-height:40px; + padding:10px 20px 15px; + text-decoration:none; +} + +.tp-caption.mediumwhitebg,.mediumwhitebg +{ + background-color:#fff; + border-color:#000; + border-style:none; + border-width:0; + color:#000; + font-family:"Open Sans"; + font-size:30px; + font-weight:300; + line-height:30px; + padding:5px 15px 10px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.maincaption,.maincaption +{ + background-color:transparent; + border-color:#000; + border-style:none; + border-width:0; + color:#212a40; + font-family:roboto; + font-size:33px; + font-weight:500; + line-height:43px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.miami_title_60px,.miami_title_60px +{ + background-color:transparent; + border-color:#000; + border-style:none; + border-width:0; + color:#fff; + font-family:"Source Sans Pro"; + font-size:60px; + font-weight:700; + letter-spacing:1px; + line-height:60px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.miami_subtitle,.miami_subtitle +{ + background-color:transparent; + border-color:#000; + border-style:none; + border-width:0; + color:rgba(255,255,255,0.65); + font-family:"Source Sans Pro"; + font-size:17px; + font-weight:400; + letter-spacing:2px; + line-height:24px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.divideline30px,.divideline30px +{ + background:#fff; + background-color:#fff; + border-color:#222; + border-style:none; + border-width:0; + height:2px; + min-width:30px; + text-decoration:none; +} + +.tp-caption.Miami_nostyle,.Miami_nostyle +{ + border-color:#222; + border-style:none; + border-width:0; +} + +.tp-caption.miami_content_light,.miami_content_light +{ + background-color:transparent; + border-color:#000; + border-style:none; + border-width:0; + color:#fff; + font-family:"Source Sans Pro"; + font-size:22px; + font-weight:400; + letter-spacing:0; + line-height:28px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.miami_title_60px_dark,.miami_title_60px_dark +{ + background-color:transparent; + border-color:#000; + border-style:none; + border-width:0; + color:#333; + font-family:"Source Sans Pro"; + font-size:60px; + font-weight:700; + letter-spacing:1px; + line-height:60px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.miami_content_dark,.miami_content_dark +{ + background-color:transparent; + border-color:#000; + border-style:none; + border-width:0; + color:#666; + font-family:"Source Sans Pro"; + font-size:22px; + font-weight:400; + letter-spacing:0; + line-height:28px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.divideline30px_dark,.divideline30px_dark +{ + background-color:#333; + border-color:#222; + border-style:none; + border-width:0; + height:2px; + min-width:30px; + text-decoration:none; +} + +.tp-caption.ellipse70px,.ellipse70px +{ + background-color:rgba(0,0,0,0.14902); + border-color:#222; + border-radius:50px 50px 50px 50px; + border-style:none; + border-width:0; + cursor:pointer; + line-height:1px; + min-height:70px; + min-width:70px; + text-decoration:none; +} + +.tp-caption.arrowicon,.arrowicon +{ + border-color:#222; + border-style:none; + border-width:0; + line-height:1px; +} + +.tp-caption.MarkerDisplay,.MarkerDisplay +{ + background-color:transparent; + border-color:#000; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + font-family:"Permanent Marker"; + font-style:normal; + padding:0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Restaurant-Display,.Restaurant-Display +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:#fff; + font-family:Roboto; + font-size:120px; + font-style:normal; + font-weight:700; + line-height:120px; + padding:0; + text-decoration:none; +} + +.tp-caption.Restaurant-Cursive,.Restaurant-Cursive +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:#fff; + font-family:"Nothing you could do"; + font-size:30px; + font-style:normal; + font-weight:400; + letter-spacing:2px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Restaurant-ScrollDownText,.Restaurant-ScrollDownText +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:#fff; + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:400; + letter-spacing:2px; + line-height:17px; + padding:0; + text-decoration:none; +} + +.tp-caption.Restaurant-Description,.Restaurant-Description +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:#fff; + font-family:Roboto; + font-size:20px; + font-style:normal; + font-weight:300; + letter-spacing:3px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Restaurant-Price,.Restaurant-Price +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:#fff; + font-family:Roboto; + font-size:30px; + font-style:normal; + font-weight:300; + letter-spacing:3px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Restaurant-Menuitem,.Restaurant-Menuitem +{ + background-color:rgba(0,0,0,1.00); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:400; + letter-spacing:2px; + line-height:17px; + padding:10px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Furniture-LogoText,.Furniture-LogoText +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(230,207,163,1.00); + font-family:Raleway; + font-size:160px; + font-style:normal; + font-weight:300; + line-height:150px; + padding:0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Furniture-Plus,.Furniture-Plus +{ + background-color:rgba(255,255,255,1.00); + border-color:transparent; + border-radius:30px 30px 30px 30px; + border-style:none; + border-width:0; + box-shadow:rgba(0,0,0,0.1) 0 1px 3px; + color:rgba(230,207,163,1.00); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:400; + line-height:20px; + padding:6px 7px 4px; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Furniture-Title,.Furniture-Title +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(0,0,0,1.00); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:700; + letter-spacing:3px; + line-height:20px; + padding:0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Furniture-Subtitle,.Furniture-Subtitle +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(0,0,0,1.00); + font-family:Raleway; + font-size:17px; + font-style:normal; + font-weight:300; + line-height:20px; + padding:0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Gym-Display,.Gym-Display +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:80px; + font-style:normal; + font-weight:900; + line-height:70px; + padding:0; + text-decoration:none; +} + +.tp-caption.Gym-Subline,.Gym-Subline +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:30px; + font-style:normal; + font-weight:100; + letter-spacing:5px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Gym-SmallText,.Gym-SmallText +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:17px; + font-style:normal; + font-weight:300; + line-height:22; + padding:0; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Fashion-SmallText,.Fashion-SmallText +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:12px; + font-style:normal; + font-weight:600; + letter-spacing:2px; + line-height:20px; + padding:0; + text-decoration:none; +} + +.tp-caption.Fashion-BigDisplay,.Fashion-BigDisplay +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(0,0,0,1.00); + font-family:Raleway; + font-size:60px; + font-style:normal; + font-weight:900; + letter-spacing:2px; + line-height:60px; + padding:0; + text-decoration:none; +} + +.tp-caption.Fashion-TextBlock,.Fashion-TextBlock +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(0,0,0,1.00); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:400; + letter-spacing:2px; + line-height:40px; + padding:0; + text-decoration:none; +} + +.tp-caption.Sports-Display,.Sports-Display +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:130px; + font-style:normal; + font-weight:100; + letter-spacing:13px; + line-height:130px; + padding:0; + text-decoration:none; +} + +.tp-caption.Sports-DisplayFat,.Sports-DisplayFat +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:130px; + font-style:normal; + font-weight:900; + line-height:130px; + padding:0; + text-decoration:none; +} + +.tp-caption.Sports-Subline,.Sports-Subline +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(0,0,0,1.00); + font-family:Raleway; + font-size:32px; + font-style:normal; + font-weight:400; + letter-spacing:4px; + line-height:32px; + padding:0; + text-decoration:none; +} + +.tp-caption.Instagram-Caption,.Instagram-Caption +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:20px; + font-style:normal; + font-weight:900; + line-height:20px; + padding:0; + text-decoration:none; +} + +.tp-caption.News-Title,.News-Title +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:"Roboto Slab"; + font-size:70px; + font-style:normal; + font-weight:400; + line-height:60px; + padding:0; + text-decoration:none; +} + +.tp-caption.News-Subtitle,.News-Subtitle +{ + background-color:rgba(255,255,255,0); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:"Roboto Slab"; + font-size:15px; + font-style:normal; + font-weight:300; + line-height:24px; + padding:0; + text-decoration:none; +} + +.tp-caption.News-Subtitle:hover,.News-Subtitle:hover +{ + background-color:rgba(255,255,255,0); + border-color:transparent; + border-radius:0 0 0 0; + border-style:solid; + border-width:0; + color:rgba(255,255,255,0.65); + text-decoration:none; +} + +.tp-caption.Photography-Display,.Photography-Display +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:80px; + font-style:normal; + font-weight:100; + letter-spacing:5px; + line-height:70px; + padding:0; + text-decoration:none; +} + +.tp-caption.Photography-Subline,.Photography-Subline +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(119,119,119,1.00); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:300; + letter-spacing:3px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Photography-ImageHover,.Photography-ImageHover +{ + background-color:transparent; + border-color:rgba(255,255,255,0); + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-size:20px; + font-style:normal; + font-weight:400; + line-height:22; + padding:0; + text-decoration:none; +} + +.tp-caption.Photography-ImageHover:hover,.Photography-ImageHover:hover +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Photography-Menuitem,.Photography-Menuitem +{ + background-color:rgba(0,0,0,0.65); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:300; + letter-spacing:2px; + line-height:20px; + padding:3px 5px 3px 8px; + text-decoration:none; +} + +.tp-caption.Photography-Menuitem:hover,.Photography-Menuitem:hover +{ + background-color:rgba(0,255,222,0.65); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Photography-Textblock,.Photography-Textblock +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:17px; + font-style:normal; + font-weight:300; + letter-spacing:2px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Photography-Subline-2,.Photography-Subline-2 +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,0.35); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:300; + letter-spacing:3px; + line-height:30px; + padding:0; + text-decoration:none; +} + +.tp-caption.Photography-ImageHover2,.Photography-ImageHover2 +{ + background-color:transparent; + border-color:rgba(255,255,255,0); + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Arial; + font-size:20px; + font-style:normal; + font-weight:400; + line-height:22; + padding:0; + text-decoration:none; +} + +.tp-caption.Photography-ImageHover2:hover,.Photography-ImageHover2:hover +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.WebProduct-Title,.WebProduct-Title +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(51,51,51,1.00); + font-family:Raleway; + font-size:90px; + font-style:normal; + font-weight:100; + line-height:90px; + padding:0; + text-decoration:none; +} + +.tp-caption.WebProduct-SubTitle,.WebProduct-SubTitle +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(153,153,153,1.00); + font-family:Raleway; + font-size:15px; + font-style:normal; + font-weight:400; + line-height:20px; + padding:0; + text-decoration:none; +} + +.tp-caption.WebProduct-Content,.WebProduct-Content +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(153,153,153,1.00); + font-family:Raleway; + font-size:16px; + font-style:normal; + font-weight:600; + line-height:24px; + padding:0; + text-decoration:none; +} + +.tp-caption.WebProduct-Menuitem,.WebProduct-Menuitem +{ + background-color:rgba(51,51,51,1.00); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:15px; + font-style:normal; + font-weight:500; + letter-spacing:2px; + line-height:20px; + padding:3px 5px 3px 8px; + text-align:left; + text-decoration:none; +} + +.tp-caption.WebProduct-Menuitem:hover,.WebProduct-Menuitem:hover +{ + background-color:rgba(255,255,255,1.00); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(153,153,153,1.00); + text-decoration:none; +} + +.tp-caption.WebProduct-Title-Light,.WebProduct-Title-Light +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:90px; + font-style:normal; + font-weight:100; + line-height:90px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.WebProduct-SubTitle-Light,.WebProduct-SubTitle-Light +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,0.35); + font-family:Raleway; + font-size:15px; + font-style:normal; + font-weight:400; + line-height:20px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.WebProduct-Content-Light,.WebProduct-Content-Light +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,0.65); + font-family:Raleway; + font-size:16px; + font-style:normal; + font-weight:600; + line-height:24px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.FatRounded,.FatRounded +{ + background-color:rgba(0,0,0,0.50); + border-color:rgba(211,211,211,1.00); + border-radius:50px 50px 50px 50px; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:30px; + font-style:normal; + font-weight:900; + line-height:30px; + padding:20px 22px 20px 25px; + text-align:left; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.FatRounded:hover,.FatRounded:hover +{ + background-color:rgba(0,0,0,1.00); + border-color:rgba(211,211,211,1.00); + border-radius:50px 50px 50px 50px; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.NotGeneric-Title,.NotGeneric-Title +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:70px; + font-style:normal; + font-weight:800; + line-height:70px; + padding:10px 0; + text-decoration:none; +} + +.tp-caption.NotGeneric-SubTitle,.NotGeneric-SubTitle +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:13px; + font-style:normal; + font-weight:500; + letter-spacing:4px; + line-height:20px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-CallToAction,.NotGeneric-CallToAction +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.50); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:14px; + font-style:normal; + font-weight:500; + letter-spacing:3px; + line-height:14px; + padding:10px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-CallToAction:hover,.NotGeneric-CallToAction:hover +{ + background-color:transparent; + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.NotGeneric-Icon,.NotGeneric-Icon +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0); + border-radius:0 0 0 0; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:30px; + font-style:normal; + font-weight:400; + letter-spacing:3px; + line-height:30px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-Menuitem,.NotGeneric-Menuitem +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.15); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:14px; + font-style:normal; + font-weight:500; + letter-spacing:3px; + line-height:14px; + padding:27px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-Menuitem:hover,.NotGeneric-Menuitem:hover +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.MarkerStyle,.MarkerStyle +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:"Permanent Marker"; + font-size:17px; + font-style:normal; + font-weight:100; + line-height:30px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.Gym-Menuitem,.Gym-Menuitem +{ + background-color:rgba(0,0,0,1.00); + border-color:rgba(255,255,255,0); + border-radius:3px 3px 3px 3px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:20px; + font-style:normal; + font-weight:300; + letter-spacing:2px; + line-height:20px; + padding:3px 5px 3px 8px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Gym-Menuitem:hover,.Gym-Menuitem:hover +{ + background-color:rgba(0,0,0,1.00); + border-color:rgba(255,255,255,0.25); + border-radius:3px 3px 3px 3px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Newspaper-Button,.Newspaper-Button +{ + background-color:rgba(255,255,255,0); + border-color:rgba(255,255,255,0.25); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:13px; + font-style:normal; + font-weight:700; + letter-spacing:2px; + line-height:17px; + padding:12px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Newspaper-Button:hover,.Newspaper-Button:hover +{ + background-color:rgba(255,255,255,1.00); + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(0,0,0,1.00); + text-decoration:none; +} + +.tp-caption.Newspaper-Subtitle,.Newspaper-Subtitle +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(168,216,238,1.00); + font-family:Roboto; + font-size:15px; + font-style:normal; + font-weight:900; + line-height:20px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.Newspaper-Title,.Newspaper-Title +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:"Roboto Slab"; + font-size:50px; + font-style:normal; + font-weight:400; + line-height:55px; + padding:0 0 10px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Newspaper-Title-Centered,.Newspaper-Title-Centered +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:"Roboto Slab"; + font-size:50px; + font-style:normal; + font-weight:400; + line-height:55px; + padding:0 0 10px; + text-align:center; + text-decoration:none; +} + +.tp-caption.Hero-Button,.Hero-Button +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.50); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:14px; + font-style:normal; + font-weight:500; + letter-spacing:3px; + line-height:14px; + padding:10px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Hero-Button:hover,.Hero-Button:hover +{ + background-color:rgba(255,255,255,1.00); + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(0,0,0,1.00); + text-decoration:none; +} + +.tp-caption.Video-Title,.Video-Title +{ + background-color:rgba(0,0,0,1.00); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:30px; + font-style:normal; + font-weight:900; + line-height:30px; + padding:5px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Video-SubTitle,.Video-SubTitle +{ + background-color:rgba(0,0,0,0.35); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:12px; + font-style:normal; + font-weight:600; + letter-spacing:2px; + line-height:12px; + padding:5px; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-Button,.NotGeneric-Button +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.50); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:14px; + font-style:normal; + font-weight:500; + letter-spacing:3px; + line-height:14px; + padding:10px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-Button:hover,.NotGeneric-Button:hover +{ + background-color:transparent; + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.NotGeneric-BigButton,.NotGeneric-BigButton +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.15); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:14px; + font-style:normal; + font-weight:500; + letter-spacing:3px; + line-height:14px; + padding:27px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.NotGeneric-BigButton:hover,.NotGeneric-BigButton:hover +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.WebProduct-Button,.WebProduct-Button +{ + background-color:rgba(51,51,51,1.00); + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:none; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:16px; + font-style:normal; + font-weight:600; + letter-spacing:1px; + line-height:48px; + padding:0 40px; + text-align:left; + text-decoration:none; +} + +.tp-caption.WebProduct-Button:hover,.WebProduct-Button:hover +{ + background-color:rgba(255,255,255,1.00); + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:none; + border-width:2px; + color:rgba(51,51,51,1.00); + text-decoration:none; +} + +.tp-caption.Restaurant-Button,.Restaurant-Button +{ + background-color:rgba(10,10,10,0); + border-color:rgba(255,255,255,0.50); + border-radius:0 0 0 0; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:500; + letter-spacing:3px; + line-height:17px; + padding:12px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Restaurant-Button:hover,.Restaurant-Button:hover +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,224,129,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Gym-Button,.Gym-Button +{ + background-color:rgba(139,192,39,1.00); + border-color:rgba(0,0,0,0); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:15px; + font-style:normal; + font-weight:600; + letter-spacing:1px; + line-height:15px; + padding:13px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Gym-Button:hover,.Gym-Button:hover +{ + background-color:rgba(114,168,0,1.00); + border-color:rgba(0,0,0,0); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Gym-Button-Light,.Gym-Button-Light +{ + background-color:transparent; + border-color:rgba(255,255,255,0.25); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:15px; + font-style:normal; + font-weight:600; + line-height:15px; + padding:12px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Gym-Button-Light:hover,.Gym-Button-Light:hover +{ + background-color:rgba(114,168,0,0); + border-color:rgba(139,192,39,1.00); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Sports-Button-Light,.Sports-Button-Light +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.50); + border-radius:0 0 0 0; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:17px; + font-style:normal; + font-weight:600; + letter-spacing:2px; + line-height:17px; + padding:12px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Sports-Button-Light:hover,.Sports-Button-Light:hover +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Sports-Button-Red,.Sports-Button-Red +{ + background-color:rgba(219,28,34,1.00); + border-color:rgba(219,28,34,0); + border-radius:0 0 0 0; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:17px; + font-style:normal; + font-weight:600; + letter-spacing:2px; + line-height:17px; + padding:12px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Sports-Button-Red:hover,.Sports-Button-Red:hover +{ + background-color:rgba(0,0,0,1.00); + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Photography-Button,.Photography-Button +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.25); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + font-family:Raleway; + font-size:15px; + font-style:normal; + font-weight:600; + letter-spacing:1px; + line-height:15px; + padding:13px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Photography-Button:hover,.Photography-Button:hover +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,1.00); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:1px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Newspaper-Button-2,.Newspaper-Button-2 +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,0.50); + border-radius:3px 3px 3px 3px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:15px; + font-style:normal; + font-weight:900; + line-height:15px; + padding:10px 30px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Newspaper-Button-2:hover,.Newspaper-Button-2:hover +{ + background-color:rgba(0,0,0,0); + border-color:rgba(255,255,255,1.00); + border-radius:3px 3px 3px 3px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Feature-Tour,.Feature-Tour +{ + background-color:rgba(139,192,39,1.00); + border-color:rgba(0,0,0,0); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:700; + line-height:17px; + padding:17px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Feature-Tour:hover,.Feature-Tour:hover +{ + background-color:rgba(114,168,0,1.00); + border-color:rgba(0,0,0,0); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Feature-Examples,.Feature-Examples +{ + background-color:transparent; + border-color:rgba(33,42,64,0.15); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:2px; + color:rgba(33,42,64,0.50); + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:700; + line-height:17px; + padding:15px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Feature-Examples:hover,.Feature-Examples:hover +{ + background-color:transparent; + border-color:rgba(139,192,39,1.00); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:2px; + color:rgba(139,192,39,1.00); + text-decoration:none; +} + +.tp-caption.subcaption,.subcaption +{ + background-color:transparent; + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(111,124,130,1.00); + font-family:roboto; + font-size:19px; + font-style:normal; + font-weight:400; + line-height:24px; + padding:0; + text-align:left; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.menutab,.menutab +{ + background-color:transparent; + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(41,46,49,1.00); + font-family:roboto; + font-size:25px; + font-style:normal; + font-weight:300; + line-height:30px; + padding:0; + text-align:left; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.menutab:hover,.menutab:hover +{ + background-color:transparent; + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(213,0,0,1.00); + text-decoration:none; +} + +.tp-caption.maincontent,.maincontent +{ + background-color:transparent; + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(41,46,49,1.00); + font-family:roboto; + font-size:21px; + font-style:normal; + font-weight:300; + line-height:26px; + padding:0; + text-align:left; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.minitext,.minitext +{ + background-color:transparent; + border-color:rgba(0,0,0,1.00); + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(185,186,187,1.00); + font-family:roboto; + font-size:15px; + font-style:normal; + font-weight:400; + line-height:20px; + padding:0; + text-align:left; + text-decoration:none; + text-shadow:none; +} + +.tp-caption.Feature-Buy,.Feature-Buy +{ + background-color:rgba(0,154,238,1.00); + border-color:rgba(0,0,0,0); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:700; + line-height:17px; + padding:17px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Feature-Buy:hover,.Feature-Buy:hover +{ + background-color:rgba(0,133,214,1.00); + border-color:rgba(0,0,0,0); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Feature-Examples-Light,.Feature-Examples-Light +{ + background-color:transparent; + border-color:rgba(255,255,255,0.15); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:17px; + font-style:normal; + font-weight:700; + line-height:17px; + padding:15px 35px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Feature-Examples-Light:hover,.Feature-Examples-Light:hover +{ + background-color:transparent; + border-color:rgba(255,255,255,1.00); + border-radius:30px 30px 30px 30px; + border-style:solid; + border-width:2px; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Facebook-Likes,.Facebook-Likes +{ + background-color:rgba(59,89,153,1.00); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + font-family:Roboto; + font-size:15px; + font-style:normal; + font-weight:500; + line-height:22px; + padding:5px 15px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Twitter-Favorites,.Twitter-Favorites +{ + background-color:rgba(255,255,255,0); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(136,153,166,1.00); + font-family:Roboto; + font-size:15px; + font-style:normal; + font-weight:500; + line-height:22px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.Twitter-Link,.Twitter-Link +{ + background-color:rgba(255,255,255,1.00); + border-color:transparent; + border-radius:30px 30px 30px 30px; + border-style:none; + border-width:0; + color:rgba(135,153,165,1.00); + font-family:Roboto; + font-size:15px; + font-style:normal; + font-weight:500; + line-height:15px; + padding:11px 11px 9px; + text-align:left; + text-decoration:none; +} + +.tp-caption.Twitter-Link:hover,.Twitter-Link:hover +{ + background-color:rgba(0,132,180,1.00); + border-color:transparent; + border-radius:30px 30px 30px 30px; + border-style:none; + border-width:0; + color:rgba(255,255,255,1.00); + text-decoration:none; +} + +.tp-caption.Twitter-Retweet,.Twitter-Retweet +{ + background-color:rgba(255,255,255,0); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(136,153,166,1.00); + font-family:Roboto; + font-size:15px; + font-style:normal; + font-weight:500; + line-height:22px; + padding:0; + text-align:left; + text-decoration:none; +} + +.tp-caption.Twitter-Content,.Twitter-Content +{ + background-color:rgba(255,255,255,1.00); + border-color:transparent; + border-radius:0 0 0 0; + border-style:none; + border-width:0; + color:rgba(41,47,51,1.00); + font-family:Roboto; + font-size:20px; + font-style:normal; + font-weight:500; + line-height:28px; + padding:30px 30px 70px; + text-align:left; + text-decoration:none; +} + +.revtp-searchform input[type="text"], +.revtp-searchform input[type="email"], +.revtp-form input[type="text"], +.revtp-form input[type="email"]{ + font-family: "Arial", sans-serif; + font-size: 15px; + color: #000; + background-color: #fff; + line-height: 46px; + padding: 0 20px; + cursor: text; + border: 0; + width: 400px; + margin-bottom: 0px; + -webkit-transition: background-color 0.5s; + -moz-transition: background-color 0.5s; + -o-transition: background-color 0.5s; + -ms-transition: background-color 0.5s; + transition: background-color 0.5s; + + + border-radius: 0px; +} + + +.tp-caption.BigBold-Title, +.BigBold-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 110px; + line-height: 100px; + font-weight: 800; + font-style: normal; + font-family: Raleway; + padding: 10px 0px 10px 0; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.BigBold-SubTitle, +.BigBold-SubTitle { + color: rgba(255, 255, 255, 0.50); + font-size: 15px; + line-height: 24px; + font-weight: 500; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.BigBold-Button, +.BigBold-Button { + color: rgba(255, 255, 255, 1.00); + font-size: 13px; + line-height: 13px; + font-weight: 500; + font-style: normal; + font-family: Raleway; + padding: 15px 50px 15px 50px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 0.50); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.BigBold-Button:hover, +.BigBold-Button:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px +} +.tp-caption.FoodCarousel-Content, +.FoodCarousel-Content { + color: rgba(41, 46, 49, 1.00); + font-size: 17px; + line-height: 28px; + font-weight: 500; + font-style: normal; + font-family: Raleway; + padding: 30px 30px 30px 30px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(41, 46, 49, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.FoodCarousel-Button, +.FoodCarousel-Button { + color: rgba(41, 46, 49, 1.00); + font-size: 13px; + line-height: 13px; + font-weight: 700; + font-style: normal; + font-family: Raleway; + padding: 15px 70px 15px 50px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(41, 46, 49, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.FoodCarousel-Button:hover, +.FoodCarousel-Button:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(41, 46, 49, 1.00); + border-color: rgba(41, 46, 49, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px +} +.tp-caption.FoodCarousel-CloseButton, +.FoodCarousel-CloseButton { + color: rgba(41, 46, 49, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 700; + font-style: normal; + font-family: Raleway; + padding: 14px 14px 14px 16px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(41, 46, 49, 0); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.FoodCarousel-CloseButton:hover, +.FoodCarousel-CloseButton:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(41, 46, 49, 1.00); + border-color: rgba(41, 46, 49, 0); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px +} +.tp-caption.Video-SubTitle, +.Video-SubTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 12px; + line-height: 12px; + font-weight: 600; + font-style: normal; + font-family: Raleway; + padding: 5px 5px 5px 5px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0.35); + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + letter-spacing: 2px; + text-align: left +} +.tp-caption.Video-Title, +.Video-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 30px; + line-height: 30px; + font-weight: 900; + font-style: normal; + font-family: Raleway; + padding: 5px 5px 5px 5px; + text-decoration: none; + background-color: rgba(0, 0, 0, 1.00); + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Travel-BigCaption, +.Travel-BigCaption { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Travel-SmallCaption, +.Travel-SmallCaption { + color: rgba(255, 255, 255, 1.00); + font-size: 25px; + line-height: 30px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Travel-CallToAction, +.Travel-CallToAction { + color: rgba(255, 255, 255, 1.00); + font-size: 25px; + line-height: 25px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 12px 20px 12px 20px; + text-decoration: none; + background-color: rgba(255, 255, 255, 0.05); + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 5px 5px 5px 5px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.Travel-CallToAction:hover, +.Travel-CallToAction:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 0.15); + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 5px 5px 5px 5px +} + + +.tp-caption.RotatingWords-TitleWhite, +.RotatingWords-TitleWhite { + color: rgba(255, 255, 255, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 800; + font-style: normal; + font-family: Raleway; + padding: 0px 0px 0px 0; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.RotatingWords-Button, +.RotatingWords-Button { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 700; + font-style: normal; + font-family: Raleway; + padding: 20px 50px 20px 50px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 0.15); + border-style: solid; + border-width: 2px; + border-radius: 0px 0px 0px 0px; + text-align: left; + letter-spacing: 3px +} +.tp-caption.RotatingWords-Button:hover, +.RotatingWords-Button:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 0px 0px 0px 0px +} +.tp-caption.RotatingWords-SmallText, +.RotatingWords-SmallText { + color: rgba(255, 255, 255, 1.00); + font-size: 14px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + text-shadow: none +} + + + + +.tp-caption.ContentZoom-SmallTitle, +.ContentZoom-SmallTitle { + color: rgba(41, 46, 49, 1.00); + font-size: 33px; + line-height: 45px; + font-weight: 600; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ContentZoom-SmallSubtitle, +.ContentZoom-SmallSubtitle { + color: rgba(111, 124, 130, 1.00); + font-size: 16px; + line-height: 24px; + font-weight: 600; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ContentZoom-SmallIcon, +.ContentZoom-SmallIcon { + color: rgba(41, 46, 49, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Raleway; + padding: 10px 10px 10px 10px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ContentZoom-SmallIcon:hover, +.ContentZoom-SmallIcon:hover { + color: rgba(111, 124, 130, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px +} +.tp-caption.ContentZoom-DetailTitle, +.ContentZoom-DetailTitle { + color: rgba(41, 46, 49, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 500; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ContentZoom-DetailSubTitle, +.ContentZoom-DetailSubTitle { + color: rgba(111, 124, 130, 1.00); + font-size: 25px; + line-height: 25px; + font-weight: 500; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ContentZoom-DetailContent, +.ContentZoom-DetailContent { + color: rgba(111, 124, 130, 1.00); + font-size: 17px; + line-height: 28px; + font-weight: 500; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ContentZoom-Button, +.ContentZoom-Button { + color: rgba(41, 46, 49, 1.00); + font-size: 13px; + line-height: 13px; + font-weight: 700; + font-style: normal; + font-family: Raleway; + padding: 15px 50px 15px 50px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(41, 46, 49, 0.50); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.ContentZoom-Button:hover, +.ContentZoom-Button:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(41, 46, 49, 1.00); + border-color: rgba(41, 46, 49, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px +} +.tp-caption.ContentZoom-ButtonClose, +.ContentZoom-ButtonClose { + color: rgba(41, 46, 49, 1.00); + font-size: 13px; + line-height: 13px; + font-weight: 700; + font-style: normal; + font-family: Raleway; + padding: 14px 14px 14px 16px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(41, 46, 49, 0.50); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: left; + letter-spacing: 1px +} +.tp-caption.ContentZoom-ButtonClose:hover, +.ContentZoom-ButtonClose:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(41, 46, 49, 1.00); + border-color: rgba(41, 46, 49, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px +} +.tp-caption.Newspaper-Title, +.Newspaper-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 55px; + font-weight: 400; + font-style: normal; + font-family: "Roboto Slab"; + padding: 0 0 10px 0; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Newspaper-Subtitle, +.Newspaper-Subtitle { + color: rgba(168, 216, 238, 1.00); + font-size: 15px; + line-height: 20px; + font-weight: 900; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Newspaper-Button, +.Newspaper-Button { + color: rgba(255, 255, 255, 1.00); + font-size: 13px; + line-height: 17px; + font-weight: 700; + font-style: normal; + font-family: Roboto; + padding: 12px 35px 12px 35px; + text-decoration: none; + background-color: rgba(255, 255, 255, 0); + border-color: rgba(255, 255, 255, 0.25); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 2px; + text-align: left +} +.tp-caption.Newspaper-Button:hover, +.Newspaper-Button:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px +} +.tp-caption.rtwhitemedium, +.rtwhitemedium { + font-size: 22px; + line-height: 26px; + color: rgb(255, 255, 255); + text-decoration: none; + background-color: transparent; + border-width: 0px; + border-color: rgb(0, 0, 0); + border-style: none; + text-shadow: none +} + +@media only screen and (max-width: 767px) { + .revtp-searchform input[type="text"], + .revtp-searchform input[type="email"], + .revtp-form input[type="text"], + .revtp-form input[type="email"] { width: 200px !important; } +} + +.revtp-searchform input[type="submit"], +.revtp-form input[type="submit"] { + font-family: "Arial", sans-serif; + line-height: 46px; + letter-spacing: 1px; + text-transform: uppercase; + font-size: 15px; + font-weight: 700; + padding: 0 20px; + border: 0; + background: #009aee; + color: #fff; + + + border-radius: 0px; +} + +.tp-caption.Twitter-Content a, + .tp-caption.Twitter-Content a:visited { + color: #0084B4 !important + } + .tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important + } + .tp-caption.Concept-Title, + .Concept-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 700; + font-style: normal; + font-family: "Roboto Condensed"; + padding: 0px 0px 10px 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 5px + } + .tp-caption.Concept-SubTitle, + .Concept-SubTitle { + color: rgba(255, 255, 255, 0.65); + font-size: 25px; + line-height: 25px; + font-weight: 700; + font-style: italic; + font-family: ""Playfair Display""; + padding: 0px 0px 10px 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px + } + .tp-caption.Concept-Content, + .Concept-Content { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 30px; + font-weight: 400; + font-style: normal; + font-family: "Roboto Condensed"; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: center; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 1.00); + border-style: none; + border-width: 2px; + border-radius: 0px 0px 0px 0px + } + .tp-caption.Concept-MoreBtn, + .Concept-MoreBtn { + color: rgba(255, 255, 255, 1.00); + font-size: 30px; + line-height: 30px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 10px 8px 7px 10px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 50px 50px 50px 50px; + letter-spacing: 1px; + text-align: left + } + .tp-caption.Concept-MoreBtn:hover, + .Concept-MoreBtn:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 0.15); + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 50px 50px 50px 50px + } + .tp-caption.Concept-LessBtn, + .Concept-LessBtn { + color: rgba(255, 255, 255, 1.00); + font-size: 30px; + line-height: 30px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 10px 8px 7px 10px; + text-decoration: none; + text-align: left; + background-color: rgba(0, 0, 0, 1.00); + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 50px 50px 50px 50px; + letter-spacing: 1px; + text-align: left + } + .tp-caption.Concept-LessBtn:hover, + .Concept-LessBtn:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 50px 50px 50px 50px + } + .tp-caption.Concept-SubTitle-Dark, + .Concept-SubTitle-Dark { + color: rgba(0, 0, 0, 0.65); + font-size: 25px; + line-height: 25px; + font-weight: 700; + font-style: italic; + font-family: "Playfair Display"; + padding: 0px 0px 10px 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px + } + .tp-caption.Concept-Title-Dark, + .Concept-Title-Dark { + color: rgba(0, 0, 0, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 700; + font-style: normal; + font-family: "Roboto Condensed"; + padding: 0px 0px 10px 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 5px + } + .tp-caption.Concept-MoreBtn-Dark, + .Concept-MoreBtn-Dark { + color: rgba(0, 0, 0, 1.00); + font-size: 30px; + line-height: 30px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 10px 8px 7px 10px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 50px 50px 50px 50px; + letter-spacing: 1px; + text-align: left + } + .tp-caption.Concept-MoreBtn-Dark:hover, + .Concept-MoreBtn-Dark:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(0, 0, 0, 1.00); + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 50px 50px 50px 50px + } + .tp-caption.Concept-Content-Dark, + .Concept-Content-Dark { + color: rgba(0, 0, 0, 1.00); + font-size: 20px; + line-height: 30px; + font-weight: 400; + font-style: normal; + font-family: "Roboto Condensed"; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: center; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 1.00); + border-style: none; + border-width: 2px; + border-radius: 0px 0px 0px 0px + } + .tp-caption.Concept-Notice, + .Concept-Notice { + color: rgba(255, 255, 255, 1.00); + font-size: 15px; + line-height: 15px; + font-weight: 400; + font-style: normal; + font-family: "Roboto Condensed"; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: center; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 1.00); + border-style: none; + border-width: 2px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 2px + } + .tp-caption.Concept-Content a, + .tp-caption.Concept-Content a:visited { + color: #fff !important; + border-bottom: 1px solid #fff !important; + font-weight: 700 !important; + } + .tp-caption.Concept-Content a:hover { + border-bottom: 1px solid transparent !important; + } + .tp-caption.Concept-Content-Dark a, + .tp-caption.Concept-Content-Dark a:visited { + color: #000 !important; + border-bottom: 1px solid #000 !important; + font-weight: 700 !important; + } + .tp-caption.Concept-Content-Dark a:hover { + border-bottom: 1px solid transparent !important; + } + + .tp-caption.Twitter-Content a, + .tp-caption.Twitter-Content a:visited { + color: #0084B4 !important + } + .tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important + } + .tp-caption.Creative-Title, + .Creative-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 400; + font-style: normal; + font-family: "Playfair Display"; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px + } + .tp-caption.Creative-SubTitle, + .Creative-SubTitle { + color: rgba(205, 176, 131, 1.00); + font-size: 14px; + line-height: 14px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 2px + } + .tp-caption.Creative-Button, + .Creative-Button { + color: rgba(205, 176, 131, 1.00); + font-size: 13px; + line-height: 13px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 15px 50px 15px 50px; + text-decoration: none; + text-align: left; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(205, 176, 131, 0.25); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 2px + } + .tp-caption.Creative-Button:hover, + .Creative-Button:hover { + color: rgba(205, 176, 131, 1.00); + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(205, 176, 131, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px + } + +.tp-caption.subcaption, + .subcaption { + color: rgba(111, 124, 130, 1.00); + font-size: 19px; + line-height: 24px; + font-weight: 400; + font-style: normal; + font-family: roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: rgba(0, 0, 0, 1.00); + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-shadow: none; + text-align: left + } + .tp-caption.RedDot, + .RedDot { + color: rgba(0, 0, 0, 1.00); + font-weight: 400; + font-style: normal; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: left; + background-color: rgba(213, 0, 0, 1.00); + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 5px; + border-radius: 50px 50px 50px 50px + } + .tp-caption.RedDot:hover, + .RedDot:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 0.75); + border-color: rgba(213, 0, 0, 1.00); + border-style: solid; + border-width: 5px; + border-radius: 50px 50px 50px 50px + } + + .tp-caption.SlidingOverlays-Title, + .SlidingOverlays-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: "Playfair Display"; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px + } + .tp-caption.SlidingOverlays-Title, + .SlidingOverlays-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: "Playfair Display"; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px + } + + .tp-caption.Woo-TitleLarge, + .Woo-TitleLarge { + color: rgba(0, 0, 0, 1.00); + font-size: 40px; + line-height: 40px; + font-weight: 400; + font-style: normal; + font-family: "Playfair Display"; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + + } + .tp-caption.Woo-Rating, + .Woo-Rating { + color: rgba(0, 0, 0, 1.00); + font-size: 14px; + line-height: 30px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + + } + .tp-caption.Woo-SubTitle, + .Woo-SubTitle { + color: rgba(0, 0, 0, 1.00); + font-size: 18px; + line-height: 18px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 2px; + + } + .tp-caption.Woo-PriceLarge, + .Woo-PriceLarge { + color: rgba(0, 0, 0, 1.00); + font-size: 60px; + line-height: 60px; + font-weight: 700; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + + } + .tp-caption.Woo-ProductInfo, + .Woo-ProductInfo { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 15px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 12px 75px 12px 50px; + text-decoration: none; + background-color: rgba(254, 207, 114, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px; + text-align: left; + + } + .tp-caption.Woo-ProductInfo:hover, + .Woo-ProductInfo:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(243, 168, 71, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px + } + .tp-caption.Woo-AddToCart, + .Woo-AddToCart { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 15px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 12px 35px 12px 35px; + text-decoration: none; + background-color: rgba(254, 207, 114, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px; + text-align: left; + + } + .tp-caption.Woo-AddToCart:hover, + .Woo-AddToCart:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(243, 168, 71, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px + } + .tp-caption.Woo-TitleLarge, + .Woo-TitleLarge { + color: rgba(0, 0, 0, 1.00); + font-size: 40px; + line-height: 40px; + font-weight: 400; + font-style: normal; + font-family: "Playfair Display"; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + + } + .tp-caption.Woo-SubTitle, + .Woo-SubTitle { + color: rgba(0, 0, 0, 1.00); + font-size: 18px; + line-height: 18px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 2px; + + } + .tp-caption.Woo-PriceLarge, + .Woo-PriceLarge { + color: rgba(0, 0, 0, 1.00); + font-size: 60px; + line-height: 60px; + font-weight: 700; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + + } + .tp-caption.Woo-ProductInfo, + .Woo-ProductInfo { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 15px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 12px 75px 12px 50px; + text-decoration: none; + background-color: rgba(254, 207, 114, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px; + text-align: left; + + } + .tp-caption.Woo-ProductInfo:hover, + .Woo-ProductInfo:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(243, 168, 71, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px + } + .tp-caption.Woo-AddToCart, + .Woo-AddToCart { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 15px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 12px 35px 12px 35px; + text-decoration: none; + background-color: rgba(254, 207, 114, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px; + text-align: left; + + } + .tp-caption.Woo-AddToCart:hover, + .Woo-AddToCart:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(243, 168, 71, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 4px 4px 4px 4px + } + + .tp-caption.FullScreen-Toggle, + .FullScreen-Toggle { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Raleway; + padding: 11px 8px 11px 12px; + text-decoration: none; + text-align: left; + background-color: rgba(0, 0, 0, 0.50); + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 3px; + text-align: left + } + .tp-caption.FullScreen-Toggle:hover, + .FullScreen-Toggle:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(0, 0, 0, 1.00); + border-color: rgba(255, 255, 255, 0); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px + } + + .tp-caption.Agency-Title, +.Agency-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 900; + font-style: normal; + font-family: lato; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 10px +} +.tp-caption.Agency-SubTitle, +.Agency-SubTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-style: italic; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.Agency-PlayBtn, +.Agency-PlayBtn { + color: rgba(255, 255, 255, 1.00); + font-size: 30px; + line-height: 71px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 0px 0px 0px; + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 100px 100px 100px 100px; + text-align: center +} +.tp-caption.Agency-PlayBtn:hover, +.Agency-PlayBtn:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 100px 100px 100px 100px; + cursor: pointer +} +.tp-caption.Agency-SmallText, +.Agency-SmallText { + color: rgba(255, 255, 255, 1.00); + font-size: 12px; + line-height: 12px; + font-weight: 900; + font-style: normal; + font-family: lato; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 5px +} +.tp-caption.Agency-Social, +.Agency-Social { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: rgba(51, 51, 51, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 30px 30px 30px 30px; + text-align: center +} +.tp-caption.Agency-Social:hover, +.Agency-Social:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(51, 51, 51, 1.00); + border-color: rgba(51, 51, 51, 1.00); + border-style: solid; + border-width: 2px; + border-radius: 30px 30px 30px 30px; + cursor: pointer +} +.tp-caption.Agency-CloseBtn, +.Agency-CloseBtn { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 0px 0px 0px; + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 0); + border-style: none; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + text-align: center +} +.tp-caption.Agency-CloseBtn:hover, +.Agency-CloseBtn:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 0); + border-style: none; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + cursor: pointer +} + +.tp-caption.Dining-Title, +.Dining-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 400; + font-style: normal; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 10px +} +.tp-caption.Dining-SubTitle, +.Dining-SubTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Dining-BtnLight, +.Dining-BtnLight { + color: rgba(255, 255, 255, 0.50); + font-size: 15px; + line-height: 15px; + font-weight: 700; + font-style: normal; + font-family: Lato; + padding: 17px 73px 17px 50px; + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 0.25); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + text-align: left; + letter-spacing: 2px +} +.tp-caption.Dining-BtnLight:hover, +.Dining-BtnLight:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px +} +.tp-caption.Dining-Social, +.Dining-Social { + color: rgba(255, 255, 255, 1.00); + font-size: 25px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 0.25); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: center +} +.tp-caption.Dining-Social:hover, +.Dining-Social:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(255, 255, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + cursor: pointer +} +tp-caption.Team-Thumb, +.Team-Thumb { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 22px; + font-weight: 400; + font-style: normal; + font-family: Arial; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Team-Thumb:hover, +.Team-Thumb:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer +} +.tp-caption.Team-Name, +.Team-Name { + color: rgba(255, 255, 255, 1.00); + font-size: 70px; + line-height: 70px; + font-weight: 900; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Team-Position, +.Team-Position { + color: rgba(255, 255, 255, 1.00); + font-size: 30px; + line-height: 30px; + font-weight: 400; + font-style: normal; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Team-Description, +.Team-Description { + color: rgba(255, 255, 255, 1.00); + font-size: 18px; + line-height: 28px; + font-weight: 400; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Team-Social, +.Team-Social { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: Arial; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.Team-Social:hover, +.Team-Social:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} + +.tp-caption.VideoControls-Play, +.VideoControls-Play { + color: rgba(0, 0, 0, 1.00); + font-size: 50px; + line-height: 120px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 0px 0px 7px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + text-align: center +} +.tp-caption.VideoControls-Play:hover, +.VideoControls-Play:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + cursor: pointer +} +.tp-caption.VideoPlayer-Title, +.VideoPlayer-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 40px; + line-height: 40px; + font-weight: 900; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 10px +} +.tp-caption.VideoPlayer-SubTitle, +.VideoPlayer-SubTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-style: italic; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.VideoPlayer-Social, +.VideoPlayer-Social { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 400; + font-style: normal; + font-family: Arial; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.VideoPlayer-Social:hover, +.VideoPlayer-Social:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} +.tp-caption.VideoControls-Mute, +.VideoControls-Mute { + color: rgba(0, 0, 0, 1.00); + font-size: 20px; + line-height: 50px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 0px 0px 0px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + text-align: center +} +.tp-caption.VideoControls-Mute:hover, +.VideoControls-Mute:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + cursor: pointer +} +.tp-caption.VideoControls-Pause, +.VideoControls-Pause { + color: rgba(0, 0, 0, 1.00); + font-size: 20px; + line-height: 50px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 0px 0px 0px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + text-align: center +} +.tp-caption.VideoControls-Pause:hover, +.VideoControls-Pause:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 100px 100px 100px 100px; + cursor: pointer + } + +.soundcloudwrapper iframe { + width: 100% !important +} +.tp-caption.SleekLanding-Title, +.SleekLanding-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 35px; + line-height: 40px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 5px +} +.tp-caption.SleekLanding-ButtonBG, +.SleekLanding-ButtonBG { + color: rgba(0, 0, 0, 1.00); + + font-weight: 700; + font-style: normal; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: rgba(255, 255, 255, 0.10); + border-color: rgba(0, 0, 0, 0); + border-style: solid; + border-width: 0px; + border-radius: 5px 5px 5px 5px; + text-align: left; + box-shadow: inset 0px 2px 0px 0px rgba(0, 0, 0, 0.15) +} +.tp-caption.SleekLanding-SmallTitle, +.SleekLanding-SmallTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 13px; + line-height: 50px; + font-weight: 900; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left; + letter-spacing: 2px +} +.tp-caption.SleekLanding-BottomText, +.SleekLanding-BottomText { + color: rgba(255, 255, 255, 1.00); + font-size: 15px; + line-height: 24px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.SleekLanding-Social, +.SleekLanding-Social { + color: rgba(255, 255, 255, 1.00); + font-size: 22px; + line-height: 30px; + font-weight: 400; + font-style: normal; + font-family: Arial; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.SleekLanding-Social:hover, +.SleekLanding-Social:hover { + color: rgba(0, 0, 0, 0.25); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer +} +#rev_slider_429_1_wrapper .tp-loader.spinner2 { + background-color: #555555 !important; +} +.tp-fat { + font-weight: 900 !important; +} + +.tp-caption.PostSlider-Category, +.PostSlider-Category { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 15px; + font-weight: 300; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + letter-spacing: 3px; + text-align: left +} +.tp-caption.PostSlider-Title, +.PostSlider-Title { + color: rgba(0, 0, 0, 1.00); + font-size: 40px; + line-height: 40px; + font-weight: 400; + font-style: normal; + font-family: "Playfair Display"; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.PostSlider-Content, +.PostSlider-Content { + color: rgba(119, 119, 119, 1.00); + font-size: 15px; + line-height: 23px; + font-weight: 400; + font-style: normal; + font-family: Roboto; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.PostSlider-Button, +.PostSlider-Button { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 40px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 1px 56px 1px 32px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + text-align: left +} +.tp-caption.PostSlider-Button:hover, +.PostSlider-Button:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(238, 238, 238, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} + +/* media queries */ + +@media only screen and (max-width: 960px) {} @media only screen and (max-width: 768px) {} .tp-caption.LandingPage-Title, +.LandingPage-Title { + color:rgba(255, + 255, + 255, + 1.00); + font-size:70px; + line-height:80px; + font-weight:900; + font-style:normal; + font-family:Lato; + padding:0 0 0 0px; + text-decoration:none; + background-color:transparent; + border-color:transparent; + border-style:none; + border-width:0px; + border-radius:0 0 0 0px; + text-align:left; + letter-spacing:10px +} +.tp-caption.LandingPage-SubTitle, +.LandingPage-SubTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 30px; + font-weight: 400; + font-style: italic; + font-family: Georgia, serif; + padding: 0 0 0 0px; + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.LandingPage-Button, +.LandingPage-Button { + color: rgba(0, 0, 0, 1.00); + font-size: 15px; + line-height: 54px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 35px 0px 35px; + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + text-align: left; + letter-spacing: 3px +} +.tp-caption.LandingPage-Button:hover, +.LandingPage-Button:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} +.tp-caption.App-Content a, +.tp-caption.App-Content a:visited { + color: #89124e !important; + border-bottom: 1px solid transparent !important; + font-weight: bold !important; +} +.tp-caption.App-Content a:hover { + border-bottom: 1px solid #89124e !important; +} +.tp-caption.RockBand-LogoText, +.RockBand-LogoText { + color: rgba(255, 255, 255, 1.00); + font-size: 60px; + line-height: 60px; + font-weight: 700; + font-style: normal; + font-family: Oswald; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Twitter-Content a, +.tp-caption.Twitter-Content a:visited { + color: #fff !important; + text-decoration: underline !important; +} +.tp-caption.Twitter-Content a:hover { + color: #fff !important; + text-decoration: none !important; +} +.soundcloudwrapper iframe { + width: 100% !important +} + +.tp-caption.Agency-LogoText, +.Agency-LogoText { + color: rgba(255, 255, 255, 1.00); + font-size: 12px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 1px +} +.tp-caption.ComingSoon-Highlight, +.ComingSoon-Highlight { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 37px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 20px 3px 20px; + text-decoration: none; + text-align: left; + background-color: rgba(0, 154, 238, 1.00); + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ComingSoon-Count, +.ComingSoon-Count { + color: rgba(255, 255, 255, 1.00); + font-size: 50px; + line-height: 50px; + font-weight: 900; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.ComingSoon-CountUnit, +.ComingSoon-CountUnit { + color: rgba(255, 255, 255, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.ComingSoon-NotifyMe, +.ComingSoon-NotifyMe { + color: rgba(164, 157, 143, 1.00); + font-size: 27px; + line-height: 35px; + font-weight: 600; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} + +#mc_embed_signup input#mce-EMAIL { + font-family: "Lato", sans-serif; + font-size: 15px; + color: #000; + background-color: #fff; + line-height: 46px; + padding: 0 20px; + cursor: text; + border: 1px solid #fff; + width: 400px; + margin-bottom: 0px; + -webkit-transition: background-color 0.5s; + -moz-transition: background-color 0.5s; + -o-transition: background-color 0.5s; + -ms-transition: background-color 0.5s; + transition: background-color 0.5s; + + + border-radius: 0px; +} +#mc_embed_signup input#mce-EMAIL[type="email"]:focus { + background-color: #fff; + border: 1px solid #666; + border-right: 0; +} +#mc_embed_signup input#mc-embedded-subscribe, +#mc_embed_signup input#mc-embedded-subscribe:focus { + font-family: "Lato", sans-serif; + line-height: 46px; + letter-spacing: 1px; + text-transform: uppercase; + font-size: 13px; + font-weight: 900; + padding: 0 20px; + border: 1px solid #009aee; + background: #009aee; + color: #fff; + + + border-radius: 0px; +} +#mc_embed_signup input#mc-embedded-subscribe:hover { + background: #0083d4; +} +@media only screen and (max-width: 767px) { + #mc_embed_signup input#mce-EMAIL { + width: 200px; + } +} +.tp-caption.Agency-SmallTitle, +.Agency-SmallTitle { + color: rgba(255, 255, 255, 1.00); + font-size: 15px; + line-height: 22px; + font-weight: 400; + font-style: normal; + font-family: lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 6px +} +.tp-caption.Agency-SmallContent, +.Agency-SmallContent { + color: rgba(255, 255, 255, 1.00); + font-size: 15px; + line-height: 24px; + font-weight: 400; + font-style: normal; + font-family: lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.Agency-SmallLink, +.Agency-SmallLink { + color: rgba(248, 124, 9, 1.00); + font-size: 12px; + line-height: 22px; + font-weight: 700; + font-style: normal; + font-family: lato; + padding: 0 0 0px 0; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 2px; + border-bottom: 1px solid #f87c09 !important +} +.tp-caption.Agency-SmallLink:hover, +.Agency-SmallLink:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer +} +.tp-caption.Agency-NavButton, +.Agency-NavButton { + color: rgba(51, 51, 51, 1.00); + font-size: 17px; + line-height: 50px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 0px 0px 0px 0px; + text-decoration: none; + text-align: center; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + text-align: center +} +.tp-caption.Agency-NavButton:hover, +.Agency-NavButton:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(51, 51, 51, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} +.tp-caption.Agency-SmallLinkGreen, +.Agency-SmallLinkGreen { + color: rgba(109, 177, 155, 1.00); + font-size: 12px; + line-height: 22px; + font-weight: 700; + font-style: normal; + font-family: lato; + padding: 0 0 0px 0; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 2px; + border-bottom: 1px solid #6db19b !important +} +.tp-caption.Agency-SmallLinkGreen:hover, +.Agency-SmallLinkGreen:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer +} +.tp-caption.Agency-SmallLinkBlue, +.Agency-SmallLinkBlue { + color: rgba(153, 153, 153, 1.00); + font-size: 12px; + line-height: 22px; + font-weight: 700; + font-style: normal; + font-family: lato; + padding: 0 0 0px 0; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 2px; + border-bottom: 1px solid #999 !important +} +.tp-caption.Agency-SmallLinkBlue:hover, +.Agency-SmallLinkBlue:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer +} +.tp-caption.Agency-LogoText, +.Agency-LogoText { + color: rgba(255, 255, 255, 1.00); + font-size: 12px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; + letter-spacing: 1px +} +.tp-caption.Agency-ArrowTooltip, +.Agency-ArrowTooltip { + color: rgba(51, 51, 51, 1.00); + font-size: 15px; + line-height: 20px; + font-weight: 400; + font-style: normal; + font-family: "Permanent Marker"; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left +} +.tp-caption.Agency-SmallSocial, +.Agency-SmallSocial { + color: rgba(255, 255, 255, 1.00); + font-size: 30px; + line-height: 30px; + font-weight: 400; + font-style: normal; + font-family: Arial; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center +} +.tp-caption.Agency-SmallSocial:hover, +.Agency-SmallSocial:hover { + color: rgba(51, 51, 51, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} +.tp-caption.Twitter-Content a, +.tp-caption.Twitter-Content a:visited { + color: #0084B4 !important +} +.tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important +} +.tp-caption.CreativeFrontPage-Btn, +.CreativeFrontPage-Btn { + color: rgba(255, 255, 255, 1.00); + font-size: 14px; + line-height: 60px; + font-weight: 900; + font-style: normal; + font-family: Roboto; + padding: 0px 50px 0px 50px; + text-decoration: none; + text-align: left; + background-color: rgba(0, 104, 92, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 4px 4px 4px 4px; + letter-spacing: 2px +} +.tp-caption.CreativeFrontPage-Btn:hover, +.CreativeFrontPage-Btn:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 4px 4px 4px 4px; + cursor: pointer +} +.tp-caption.CreativeFrontPage-Menu, +.CreativeFrontPage-Menu { + color: rgba(255, 255, 255, 1.00); + font-size: 14px; + line-height: 14px; + font-weight: 500; + font-style: normal; + font-family: roboto; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + letter-spacing: 2px +} +.tp-flip-index { + z-index: 1000 !important; +} +.tp-caption.Twitter-Content a, +.tp-caption.Twitter-Content a:visited { + color: #0084B4 !important +} +.tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important +} +.tp-caption.FullScreenMenu-Category, +.FullScreenMenu-Category { + color: rgba(17, 17, 17, 1.00); + font-size: 20px; + line-height: 20px; + font-weight: 700; + font-style: normal; + font-family: BenchNine; + padding: 21px 30px 16px 30px; + text-decoration: none; + text-align: left; + background-color: rgba(255, 255, 255, 0.90); + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + letter-spacing: 3px +} +.tp-caption.FullScreenMenu-Title, +.FullScreenMenu-Title { + color: rgba(255, 255, 255, 1.00); + font-size: 65px; + line-height: 70px; + font-weight: 700; + font-style: normal; + font-family: BenchNine; + padding: 21px 30px 16px 30px; + text-decoration: none; + text-align: left; + background-color: rgba(17, 17, 17, 0.90); + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px +} +.tp-caption.Twitter-Content a, +.tp-caption.Twitter-Content a:visited { + color: #0084B4 !important +} +.tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important +} +.tp-caption.TechJournal-Button, +.TechJournal-Button { + color: rgba(255, 255, 255, 1.00); + font-size: 13px; + line-height: 40px; + font-weight: 900; + font-style: normal; + font-family: Raleway; + padding: 1px 30px 1px 30px; + text-decoration: none; + text-align: left; + background-color: rgba(138, 0, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + letter-spacing: 3px +} +.tp-caption.TechJournal-Button:hover, +.TechJournal-Button:hover { + color: rgba(0, 0, 0, 1.00); + text-decoration: none; + background-color: rgba(255, 255, 255, 1.00); + border-color: rgba(0, 0, 0, 1.00); + border-style: solid; + border-width: 0px; + border-radius: 0px 0px 0px 0px; + cursor: pointer +} +.tp-caption.TechJournal-Big, +.TechJournal-Big { + color: rgba(255, 255, 255, 1.00); + font-size: 120px; + line-height: 120px; + font-weight: 900; + font-style: normal; + font-family: Raleway; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + letter-spacing: 0px +} +.rev_slider { + overflow: hidden; +} +.effect_layer { + position: absolute; + top: 0px; + left: 0px; + width: 100%; + height: 100%; +} + +.tp-caption.Twitter-Content a, + .tp-caption.Twitter-Content a:visited { + color: #0084B4 !important + } + .tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important + } + #menu_forcefullwidth { + z-index: 5000; + position: fixed !important; + top: 0px; + left: 0px; + width: 100% + } + .tp-caption.FullSiteBlock-Title, + .FullSiteBlock-Title { + color: rgba(51, 51, 51, 1.00); + font-size: 55px; + line-height: 65px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link, + .FullSiteBlock-Link { + color: rgba(0, 150, 255, 1.00); + font-size: 25px; + line-height: 24px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link:hover, + .FullSiteBlock-Link:hover { + color: rgba(51, 51, 51, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer + } + .tp-caption.FullSiteBlock-DownButton, + .FullSiteBlock-DownButton { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 32px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 1px 1px 1px 1px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: rgba(51, 51, 51, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: center + } + .tp-caption.FullSiteBlock-DownButton:hover, + .FullSiteBlock-DownButton:hover { + color: rgba(0, 150, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(0, 150, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + cursor: pointer + } + .tp-caption.FullSiteBlock-Title, + .FullSiteBlock-Title { + color: rgba(51, 51, 51, 1.00); + font-size: 55px; + line-height: 65px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link, + .FullSiteBlock-Link { + color: rgba(0, 150, 255, 1.00); + font-size: 25px; + line-height: 24px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link:hover, + .FullSiteBlock-Link:hover { + color: rgba(51, 51, 51, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer + } + .tp-caption.FullSiteBlock-DownButton, + .FullSiteBlock-DownButton { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 32px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 1px 1px 1px 1px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: rgba(51, 51, 51, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: center + } + .tp-caption.FullSiteBlock-DownButton:hover, + .FullSiteBlock-DownButton:hover { + color: rgba(0, 150, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(0, 150, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + cursor: pointer + } + .tp-caption.FullSiteBlock-Title, + .FullSiteBlock-Title { + color: rgba(51, 51, 51, 1.00); + font-size: 55px; + line-height: 65px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-DownButton, + .FullSiteBlock-DownButton { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 32px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 1px 1px 1px 1px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: rgba(51, 51, 51, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: center + } + .tp-caption.FullSiteBlock-DownButton:hover, + .FullSiteBlock-DownButton:hover { + color: rgba(0, 150, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(0, 150, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + cursor: pointer + } + .tp-caption.FullSiteBlock-Title, + .FullSiteBlock-Title { + color: rgba(51, 51, 51, 1.00); + font-size: 55px; + line-height: 65px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link, + .FullSiteBlock-Link { + color: rgba(0, 150, 255, 1.00); + font-size: 25px; + line-height: 24px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link:hover, + .FullSiteBlock-Link:hover { + color: rgba(51, 51, 51, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer + } + .tp-caption.FullSiteBlock-DownButton, + .FullSiteBlock-DownButton { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 32px; + font-weight: 500; + font-style: normal; + font-family: Roboto; + padding: 1px 1px 1px 1px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: rgba(51, 51, 51, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + text-align: center + } + .tp-caption.FullSiteBlock-DownButton:hover, + .FullSiteBlock-DownButton:hover { + color: rgba(0, 150, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: rgba(0, 150, 255, 1.00); + border-style: solid; + border-width: 1px; + border-radius: 30px 30px 30px 30px; + cursor: pointer + } + .rev_slider { + overflow: hidden; + } + .effect_layer { + position: absolute; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + } + .gyges .tp-thumb { + opacity: 1 + } + .gyges .tp-thumb-img-wrap { + padding: 3px; + background-color: rgba(0, 0, 0, 0.25); + display: inline-block; + width: 100%; + height: 100%; + position: relative; + margin: 0px; + box-sizing: border-box; + transition: all 0.3s; + -webkit-transition: all 0.3s; + } + .gyges .tp-thumb-image { + padding: 3px; + display: block; + box-sizing: border-box; + position: relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0, 0, 0, 0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0, 0, 0, 0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0, 0, 0, 0.25); + } + .gyges .tp-thumb:hover .tp-thumb-img-wrap, + .gyges .tp-thumb.selected .tp-thumb-img-wrap { + background: -moz-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 1))); + background: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%); + background: -o-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%); + background: -ms-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%); + background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%); + } + .tp-caption.FullSiteBlock-Title, + .FullSiteBlock-Title { + color: rgba(51, 51, 51, 1.00); + font-size: 55px; + line-height: 65px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link, + .FullSiteBlock-Link { + color: rgba(0, 150, 255, 1.00); + font-size: 25px; + line-height: 24px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-Link:hover, + .FullSiteBlock-Link:hover { + color: rgba(51, 51, 51, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.FullSiteBlock-FooterLink, + .FullSiteBlock-FooterLink { + color: rgba(85, 85, 85, 1.00); + font-size: 15px; + line-height: 20px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: left + } + .tp-caption.FullSiteBlock-FooterLink:hover, + .FullSiteBlock-FooterLink:hover { + color: rgba(0, 150, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer + } + .fb-share-button.fb_iframe_widget iframe { + width: 115px!important; + } + #tp-socialwrapper { + opacity: 0; + } + + .tp-caption.Twitter-Content a, + .tp-caption.Twitter-Content a:visited { + color: #0084B4 !important + } + .tp-caption.Twitter-Content a:hover { + color: #0084B4 !important; + text-decoration: underline !important + } + #menu_forcefullwidth { + z-index: 5000; + position: fixed !important; + top: 0px; + left: 0px; + width: 100% + } + #tp-menubg { + background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%); + /* FF3.6-15 */ + + background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%); + /* Chrome10-25,Safari5.1-6 */ + + background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%); + /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ + + filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#d9000000', endColorstr='#00000', GradientType=0); + /* IE6-9 */ + } + #mc_embed_signup input[type="email"] { + font-family: "Lato", sans-serif; + font-size: 16px; + font-weight: 400; + background-color: #fff; + color: #888 !important; + line-height: 46px; + padding: 0 20px; + cursor: text; + border: 0; + width: 400px; + margin-bottom: 0px; + -webkit-transition: background-color 0.5s; + -moz-transition: background-color 0.5s; + -o-transition: background-color 0.5s; + -ms-transition: background-color 0.5s; + transition: background-color 0.5s; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + } + #mc_embed_signup input[type="email"]::-webkit-input-placeholder { + color: #888 !important; + } + #mc_embed_signup input[type="email"]::-moz-placeholder { + color: #888 !important; + } + #mc_embed_signup input[type="email"]:-ms-input-placeholder { + color: #888 !important; + } + #mc_embed_signup input[type="email"]:focus { + background-color: #f5f5f5; + color: #454545; + } + #mc_embed_signup input#mc-embedded-subscribe, + #mc_embed_signup input#mc-embedded-subscribe:focus { + font-family: "Lato", sans-serif; + line-height: 46px; + font-size: 16px; + font-weight: 700; + padding: 0 30px; + border: 0; + background: #f04531; + text-transform: none; + color: #fff; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + } + #mc_embed_signup input#mc-embedded-subscribe:hover { + background: #e03727; + } + @media only screen and (max-width: 767px) { + #mc_embed_signup input[type="email"] { + width: 260px; + } + } + @media only screen and (max-width: 480px) { + #mc_embed_signup input[type="email"] { + width: 160px; + } + } + #rev_slider_167_6 .uranus.tparrows { + width: 50px; + height: 50px; + background: rgba(255, 255, 255, 0); + } + #rev_slider_167_6 .uranus.tparrows:before { + width: 50px; + height: 50px; + line-height: 50px; + font-size: 40px; + transition: all 0.3s; + -webkit-transition: all 0.3s; + } + #rev_slider_167_6 .uranus.tparrows:hover:before { + opacity: 0.75; + } + .tp-caption.FullSiteBlock-SubTitle, + .FullSiteBlock-SubTitle { + color: rgba(51, 51, 51, 1.00); + font-size: 25px; + line-height: 34px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center + } + .tp-caption.ParallaxWebsite-FooterItem, + .ParallaxWebsite-FooterItem { + color: rgba(255, 255, 255, 0.50); + font-size: 16px; + line-height: 24px; + font-weight: 400; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: left; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px + } + .tp-caption.ParallaxWebsite-FooterItem:hover, + .ParallaxWebsite-FooterItem:hover { + color: rgba(255, 255, 255, 1.00); + text-decoration: none; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + cursor: pointer + } + .fb-share-button.fb_iframe_widget iframe { + width: 115px!important; + } + iframe.twitter-share-button { + display: none; + } + .fb-share-button.fb_iframe_widget iframe { + display: none; + } + + .tp-caption.FullSiteBlock-Link, + .FullSiteBlock-Link { + color: rgba(0,150,255,1.00); + font-size: 25px; + line-height: 24px; + font-weight: 300; + font-style: normal; + font-family: Lato; + padding: 0 0 0 0px; + text-decoration: none; + text-align: center; + background-color: transparent; + border-color: transparent; + border-style: none; + border-width: 0px; + border-radius: 0 0 0 0px; + text-align: center; +} \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/ares.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/ares.css new file mode 100644 index 0000000..da4fb61 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/ares.css @@ -0,0 +1,241 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ARES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +.ares.tparrows { + cursor:pointer; + background:#fff; + min-width:60px; + min-height:60px; + position:absolute; + display:block; + z-index:100; + border-radius:50%; +} +.ares.tparrows:hover { +} +.ares.tparrows:before { + font-family: "revicons"; + font-size:25px; + color:#aaa; + display:block; + line-height: 60px; + text-align: center; + -webkit-transition: color 0.3s; + -moz-transition: color 0.3s; + transition: color 0.3s; + z-index:2; + position:relative; +} +.ares.tparrows.tp-leftarrow:before { + content: "\e81f"; +} +.ares.tparrows.tp-rightarrow:before { + content: "\e81e"; +} +.ares.tparrows:hover:before { + color:#000; + } +.tp-title-wrap { + position:absolute; + z-index:1; + display:inline-block; + background:#fff; + min-height:60px; + line-height:60px; + top:0px; + margin-left:30px; + border-radius:0px 30px 30px 0px; + overflow:hidden; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:scaleX(0); + -webkit-transform:scaleX(0); + transform-origin:0% 50%; + -webkit-transform-origin:0% 50%; +} + .ares.tp-rightarrow .tp-title-wrap { + right:0px; + margin-right:30px;margin-left:0px; + -webkit-transform-origin:100% 50%; +border-radius:30px 0px 0px 30px; + } +.ares.tparrows:hover .tp-title-wrap { + transform:scaleX(1) scaleY(1); + -webkit-transform:scaleX(1) scaleY(1); +} +.ares .tp-arr-titleholder { + position:relative; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:translateX(200px); + text-transform:uppercase; + color:#000; + font-weight:400; + font-size:14px; + line-height:60px; + white-space:nowrap; + padding:0px 20px; + margin-left:10px; + opacity:0; +} + +.ares.tp-rightarrow .tp-arr-titleholder { + transform:translateX(-200px); + margin-left:0px; margin-right:10px; + } + +.ares.tparrows:hover .tp-arr-titleholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition-delay: 0.1s; + opacity:1; +} + +/* BULLETS */ +.ares.tp-bullets { +} +.ares.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.ares .tp-bullet { + width:13px; + height:13px; + position:absolute; + background:#e5e5e5; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.ares .tp-bullet:hover, +.ares .tp-bullet.selected { + background:#fff; +} +.ares .tp-bullet-title { + position:absolute; + color:#888; + font-size:12px; + padding:0px 10px; + font-weight:600; + right:27px; + top:-4px; + background:#fff; + background:rgba(255,255,255,0.75); + visibility:hidden; + transform:translateX(-20px); + -webkit-transform:translateX(-20px); + transition:transform 0.3s; + -webkit-transition:transform 0.3s; + line-height:20px; + white-space:nowrap; +} + +.ares .tp-bullet-title:after { + width: 0px; + height: 0px; + border-style: solid; + border-width: 10px 0 10px 10px; + border-color: transparent transparent transparent rgba(255,255,255,0.75); + content:" "; + position:absolute; + right:-10px; + top:0px; +} + +.ares .tp-bullet:hover .tp-bullet-title{ + visibility:visible; + transform:translateX(0px); + -webkit-transform:translateX(0px); +} + +.ares .tp-bullet.selected:hover .tp-bullet-title { + background:#fff; + } +.ares .tp-bullet.selected:hover .tp-bullet-title:after { + border-color:transparent transparent transparent #fff; +} +.ares.tp-bullets:hover .tp-bullet-title { + visibility:hidden; +} +.ares.tp-bullets:hover .tp-bullet:hover .tp-bullet-title { + visibility:visible; + } + +/* TABS */ +.ares .tp-tab { + opacity:1; + padding:10px; + box-sizing:border-box; + font-family: "Roboto", sans-serif; + border-bottom: 1px solid #e5e5e5; + } +.ares .tp-tab-image +{ + width:60px; + height:60px; max-height:100%; max-width:100%; + position:relative; + display:inline-block; + float:left; + +} +.ares .tp-tab-content +{ + background:rgba(0,0,0,0); + position:relative; + padding:15px 15px 15px 85px; + left:0px; + overflow:hidden; + margin-top:-15px; + box-sizing:border-box; + color:#333; + display: inline-block; + width:100%; + height:100%; + position:absolute; } +.ares .tp-tab-date + { + display:block; + color: #aaa; + font-weight:500; + font-size:12px; + margin-bottom:0px; + } +.ares .tp-tab-title +{ + display:block; + text-align:left; + color:#333; + font-size:14px; + font-weight:500; + text-transform:none; + line-height:17px; +} +.ares .tp-tab:hover, +.ares .tp-tab.selected { + background:#eee; +} + +.ares .tp-tab-mask { +} + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + +} +@media only screen and (max-width: 768px) { + +} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/custom.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/custom.css new file mode 100644 index 0000000..6d80ed4 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/custom.css @@ -0,0 +1,79 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + CUSTOM SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.custom.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:100; +} +.custom.tparrows:hover { + background:#000; +} +.custom.tparrows:before { + font-family: "revicons"; + font-size:15px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.custom.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.custom.tparrows.tp-rightarrow:before { + content: "\e825"; +} + + + +/* BULLETS */ +.custom.tp-bullets { +} +.custom.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.custom .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#aaa; + background:rgba(125,125,125,0.5); + cursor: pointer; + box-sizing:content-box; +} +.custom .tp-bullet:hover, +.custom .tp-bullet.selected { + background:rgb(125,125,125); +} +.custom .tp-bullet-image { +} +.custom .tp-bullet-title { +} + + +/* THUMBS */ + + +/* TABS */ + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/dione.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/dione.css new file mode 100644 index 0000000..351292f --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/dione.css @@ -0,0 +1,177 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + DIONE SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.dione.tparrows { + height:100%; + width:100px; + background:transparent; + background:rgba(0,0,0,0); + line-height:100%; + transition:all 0.3s; +-webkit-transition:all 0.3s; +} + +.dione.tparrows:hover { + background:rgba(0,0,0,0.45); + } +.dione .tp-arr-imgwrapper { + width:100px; + left:0px; + position:absolute; + height:100%; + top:0px; + overflow:hidden; + } +.dione.tp-rightarrow .tp-arr-imgwrapper { +left:auto; +right:0px; +} + +.dione .tp-arr-imgholder { +background-position:center center; +background-size:cover; +width:100px; +height:100%; +top:0px; +visibility:hidden; +transform:translateX(-50px); +-webkit-transform:translateX(-50px); +transition:all 0.3s; +-webkit-transition:all 0.3s; +opacity:0; +left:0px; +} + +.dione.tparrows.tp-rightarrow .tp-arr-imgholder { + right:0px; + left:auto; + transform:translateX(50px); + -webkit-transform:translateX(50px); +} + +.dione.tparrows:before { +position:absolute; +line-height:30px; +margin-left:-22px; +top:50%; +left:50%; +font-size:30px; +margin-top:-15px; +transition:all 0.3s; +-webkit-transition:all 0.3s; +} + +.dione.tparrows.tp-rightarrow:before { +margin-left:6px; +} + +.dione.tparrows:hover:before { + transform:translateX(-20px); +-webkit-transform:translateX(-20px); +opacity:0; +} + +.dione.tparrows.tp-rightarrow:hover:before { + transform:translateX(20px); +-webkit-transform:translateX(20px); +} + +.dione.tparrows:hover .tp-arr-imgholder { + transform:translateX(0px); +-webkit-transform:translateX(0px); +opacity:1; +visibility:visible; +} + + + +/* BULLETS */ +.dione .tp-bullet { + opacity:1; + width:50px; + height:50px; + padding:3px; + background:#000; + background-color:rgba(0,0,0,0.25); + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + + } + +.dione .tp-bullet-image { + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + width:44px; + height:44px; + background-size:cover; + background-position:center center; + } +.dione .tp-bullet-title { + position:absolute; + bottom:65px; + display:inline-block; + left:50%; + background:#000; + background:rgba(0,0,0,0.75); + color:#fff; + padding:10px 30px; + border-radius:4px; + -webkit-border-radius:4px; + opacity:0; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform: translateZ(0.001px) translateX(-50%) translateY(14px); + transform-origin:50% 100%; + -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px); + -webkit-transform-origin:50% 100%; + opacity:0; + white-space:nowrap; + } + +.dione .tp-bullet:hover .tp-bullet-title { + transform:rotateX(0deg) translateX(-50%); + -webkit-transform:rotateX(0deg) translateX(-50%); + opacity:1; +} + +.dione .tp-bullet.selected, +.dione .tp-bullet:hover { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + + } +.dione .tp-bullet-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(0,0,0,0.75) transparent transparent transparent; + bottom:-8px; + } + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/erinyen.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/erinyen.css new file mode 100644 index 0000000..60a0821 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/erinyen.css @@ -0,0 +1,276 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ERINYEN SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.erinyen.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + min-width:70px; + min-height:70px; + position:absolute; + display:block; + z-index:100; + border-radius:35px; +} + +.erinyen.tparrows:before { + font-family: "revicons"; + font-size:20px; + color:#fff; + display:block; + line-height: 70px; + text-align: center; + z-index:2; + position:relative; +} +.erinyen.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.erinyen.tparrows.tp-rightarrow:before { + content: "\e825"; +} + +.erinyen .tp-title-wrap { + position:absolute; + z-index:1; + display:inline-block; + background:#000; + background:rgba(0,0,0,0.5); + min-height:70px; + line-height:70px; + top:0px; + margin-left:0px; + border-radius:35px; + overflow:hidden; + transition: opacity 0.3s; + -webkit-transition:opacity 0.3s; + -moz-transition:opacity 0.3s; + -webkit-transform: scale(0); + -moz-transform: scale(0); + transform: scale(0); + visibility:hidden; + opacity:0; +} + +.erinyen.tparrows:hover .tp-title-wrap{ + -webkit-transform: scale(1); + -moz-transform: scale(1); + transform: scale(1); + opacity:1; + visibility:visible; +} + + .erinyen.tp-rightarrow .tp-title-wrap { + right:0px; + margin-right:0px;margin-left:0px; + -webkit-transform-origin:100% 50%; + border-radius:35px; + padding-right:20px; + padding-left:10px; + } + + +.erinyen.tp-leftarrow .tp-title-wrap { + padding-left:20px; + padding-right:10px; +} + +.erinyen .tp-arr-titleholder { + letter-spacing: 3px; + position:relative; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:translateX(200px); + text-transform:uppercase; + color:#fff; + font-weight:600; + font-size:13px; + line-height:70px; + white-space:nowrap; + padding:0px 20px; + margin-left:11px; + opacity:0; +} + +.erinyen .tp-arr-imgholder { + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + background-position:center center; + background-size:cover; + } + .erinyen .tp-arr-img-over { + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + background:#000; + background:rgba(0,0,0,0.5); + } +.erinyen.tp-rightarrow .tp-arr-titleholder { + transform:translateX(-200px); + margin-left:0px; margin-right:11px; + } + +.erinyen.tparrows:hover .tp-arr-titleholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition-delay: 0.1s; + opacity:1; +} + +/* BULLETS */ +.erinyen.tp-bullets { +} +.erinyen.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background: #555555; /* old browsers */ + background: -moz-linear-gradient(top, #555555 0%, #222222 100%); /* ff3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#555555), color-stop(100%,#222222)); /* chrome,safari4+ */ + background: -webkit-linear-gradient(top, #555555 0%,#222222 100%); /* chrome10+,safari5.1+ */ + background: -o-linear-gradient(top, #555555 0%,#222222 100%); /* opera 11.10+ */ + background: -ms-linear-gradient(top, #555555 0%,#222222 100%); /* ie10+ */ + background: linear-gradient(to bottom, #555555 0%,#222222 100%); /* w3c */ + filter: progid:dximagetransform.microsoft.gradient( startcolorstr="#555555", endcolorstr="#222222",gradienttype=0 ); /* ie6-9 */ + padding:10px 15px; + margin-left:-15px;margin-top:-10px; + box-sizing:content-box; + border-radius:10px; + box-shadow:0px 0px 2px 1px rgba(33,33,33,0.3); +} +.erinyen .tp-bullet { + width:13px; + height:13px; + position:absolute; + background:#111; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.erinyen .tp-bullet:hover, +.erinyen .tp-bullet.selected { + background: #e5e5e5; /* old browsers */ +background: -moz-linear-gradient(top, #e5e5e5 0%, #999999 100%); /* ff3.6+ */ +background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#999999)); /* chrome,safari4+ */ +background: -webkit-linear-gradient(top, #e5e5e5 0%,#999999 100%); /* chrome10+,safari5.1+ */ +background: -o-linear-gradient(top, #e5e5e5 0%,#999999 100%); /* opera 11.10+ */ +background: -ms-linear-gradient(top, #e5e5e5 0%,#999999 100%); /* ie10+ */ +background: linear-gradient(to bottom, #e5e5e5 0%,#999999 100%); /* w3c */ +filter: progid:dximagetransform.microsoft.gradient( startcolorstr="#e5e5e5", endcolorstr="#999999",gradienttype=0 ); /* ie6-9 */ + border:1px solid #555; + width:12px;height:12px; +} +.erinyen .tp-bullet-image { +} +.erinyen .tp-bullet-title { +} + + +/* THUMBS */ +.erinyen .tp-thumb { +opacity:1 +} + +.erinyen .tp-thumb-over { + background:#000; + background:rgba(0,0,0,0.25); + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + z-index:1; + -webkit-transition:all 0.3s; + transition:all 0.3s; +} + +.erinyen .tp-thumb-more:before { + font-family: "revicons"; + font-size:12px; + color:#aaa; + color:rgba(255,255,255,0.75); + display:block; + line-height: 12px; + text-align: left; + z-index:2; + position:absolute; + top:20px; + right:20px; + z-index:2; +} +.erinyen .tp-thumb-more:before { + content: "\e825"; +} + +.erinyen .tp-thumb-title { + font-family:"Raleway"; + letter-spacing:1px; + font-size:12px; + color:#fff; + display:block; + line-height: 15px; + text-align: left; + z-index:2; + position:absolute; + top:0px; + left:0px; + z-index:2; + padding:20px 35px 20px 20px; + width:100%; + height:100%; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + font-weight:500; +} + +.erinyen .tp-thumb.selected .tp-thumb-more:before, +.erinyen .tp-thumb:hover .tp-thumb-more:before { + color:#aaa; + +} + +.erinyen .tp-thumb.selected .tp-thumb-over, +.erinyen .tp-thumb:hover .tp-thumb-over { + background:#fff; +} +.erinyen .tp-thumb.selected .tp-thumb-title, +.erinyen .tp-thumb:hover .tp-thumb-title { + color:#000; + +} + + +/* TABS */ +.erinyen .tp-tab-title { + color:#a8d8ee; + font-size:13px; + font-weight:700; + text-transform:uppercase; + font-family:"Roboto Slab" + margin-bottom:5px; +} + +.erinyen .tp-tab-desc { + font-size:18px; + font-weight:400; + color:#fff; + line-height:25px; + font-family:"Roboto Slab"; +} + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/gyges.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/gyges.css new file mode 100644 index 0000000..523cf31 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/gyges.css @@ -0,0 +1,209 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + GYGES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ + + +/* BULLETS */ +.gyges.tp-bullets { +} +.gyges.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background: #777; /* Old browsers */ + background: -moz-linear-gradient(top, #777 0%, #666666 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%,#777), color-stop(100%,#666666)); + background: -webkit-linear-gradient(top, #777 0%,#666666 100%); + background: -o-linear-gradient(top, #777 0%,#666666 100%); + background: -ms-linear-gradient(top, #777 0%,#666666 100%); + background: linear-gradient(to bottom, #777 0%,#666666 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#777", + endColorstr="#666666",GradientType=0 ); + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; + border-radius:10px; +} +.gyges .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#333; + border:3px solid #444; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.gyges .tp-bullet:hover, +.gyges .tp-bullet.selected { + background: #fff; /* Old browsers */ + background: -moz-linear-gradient(top, #fff 0%, #e1e1e1 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%,#fff), color-stop(100%,#e1e1e1)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #fff 0%,#e1e1e1 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #fff 0%,#e1e1e1 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #fff 0%,#e1e1e1 100%); /* IE10+ */ + background: linear-gradient(to bottom, #fff 0%,#e1e1e1 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", + endColorstr="#e1e1e1",GradientType=0 ); /* IE6-9 */ + +} +.gyges .tp-bullet-image { +} +.gyges .tp-bullet-title { +} + + +/* THUMBS */ +.gyges .tp-thumb { + opacity:1 + } +.gyges .tp-thumb-img-wrap { + padding:3px; + background:#000; + background-color:rgba(0,0,0,0.25); + display:inline-block; + + width:100%; + height:100%; + position:relative; + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; +} +.gyges .tp-thumb-image { + padding:3px; + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + } +.gyges .tp-thumb-title { + position:absolute; + bottom:100%; + display:inline-block; + left:50%; + background:rgba(255,255,255,0.8); + padding:10px 30px; + border-radius:4px; + -webkit-border-radius:4px; + margin-bottom:20px; + opacity:0; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform: translateZ(0.001px) translateX(-50%) translateY(14px); + transform-origin:50% 100%; + -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px); + -webkit-transform-origin:50% 100%; + white-space:nowrap; + } +.gyges .tp-thumb:hover .tp-thumb-title { + transform:rotateX(0deg) translateX(-50%); + -webkit-transform:rotateX(0deg) translateX(-50%); + opacity:1; +} + +.gyges .tp-thumb:hover .tp-thumb-img-wrap, + .gyges .tp-thumb.selected .tp-thumb-img-wrap { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + } +.gyges .tp-thumb-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(255,255,255,0.8) transparent transparent transparent; + bottom:-8px; + } + + +/* TABS */ +.gyges .tp-tab { + opacity:1; + padding:10px; + box-sizing:border-box; + font-family: "Roboto", sans-serif; + border-bottom: 1px solid rgba(255,255,255,0.15); + } +.gyges .tp-tab-image +{ + width:60px; + height:60px; max-height:100%; max-width:100%; + position:relative; + display:inline-block; + float:left; + +} +.gyges .tp-tab-content +{ + background:rgba(0,0,0,0); + position:relative; + padding:15px 15px 15px 85px; + left:0px; + overflow:hidden; + margin-top:-15px; + box-sizing:border-box; + color:#333; + display: inline-block; + width:100%; + height:100%; + position:absolute; } +.gyges .tp-tab-date + { + display:block; + color: rgba(255,255,255,0.25); + font-weight:500; + font-size:12px; + margin-bottom:0px; + } +.gyges .tp-tab-title +{ + display:block; + text-align:left; + color:#fff; + font-size:14px; + font-weight:500; + text-transform:none; + line-height:17px; +} +.gyges .tp-tab:hover, +.gyges .tp-tab.selected { + background:rgba(0,0,0,0.5); +} + +.gyges .tp-tab-mask { +} + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + +} +@media only screen and (max-width: 768px) { + +} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hades.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hades.css new file mode 100644 index 0000000..3f12ef7 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hades.css @@ -0,0 +1,256 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HADES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hades.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.15); + width:100px; + height:100px; + position:absolute; + display:block; + z-index:100; +} + +.hades.tparrows:before { + font-family: "revicons"; + font-size:30px; + color:#fff; + display:block; + line-height: 100px; + text-align: center; + transition: background 0.3s, color 0.3s; +} +.hades.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.hades.tparrows.tp-rightarrow:before { + content: "\e825"; +} + +.hades.tparrows:hover:before { + color:#aaa; + background:#fff; + background:rgba(255,255,255,1); + } +.hades .tp-arr-allwrapper { + position:absolute; + left:100%; + top:0px; + background:#888; + width:100px;height:100px; + -webkit-transition: all 0.3s; + transition: all 0.3s; + -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=0)"; + filter: alpha(opacity=0); + -moz-opacity: 0.0; + -khtml-opacity: 0.0; + opacity: 0.0; + -webkit-transform: rotatey(-90deg); + transform: rotatey(-90deg); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; +} +.hades.tp-rightarrow .tp-arr-allwrapper { + left:auto; + right:100%; + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; + -webkit-transform: rotatey(90deg); + transform: rotatey(90deg); +} + +.hades:hover .tp-arr-allwrapper { + -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=100)"; + filter: alpha(opacity=100); + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + -webkit-transform: rotatey(0deg); + transform: rotatey(0deg); + + } + +.hades .tp-arr-iwrapper { +} +.hades .tp-arr-imgholder { + background-size:cover; + position:absolute; + top:0px;left:0px; + width:100%;height:100%; +} +.hades .tp-arr-titleholder { +} +.hades .tp-arr-subtitleholder { +} + + +/* BULLETS */ +.hades.tp-bullets { +} +.hades.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.hades .tp-bullet { + width:3px; + height:3px; + position:absolute; + background:#888; + cursor: pointer; + border:5px solid #fff; + box-sizing:content-box; + box-shadow:0px 0px 3px 1px rgba(0,0,0,0.2); + -webkit-perspective:400; + perspective:400; + -webkit-transform:translatez(0.01px); + transform:translatez(0.01px); +} +.hades .tp-bullet:hover, +.hades .tp-bullet.selected { + background:#555; + +} + +.hades .tp-bullet-image { + position:absolute;top:-80px; left:-60px;width:120px;height:60px; + background-position:center center; + background-size:cover; + visibility:hidden; + opacity:0; + transition:all 0.3s; + -webkit-transform-style:flat; + transform-style:flat; + perspective:600; + -webkit-perspective:600; + transform: rotatex(-90deg); + -webkit-transform: rotatex(-90deg); + box-shadow:0px 0px 3px 1px rgba(0,0,0,0.2); + transform-origin:50% 100%; + -webkit-transform-origin:50% 100%; + + +} +.hades .tp-bullet:hover .tp-bullet-image { + display:block; + opacity:1; + transform: rotatex(0deg); + -webkit-transform: rotatex(0deg); + visibility:visible; + } +.hades .tp-bullet-title { +} + + +/* THUMBS */ +.hades .tp-thumb { + opacity:1 + } +.hades .tp-thumb-img-wrap { + border-radius:50%; + padding:3px; + display:inline-block; +background:#000; + background-color:rgba(0,0,0,0.25); + width:100%; + height:100%; + position:relative; + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; +} +.hades .tp-thumb-image { + padding:3px; + border-radius:50%; + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + } + + +.hades .tp-thumb:hover .tp-thumb-img-wrap, +.hades .tp-thumb.selected .tp-thumb-img-wrap { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + + } +.hades .tp-thumb-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(0,0,0,0.75) transparent transparent transparent; + bottom:-8px; + } + + +/* TABS */ +.hades .tp-tab { + opacity:1; + } + +.hades .tp-tab-title + { + display:block; + color:#333; + font-weight:600; + font-size:18px; + text-align:center; + line-height:25px; + } +.hades .tp-tab-price + { + display:block; + text-align:center; + color:#999; + font-size:16px; + margin-top:10px; + line-height:20px +} + +.hades .tp-tab-button { + display:inline-block; + margin-top:15px; + text-align:center; + padding:5px 15px; + color:#fff; + font-size:14px; + background:#219bd7; + border-radius:4px; + font-weight:400; +} +.hades .tp-tab-inner { + text-align:center; +} + + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hebe.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hebe.css new file mode 100644 index 0000000..1156bd4 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hebe.css @@ -0,0 +1,196 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HEBE SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hebe.tparrows { + cursor:pointer; + background:#fff; + min-width:70px; + min-height:70px; + position:absolute; + display:block; + z-index:100; +} +.hebe.tparrows:hover { +} +.hebe.tparrows:before { + font-family: "revicons"; + font-size:30px; + color:#aaa; + display:block; + line-height: 70px; + text-align: center; + -webkit-transition: color 0.3s; + -moz-transition: color 0.3s; + transition: color 0.3s; + z-index:2; + position:relative; + background:#fff; + min-width:70px; + min-height:70px; +} +.hebe.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.hebe.tparrows.tp-rightarrow:before { + content: "\e825"; +} +.hebe.tparrows:hover:before { + color:#000; + } +.tp-title-wrap { + position:absolute; + z-index:0; + display:inline-block; + background:#000; + background:rgba(0,0,0,0.75); + min-height:60px; + line-height:60px; + top:-10px; + margin-left:0px; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:scaleX(0); + -webkit-transform:scaleX(0); + transform-origin:0% 50%; + -webkit-transform-origin:0% 50%; +} + .hebe.tp-rightarrow .tp-title-wrap { + right:0px; + -webkit-transform-origin:100% 50%; + } +.hebe.tparrows:hover .tp-title-wrap { + transform:scaleX(1); + -webkit-transform:scaleX(1); +} +.hebe .tp-arr-titleholder { + position:relative; + text-transform:uppercase; + color:#fff; + font-weight:600; + font-size:12px; + line-height:90px; + white-space:nowrap; + padding:0px 20px 0px 90px; +} + +.hebe.tp-rightarrow .tp-arr-titleholder { + margin-left:0px; + padding:0px 90px 0px 20px; + } + +.hebe.tparrows:hover .tp-arr-titleholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition-delay: 0.1s; + opacity:1; +} + +.hebe .tp-arr-imgholder{ + width:90px; + height:90px; + position:absolute; + left:100%; + display:block; + background-size:cover; + background-position:center center; + top:0px; right:-90px; + } +.hebe.tp-rightarrow .tp-arr-imgholder{ + right:auto;left:-90px; + } + +/* BULLETS */ +.hebe.tp-bullets { +} +.hebe.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} + +.hebe .tp-bullet { + width:3px; + height:3px; + position:absolute; + background:#fff; + cursor: pointer; + border:5px solid #222; + border-radius:50%; + box-sizing:content-box; + -webkit-perspective:400; + perspective:400; + -webkit-transform:translateZ(0.01px); + transform:translateZ(0.01px); + transition:all 0.3s; +} +.hebe .tp-bullet:hover, +.hebe .tp-bullet.selected { + background:#222; + border-color:#fff; +} + +.hebe .tp-bullet-image { + position:absolute; + top:-90px; left:-40px; + width:70px; + height:70px; + background-position:center center; + background-size:cover; + visibility:hidden; + opacity:0; + transition:all 0.3s; + -webkit-transform-style:flat; + transform-style:flat; + perspective:600; + -webkit-perspective:600; + transform: scale(0); + -webkit-transform: scale(0); + transform-origin:50% 100%; + -webkit-transform-origin:50% 100%; +border-radius:6px; + + +} +.hebe .tp-bullet:hover .tp-bullet-image { + display:block; + opacity:1; + transform: scale(1); + -webkit-transform: scale(1); + visibility:visible; + } +.hebe .tp-bullet-title { +} + + +/* TABS */ +.hebe .tp-tab-title { + color:#a8d8ee; + font-size:13px; + font-weight:700; + text-transform:uppercase; + font-family:"Roboto Slab" + margin-bottom:5px; +} + +.hebe .tp-tab-desc { + font-size:18px; + font-weight:400; + color:#fff; + line-height:25px; + font-family:"Roboto Slab"; +} + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hephaistos.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hephaistos.css new file mode 100644 index 0000000..735eecf --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hephaistos.css @@ -0,0 +1,81 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HEPHAISTOS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hephaistos.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:100; + border-radius:50%; +} +.hephaistos.tparrows:hover { + background:#000; +} +.hephaistos.tparrows:before { + font-family: "revicons"; + font-size:18px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.hephaistos.tparrows.tp-leftarrow:before { + content: "\e82c"; + margin-left:-2px; + +} +.hephaistos.tparrows.tp-rightarrow:before { + content: "\e82d"; + margin-right:-2px; +} + + + +/* BULLETS */ +.hephaistos.tp-bullets { +} +.hephaistos.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.hephaistos .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#999; + border:3px solid #f5f5f5; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; + box-shadow: 0px 0px 2px 1px rgba(130,130,130, 0.3); + +} +.hephaistos .tp-bullet:hover, +.hephaistos .tp-bullet.selected { + background:#fff; + border-color:#000; +} +.hephaistos .tp-bullet-image { +} +.hephaistos .tp-bullet-title { +} + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hermes.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hermes.css new file mode 100644 index 0000000..df6cf50 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hermes.css @@ -0,0 +1,223 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HERMES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hermes.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:30px; + height:110px; + position:absolute; + display:block; + z-index:100; +} + +.hermes.tparrows:before { + font-family: "revicons"; + font-size:15px; + color:#fff; + display:block; + line-height: 110px; + text-align: center; + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition:all 0.3s; + -webkit-transition:all 0.3s; +} +.hermes.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.hermes.tparrows.tp-rightarrow:before { + content: "\e825"; +} +.hermes.tparrows.tp-leftarrow:hover:before { + transform:translateX(-20px); + -webkit-transform:translateX(-20px); + opacity:0; +} +.hermes.tparrows.tp-rightarrow:hover:before { + transform:translateX(20px); + -webkit-transform:translateX(20px); + opacity:0; +} + +.hermes .tp-arr-allwrapper { + overflow:hidden; + position:absolute; + width:180px; + height:140px; + top:0px; + left:0px; + visibility:hidden; + -webkit-transition: -webkit-transform 0.3s 0.3s; + transition: transform 0.3s 0.3s; + -webkit-perspective: 1000px; + perspective: 1000px; + } +.hermes.tp-rightarrow .tp-arr-allwrapper { + right:0px;left:auto; + } +.hermes.tparrows:hover .tp-arr-allwrapper { + visibility:visible; + } +.hermes .tp-arr-imgholder { + width:180px;position:absolute; + left:0px;top:0px;height:110px; + transform:translateX(-180px); + -webkit-transform:translateX(-180px); + transition:all 0.3s; + transition-delay:0.3s; +} +.hermes.tp-rightarrow .tp-arr-imgholder{ + transform:translateX(180px); + -webkit-transform:translateX(180px); + } + +.hermes.tparrows:hover .tp-arr-imgholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); +} +.hermes .tp-arr-titleholder { + top:110px; + width:180px; + text-align:left; + display:block; + padding:0px 10px; + line-height:30px; background:#000; + background:rgba(0,0,0,0.75);color:#fff; + font-weight:600; position:absolute; + font-size:12px; + white-space:nowrap; + letter-spacing:1px; + -webkit-transition: all 0.3s; + transition: all 0.3s; + -webkit-transform: rotateX(-90deg); + transform: rotateX(-90deg); + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; + box-sizing:border-box; + +} +.hermes.tparrows:hover .tp-arr-titleholder { + -webkit-transition-delay: 0.6s; + transition-delay: 0.6s; + -webkit-transform: rotateX(0deg); + transform: rotateX(0deg); +} + + +/* BULLETS */ +.hermes.tp-bullets { +} + +.hermes .tp-bullet { + overflow:hidden; + border-radius:50%; + width:16px; + height:16px; + background-color: rgba(0, 0, 0, 0); + box-shadow: inset 0 0 0 2px #FFF; + -webkit-transition: background 0.3s ease; + transition: background 0.3s ease; + position:absolute; +} + +.hermes .tp-bullet:hover { + background-color: rgba(0, 0, 0, 0.2); +} +.hermes .tp-bullet:after { + content: ' '; + position: absolute; + bottom: 0; + height: 0; + left: 0; + width: 100%; + background-color: #FFF; + box-shadow: 0 0 1px #FFF; + -webkit-transition: height 0.3s ease; + transition: height 0.3s ease; +} +.hermes .tp-bullet.selected:after { + height:100%; +} + + +/* TABS */ +.hermes .tp-tab { + opacity:1; + padding-right:10px; + box-sizing:border-box; + } +.hermes .tp-tab-image +{ + width:100%; + height:60%; + position:relative; +} +.hermes .tp-tab-content +{ + background:rgb(54,54,54); + position:absolute; + padding:20px 20px 20px 30px; + box-sizing:border-box; + color:#fff; + display:block; + width:100%; + min-height:40%; + bottom:0px; + left:-10px; + } +.hermes .tp-tab-date + { + display:block; + color:#888; + font-weight:600; + font-size:12px; + margin-bottom:10px; + } +.hermes .tp-tab-title +{ + display:block; + color:#fff; + font-size:16px; + font-weight:800; + text-transform:uppercase; + line-height:19px; +} + +.hermes .tp-tab.selected .tp-tab-title:after { + width: 0px; + height: 0px; + border-style: solid; + border-width: 30px 0 30px 10px; + border-color: transparent transparent transparent rgb(54,54,54); + content:" "; + position:absolute; + right:-9px; + bottom:50%; + margin-bottom:-30px; +} +.hermes .tp-tab-mask { + padding-right:10px !important; + } + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + .hermes .tp-tab .tp-tab-title {font-size:14px;line-height:16px;} + .hermes .tp-tab-date { font-size:11px; line-height:13px;margin-bottom:10px;} + .hermes .tp-tab-content { padding:15px 15px 15px 25px;} +} +@media only screen and (max-width: 768px) { + .hermes .tp-tab .tp-tab-title {font-size:12px;line-height:14px;} + .hermes .tp-tab-date {font-size:10px; line-height:12px;margin-bottom:5px;} + .hermes .tp-tab-content {padding:10px 10px 10px 20px;} +} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hesperiden.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hesperiden.css new file mode 100644 index 0000000..4994583 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/hesperiden.css @@ -0,0 +1,187 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HESPERIDEN SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hesperiden.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:100; + border-radius: 50%; +} +.hesperiden.tparrows:hover { + background:#000; +} +.hesperiden.tparrows:before { + font-family: "revicons"; + font-size:20px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.hesperiden.tparrows.tp-leftarrow:before { + content: "\e82c"; + margin-left:-3px; +} +.hesperiden.tparrows.tp-rightarrow:before { + content: "\e82d"; + margin-right:-3px; +} + +/* BULLETS */ +.hesperiden.tp-bullets { +} +.hesperiden.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; + border-radius:8px; + +} +.hesperiden .tp-bullet { + width:12px; + height:12px; + position:absolute; + background: #999999; /* old browsers */ + background: -moz-linear-gradient(top, #999999 0%, #e1e1e1 100%); /* ff3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), + color-stop(100%,#e1e1e1)); /* chrome,safari4+ */ + background: -webkit-linear-gradient(top, #999999 0%,#e1e1e1 100%); /* chrome10+,safari5.1+ */ + background: -o-linear-gradient(top, #999999 0%,#e1e1e1 100%); /* opera 11.10+ */ + background: -ms-linear-gradient(top, #999999 0%,#e1e1e1 100%); /* ie10+ */ + background: linear-gradient(to bottom, #999999 0%,#e1e1e1 100%); /* w3c */ + filter: progid:dximagetransform.microsoft.gradient( + startcolorstr="#999999", endcolorstr="#e1e1e1",gradienttype=0 ); /* ie6-9 */ + border:3px solid #e5e5e5; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.hesperiden .tp-bullet:hover, +.hesperiden .tp-bullet.selected { + background:#666; +} +.hesperiden .tp-bullet-image { +} +.hesperiden .tp-bullet-title { +} + + +/* THUMBS */ +.hesperiden .tp-thumb { + opacity:1; + -webkit-perspective: 600px; + perspective: 600px; +} +.hesperiden .tp-thumb .tp-thumb-title { + font-size:12px; + position:absolute; + margin-top:-10px; + color:#fff; + display:block; + z-index:1000; + background-color:#000; + padding:5px 10px; + bottom:0px; + left:0px; + width:100%; + box-sizing:border-box; + text-align:center; + overflow:hidden; + white-space:nowrap; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform:rotatex(90deg) translatez(0.001px); + transform-origin:50% 100%; + -webkit-transform:rotatex(90deg) translatez(0.001px); + -webkit-transform-origin:50% 100%; + opacity:0; + } +.hesperiden .tp-thumb:hover .tp-thumb-title { + transform:rotatex(0deg); + -webkit-transform:rotatex(0deg); + opacity:1; +} + +/* TABS */ +.hesperiden .tp-tab { + opacity:1; + padding:10px; + box-sizing:border-box; + font-family: "Roboto", sans-serif; + border-bottom: 1px solid #e5e5e5; + } +.hesperiden .tp-tab-image +{ + width:60px; + height:60px; max-height:100%; max-width:100%; + position:relative; + display:inline-block; + float:left; + +} +.hesperiden .tp-tab-content +{ + background:rgba(0,0,0,0); + position:relative; + padding:15px 15px 15px 85px; + left:0px; + overflow:hidden; + margin-top:-15px; + box-sizing:border-box; + color:#333; + display: inline-block; + width:100%; + height:100%; + position:absolute; } +.hesperiden .tp-tab-date + { + display:block; + color: #aaa; + font-weight:500; + font-size:12px; + margin-bottom:0px; + } +.hesperiden .tp-tab-title +{ + display:block; + text-align:left; + color:#333; + font-size:14px; + font-weight:500; + text-transform:none; + line-height:17px; +} +.hesperiden .tp-tab:hover, +.hesperiden .tp-tab.selected { + background:#eee; +} + +.hesperiden .tp-tab-mask { +} + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + +} +@media only screen and (max-width: 768px) { + +} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/metis.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/metis.css new file mode 100644 index 0000000..758382a --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/metis.css @@ -0,0 +1,206 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + METIS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.metis.tparrows { + background:#fff; + padding:10px; + transition:all 0.3s; + -webkit-transition:all 0.3s; + width:60px; + height:60px; + box-sizing:border-box; + } + + .metis.tparrows:hover { + background:#fff; + background:rgba(255,255,255,0.75); + } + + .metis.tparrows:before { + color:#000; + transition:all 0.3s; + -webkit-transition:all 0.3s; + } + + .metis.tparrows:hover:before { + transform:scale(1.5); + } + + +/* BULLETS */ +.metis .tp-bullet { + opacity:1; + width:50px; + height:50px; + padding:3px; + background:#000; + background-color:rgba(0,0,0,0.25); + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + border-radius:50%; + } + +.metis .tp-bullet-image { + + border-radius:50%; + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + width:44px; + height:44px; + background-size:cover; + background-position:center center; + } +.metis .tp-bullet-title { + position:absolute; + bottom:65px; + display:inline-block; + left:50%; + background:#000; + background:rgba(0,0,0,0.75); + color:#fff; + padding:10px 30px; + border-radius:4px; + -webkit-border-radius:4px; + opacity:0; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform: translateZ(0.001px) translateX(-50%) translateY(14px); + transform-origin:50% 100%; + -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px); + -webkit-transform-origin:50% 100%; + opacity:0; + white-space:nowrap; + } + +.metis .tp-bullet:hover .tp-bullet-title { + transform:rotateX(0deg) translateX(-50%); + -webkit-transform:rotateX(0deg) translateX(-50%); + opacity:1; +} + +.metis .tp-bullet.selected, +.metis .tp-bullet:hover { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + + } +.metis .tp-bullet-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(0,0,0,0.75) transparent transparent transparent; + bottom:-8px; + } + +/* METIS TAB */ +.metis .tp-tab-number { + color: #fff; + font-size: 40px; + line-height: 30px; + font-weight: 400; + font-family: "Playfair Display"; + width: 50px; + margin-right: 17px; + display: inline-block; + float: left; + } + .metis .tp-tab-mask { + padding-left: 20px; + left: 0px; + max-width: 90px !important; + transition: 0.4s padding-left, 0.4s left, 0.4s max-width; + } + .metis:hover .tp-tab-mask { + padding-left: 0px; + left: 50px; + max-width: 500px !important; + } + .metis .tp-tab-divider { + border-right: 1px solid transparent; + height: 30px; + width: 1px; + margin-top: 5px; + display: inline-block; + float: left; + } + .metis .tp-tab-title { + color: #fff; + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-family: "Playfair Display"; + position: relative; + padding-top: 10px; + padding-left: 30px; + display: inline-block; + transform: translateX(-100%); + transition: 0.4s all; + } + .metis .tp-tab-title-mask { + position: absolute; + overflow: hidden; + left: 67px; + } + .metis:hover .tp-tab-title { + transform: translateX(0); + } + .metis .tp-tab { + opacity: 0.15; + transition: 0.4s all; + } + .metis .tp-tab:hover, + .metis .tp-tab.selected { + opacity: 1; + } + .metis .tp-tab.selected .tp-tab-divider { + border-right: 1px solid #cdb083; + } + .metis.tp-tabs { + max-width: 118px !important; + padding-left: 50px; + } + .metis.tp-tabs:before { + content: " "; + height: 100%; + width: 88px; + background: rgba(0, 0, 0, 0.15); + border-right: 1px solid rgba(255, 255, 255, 0.10); + left: 0px; + top: 0px; + position: absolute; + transition: 0.4s all; + } + .metis.tp-tabs:hover:before { + width: 118px; + } + @media (max-width: 499px) { + .metis.tp-tabs:before { + background: rgba(0, 0, 0, 0.75); + } + } diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/persephone.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/persephone.css new file mode 100644 index 0000000..3ea192f --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/persephone.css @@ -0,0 +1,74 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + PERSEPHONE SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.persephone.tparrows { + cursor:pointer; + background:#aaa; + background:rgba(200,200,200,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:100; + border:1px solid #f5f5f5; +} +.persephone.tparrows:hover { + background:#333; +} +.persephone.tparrows:before { + font-family: "revicons"; + font-size:15px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.persephone.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.persephone.tparrows.tp-rightarrow:before { + content: "\e825"; +} + + + +/* BULLETS */ +.persephone.tp-bullets { +} +.persephone.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:#transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.persephone .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#aaa; + border:1px solid #e5e5e5; + cursor: pointer; + box-sizing:content-box; +} +.persephone .tp-bullet:hover, +.persephone .tp-bullet.selected { + background:#222; +} +.persephone .tp-bullet-image { +} +.persephone .tp-bullet-title { +} + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/uranus.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/uranus.css new file mode 100644 index 0000000..b3fc192 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/uranus.css @@ -0,0 +1,72 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + URANUS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.uranus.tparrows { + width:50px; + height:50px; + background:transparent; + } + .uranus.tparrows:before { + width:50px; + height:50px; + line-height:50px; + font-size:40px; + transition:all 0.3s; +-webkit-transition:all 0.3s; + } + + .uranus.tparrows:hover:before { + opacity:0.75; + } + +/* BULLETS */ +.uranus .tp-bullet{ + border-radius: 50%; + box-shadow: 0 0 0 2px rgba(255, 255, 255, 0); + -webkit-transition: box-shadow 0.3s ease; + transition: box-shadow 0.3s ease; + background:transparent; +} +.uranus .tp-bullet.selected, +.uranus .tp-bullet:hover { + box-shadow: 0 0 0 2px #FFF; + border:none; + border-radius: 50%; + + background:transparent; +} + + + +.uranus .tp-bullet-inner { + background-color: rgba(255, 255, 255, 0.7); + -webkit-transition: background-color 0.3s ease, -webkit-transform 0.3s ease; + transition: background-color 0.3s ease, transform 0.3s ease; + top: 0; + left: 0; + width: 100%; + height: 100%; + outline: none; + border-radius: 50%; + background-color: #FFF; + background-color: rgba(255, 255, 255, 0.3); + text-indent: -999em; + cursor: pointer; + position: absolute; +} + +.uranus .tp-bullet.selected .tp-bullet-inner, +.uranus .tp-bullet:hover .tp-bullet-inner{ + transform: scale(0.4); + -webkit-transform: scale(0.4); + background-color:#fff; +} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/zeus.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/zeus.css new file mode 100644 index 0000000..2631f2e --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation-skins/zeus.css @@ -0,0 +1,280 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ZEUS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.zeus.tparrows { + cursor:pointer; + min-width:70px; + min-height:70px; + position:absolute; + display:block; + z-index:100; + border-radius:35px; + overflow:hidden; + background:rgba(0,0,0,0.10); +} + +.zeus.tparrows:before { + font-family: "revicons"; + font-size:20px; + color:#fff; + display:block; + line-height: 70px; + text-align: center; + z-index:2; + position:relative; +} +.zeus.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.zeus.tparrows.tp-rightarrow:before { + content: "\e825"; +} + +.zeus .tp-title-wrap { + background:#000; + background:rgba(0,0,0,0.5); + width:100%; + height:100%; + top:0px; + left:0px; + position:absolute; + opacity:0; + transform:scale(0); + -webkit-transform:scale(0); + transition: all 0.3s; + -webkit-transition:all 0.3s; + -moz-transition:all 0.3s; + border-radius:50%; + } +.zeus .tp-arr-imgholder { + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + background-position:center center; + background-size:cover; + border-radius:50%; + transform:translateX(-100%); + -webkit-transform:translateX(-100%); + transition: all 0.3s; + -webkit-transition:all 0.3s; + -moz-transition:all 0.3s; + + } +.zeus.tp-rightarrow .tp-arr-imgholder { + transform:translateX(100%); + -webkit-transform:translateX(100%); + } +.zeus.tparrows:hover .tp-arr-imgholder { + transform:translateX(0); + -webkit-transform:translateX(0); + opacity:1; +} + +.zeus.tparrows:hover .tp-title-wrap { + transform:scale(1); + -webkit-transform:scale(1); + opacity:1; +} + + +/* BULLETS */ +.zeus .tp-bullet { + box-sizing:content-box; -webkit-box-sizing:content-box; border-radius:50%; + background-color: rgba(0, 0, 0, 0); + -webkit-transition: opacity 0.3s ease; + transition: opacity 0.3s ease; + width:13px;height:13px; + border:2px solid #fff; + } +.zeus .tp-bullet:after { + content: ""; + position: absolute; + width: 100%; + height: 100%; + left: 0; + border-radius: 50%; + background-color: #FFF; + -webkit-transform: scale(0); + transform: scale(0); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; + -webkit-transition: -webkit-transform 0.3s ease; + transition: transform 0.3s ease; +} +.zeus .tp-bullet:hover:after, +.zeus .tp-bullet.selected:after{ + -webkit-transform: scale(1.2); + transform: scale(1.2); +} + + .zeus .tp-bullet-image, + .zeus .tp-bullet-imageoverlay{ + width:135px; + height:60px; + position:absolute; + background:#000; + background:rgba(0,0,0,0.5); + bottom:25px; + left:50%; + margin-left:-65px; + box-sizing:border-box; + background-size:cover; + background-position:center center; + visibility:hidden; + opacity:0; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; + border-radius:4px; + +} + + +.zeus .tp-bullet-title, +.zeus .tp-bullet-imageoverlay { + z-index:2; + -webkit-transition: all 0.5s ease; + transition: all 0.5s ease; +} +.zeus .tp-bullet-title { + color:#fff; + text-align:center; + line-height:15px; + font-size:13px; + font-weight:600; + z-index:3; + visibility:hidden; + opacity:0; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; + position:absolute; + bottom:45px; + width:135px; + vertical-align:middle; + left:-57px; +} + +.zeus .tp-bullet:hover .tp-bullet-title, +.zeus .tp-bullet:hover .tp-bullet-image, +.zeus .tp-bullet:hover .tp-bullet-imageoverlay{ + opacity:1; + visibility:visible; + -webkit-transform:translateY(0px); + transform:translateY(0px); + } + +/* THUMBS */ +.zeus .tp-thumb { +opacity:1 +} + +.zeus .tp-thumb-over { + background:#000; + background:rgba(0,0,0,0.25); + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + z-index:1; + -webkit-transition:all 0.3s; + transition:all 0.3s; +} + +.zeus .tp-thumb-more:before { + font-family: "revicons"; + font-size:12px; + color:#aaa; + color:rgba(255,255,255,0.75); + display:block; + line-height: 12px; + text-align: left; + z-index:2; + position:absolute; + top:20px; + right:20px; + z-index:2; +} +.zeus .tp-thumb-more:before { + content: "\e825"; +} + +.zeus .tp-thumb-title { + font-family:"Raleway"; + letter-spacing:1px; + font-size:12px; + color:#fff; + display:block; + line-height: 15px; + text-align: left; + z-index:2; + position:absolute; + top:0px; + left:0px; + z-index:2; + padding:20px 35px 20px 20px; + width:100%; + height:100%; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + font-weight:500; +} + +.zeus .tp-thumb.selected .tp-thumb-more:before, +.zeus .tp-thumb:hover .tp-thumb-more:before { + color:#aaa; + +} + +.zeus .tp-thumb.selected .tp-thumb-over, +.zeus .tp-thumb:hover .tp-thumb-over { + background:#000; +} +.zeus .tp-thumb.selected .tp-thumb-title, +.zeus .tp-thumb:hover .tp-thumb-title { + color:#fff; + +} + + +/* TABS */ +.zeus .tp-tab { + opacity:1; + box-sizing:border-box; +} + +.zeus .tp-tab-title { +display: block; +text-align: center; +background: rgba(0,0,0,0.25); +font-family: "Roboto Slab", serif; +font-weight: 700; +font-size: 13px; +line-height: 13px; +color: #fff; +padding: 9px 10px; } + +.zeus .tp-tab:hover .tp-tab-title, +.zeus .tp-tab.selected .tp-tab-title { + color: #000; + background:rgba(255,255,255,1); +} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/navigation.css b/public/assets/plugins/rs-plugin-5.3.1/css/navigation.css new file mode 100644 index 0000000..385796a --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/navigation.css @@ -0,0 +1,2642 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ARES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +.ares.tparrows { + cursor:pointer; + background:#fff; + min-width:60px; + min-height:60px; + position:absolute; + display:block; + z-index:100; + border-radius:50%; +} +.ares.tparrows:hover { +} +.ares.tparrows:before { + font-family: "revicons"; + font-size:25px; + color:#aaa; + display:block; + line-height: 60px; + text-align: center; + -webkit-transition: color 0.3s; + -moz-transition: color 0.3s; + transition: color 0.3s; + z-index:2; + position:relative; +} +.ares.tparrows.tp-leftarrow:before { + content: "\e81f"; +} +.ares.tparrows.tp-rightarrow:before { + content: "\e81e"; +} +.ares.tparrows:hover:before { + color:#000; + } +.ares .tp-title-wrap { + position:absolute; + z-index:1; + display:inline-block; + background:#fff; + min-height:60px; + line-height:60px; + top:0px; + margin-left:30px; + border-radius:0px 30px 30px 0px; + overflow:hidden; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:scaleX(0); + -webkit-transform:scaleX(0); + transform-origin:0% 50%; + -webkit-transform-origin:0% 50%; +} + .ares.tp-rightarrow .tp-title-wrap { + right:0px; + margin-right:30px;margin-left:0px; + -webkit-transform-origin:100% 50%; +border-radius:30px 0px 0px 30px; + } +.ares.tparrows:hover .tp-title-wrap { + transform:scaleX(1) scaleY(1); + -webkit-transform:scaleX(1) scaleY(1); +} +.ares .tp-arr-titleholder { + position:relative; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:translateX(200px); + text-transform:uppercase; + color:#000; + font-weight:400; + font-size:14px; + line-height:60px; + white-space:nowrap; + padding:0px 20px; + margin-left:10px; + opacity:0; +} + +.ares.tp-rightarrow .tp-arr-titleholder { + transform:translateX(-200px); + margin-left:0px; margin-right:10px; + } + +.ares.tparrows:hover .tp-arr-titleholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition-delay: 0.1s; + opacity:1; +} + +/* BULLETS */ +.ares.tp-bullets { +} +.ares.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.ares .tp-bullet { + width:13px; + height:13px; + position:absolute; + background:#e5e5e5; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.ares .tp-bullet:hover, +.ares .tp-bullet.selected { + background:#fff; +} +.ares .tp-bullet-title { + position:absolute; + color:#888; + font-size:12px; + padding:0px 10px; + font-weight:600; + right:27px; + top:-4px; + background:#fff; + background:rgba(255,255,255,0.75); + visibility:hidden; + transform:translateX(-20px); + -webkit-transform:translateX(-20px); + transition:transform 0.3s; + -webkit-transition:transform 0.3s; + line-height:20px; + white-space:nowrap; +} + +.ares .tp-bullet-title:after { + width: 0px; + height: 0px; + border-style: solid; + border-width: 10px 0 10px 10px; + border-color: transparent transparent transparent rgba(255,255,255,0.75); + content:" "; + position:absolute; + right:-10px; + top:0px; +} + +.ares .tp-bullet:hover .tp-bullet-title{ + visibility:visible; + transform:translateX(0px); + -webkit-transform:translateX(0px); +} + +.ares .tp-bullet.selected:hover .tp-bullet-title { + background:#fff; + } +.ares .tp-bullet.selected:hover .tp-bullet-title:after { + border-color:transparent transparent transparent #fff; +} +.ares.tp-bullets:hover .tp-bullet-title { + visibility:hidden; +} +.ares.tp-bullets:hover .tp-bullet:hover .tp-bullet-title { + visibility:visible; + } + +/* TABS */ +.ares .tp-tab { + opacity:1; + padding:10px; + box-sizing:border-box; + font-family: "Roboto", sans-serif; + border-bottom: 1px solid #e5e5e5; + } +.ares .tp-tab-image +{ + width:60px; + height:60px; max-height:100%; max-width:100%; + position:relative; + display:inline-block; + float:left; + +} +.ares .tp-tab-content +{ + background:rgba(0,0,0,0); + position:relative; + padding:15px 15px 15px 85px; + left:0px; + overflow:hidden; + margin-top:-15px; + box-sizing:border-box; + color:#333; + display: inline-block; + width:100%; + height:100%; + position:absolute; } +.ares .tp-tab-date + { + display:block; + color: #aaa; + font-weight:500; + font-size:12px; + margin-bottom:0px; + } +.ares .tp-tab-title +{ + display:block; + text-align:left; + color:#333; + font-size:14px; + font-weight:500; + text-transform:none; + line-height:17px; +} +.ares .tp-tab:hover, +.ares .tp-tab.selected { + background:#eee; +} + +.ares .tp-tab-mask { +} + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + +} +@media only screen and (max-width: 768px) { + +} + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + CUSTOM SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.custom.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:10000; +} +.custom.tparrows:hover { + background:#000; +} +.custom.tparrows:before { + font-family: "revicons"; + font-size:15px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.custom.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.custom.tparrows.tp-rightarrow:before { + content: "\e825"; +} + + + +/* BULLETS */ +.custom.tp-bullets { +} +.custom.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.custom .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#aaa; + background:rgba(125,125,125,0.5); + cursor: pointer; + box-sizing:content-box; +} +.custom .tp-bullet:hover, +.custom .tp-bullet.selected { + background:rgb(125,125,125); +} +.custom .tp-bullet-image { +} +.custom .tp-bullet-title { +} + + +/* THUMBS */ + + +/* TABS */ + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + DIONE SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.dione.tparrows { + height:100%; + width:100px; + background:transparent; + background:rgba(0,0,0,0); + line-height:100%; + transition:all 0.3s; +-webkit-transition:all 0.3s; +} + +.dione.tparrows:hover { + background:rgba(0,0,0,0.45); + } +.dione .tp-arr-imgwrapper { + width:100px; + left:0px; + position:absolute; + height:100%; + top:0px; + overflow:hidden; + } +.dione.tp-rightarrow .tp-arr-imgwrapper { +left:auto; +right:0px; +} + +.dione .tp-arr-imgholder { +background-position:center center; +background-size:cover; +width:100px; +height:100%; +top:0px; +visibility:hidden; +transform:translateX(-50px); +-webkit-transform:translateX(-50px); +transition:all 0.3s; +-webkit-transition:all 0.3s; +opacity:0; +left:0px; +} + +.dione.tparrows.tp-rightarrow .tp-arr-imgholder { + right:0px; + left:auto; + transform:translateX(50px); + -webkit-transform:translateX(50px); +} + +.dione.tparrows:before { +position:absolute; +line-height:30px; +margin-left:-22px; +top:50%; +left:50%; +font-size:30px; +margin-top:-15px; +transition:all 0.3s; +-webkit-transition:all 0.3s; +} + +.dione.tparrows.tp-rightarrow:before { +margin-left:6px; +} + +.dione.tparrows:hover:before { + transform:translateX(-20px); +-webkit-transform:translateX(-20px); +opacity:0; +} + +.dione.tparrows.tp-rightarrow:hover:before { + transform:translateX(20px); +-webkit-transform:translateX(20px); +} + +.dione.tparrows:hover .tp-arr-imgholder { + transform:translateX(0px); +-webkit-transform:translateX(0px); +opacity:1; +visibility:visible; +} + + + +/* BULLETS */ +.dione .tp-bullet { + opacity:1; + width:50px; + height:50px; + padding:3px; + background:#000; + background-color:rgba(0,0,0,0.25); + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + + } + +.dione .tp-bullet-image { + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + width:44px; + height:44px; + background-size:cover; + background-position:center center; + } +.dione .tp-bullet-title { + position:absolute; + bottom:65px; + display:inline-block; + left:50%; + background:#000; + background:rgba(0,0,0,0.75); + color:#fff; + padding:10px 30px; + border-radius:4px; + -webkit-border-radius:4px; + opacity:0; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform: translateZ(0.001px) translateX(-50%) translateY(14px); + transform-origin:50% 100%; + -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px); + -webkit-transform-origin:50% 100%; + opacity:0; + white-space:nowrap; + } + +.dione .tp-bullet:hover .tp-bullet-title { + transform:rotateX(0deg) translateX(-50%); + -webkit-transform:rotateX(0deg) translateX(-50%); + opacity:1; +} + +.dione .tp-bullet.selected, +.dione .tp-bullet:hover { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + + } +.dione .tp-bullet-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(0,0,0,0.75) transparent transparent transparent; + bottom:-8px; + } + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ERINYEN SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.erinyen.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + min-width:70px; + min-height:70px; + position:absolute; + display:block; + z-index:1000; + border-radius:35px; +} + +.erinyen.tparrows:before { + font-family: "revicons"; + font-size:20px; + color:#fff; + display:block; + line-height: 70px; + text-align: center; + z-index:2; + position:relative; +} +.erinyen.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.erinyen.tparrows.tp-rightarrow:before { + content: "\e825"; +} + +.erinyen .tp-title-wrap { + position:absolute; + z-index:1; + display:inline-block; + background:#000; + background:rgba(0,0,0,0.5); + min-height:70px; + line-height:70px; + top:0px; + margin-left:0px; + border-radius:35px; + overflow:hidden; + transition: opacity 0.3s; + -webkit-transition:opacity 0.3s; + -moz-transition:opacity 0.3s; + -webkit-transform: scale(0); + -moz-transform: scale(0); + transform: scale(0); + visibility:hidden; + opacity:0; +} + +.erinyen.tparrows:hover .tp-title-wrap{ + -webkit-transform: scale(1); + -moz-transform: scale(1); + transform: scale(1); + opacity:1; + visibility:visible; +} + + .erinyen.tp-rightarrow .tp-title-wrap { + right:0px; + margin-right:0px;margin-left:0px; + -webkit-transform-origin:100% 50%; + border-radius:35px; + padding-right:20px; + padding-left:10px; + } + + +.erinyen.tp-leftarrow .tp-title-wrap { + padding-left:20px; + padding-right:10px; +} + +.erinyen .tp-arr-titleholder { + letter-spacing: 3px; + position:relative; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:translateX(200px); + text-transform:uppercase; + color:#fff; + font-weight:600; + font-size:13px; + line-height:70px; + white-space:nowrap; + padding:0px 20px; + margin-left:11px; + opacity:0; +} + +.erinyen .tp-arr-imgholder { + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + background-position:center center; + background-size:cover; + } + .erinyen .tp-arr-img-over { + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + background:#000; + background:rgba(0,0,0,0.5); + } +.erinyen.tp-rightarrow .tp-arr-titleholder { + transform:translateX(-200px); + margin-left:0px; margin-right:11px; + } + +.erinyen.tparrows:hover .tp-arr-titleholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition-delay: 0.1s; + opacity:1; +} + +/* BULLETS */ +.erinyen.tp-bullets { +} +.erinyen.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background: #555555; /* old browsers */ + background: -moz-linear-gradient(top, #555555 0%, #222222 100%); /* ff3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#555555), color-stop(100%,#222222)); /* chrome,safari4+ */ + background: -webkit-linear-gradient(top, #555555 0%,#222222 100%); /* chrome10+,safari5.1+ */ + background: -o-linear-gradient(top, #555555 0%,#222222 100%); /* opera 11.10+ */ + background: -ms-linear-gradient(top, #555555 0%,#222222 100%); /* ie10+ */ + background: linear-gradient(to bottom, #555555 0%,#222222 100%); /* w3c */ + filter: progid:dximagetransform.microsoft.gradient( startcolorstr="#555555", endcolorstr="#222222",gradienttype=0 ); /* ie6-9 */ + padding:10px 15px; + margin-left:-15px;margin-top:-10px; + box-sizing:content-box; + border-radius:10px; + box-shadow:0px 0px 2px 1px rgba(33,33,33,0.3); +} +.erinyen .tp-bullet { + width:13px; + height:13px; + position:absolute; + background:#111; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.erinyen .tp-bullet:hover, +.erinyen .tp-bullet.selected { + background: #e5e5e5; /* old browsers */ +background: -moz-linear-gradient(top, #e5e5e5 0%, #999999 100%); /* ff3.6+ */ +background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#999999)); /* chrome,safari4+ */ +background: -webkit-linear-gradient(top, #e5e5e5 0%,#999999 100%); /* chrome10+,safari5.1+ */ +background: -o-linear-gradient(top, #e5e5e5 0%,#999999 100%); /* opera 11.10+ */ +background: -ms-linear-gradient(top, #e5e5e5 0%,#999999 100%); /* ie10+ */ +background: linear-gradient(to bottom, #e5e5e5 0%,#999999 100%); /* w3c */ +filter: progid:dximagetransform.microsoft.gradient( startcolorstr="#e5e5e5", endcolorstr="#999999",gradienttype=0 ); /* ie6-9 */ + border:1px solid #555; + width:12px;height:12px; +} +.erinyen .tp-bullet-image { +} +.erinyen .tp-bullet-title { +} + + +/* THUMBS */ +.erinyen .tp-thumb { +opacity:1 +} + +.erinyen .tp-thumb-over { + background:#000; + background:rgba(0,0,0,0.25); + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + z-index:1; + -webkit-transition:all 0.3s; + transition:all 0.3s; +} + +.erinyen .tp-thumb-more:before { + font-family: "revicons"; + font-size:12px; + color:#aaa; + color:rgba(255,255,255,0.75); + display:block; + line-height: 12px; + text-align: left; + z-index:2; + position:absolute; + top:20px; + right:20px; + z-index:2; +} +.erinyen .tp-thumb-more:before { + content: "\e825"; +} + +.erinyen .tp-thumb-title { + font-family:"Raleway"; + letter-spacing:1px; + font-size:12px; + color:#fff; + display:block; + line-height: 15px; + text-align: left; + z-index:2; + position:absolute; + top:0px; + left:0px; + z-index:2; + padding:20px 35px 20px 20px; + width:100%; + height:100%; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + font-weight:500; +} + +.erinyen .tp-thumb.selected .tp-thumb-more:before, +.erinyen .tp-thumb:hover .tp-thumb-more:before { + color:#aaa; + +} + +.erinyen .tp-thumb.selected .tp-thumb-over, +.erinyen .tp-thumb:hover .tp-thumb-over { + background:#fff; +} +.erinyen .tp-thumb.selected .tp-thumb-title, +.erinyen .tp-thumb:hover .tp-thumb-title { + color:#000; + +} + + +/* TABS */ +.erinyen .tp-tab-title { + color:#a8d8ee; + font-size:13px; + font-weight:700; + text-transform:uppercase; + font-family:"Roboto Slab" + margin-bottom:5px; +} + +.erinyen .tp-tab-desc { + font-size:18px; + font-weight:400; + color:#fff; + line-height:25px; + font-family:"Roboto Slab"; +} + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + GYGES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ + + +/* BULLETS */ +.gyges.tp-bullets { +} +.gyges.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background: #777; /* Old browsers */ + background: -moz-linear-gradient(top, #777 0%, #666666 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%,#777), color-stop(100%,#666666)); + background: -webkit-linear-gradient(top, #777 0%,#666666 100%); + background: -o-linear-gradient(top, #777 0%,#666666 100%); + background: -ms-linear-gradient(top, #777 0%,#666666 100%); + background: linear-gradient(to bottom, #777 0%,#666666 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#777", + endColorstr="#666666",GradientType=0 ); + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; + border-radius:10px; +} +.gyges .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#333; + border:3px solid #444; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.gyges .tp-bullet:hover, +.gyges .tp-bullet.selected { + background: #fff; /* Old browsers */ + background: -moz-linear-gradient(top, #fff 0%, #e1e1e1 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%,#fff), color-stop(100%,#e1e1e1)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #fff 0%,#e1e1e1 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #fff 0%,#e1e1e1 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #fff 0%,#e1e1e1 100%); /* IE10+ */ + background: linear-gradient(to bottom, #fff 0%,#e1e1e1 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", + endColorstr="#e1e1e1",GradientType=0 ); /* IE6-9 */ + +} +.gyges .tp-bullet-image { +} +.gyges .tp-bullet-title { +} + + +/* THUMBS */ +.gyges .tp-thumb { + opacity:1 + } +.gyges .tp-thumb-img-wrap { + padding:3px; + background:#000; + background-color:rgba(0,0,0,0.25); + display:inline-block; + + width:100%; + height:100%; + position:relative; + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; +} +.gyges .tp-thumb-image { + padding:3px; + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + } +.gyges .tp-thumb-title { + position:absolute; + bottom:100%; + display:inline-block; + left:50%; + background:rgba(255,255,255,0.8); + padding:10px 30px; + border-radius:4px; + -webkit-border-radius:4px; + margin-bottom:20px; + opacity:0; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform: translateZ(0.001px) translateX(-50%) translateY(14px); + transform-origin:50% 100%; + -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px); + -webkit-transform-origin:50% 100%; + white-space:nowrap; + } +.gyges .tp-thumb:hover .tp-thumb-title { + transform:rotateX(0deg) translateX(-50%); + -webkit-transform:rotateX(0deg) translateX(-50%); + opacity:1; +} + +.gyges .tp-thumb:hover .tp-thumb-img-wrap, + .gyges .tp-thumb.selected .tp-thumb-img-wrap { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + } +.gyges .tp-thumb-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(255,255,255,0.8) transparent transparent transparent; + bottom:-8px; + } + + +/* TABS */ +.gyges .tp-tab { + opacity:1; + padding:10px; + box-sizing:border-box; + font-family: "Roboto", sans-serif; + border-bottom: 1px solid rgba(255,255,255,0.15); + } +.gyges .tp-tab-image +{ + width:60px; + height:60px; max-height:100%; max-width:100%; + position:relative; + display:inline-block; + float:left; + +} +.gyges .tp-tab-content +{ + background:rgba(0,0,0,0); + position:relative; + padding:15px 15px 15px 85px; + left:0px; + overflow:hidden; + margin-top:-15px; + box-sizing:border-box; + color:#333; + display: inline-block; + width:100%; + height:100%; + position:absolute; } +.gyges .tp-tab-date + { + display:block; + color: rgba(255,255,255,0.25); + font-weight:500; + font-size:12px; + margin-bottom:0px; + } +.gyges .tp-tab-title +{ + display:block; + text-align:left; + color:#fff; + font-size:14px; + font-weight:500; + text-transform:none; + line-height:17px; +} +.gyges .tp-tab:hover, +.gyges .tp-tab.selected { + background:rgba(0,0,0,0.5); +} + +.gyges .tp-tab-mask { +} + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + +} +@media only screen and (max-width: 768px) { + +} + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HADES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hades.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.15); + width:100px; + height:100px; + position:absolute; + display:block; + z-index:1000; +} + +.hades.tparrows:before { + font-family: "revicons"; + font-size:30px; + color:#fff; + display:block; + line-height: 100px; + text-align: center; + transition: background 0.3s, color 0.3s; +} +.hades.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.hades.tparrows.tp-rightarrow:before { + content: "\e825"; +} + +.hades.tparrows:hover:before { + color:#aaa; + background:#fff; + background:rgba(255,255,255,1); + } +.hades .tp-arr-allwrapper { + position:absolute; + left:100%; + top:0px; + background:#888; + width:100px;height:100px; + -webkit-transition: all 0.3s; + transition: all 0.3s; + -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=0)"; + filter: alpha(opacity=0); + -moz-opacity: 0.0; + -khtml-opacity: 0.0; + opacity: 0.0; + -webkit-transform: rotatey(-90deg); + transform: rotatey(-90deg); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; +} +.hades.tp-rightarrow .tp-arr-allwrapper { + left:auto; + right:100%; + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; + -webkit-transform: rotatey(90deg); + transform: rotatey(90deg); +} + +.hades:hover .tp-arr-allwrapper { + -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=100)"; + filter: alpha(opacity=100); + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + -webkit-transform: rotatey(0deg); + transform: rotatey(0deg); + + } + +.hades .tp-arr-iwrapper { +} +.hades .tp-arr-imgholder { + background-size:cover; + position:absolute; + top:0px;left:0px; + width:100%;height:100%; +} +.hades .tp-arr-titleholder { +} +.hades .tp-arr-subtitleholder { +} + + +/* BULLETS */ +.hades.tp-bullets { +} +.hades.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.hades .tp-bullet { + width:3px; + height:3px; + position:absolute; + background:#888; + cursor: pointer; + border:5px solid #fff; + box-sizing:content-box; + box-shadow:0px 0px 3px 1px rgba(0,0,0,0.2); + -webkit-perspective:400; + perspective:400; + -webkit-transform:translatez(0.01px); + transform:translatez(0.01px); +} +.hades .tp-bullet:hover, +.hades .tp-bullet.selected { + background:#555; + +} + +.hades .tp-bullet-image { + position:absolute;top:-80px; left:-60px;width:120px;height:60px; + background-position:center center; + background-size:cover; + visibility:hidden; + opacity:0; + transition:all 0.3s; + -webkit-transform-style:flat; + transform-style:flat; + perspective:600; + -webkit-perspective:600; + transform: rotatex(-90deg); + -webkit-transform: rotatex(-90deg); + box-shadow:0px 0px 3px 1px rgba(0,0,0,0.2); + transform-origin:50% 100%; + -webkit-transform-origin:50% 100%; + + +} +.hades .tp-bullet:hover .tp-bullet-image { + display:block; + opacity:1; + transform: rotatex(0deg); + -webkit-transform: rotatex(0deg); + visibility:visible; + } +.hades .tp-bullet-title { +} + + +/* THUMBS */ +.hades .tp-thumb { + opacity:1 + } +.hades .tp-thumb-img-wrap { + border-radius:50%; + padding:3px; + display:inline-block; +background:#000; + background-color:rgba(0,0,0,0.25); + width:100%; + height:100%; + position:relative; + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; +} +.hades .tp-thumb-image { + padding:3px; + border-radius:50%; + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + } + + +.hades .tp-thumb:hover .tp-thumb-img-wrap, +.hades .tp-thumb.selected .tp-thumb-img-wrap { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + + } +.hades .tp-thumb-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(0,0,0,0.75) transparent transparent transparent; + bottom:-8px; + } + + +/* TABS */ +.hades .tp-tab { + opacity:1; + } + +.hades .tp-tab-title + { + display:block; + color:#333; + font-weight:600; + font-size:18px; + text-align:center; + line-height:25px; + } +.hades .tp-tab-price + { + display:block; + text-align:center; + color:#999; + font-size:16px; + margin-top:10px; + line-height:20px +} + +.hades .tp-tab-button { + display:inline-block; + margin-top:15px; + text-align:center; + padding:5px 15px; + color:#fff; + font-size:14px; + background:#219bd7; + border-radius:4px; + font-weight:400; +} +.hades .tp-tab-inner { + text-align:center; +} + + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HEBE SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hebe.tparrows { + cursor:pointer; + background:#fff; + min-width:70px; + min-height:70px; + position:absolute; + display:block; + z-index:1000; +} +.hebe.tparrows:hover { +} +.hebe.tparrows:before { + font-family: "revicons"; + font-size:30px; + color:#aaa; + display:block; + line-height: 70px; + text-align: center; + -webkit-transition: color 0.3s; + -moz-transition: color 0.3s; + transition: color 0.3s; + z-index:2; + position:relative; + background:#fff; + min-width:70px; + min-height:70px; +} +.hebe.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.hebe.tparrows.tp-rightarrow:before { + content: "\e825"; +} +.hebe.tparrows:hover:before { + color:#000; + } +.hebe .tp-title-wrap { + position:absolute; + z-index:0; + display:inline-block; + background:#000; + background:rgba(0,0,0,0.75); + min-height:60px; + line-height:60px; + top:-10px; + margin-left:0px; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + transform:scaleX(0); + -webkit-transform:scaleX(0); + transform-origin:0% 50%; + -webkit-transform-origin:0% 50%; +} + .hebe.tp-rightarrow .tp-title-wrap { + right:0px; + -webkit-transform-origin:100% 50%; + } +.hebe.tparrows:hover .tp-title-wrap { + transform:scaleX(1); + -webkit-transform:scaleX(1); +} +.hebe .tp-arr-titleholder { + position:relative; + text-transform:uppercase; + color:#fff; + font-weight:600; + font-size:12px; + line-height:90px; + white-space:nowrap; + padding:0px 20px 0px 90px; +} + +.hebe.tp-rightarrow .tp-arr-titleholder { + margin-left:0px; + padding:0px 90px 0px 20px; + } + +.hebe.tparrows:hover .tp-arr-titleholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition-delay: 0.1s; + opacity:1; +} + +.hebe .tp-arr-imgholder{ + width:90px; + height:90px; + position:absolute; + left:100%; + display:block; + background-size:cover; + background-position:center center; + top:0px; right:-90px; + } +.hebe.tp-rightarrow .tp-arr-imgholder{ + right:auto;left:-90px; + } + +/* BULLETS */ +.hebe.tp-bullets { +} +.hebe.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} + +.hebe .tp-bullet { + width:3px; + height:3px; + position:absolute; + background:#fff; + cursor: pointer; + border:5px solid #222; + border-radius:50%; + box-sizing:content-box; + -webkit-perspective:400; + perspective:400; + -webkit-transform:translateZ(0.01px); + transform:translateZ(0.01px); + transition:all 0.3s; +} +.hebe .tp-bullet:hover, +.hebe .tp-bullet.selected { + background:#222; + border-color:#fff; +} + +.hebe .tp-bullet-image { + position:absolute; + top:-90px; left:-40px; + width:70px; + height:70px; + background-position:center center; + background-size:cover; + visibility:hidden; + opacity:0; + transition:all 0.3s; + -webkit-transform-style:flat; + transform-style:flat; + perspective:600; + -webkit-perspective:600; + transform: scale(0); + -webkit-transform: scale(0); + transform-origin:50% 100%; + -webkit-transform-origin:50% 100%; +border-radius:6px; + + +} +.hebe .tp-bullet:hover .tp-bullet-image { + display:block; + opacity:1; + transform: scale(1); + -webkit-transform: scale(1); + visibility:visible; + } +.hebe .tp-bullet-title { +} + + +/* TABS */ +.hebe .tp-tab-title { + color:#a8d8ee; + font-size:13px; + font-weight:700; + text-transform:uppercase; + font-family:"Roboto Slab" + margin-bottom:5px; +} + +.hebe .tp-tab-desc { + font-size:18px; + font-weight:400; + color:#fff; + line-height:25px; + font-family:"Roboto Slab"; +} + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HEPHAISTOS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hephaistos.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:1000; + border-radius:50%; +} +.hephaistos.tparrows:hover { + background:#000; +} +.hephaistos.tparrows:before { + font-family: "revicons"; + font-size:18px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.hephaistos.tparrows.tp-leftarrow:before { + content: "\e82c"; + margin-left:-2px; + +} +.hephaistos.tparrows.tp-rightarrow:before { + content: "\e82d"; + margin-right:-2px; +} + + + +/* BULLETS */ +.hephaistos.tp-bullets { +} +.hephaistos.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.hephaistos .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#999; + border:3px solid #f5f5f5; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; + box-shadow: 0px 0px 2px 1px rgba(130,130,130, 0.3); + +} +.hephaistos .tp-bullet:hover, +.hephaistos .tp-bullet.selected { + background:#fff; + border-color:#000; +} +.hephaistos .tp-bullet-image { +} +.hephaistos .tp-bullet-title { +} + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HERMES SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hermes.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:30px; + height:110px; + position:absolute; + display:block; + z-index:1000; +} + +.hermes.tparrows:before { + font-family: "revicons"; + font-size:15px; + color:#fff; + display:block; + line-height: 110px; + text-align: center; + transform:translateX(0px); + -webkit-transform:translateX(0px); + transition:all 0.3s; + -webkit-transition:all 0.3s; +} +.hermes.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.hermes.tparrows.tp-rightarrow:before { + content: "\e825"; +} +.hermes.tparrows.tp-leftarrow:hover:before { + transform:translateX(-20px); + -webkit-transform:translateX(-20px); + opacity:0; +} +.hermes.tparrows.tp-rightarrow:hover:before { + transform:translateX(20px); + -webkit-transform:translateX(20px); + opacity:0; +} + +.hermes .tp-arr-allwrapper { + overflow:hidden; + position:absolute; + width:180px; + height:140px; + top:0px; + left:0px; + visibility:hidden; + -webkit-transition: -webkit-transform 0.3s 0.3s; + transition: transform 0.3s 0.3s; + -webkit-perspective: 1000px; + perspective: 1000px; + } +.hermes.tp-rightarrow .tp-arr-allwrapper { + right:0px;left:auto; + } +.hermes.tparrows:hover .tp-arr-allwrapper { + visibility:visible; + } +.hermes .tp-arr-imgholder { + width:180px;position:absolute; + left:0px;top:0px;height:110px; + transform:translateX(-180px); + -webkit-transform:translateX(-180px); + transition:all 0.3s; + transition-delay:0.3s; +} +.hermes.tp-rightarrow .tp-arr-imgholder{ + transform:translateX(180px); + -webkit-transform:translateX(180px); + } + +.hermes.tparrows:hover .tp-arr-imgholder { + transform:translateX(0px); + -webkit-transform:translateX(0px); +} +.hermes .tp-arr-titleholder { + top:110px; + width:180px; + text-align:left; + display:block; + padding:0px 10px; + line-height:30px; background:#000; + background:rgba(0,0,0,0.75);color:#fff; + font-weight:600; position:absolute; + font-size:12px; + white-space:nowrap; + letter-spacing:1px; + -webkit-transition: all 0.3s; + transition: all 0.3s; + -webkit-transform: rotateX(-90deg); + transform: rotateX(-90deg); + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; + box-sizing:border-box; + +} +.hermes.tparrows:hover .tp-arr-titleholder { + -webkit-transition-delay: 0.6s; + transition-delay: 0.6s; + -webkit-transform: rotateX(0deg); + transform: rotateX(0deg); +} + + +/* BULLETS */ +.hermes.tp-bullets { +} + +.hermes .tp-bullet { + overflow:hidden; + border-radius:50%; + width:16px; + height:16px; + background-color: rgba(0, 0, 0, 0); + box-shadow: inset 0 0 0 2px #FFF; + -webkit-transition: background 0.3s ease; + transition: background 0.3s ease; + position:absolute; +} + +.hermes .tp-bullet:hover { + background-color: rgba(0, 0, 0, 0.2); +} +.hermes .tp-bullet:after { + content: ' '; + position: absolute; + bottom: 0; + height: 0; + left: 0; + width: 100%; + background-color: #FFF; + box-shadow: 0 0 1px #FFF; + -webkit-transition: height 0.3s ease; + transition: height 0.3s ease; +} +.hermes .tp-bullet.selected:after { + height:100%; +} + + +/* TABS */ +.hermes .tp-tab { + opacity:1; + padding-right:10px; + box-sizing:border-box; + } +.hermes .tp-tab-image +{ + width:100%; + height:60%; + position:relative; +} +.hermes .tp-tab-content +{ + background:rgb(54,54,54); + position:absolute; + padding:20px 20px 20px 30px; + box-sizing:border-box; + color:#fff; + display:block; + width:100%; + min-height:40%; + bottom:0px; + left:-10px; + } +.hermes .tp-tab-date + { + display:block; + color:#888; + font-weight:600; + font-size:12px; + margin-bottom:10px; + } +.hermes .tp-tab-title +{ + display:block; + color:#fff; + font-size:16px; + font-weight:800; + text-transform:uppercase; + line-height:19px; +} + +.hermes .tp-tab.selected .tp-tab-title:after { + width: 0px; + height: 0px; + border-style: solid; + border-width: 30px 0 30px 10px; + border-color: transparent transparent transparent rgb(54,54,54); + content:" "; + position:absolute; + right:-9px; + bottom:50%; + margin-bottom:-30px; +} +.hermes .tp-tab-mask { + padding-right:10px !important; + } + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + .hermes .tp-tab .tp-tab-title {font-size:14px;line-height:16px;} + .hermes .tp-tab-date { font-size:11px; line-height:13px;margin-bottom:10px;} + .hermes .tp-tab-content { padding:15px 15px 15px 25px;} +} +@media only screen and (max-width: 768px) { + .hermes .tp-tab .tp-tab-title {font-size:12px;line-height:14px;} + .hermes .tp-tab-date {font-size:10px; line-height:12px;margin-bottom:5px;} + .hermes .tp-tab-content {padding:10px 10px 10px 20px;} +} + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + HESPERIDEN SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.hesperiden.tparrows { + cursor:pointer; + background:#000; + background:rgba(0,0,0,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:1000; + border-radius: 50%; +} +.hesperiden.tparrows:hover { + background:#000; +} +.hesperiden.tparrows:before { + font-family: "revicons"; + font-size:20px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.hesperiden.tparrows.tp-leftarrow:before { + content: "\e82c"; + margin-left:-3px; +} +.hesperiden.tparrows.tp-rightarrow:before { + content: "\e82d"; + margin-right:-3px; +} + +/* BULLETS */ +.hesperiden.tp-bullets { +} +.hesperiden.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; + border-radius:8px; + +} +.hesperiden .tp-bullet { + width:12px; + height:12px; + position:absolute; + background: #999999; /* old browsers */ + background: -moz-linear-gradient(top, #999999 0%, #e1e1e1 100%); /* ff3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), + color-stop(100%,#e1e1e1)); /* chrome,safari4+ */ + background: -webkit-linear-gradient(top, #999999 0%,#e1e1e1 100%); /* chrome10+,safari5.1+ */ + background: -o-linear-gradient(top, #999999 0%,#e1e1e1 100%); /* opera 11.10+ */ + background: -ms-linear-gradient(top, #999999 0%,#e1e1e1 100%); /* ie10+ */ + background: linear-gradient(to bottom, #999999 0%,#e1e1e1 100%); /* w3c */ + filter: progid:dximagetransform.microsoft.gradient( + startcolorstr="#999999", endcolorstr="#e1e1e1",gradienttype=0 ); /* ie6-9 */ + border:3px solid #e5e5e5; + border-radius:50%; + cursor: pointer; + box-sizing:content-box; +} +.hesperiden .tp-bullet:hover, +.hesperiden .tp-bullet.selected { + background:#666; +} +.hesperiden .tp-bullet-image { +} +.hesperiden .tp-bullet-title { +} + + +/* THUMBS */ +.hesperiden .tp-thumb { + opacity:1; + -webkit-perspective: 600px; + perspective: 600px; +} +.hesperiden .tp-thumb .tp-thumb-title { + font-size:12px; + position:absolute; + margin-top:-10px; + color:#fff; + display:block; + z-index:10000; + background-color:#000; + padding:5px 10px; + bottom:0px; + left:0px; + width:100%; + box-sizing:border-box; + text-align:center; + overflow:hidden; + white-space:nowrap; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform:rotatex(90deg) translatez(0.001px); + transform-origin:50% 100%; + -webkit-transform:rotatex(90deg) translatez(0.001px); + -webkit-transform-origin:50% 100%; + opacity:0; + } +.hesperiden .tp-thumb:hover .tp-thumb-title { + transform:rotatex(0deg); + -webkit-transform:rotatex(0deg); + opacity:1; +} + +/* TABS */ +.hesperiden .tp-tab { + opacity:1; + padding:10px; + box-sizing:border-box; + font-family: "Roboto", sans-serif; + border-bottom: 1px solid #e5e5e5; + } +.hesperiden .tp-tab-image +{ + width:60px; + height:60px; max-height:100%; max-width:100%; + position:relative; + display:inline-block; + float:left; + +} +.hesperiden .tp-tab-content +{ + background:rgba(0,0,0,0); + position:relative; + padding:15px 15px 15px 85px; + left:0px; + overflow:hidden; + margin-top:-15px; + box-sizing:border-box; + color:#333; + display: inline-block; + width:100%; + height:100%; + position:absolute; } +.hesperiden .tp-tab-date + { + display:block; + color: #aaa; + font-weight:500; + font-size:12px; + margin-bottom:0px; + } +.hesperiden .tp-tab-title +{ + display:block; + text-align:left; + color:#333; + font-size:14px; + font-weight:500; + text-transform:none; + line-height:17px; +} +.hesperiden .tp-tab:hover, +.hesperiden .tp-tab.selected { + background:#eee; +} + +.hesperiden .tp-tab-mask { +} + +/* MEDIA QUERIES */ +@media only screen and (max-width: 960px) { + +} +@media only screen and (max-width: 768px) { + +} + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + METIS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.metis.tparrows { + background:#fff; + padding:10px; + transition:all 0.3s; + -webkit-transition:all 0.3s; + width:60px; + height:60px; + box-sizing:border-box; + } + + .metis.tparrows:hover { + background:#fff; + background:rgba(255,255,255,0.75); + } + + .metis.tparrows:before { + color:#000; + transition:all 0.3s; + -webkit-transition:all 0.3s; + } + + .metis.tparrows:hover:before { + transform:scale(1.5); + } + + +/* BULLETS */ +.metis .tp-bullet { + opacity:1; + width:50px; + height:50px; + padding:3px; + background:#000; + background-color:rgba(0,0,0,0.25); + margin:0px; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + border-radius:50%; + } + +.metis .tp-bullet-image { + + border-radius:50%; + display:block; + box-sizing:border-box; + position:relative; + -webkit-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + -moz-box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + box-shadow: inset 5px 5px 10px 0px rgba(0,0,0,0.25); + width:44px; + height:44px; + background-size:cover; + background-position:center center; + } +.metis .tp-bullet-title { + position:absolute; + bottom:65px; + display:inline-block; + left:50%; + background:#000; + background:rgba(0,0,0,0.75); + color:#fff; + padding:10px 30px; + border-radius:4px; + -webkit-border-radius:4px; + opacity:0; + transition:all 0.3s; + -webkit-transition:all 0.3s; + transform: translateZ(0.001px) translateX(-50%) translateY(14px); + transform-origin:50% 100%; + -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px); + -webkit-transform-origin:50% 100%; + opacity:0; + white-space:nowrap; + } + +.metis .tp-bullet:hover .tp-bullet-title { + transform:rotateX(0deg) translateX(-50%); + -webkit-transform:rotateX(0deg) translateX(-50%); + opacity:1; +} + +.metis .tp-bullet.selected, +.metis .tp-bullet:hover { + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fff", endColorstr="#777", GradientType=0 ); + + } +.metis .tp-bullet-title:after { + content:" "; + position:absolute; + left:50%; + margin-left:-8px; + width: 0; + height: 0; + border-style: solid; + border-width: 8px 8px 0 8px; + border-color: rgba(0,0,0,0.75) transparent transparent transparent; + bottom:-8px; + } + +.metis .tp-tab-number { + color: #fff; + font-size: 40px; + line-height: 30px; + font-weight: 400; + font-family: "Playfair Display"; + width: 50px; + margin-right: 17px; + display: inline-block; + float: left; + } + .metis .tp-tab-mask { + padding-left: 20px; + left: 0px; + max-width: 90px !important; + transition: 0.4s padding-left, 0.4s left, 0.4s max-width; + } + .metis:hover .tp-tab-mask { + padding-left: 0px; + left: 50px; + max-width: 500px !important; + } + .metis .tp-tab-divider { + border-right: 1px solid transparent; + height: 30px; + width: 1px; + margin-top: 5px; + display: inline-block; + float: left; + } + .metis .tp-tab-title { + color: #fff; + font-size: 20px; + line-height: 20px; + font-weight: 400; + font-family: "Playfair Display"; + position: relative; + padding-top: 10px; + padding-left: 30px; + display: inline-block; + transform: translateX(-100%); + transition: 0.4s all; + } + .metis .tp-tab-title-mask { + position: absolute; + overflow: hidden; + left: 67px; + } + .metis:hover .tp-tab-title { + transform: translateX(0); + } + .metis .tp-tab { + opacity: 0.15; + transition: 0.4s all; + } + .metis .tp-tab:hover, + .metis .tp-tab.selected { + opacity: 1; + } + .metis .tp-tab.selected .tp-tab-divider { + border-right: 1px solid #cdb083; + } + .metis.tp-tabs { + max-width: 118px !important; + padding-left: 50px; + } + .metis.tp-tabs:before { + content: " "; + height: 100%; + width: 88px; + background: rgba(0, 0, 0, 0.15); + border-right: 1px solid rgba(255, 255, 255, 0.10); + left: 0px; + top: 0px; + position: absolute; + transition: 0.4s all; + } + .metis.tp-tabs:hover:before { + width: 118px; + } + @media (max-width: 499px) { + .metis.tp-tabs:before { + background: rgba(0, 0, 0, 0.75); + } + } + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + PERSEPHONE SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.persephone.tparrows { + cursor:pointer; + background:#aaa; + background:rgba(200,200,200,0.5); + width:40px; + height:40px; + position:absolute; + display:block; + z-index:100; + border:1px solid #f5f5f5; +} +.persephone.tparrows:hover { + background:#333; +} +.persephone.tparrows:before { + font-family: "revicons"; + font-size:15px; + color:#fff; + display:block; + line-height: 40px; + text-align: center; +} +.persephone.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.persephone.tparrows.tp-rightarrow:before { + content: "\e825"; +} + + + +/* BULLETS */ +.persephone.tp-bullets { +} +.persephone.tp-bullets:before { + content:" "; + position:absolute; + width:100%; + height:100%; + background:#transparent; + padding:10px; + margin-left:-10px;margin-top:-10px; + box-sizing:content-box; +} +.persephone .tp-bullet { + width:12px; + height:12px; + position:absolute; + background:#aaa; + border:1px solid #e5e5e5; + cursor: pointer; + box-sizing:content-box; +} +.persephone .tp-bullet:hover, +.persephone .tp-bullet.selected { + background:#222; +} +.persephone .tp-bullet-image { +} +.persephone .tp-bullet-title { +} + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + URANUS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.uranus.tparrows { + width:50px; + height:50px; + background:transparent; + } + .uranus.tparrows:before { + width:50px; + height:50px; + line-height:50px; + font-size:40px; + transition:all 0.3s; +-webkit-transition:all 0.3s; + } + + .uranus.tparrows:hover:before { + opacity:0.75; + } + +/* BULLETS */ +.uranus .tp-bullet{ + border-radius: 50%; + box-shadow: 0 0 0 2px rgba(255, 255, 255, 0); + -webkit-transition: box-shadow 0.3s ease; + transition: box-shadow 0.3s ease; + background:transparent; +} +.uranus .tp-bullet.selected, +.uranus .tp-bullet:hover { + box-shadow: 0 0 0 2px #FFF; + border:none; + border-radius: 50%; + + background:transparent; +} + + + +.uranus .tp-bullet-inner { + background-color: rgba(255, 255, 255, 0.7); + -webkit-transition: background-color 0.3s ease, -webkit-transform 0.3s ease; + transition: background-color 0.3s ease, transform 0.3s ease; + top: 0; + left: 0; + width: 100%; + height: 100%; + outline: none; + border-radius: 50%; + background-color: #FFF; + background-color: rgba(255, 255, 255, 0.3); + text-indent: -999em; + cursor: pointer; + position: absolute; +} + +.uranus .tp-bullet.selected .tp-bullet-inner, +.uranus .tp-bullet:hover .tp-bullet-inner{ + transform: scale(0.4); + -webkit-transform: scale(0.4); + background-color:#fff; +} + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ZEUS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +/* ARROWS */ +.zeus.tparrows { + cursor:pointer; + min-width:70px; + min-height:70px; + position:absolute; + display:block; + z-index:100; + border-radius:35px; + overflow:hidden; + background:rgba(0,0,0,0.10); +} + +.zeus.tparrows:before { + font-family: "revicons"; + font-size:20px; + color:#fff; + display:block; + line-height: 70px; + text-align: center; + z-index:2; + position:relative; +} +.zeus.tparrows.tp-leftarrow:before { + content: "\e824"; +} +.zeus.tparrows.tp-rightarrow:before { + content: "\e825"; +} + +.zeus .tp-title-wrap { + background:#000; + background:rgba(0,0,0,0.5); + width:100%; + height:100%; + top:0px; + left:0px; + position:absolute; + opacity:0; + transform:scale(0); + -webkit-transform:scale(0); + transition: all 0.3s; + -webkit-transition:all 0.3s; + -moz-transition:all 0.3s; + border-radius:50%; + } +.zeus .tp-arr-imgholder { + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + background-position:center center; + background-size:cover; + border-radius:50%; + transform:translateX(-100%); + -webkit-transform:translateX(-100%); + transition: all 0.3s; + -webkit-transition:all 0.3s; + -moz-transition:all 0.3s; + + } +.zeus.tp-rightarrow .tp-arr-imgholder { + transform:translateX(100%); + -webkit-transform:translateX(100%); + } +.zeus.tparrows:hover .tp-arr-imgholder { + transform:translateX(0); + -webkit-transform:translateX(0); + opacity:1; +} + +.zeus.tparrows:hover .tp-title-wrap { + transform:scale(1); + -webkit-transform:scale(1); + opacity:1; +} + + +/* BULLETS */ +.zeus .tp-bullet { + box-sizing:content-box; -webkit-box-sizing:content-box; border-radius:50%; + background-color: rgba(0, 0, 0, 0); + -webkit-transition: opacity 0.3s ease; + transition: opacity 0.3s ease; + width:13px;height:13px; + border:2px solid #fff; + } +.zeus .tp-bullet:after { + content: ""; + position: absolute; + width: 100%; + height: 100%; + left: 0; + border-radius: 50%; + background-color: #FFF; + -webkit-transform: scale(0); + transform: scale(0); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; + -webkit-transition: -webkit-transform 0.3s ease; + transition: transform 0.3s ease; +} +.zeus .tp-bullet:hover:after, +.zeus .tp-bullet.selected:after{ + -webkit-transform: scale(1.2); + transform: scale(1.2); +} + + .zeus .tp-bullet-image, + .zeus .tp-bullet-imageoverlay{ + width:135px; + height:60px; + position:absolute; + background:#000; + background:rgba(0,0,0,0.5); + bottom:25px; + left:50%; + margin-left:-65px; + box-sizing:border-box; + background-size:cover; + background-position:center center; + visibility:hidden; + opacity:0; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; + border-radius:4px; + +} + + +.zeus .tp-bullet-title, +.zeus .tp-bullet-imageoverlay { + z-index:2; + -webkit-transition: all 0.5s ease; + transition: all 0.5s ease; +} +.zeus .tp-bullet-title { + color:#fff; + text-align:center; + line-height:15px; + font-size:13px; + font-weight:600; + z-index:3; + visibility:hidden; + opacity:0; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; + position:absolute; + bottom:45px; + width:135px; + vertical-align:middle; + left:-57px; +} + +.zeus .tp-bullet:hover .tp-bullet-title, +.zeus .tp-bullet:hover .tp-bullet-image, +.zeus .tp-bullet:hover .tp-bullet-imageoverlay{ + opacity:1; + visibility:visible; + -webkit-transform:translateY(0px); + transform:translateY(0px); + } + +/* THUMBS */ +.zeus .tp-thumb { +opacity:1 +} + +.zeus .tp-thumb-over { + background:#000; + background:rgba(0,0,0,0.25); + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + z-index:1; + -webkit-transition:all 0.3s; + transition:all 0.3s; +} + +.zeus .tp-thumb-more:before { + font-family: "revicons"; + font-size:12px; + color:#aaa; + color:rgba(255,255,255,0.75); + display:block; + line-height: 12px; + text-align: left; + z-index:2; + position:absolute; + top:20px; + right:20px; + z-index:2; +} +.zeus .tp-thumb-more:before { + content: "\e825"; +} + +.zeus .tp-thumb-title { + font-family:"Raleway"; + letter-spacing:1px; + font-size:12px; + color:#fff; + display:block; + line-height: 15px; + text-align: left; + z-index:2; + position:absolute; + top:0px; + left:0px; + z-index:2; + padding:20px 35px 20px 20px; + width:100%; + height:100%; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + font-weight:500; +} + +.zeus .tp-thumb.selected .tp-thumb-more:before, +.zeus .tp-thumb:hover .tp-thumb-more:before { + color:#aaa; + +} + +.zeus .tp-thumb.selected .tp-thumb-over, +.zeus .tp-thumb:hover .tp-thumb-over { + background:#000; +} +.zeus .tp-thumb.selected .tp-thumb-title, +.zeus .tp-thumb:hover .tp-thumb-title { + color:#fff; + +} + + +/* TABS */ +.zeus .tp-tab { + opacity:1; + box-sizing:border-box; +} + +.zeus .tp-tab-title { +display: block; +text-align: center; +background: rgba(0,0,0,0.25); +font-family: "Roboto Slab", serif; +font-weight: 700; +font-size: 13px; +line-height: 13px; +color: #fff; +padding: 9px 10px; } + +.zeus .tp-tab:hover .tp-tab-title, +.zeus .tp-tab.selected .tp-tab-title { + color: #000; + background:rgba(255,255,255,1); +} + + + +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Navigatin Skin Style - + + ZEUS SKIN + +author: ThemePunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + + +.post-tabs .tp-thumb { +opacity:1 +} + +.post-tabs .tp-thumb-over { + background:#252525; + width:100%; + height:100%; + position:absolute; + top:0px; + left:0px; + z-index:1; + -webkit-transition:all 0.3s; + transition:all 0.3s; +} + +.post-tabs .tp-thumb-more:before { + font-family: "revicons"; + font-size:12px; + color:#aaa; + color:rgba(255,255,255,0.75); + display:block; + line-height: 12px; + text-align: left; + z-index:2; + position:absolute; + top:15px; + right:15px; + z-index:2; +} +.post-tabs .tp-thumb-more:before { + content: "\e825"; +} + +.post-tabs .tp-thumb-title { + font-family:"raleway"; + letter-spacing:1px; + font-size:12px; + color:#fff; + display:block; + line-height: 15px; + text-align: left; + z-index:2; + position:absolute; + top:0px; + left:0px; + z-index:2; + padding:15px 30px 15px 15px; + width:100%; + height:100%; + box-sizing:border-box; + transition:all 0.3s; + -webkit-transition:all 0.3s; + font-weight:500; +} + +.post-tabs .tp-thumb.selected .tp-thumb-more:before, +.post-tabs .tp-thumb:hover .tp-thumb-more:before { + color:#aaa; + +} + +.post-tabs .tp-thumb.selected .tp-thumb-over, +.post-tabs .tp-thumb:hover .tp-thumb-over { + background:#fff; +} +.post-tabs .tp-thumb.selected .tp-thumb-title, +.post-tabs .tp-thumb:hover .tp-thumb-title { + color:#000; + +} diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/openhand.cur b/public/assets/plugins/rs-plugin-5.3.1/css/openhand.cur new file mode 100644 index 0000000..fba3ddc Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/css/openhand.cur differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/settings-ver.5.3.0.css b/public/assets/plugins/rs-plugin-5.3.1/css/settings-ver.5.3.0.css new file mode 100644 index 0000000..fdfbd74 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/settings-ver.5.3.0.css @@ -0,0 +1,1395 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Default Style Settings - + +Screen Stylesheet + +version: 5.0.0 +date: 29/10/15 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + +#debungcontrolls { + z-index:100000; + position:fixed; + bottom:0px; width:100%; + height:auto; + background:rgba(0,0,0,0.6); + padding:10px; + box-sizing: border-box; +} + +.debugtimeline { + width:100%; + height:10px; + position:relative; + display:block; + margin-bottom:3px; + display:none; + white-space: nowrap; + box-sizing: border-box; +} + +.debugtimeline:hover { + height:15px; + +} + +.the_timeline_tester { + background:#e74c3c; + position:absolute; + top:0px; + left:0px; + height:100%; + width:0; +} + + +.debugtimeline.tl_slide .the_timeline_tester { + background:#f39c12; +} + +.debugtimeline.tl_frame .the_timeline_tester { + background:#3498db; +} + +.debugtimline_txt { + color:#fff; + font-weight: 400; + font-size:7px; + position:absolute; + left:10px; + top:0px; + white-space: nowrap; + line-height: 10px; +} + + +.rtl { direction: rtl;} +@font-face { + font-family: 'revicons'; + src: url('../fonts/revicons/revicons.eot?5510888'); + src: url('../fonts/revicons/revicons.eot?5510888#iefix') format('embedded-opentype'), + url('../fonts/revicons/revicons.woff?5510888') format('woff'), + url('../fonts/revicons/revicons.ttf?5510888') format('truetype'), + url('../fonts/revicons/revicons.svg?5510888#revicons') format('svg'); + font-weight: normal; + font-style: normal; +} + + [class^="revicon-"]:before, [class*=" revicon-"]:before { + font-family: "revicons"; + font-style: normal; + font-weight: normal; + speak: none; + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Animation center compensation - margins should be symmetric */ + /* remove if not needed */ + margin-left: .2em; + + /* you can be more comfortable with increased icons size */ + /* font-size: 120%; */ + + /* Uncomment for 3D effect */ + /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ +} + +.revicon-search-1:before { content: '\e802'; } /* '' */ +.revicon-pencil-1:before { content: '\e831'; } /* '' */ +.revicon-picture-1:before { content: '\e803'; } /* '' */ +.revicon-cancel:before { content: '\e80a'; } /* '' */ +.revicon-info-circled:before { content: '\e80f'; } /* '' */ +.revicon-trash:before { content: '\e801'; } /* '' */ +.revicon-left-dir:before { content: '\e817'; } /* '' */ +.revicon-right-dir:before { content: '\e818'; } /* '' */ +.revicon-down-open:before { content: '\e83b'; } /* '' */ +.revicon-left-open:before { content: '\e819'; } /* '' */ +.revicon-right-open:before { content: '\e81a'; } /* '' */ +.revicon-angle-left:before { content: '\e820'; } /* '' */ +.revicon-angle-right:before { content: '\e81d'; } /* '' */ +.revicon-left-big:before { content: '\e81f'; } /* '' */ +.revicon-right-big:before { content: '\e81e'; } /* '' */ +.revicon-magic:before { content: '\e807'; } /* '' */ +.revicon-picture:before { content: '\e800'; } /* '' */ +.revicon-export:before { content: '\e80b'; } /* '' */ +.revicon-cog:before { content: '\e832'; } /* '' */ +.revicon-login:before { content: '\e833'; } /* '' */ +.revicon-logout:before { content: '\e834'; } /* '' */ +.revicon-video:before { content: '\e805'; } /* '' */ +.revicon-arrow-combo:before { content: '\e827'; } /* '' */ +.revicon-left-open-1:before { content: '\e82a'; } /* '' */ +.revicon-right-open-1:before { content: '\e82b'; } /* '' */ +.revicon-left-open-mini:before { content: '\e822'; } /* '' */ +.revicon-right-open-mini:before { content: '\e823'; } /* '' */ +.revicon-left-open-big:before { content: '\e824'; } /* '' */ +.revicon-right-open-big:before { content: '\e825'; } /* '' */ +.revicon-left:before { content: '\e836'; } /* '' */ +.revicon-right:before { content: '\e826'; } /* '' */ +.revicon-ccw:before { content: '\e808'; } /* '' */ +.revicon-arrows-ccw:before { content: '\e806'; } /* '' */ +.revicon-palette:before { content: '\e829'; } /* '' */ +.revicon-list-add:before { content: '\e80c'; } /* '' */ +.revicon-doc:before { content: '\e809'; } /* '' */ +.revicon-left-open-outline:before { content: '\e82e'; } /* '' */ +.revicon-left-open-2:before { content: '\e82c'; } /* '' */ +.revicon-right-open-outline:before { content: '\e82f'; } /* '' */ +.revicon-right-open-2:before { content: '\e82d'; } /* '' */ +.revicon-equalizer:before { content: '\e83a'; } /* '' */ +.revicon-layers-alt:before { content: '\e804'; } /* '' */ +.revicon-popup:before { content: '\e828'; } /* '' */ + + + +/****************************** + - BASIC STYLES - +******************************/ + +.rev_slider_wrapper{ + position:relative; + z-index: 0; +} + + +.rev_slider{ + position:relative; + overflow:visible; +} + +.tp-overflow-hidden { overflow:hidden !important;} +.group_ov_hidden { overflow:hidden} + +.tp-simpleresponsive img, +.rev_slider img{ + max-width:none !important; + -moz-transition: none; + -webkit-transition: none; + -o-transition: none; + transition: none; + margin:0px; + padding:0px; + border-width:0px; + border:none; +} + +.rev_slider .no-slides-text{ + font-weight:bold; + text-align:center; + padding-top:80px; +} + +.rev_slider >ul, +.rev_slider_wrapper >ul, +.tp-revslider-mainul >li, +.rev_slider >ul >li, +.rev_slider >ul >li:before, +.tp-revslider-mainul >li:before, +.tp-simpleresponsive >ul, +.tp-simpleresponsive >ul >li, +.tp-simpleresponsive >ul >li:before, +.tp-revslider-mainul >li, +.tp-simpleresponsive >ul >li{ + list-style:none !important; + position:absolute; + margin:0px !important; + padding:0px !important; + overflow-x: visible; + overflow-y: visible; + list-style-type: none !important; + background-image:none; + background-position:0px 0px; + text-indent: 0em; + top:0px;left:0px; +} + + +.tp-revslider-mainul >li, +.rev_slider >ul >li, +.rev_slider >ul >li:before, +.tp-revslider-mainul >li:before, +.tp-simpleresponsive >ul >li, +.tp-simpleresponsive >ul >li:before, +.tp-revslider-mainul >li, +.tp-simpleresponsive >ul >li { + visibility:hidden; +} + +.tp-revslider-slidesli, +.tp-revslider-mainul { + padding:0 !important; + margin:0 !important; + list-style:none !important; +} + +.rev_slider li.tp-revslider-slidesli { + position: absolute !important; +} + + +.tp-caption .rs-untoggled-content { display:block;} +.tp-caption .rs-toggled-content { display:none;} + +.rs-toggle-content-active.tp-caption .rs-toggled-content { display:block;} +.rs-toggle-content-active.tp-caption .rs-untoggled-content { display:none;} + +.rev_slider .tp-caption, +.rev_slider .caption { + position:relative; + visibility:hidden; + white-space: nowrap; + display: block; +} + + +.rev_slider .tp-mask-wrap .tp-caption, +.rev_slider .tp-mask-wrap *:last-child, +.wpb_text_column .rev_slider .tp-mask-wrap .tp-caption, +.wpb_text_column .rev_slider .tp-mask-wrap *:last-child{ + margin-bottom:0; + +} + +.tp-svg-layer svg { width:100%; height:100%;position: relative;vertical-align: top} + + +/* CAROUSEL FUNCTIONS */ +.tp-carousel-wrapper { + cursor:url(openhand.cur), move; +} +.tp-carousel-wrapper.dragged { + cursor:url(closedhand.cur), move; +} + +/* ADDED FOR SLIDELINK MANAGEMENT */ +.tp-caption { + z-index:1 +} + +.tp_inner_padding { + box-sizing:border-box; + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + max-height:none !important; +} + + +.tp-caption { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; + position:absolute; + -webkit-font-smoothing: antialiased !important; +} + +.tp-caption.tp-layer-selectable { + -moz-user-select: all; + -khtml-user-select: all; + -webkit-user-select: all; + -o-user-select: all; +} + +.tp-forcenotvisible, +.tp-hide-revslider, +.tp-caption.tp-hidden-caption, +.tp-parallax-wrap.tp-hidden-caption { + visibility:hidden !important; + display:none !important +} + +.rev_slider embed, +.rev_slider iframe, +.rev_slider object, +.rev_slider audio, +.rev_slider video { + max-width: none !important +} + +.tp-element-background { position:absolute; top:0px;left:0px; width:100%;height:100%;z-index:0;} + +/*********************************************************** + - ZONES / GOUP / ROW / COLUMN LAYERS AND HELPERS - +***********************************************************/ +.rev_row_zone { position:absolute; width:100%;left:0px; box-sizing: border-box;min-height:50px; } + +.rev_row_zone_top { top:0px;} +.rev_row_zone_middle { top:50%; -webit-transform:translateY(-50%);transform:translateY(-50%);} +.rev_row_zone_bottom { bottom:0px;} + +.rev_column .tp-parallax-wrap { vertical-align: top } + +.rev_slider .tp-caption.rev_row { + display:table; + position:relative; + width:100% !important; + table-layout: fixed; + box-sizing: border-box; + vertical-align: top; + height:auto !important; +} + +.rev_column { + display: table-cell; + position: relative; + vertical-align: top; + height: auto; + box-sizing: border-box; +} + +.rev_column_inner { + box-sizing: border-box; + display: block; + position: relative; + width:100% !important; + height:auto !important; +} + +.rev_column_bg { + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + z-index: 0; + box-sizing: border-box; + background-clip: content-box; + border: 0px solid transparent; +} + + + +.rev_column_inner .tp-parallax-wrap, +.rev_column_inner .tp-loop-wrap, +.rev_column_inner .tp-mask-wrap { text-align: inherit; } +.rev_column_inner .tp-mask-wrap { display: inline-block;} + + +.rev_column_inner .tp-parallax-wrap .tp-loop-wrap, +.rev_column_inner .tp-parallax-wrap .tp-mask-wrap, +.rev_column_inner .tp-parallax-wrap { position: relative !important; left:auto !important; top:auto !important; line-height: 0px;} + +.rev_column_inner .tp-parallax-wrap .tp-loop-wrap, +.rev_column_inner .tp-parallax-wrap .tp-mask-wrap, +.rev_column_inner .tp-parallax-wrap, +.rev_column_inner .rev_layer_in_column { vertical-align: top; } + +.rev_break_columns { display: block !important } +.rev_break_columns .tp-parallax-wrap.rev_column { display:block !important; width:100% !important; } + + +/********************************************** + - FULLSCREEN AND FULLWIDHT CONTAINERS - +**********************************************/ +.rev_slider_wrapper { width:100%;} + +.fullscreen-container { + position:relative; + padding:0; +} + + +.fullwidthbanner-container{ + position:relative; + padding:0; + overflow:hidden; +} + +.fullwidthbanner-container .fullwidthabanner{ + width:100%; + position:relative; +} + + + +/********************************* + - SPECIAL TP CAPTIONS - +**********************************/ + +.tp-static-layers { + position:absolute; z-index:101; top:0px;left:0px; + /*pointer-events:none;*/ + +} + + +.tp-caption .frontcorner { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; +} + +.tp-caption .backcorner { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; +} + +.tp-caption .frontcornertop { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; +} + +.tp-caption .backcornertop { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; +} + +.tp-layer-inner-rotation { + position: relative !important; +} + + +/*********************************************** + - SPECIAL ALTERNATIVE IMAGE SETTINGS - +***********************************************/ + +img.tp-slider-alternative-image { + width:100%; height:auto; +} + + +/****************************** + - IE8 HACKS - +*******************************/ +.noFilterClass { + filter:none !important; +} + + +/******************************** + - FULLSCREEN VIDEO - +*********************************/ + +.rs-background-video-layer { position: absolute;top:0px;left:0px; width:100%;height:100%;visibility: hidden;z-index: 0;} + +.tp-caption.coverscreenvideo { width:100%;height:100%;top:0px;left:0px;position:absolute;} +.caption.fullscreenvideo, +.tp-caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%} + +.caption.fullscreenvideo iframe, +.caption.fullscreenvideo audio, +.caption.fullscreenvideo video, +.tp-caption.fullscreenvideo iframe, +.tp-caption.fullscreenvideo iframe audio, +.tp-caption.fullscreenvideo iframe video { width:100% !important; height:100% !important; display: none} + +.fullcoveredvideo audio, +.fullscreenvideo audio +.fullcoveredvideo video, +.fullscreenvideo video { background: #000} + +.fullcoveredvideo .tp-poster { background-position: center center;background-size: cover;width:100%;height:100%;top:0px;left:0px} + + +.videoisplaying .html5vid .tp-poster { display: none} + +.tp-video-play-button { + background:#000; + background:rgba(0,0,0,0.3); + border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; + position: absolute; + top: 50%; + left: 50%; + color: #FFF; + z-index: 3; + margin-top: -25px; + margin-left: -25px; + line-height: 50px !important; + text-align: center; + cursor: pointer; + width: 50px; + height:50px; + box-sizing: border-box; + -moz-box-sizing: border-box; + display: inline-block; + vertical-align: top; + z-index: 4; + opacity: 0; + -webkit-transition:opacity 300ms ease-out !important; + -moz-transition:opacity 300ms ease-out !important; + -o-transition:opacity 300ms ease-out !important; + transition:opacity 300ms ease-out !important; +} + +.tp-hiddenaudio, +.tp-audio-html5 .tp-video-play-button { display:none !important;} +.tp-caption .html5vid { width:100% !important; height:100% !important;} +.tp-video-play-button i { width:50px;height:50px; display:inline-block; text-align: center; vertical-align: top; line-height: 50px !important; font-size: 40px !important;} +.tp-caption:hover .tp-video-play-button { opacity: 1;} +.tp-caption .tp-revstop { display:none; border-left:5px solid #fff !important; border-right:5px solid #fff !important;margin-top:15px !important;line-height: 20px !important;vertical-align: top; font-size:25px !important;} +.videoisplaying .revicon-right-dir { display:none} +.videoisplaying .tp-revstop { display:inline-block} + +.videoisplaying .tp-video-play-button { display:none} +.tp-caption:hover .tp-video-play-button { display:block} + +.fullcoveredvideo .tp-video-play-button { display:none !important} + + +.fullscreenvideo .fullscreenvideo audio { object-fit:contain !important;} +.fullscreenvideo .fullscreenvideo video { object-fit:contain !important;} + +.fullscreenvideo .fullcoveredvideo audio { object-fit:cover !important;} +.fullscreenvideo .fullcoveredvideo video { object-fit:cover !important;} + +.tp-video-controls { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 5px; + opacity: 0; + -webkit-transition: opacity .3s; + -moz-transition: opacity .3s; + -o-transition: opacity .3s; + -ms-transition: opacity .3s; + transition: opacity .3s; + background-image: linear-gradient(to bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -o-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -moz-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -webkit-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -ms-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.13, rgb(0,0,0)),color-stop(1, rgb(50,50,50))); + display:table;max-width:100%; overflow:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; +} + +.tp-caption:hover .tp-video-controls { opacity: .9;} + +.tp-video-button { + background: rgba(0,0,0,.5); + border: 0; + color: #EEE; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; + cursor:pointer; + line-height:12px; + font-size:12px; + color:#fff; + padding:0px; + margin:0px; + outline: none; + } +.tp-video-button:hover { cursor: pointer;} + + +.tp-video-button-wrap, +.tp-video-seek-bar-wrap, +.tp-video-vol-bar-wrap { padding:0px 5px;display:table-cell; vertical-align: middle;} + +.tp-video-seek-bar-wrap { width:80%} +.tp-video-vol-bar-wrap { width:20%} + +.tp-volume-bar, +.tp-seek-bar { width:100%; cursor: pointer; outline:none; line-height:12px;margin:0; padding:0;} + + +.rs-fullvideo-cover { width:100%;height:100%;top:0px;left:0px;position: absolute; background:transparent;z-index:5;} + + +.rs-background-video-layer video::-webkit-media-controls { display:none !important;} +.rs-background-video-layer audio::-webkit-media-controls { display:none !important;} + +.tp-audio-html5 .tp-video-controls { opacity: 1 !important; visibility: visible !important} + +.disabled_lc .tp-video-play-button { display:none !important; } +.disabled_lc .tp-video-play-button { display:none !important; } + +/******************************** + - DOTTED OVERLAYS - +*********************************/ +.tp-dottedoverlay { background-repeat:repeat;width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:3} +.tp-dottedoverlay.twoxtwo { background:url(../assets/gridtile.png)} +.tp-dottedoverlay.twoxtwowhite { background:url(../assets/gridtile_white.png)} +.tp-dottedoverlay.threexthree { background:url(../assets/gridtile_3x3.png)} +.tp-dottedoverlay.threexthreewhite { background:url(../assets/gridtile_3x3_white.png)} + + +/****************************** + - SHADOWS - +******************************/ + +.tp-shadowcover { width:100%;height:100%;top:0px;left:0px;background: #fff;position: absolute; z-index: -1;} +.tp-shadow1 { + -webkit-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.8); + -moz-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.8); + box-shadow: 0 10px 6px -6px rgba(0,0,0,0.8); +} + +.tp-shadow2:before, .tp-shadow2:after, +.tp-shadow3:before, .tp-shadow4:after +{ + z-index: -2; + position: absolute; + content: ""; + bottom: 10px; + left: 10px; + width: 50%; + top: 85%; + max-width:300px; + background: transparent; + -webkit-box-shadow: 0 15px 10px rgba(0,0,0,0.8); + -moz-box-shadow: 0 15px 10px rgba(0,0,0,0.8); + box-shadow: 0 15px 10px rgba(0,0,0,0.8); + -webkit-transform: rotate(-3deg); + -moz-transform: rotate(-3deg); + -o-transform: rotate(-3deg); + -ms-transform: rotate(-3deg); + transform: rotate(-3deg); +} + +.tp-shadow2:after, +.tp-shadow4:after +{ + -webkit-transform: rotate(3deg); + -moz-transform: rotate(3deg); + -o-transform: rotate(3deg); + -ms-transform: rotate(3deg); + transform: rotate(3deg); + right: 10px; + left: auto; +} + +.tp-shadow5 +{ + position:relative; + -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; +} +.tp-shadow5:before, .tp-shadow5:after +{ + content:""; + position:absolute; + z-index:-2; + -webkit-box-shadow:0 0 25px 0px rgba(0,0,0,0.6); + -moz-box-shadow:0 0 25px 0px rgba(0,0,0,0.6); + box-shadow:0 0 25px 0px rgba(0,0,0,0.6); + top:30%; + bottom:0; + left:20px; + right:20px; + -moz-border-radius:100px / 20px; + border-radius:100px / 20px; +} + +/****************************** + - BUTTONS - +*******************************/ + +.tp-button{ + padding:6px 13px 5px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + height:30px; + cursor:pointer; + color:#fff !important; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6) !important; font-size:15px; line-height:45px !important; + font-family: arial, sans-serif; font-weight: bold; letter-spacing: -1px; + text-decoration:none; +} + +.tp-button.big { color:#fff; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6); font-weight:bold; padding:9px 20px; font-size:19px; line-height:57px !important; } + + +.purchase:hover, +.tp-button:hover, +.tp-button.big:hover { background-position:bottom, 15px 11px} + + +/* BUTTON COLORS */ + +.tp-button.green, .tp-button:hover.green, +.purchase.green, .purchase:hover.green { background-color:#21a117; -webkit-box-shadow: 0px 3px 0px 0px #104d0b; -moz-box-shadow: 0px 3px 0px 0px #104d0b; box-shadow: 0px 3px 0px 0px #104d0b; } + +.tp-button.blue, .tp-button:hover.blue, +.purchase.blue, .purchase:hover.blue { background-color:#1d78cb; -webkit-box-shadow: 0px 3px 0px 0px #0f3e68; -moz-box-shadow: 0px 3px 0px 0px #0f3e68; box-shadow: 0px 3px 0px 0px #0f3e68} + +.tp-button.red, .tp-button:hover.red, +.purchase.red, .purchase:hover.red { background-color:#cb1d1d; -webkit-box-shadow: 0px 3px 0px 0px #7c1212; -moz-box-shadow: 0px 3px 0px 0px #7c1212; box-shadow: 0px 3px 0px 0px #7c1212} + +.tp-button.orange, .tp-button:hover.orange, +.purchase.orange, .purchase:hover.orange { background-color:#ff7700; -webkit-box-shadow: 0px 3px 0px 0px #a34c00; -moz-box-shadow: 0px 3px 0px 0px #a34c00; box-shadow: 0px 3px 0px 0px #a34c00} + +.tp-button.darkgrey,.tp-button.grey, +.tp-button:hover.darkgrey,.tp-button:hover.grey, +.purchase.darkgrey, .purchase:hover.darkgrey { background-color:#555; -webkit-box-shadow: 0px 3px 0px 0px #222; -moz-box-shadow: 0px 3px 0px 0px #222; box-shadow: 0px 3px 0px 0px #222} + +.tp-button.lightgrey, .tp-button:hover.lightgrey, +.purchase.lightgrey, .purchase:hover.lightgrey { background-color:#888; -webkit-box-shadow: 0px 3px 0px 0px #555; -moz-box-shadow: 0px 3px 0px 0px #555; box-shadow: 0px 3px 0px 0px #555} + + + +/* TP BUTTONS DESKTOP SIZE */ + +.rev-btn, +.rev-btn:visited { outline:none !important; box-shadow:none !important; text-decoration: none !important; line-height: 44px; font-size: 17px; font-weight: 500; padding: 12px 35px; box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; font-family: "Roboto", sans-serif; cursor: pointer;} + +.rev-btn.rev-uppercase, +.rev-btn.rev-uppercase:visited { text-transform: uppercase; letter-spacing: 1px; font-size: 15px; font-weight: 900; } + +.rev-btn.rev-withicon i { font-size: 15px; font-weight: normal; position: relative; top: 0px; -webkit-transition: all 0.2s ease-out !important; -moz-transition: all 0.2s ease-out !important; -o-transition: all 0.2s ease-out !important; -ms-transition: all 0.2s ease-out !important; margin-left:10px !important;} + +.rev-btn.rev-hiddenicon i { font-size: 15px; font-weight: normal; position: relative; top: 0px; -webkit-transition: all 0.2s ease-out !important; -moz-transition: all 0.2s ease-out !important; -o-transition: all 0.2s ease-out !important; -ms-transition: all 0.2s ease-out !important; opacity: 0; margin-left:0px !important; width:0px !important; } +.rev-btn.rev-hiddenicon:hover i { opacity: 1 !important; margin-left:10px !important; width:auto !important;} + +/* REV BUTTONS MEDIUM */ +.rev-btn.rev-medium, +.rev-btn.rev-medium:visited { line-height: 36px; font-size: 14px; padding: 10px 30px; } + +.rev-btn.rev-medium.rev-withicon i { font-size: 14px; top: 0px; } + +.rev-btn.rev-medium.rev-hiddenicon i { font-size: 14px; top: 0px; } + + +/* REV BUTTONS SMALL */ +.rev-btn.rev-small, +.rev-btn.rev-small:visited { line-height: 28px; font-size: 12px; padding: 7px 20px; } + +.rev-btn.rev-small.rev-withicon i { font-size: 12px; top: 0px; } + +.rev-btn.rev-small.rev-hiddenicon i { font-size: 12px; top: 0px; } + + +/* ROUNDING OPTIONS */ +.rev-maxround { -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; } +.rev-minround { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } + + +/* BURGER BUTTON */ +.rev-burger { + position: relative; + width: 60px; + height: 60px; + box-sizing: border-box; + padding: 22px 0 0 14px; + border-radius: 50%; + border: 1px solid rgba(51,51,51,0.25); + tap-highlight-color: transparent; + cursor: pointer; +} +.rev-burger span { + display: block; + width: 30px; + height: 3px; + background: #333; + transition: .7s; + pointer-events: none; + transform-style: flat !important; +} +.rev-burger span:nth-child(2) { + margin: 3px 0; +} + +#dialog_addbutton .rev-burger:hover :first-child, +.open .rev-burger :first-child, +.open.rev-burger :first-child { + transform: translateY(6px) rotate(-45deg); + -webkit-transform: translateY(6px) rotate(-45deg); +} +#dialog_addbutton .rev-burger:hover :nth-child(2), +.open .rev-burger :nth-child(2), +.open.rev-burger :nth-child(2) { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); + opacity: 0; +} +#dialog_addbutton .rev-burger:hover :last-child, +.open .rev-burger :last-child, +.open.rev-burger :last-child { + transform: translateY(-6px) rotate(-135deg); + -webkit-transform: translateY(-6px) rotate(-135deg); +} + +.rev-burger.revb-white { + border: 2px solid rgba(255,255,255,0.2); +} +.rev-burger.revb-white span { + background: #fff; +} +.rev-burger.revb-whitenoborder { + border: 0; +} +.rev-burger.revb-whitenoborder span { + background: #fff; +} +.rev-burger.revb-darknoborder { + border: 0; +} +.rev-burger.revb-darknoborder span { + background: #333; +} + +.rev-burger.revb-whitefull { + background: #fff; + border:none; +} + +.rev-burger.revb-whitefull span { + background:#333; +} + +.rev-burger.revb-darkfull { + background: #333; + border:none; +} + +.rev-burger.revb-darkfull span { + background:#fff; +} + + +/* SCROLL DOWN BUTTON */ +@-webkit-keyframes rev-ani-mouse { + 0% { opacity: 1;top: 29%;} + 15% {opacity: 1;top: 50%;} + 50% { opacity: 0;top: 50%;} + 100% { opacity: 0;top: 29%;} +} +@-moz-keyframes rev-ani-mouse { + 0% {opacity: 1;top: 29%;} + 15% {opacity: 1;top: 50%;} + 50% {opacity: 0;top: 50%;} + 100% {opacity: 0;top: 29%;} +} +@keyframes rev-ani-mouse { + 0% {opacity: 1;top: 29%;} + 15% {opacity: 1;top: 50%;} + 50% {opacity: 0;top: 50%;} + 100% {opacity: 0;top: 29%;} +} +.rev-scroll-btn { + display: inline-block; + position: relative; + left: 0; + right: 0; + text-align: center; + cursor: pointer; + width:35px; + height:55px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border: 3px solid white; + border-radius: 23px; +} +.rev-scroll-btn > * { + display: inline-block; + line-height: 18px; + font-size: 13px; + font-weight: normal; + color: #7f8c8d; + color: #fff; + font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; + letter-spacing: 2px; +} +.rev-scroll-btn > *:hover, +.rev-scroll-btn > *:focus, +.rev-scroll-btn > *.active { + color: #fff; +} +.rev-scroll-btn > *:hover, +.rev-scroll-btn > *:focus, +.rev-scroll-btn > *:active, +.rev-scroll-btn > *.active { + filter: alpha(opacity=80); +} + +.rev-scroll-btn.revs-fullwhite { + background:#fff; +} + +.rev-scroll-btn.revs-fullwhite span { + background: #333; +} + +.rev-scroll-btn.revs-fulldark { + background:#333; + border:none; +} + +.rev-scroll-btn.revs-fulldark span { + background: #fff; +} + +.rev-scroll-btn span { + position: absolute; + display: block; + top: 29%; + left: 50%; + width: 8px; + height: 8px; + margin: -4px 0 0 -4px; + background: white; + border-radius: 50%; + -webkit-animation: rev-ani-mouse 2.5s linear infinite; + -moz-animation: rev-ani-mouse 2.5s linear infinite; + animation: rev-ani-mouse 2.5s linear infinite; +} + +.rev-scroll-btn.revs-dark { + border-color:#333; +} +.rev-scroll-btn.revs-dark span { + background: #333; +} + +.rev-control-btn { + position: relative; + display: inline-block; + z-index: 5; + color: #FFF; + font-size: 20px; + line-height: 60px; + font-weight: 400; + font-style: normal; + font-family: Raleway; + text-decoration: none; + text-align: center; + background-color: #000; + border-radius: 50px; + text-shadow: none; + background-color: rgba(0, 0, 0, 0.50); + width:60px; + height:60px; + box-sizing: border-box; + cursor: pointer; +} + +.rev-cbutton-dark-sr { + border-radius: 3px; +} + +.rev-cbutton-light { + color: #333; + background-color: rgba(255,255,255, 0.75); +} + +.rev-cbutton-light-sr { + color: #333; + border-radius: 3px; + background-color: rgba(255,255,255, 0.75); +} + + +.rev-sbutton { + line-height: 37px; + width:37px; + height:37px; +} + +.rev-sbutton-blue { + background-color: #3B5998 +} +.rev-sbutton-lightblue { + background-color: #00A0D1; +} +.rev-sbutton-red { + background-color: #DD4B39; +} + + + + +/************************************ +- TP BANNER TIMER - +*************************************/ +.tp-bannertimer { visibility: hidden; width:100%; height:5px; /*background:url(../assets/timer.png);*/ background: #fff; background: rgba(0,0,0,0.15); position:absolute; z-index:200; top:0px} +.tp-bannertimer.tp-bottom { top:auto; bottom:0px !important;height:5px} + + +/********************************************* +- BASIC SETTINGS FOR THE BANNER - +***********************************************/ + + .tp-simpleresponsive img { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; +} + +.tp-caption img { + background: transparent; + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); + zoom: 1; +} + + + +/* CAPTION SLIDELINK **/ +.caption.slidelink a div, +.tp-caption.slidelink a div { width:3000px; height:1500px; background:url(../assets/coloredbg.png) repeat} +.tp-caption.slidelink a span{ background:url(../assets/coloredbg.png) repeat} +.tp-shape { width:100%;height:100%;} + + + +/********************************************* +- WOOCOMMERCE STYLES - +***********************************************/ + +.tp-caption .rs-starring { display: inline-block} +.tp-caption .rs-starring .star-rating { float: none;} + +.tp-caption .rs-starring .star-rating { + color: #FFC321 !important; + display: inline-block; + vertical-align: top; +} + +.tp-caption .rs-starring .star-rating, +.tp-caption .rs-starring-page .star-rating { + position: relative; + height: 1em; + + width: 5.4em; + font-family: star; +} + +.tp-caption .rs-starring .star-rating:before, +.tp-caption .rs-starring-page .star-rating:before { + content: "\73\73\73\73\73"; + color: #E0DADF; + float: left; + top: 0; + left: 0; + position: absolute; +} + +.tp-caption .rs-starring .star-rating span { + overflow: hidden; + float: left; + top: 0; + left: 0; + position: absolute; + padding-top: 1.5em; + font-size: 1em !important; +} + +.tp-caption .rs-starring .star-rating span:before, +.tp-caption .rs-starring .star-rating span:before { + content: "\53\53\53\53\53"; + top: 0; + position: absolute; + left: 0; +} + +.tp-caption .rs-starring .star-rating { + color: #FFC321 !important; +} + + +.tp-caption .rs-starring .star-rating, +.tp-caption .rs-starring-page .star-rating { + + font-size: 1em !important; + font-family: star; +} + + +/****************************** + - LOADER FORMS - +********************************/ + +.tp-loader { + top:50%; left:50%; + z-index:10000; + position:absolute; +} + +.tp-loader.spinner0 { + width: 40px; + height: 40px; + background-color: #fff; + background-image:url(../assets/loader.gif); + background-repeat:no-repeat; + background-position: center center; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + margin-top:-20px; + margin-left:-20px; + -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; + animation: tp-rotateplane 1.2s infinite ease-in-out; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + +.tp-loader.spinner1 { + width: 40px; + height: 40px; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + margin-top:-20px; + margin-left:-20px; + -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; + animation: tp-rotateplane 1.2s infinite ease-in-out; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + + +.tp-loader.spinner5 { + background-image:url(../assets/loader.gif); + background-repeat:no-repeat; + background-position:10px 10px; + background-color:#fff; + margin:-22px -22px; + width:44px;height:44px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + +@-webkit-keyframes tp-rotateplane { + 0% { -webkit-transform: perspective(120px) } + 50% { -webkit-transform: perspective(120px) rotateY(180deg) } + 100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) } +} + +@keyframes tp-rotateplane { + 0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg);} + 50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);} + 100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);} +} + + +.tp-loader.spinner2 { + width: 40px; + height: 40px; + margin-top:-20px;margin-left:-20px; + background-color: #ff0000; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + border-radius: 100%; + -webkit-animation: tp-scaleout 1.0s infinite ease-in-out; + animation: tp-scaleout 1.0s infinite ease-in-out; +} + +@-webkit-keyframes tp-scaleout { + 0% { -webkit-transform: scale(0.0) } + 100% {-webkit-transform: scale(1.0); opacity: 0;} +} + +@keyframes tp-scaleout { + 0% {transform: scale(0.0);-webkit-transform: scale(0.0);} + 100% {transform: scale(1.0);-webkit-transform: scale(1.0);opacity: 0;} +} + + +.tp-loader.spinner3 { + margin: -9px 0px 0px -35px; + width: 70px; + text-align: center; +} + +.tp-loader.spinner3 .bounce1, +.tp-loader.spinner3 .bounce2, +.tp-loader.spinner3 .bounce3 { + width: 18px; + height: 18px; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + border-radius: 100%; + display: inline-block; + -webkit-animation: tp-bouncedelay 1.4s infinite ease-in-out; + animation: tp-bouncedelay 1.4s infinite ease-in-out; + /* Prevent first frame from flickering when animation starts */ + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} + +.tp-loader.spinner3 .bounce1 { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.tp-loader.spinner3 .bounce2 { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +@-webkit-keyframes tp-bouncedelay { + 0%, 80%, 100% { -webkit-transform: scale(0.0) } + 40% { -webkit-transform: scale(1.0) } +} + +@keyframes tp-bouncedelay { + 0%, 80%, 100% {transform: scale(0.0);} + 40% {transform: scale(1.0);} +} + + + + +.tp-loader.spinner4 { + margin: -20px 0px 0px -20px; + width: 40px; + height: 40px; + text-align: center; + -webkit-animation: tp-rotate 2.0s infinite linear; + animation: tp-rotate 2.0s infinite linear; +} + +.tp-loader.spinner4 .dot1, +.tp-loader.spinner4 .dot2 { + width: 60%; + height: 60%; + display: inline-block; + position: absolute; + top: 0; + background-color: #fff; + border-radius: 100%; + -webkit-animation: tp-bounce 2.0s infinite ease-in-out; + animation: tp-bounce 2.0s infinite ease-in-out; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); +} + +.tp-loader.spinner4 .dot2 { + top: auto; + bottom: 0px; + -webkit-animation-delay: -1.0s; + animation-delay: -1.0s; +} + +@-webkit-keyframes tp-rotate { 100% { -webkit-transform: rotate(360deg) }} +@keyframes tp-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }} + +@-webkit-keyframes tp-bounce { + 0%, 100% { -webkit-transform: scale(0.0) } + 50% { -webkit-transform: scale(1.0) } +} + +@keyframes tp-bounce { + 0%, 100% {transform: scale(0.0);} + 50% { transform: scale(1.0);} +} + + + +/*********************************************** + - STANDARD NAVIGATION SETTINGS +***********************************************/ + + +.tp-thumbs.navbar, +.tp-bullets.navbar, +.tp-tabs.navbar { border:none; min-height: 0; margin:0; border-radius: 0; -moz-border-radius:0; -webkit-border-radius:0;} + +.tp-tabs, +.tp-thumbs, +.tp-bullets { position:absolute; display:block; z-index:1000; top:0px; left:0px;} + +.tp-tab, +.tp-thumb { cursor: pointer; position:absolute;opacity:0.5; box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;} + +.tp-arr-imgholder, +.tp-videoposter, +.tp-thumb-image, +.tp-tab-image { background-position: center center; background-size:cover;width:100%;height:100%; display:block; position:absolute;top:0px;left:0px;} + +.tp-tab:hover, +.tp-tab.selected, +.tp-thumb:hover, +.tp-thumb.selected { opacity:1;} + +.tp-tab-mask, +.tp-thumb-mask { box-sizing:border-box !important; -webkit-box-sizing:border-box !important; -moz-box-sizing:border-box !important} + +.tp-tabs, +.tp-thumbs { box-sizing:content-box !important; -webkit-box-sizing:content-box !important; -moz-box-sizing: content-box !important} + +.tp-bullet { width:15px;height:15px; position:absolute; background:#fff; background:rgba(255,255,255,0.3); cursor: pointer;} +.tp-bullet.selected, +.tp-bullet:hover { background:#fff;} + +.tp-bannertimer { background:#000; background:rgba(0,0,0,0.15); height:5px;} + + +.tparrows { cursor:pointer; background:#000; background:rgba(0,0,0,0.5); width:40px;height:40px;position:absolute; display:block; z-index:1000; } +.tparrows:hover { background:#000;} +.tparrows:before { font-family: "revicons"; font-size:15px; color:#fff; display:block; line-height: 40px; text-align: center;} +.tparrows.tp-leftarrow:before { content: '\e824'; } +.tparrows.tp-rightarrow:before { content: '\e825'; } + + + +/*************************** + - KEN BURNS FIXES - +***************************/ + +body.rtl .tp-kbimg {left: 0 !important} + + + +/*************************** + - 3D SHADOW MODE - +***************************/ + +.dddwrappershadow { box-shadow:0 45px 100px rgba(0, 0, 0, 0.4);} + +/******************* + - DEBUG MODE - +*******************/ + +.hglayerinfo { position: fixed; + bottom: 0px; + left: 0px; + color: #FFF; + font-size: 12px; + line-height: 20px; + font-weight: 600; + background: rgba(0, 0, 0, 0.75); + padding: 5px 10px; + z-index: 2000; + white-space: normal;} +.hginfo { position:absolute;top:-2px;left:-2px;color:#e74c3c;font-size:12px;font-weight:600; background:#000;padding:2px 5px;} +.indebugmode .tp-caption:hover { border:1px dashed #c0392b !important;} +.helpgrid { border:2px dashed #c0392b;position:absolute;top:0px;left:0px;z-index:0 } +#revsliderlogloglog { padding:15px;color:#fff;position:fixed; top:0px;left:0px;width:200px;height:150px;background:rgba(0,0,0,0.7); z-index:100000; font-size:10px; overflow:scroll;} + + + +/** +INSTAGRAM FILTERS BY UNA +https://una.im/CSSgram/ +**/ +.aden{-webkit-filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2);filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)}.aden::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.perpetua::after,.reyes::after{mix-blend-mode:soft-light;opacity:.5}.inkwell{-webkit-filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1);filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1)}.perpetua::after{background:-webkit-linear-gradient(top,#005b9a,#e6c13d);background:linear-gradient(to bottom,#005b9a,#e6c13d)}.reyes{-webkit-filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75);filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75)}.reyes::after{background:#efcdad}.gingham{-webkit-filter:brightness(1.05) hue-rotate(-10deg);filter:brightness(1.05) hue-rotate(-10deg)}.gingham::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.toaster{-webkit-filter:contrast(1.5) brightness(.9);filter:contrast(1.5) brightness(.9)}.toaster::after{background:-webkit-radial-gradient(circle,#804e0f,#3b003b);background:radial-gradient(circle,#804e0f,#3b003b);mix-blend-mode:screen}.walden{-webkit-filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6);filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6)}.walden::after{background:#04c;mix-blend-mode:screen;opacity:.3}.hudson{-webkit-filter:brightness(1.2) contrast(.9) saturate(1.1);filter:brightness(1.2) contrast(.9) saturate(1.1)}.hudson::after{background:-webkit-radial-gradient(circle,#a6b1ff 50%,#342134);background:radial-gradient(circle,#a6b1ff 50%,#342134);mix-blend-mode:multiply;opacity:.5}.earlybird{-webkit-filter:contrast(.9) sepia(.2);filter:contrast(.9) sepia(.2)}.earlybird::after{background:-webkit-radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);background:radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);mix-blend-mode:overlay}.mayfair{-webkit-filter:contrast(1.1) saturate(1.1);filter:contrast(1.1) saturate(1.1)}.mayfair::after{background:-webkit-radial-gradient(40% 40%,circle,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);background:radial-gradient(circle at 40% 40%,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);mix-blend-mode:overlay;opacity:.4}.lofi{-webkit-filter:saturate(1.1) contrast(1.5);filter:saturate(1.1) contrast(1.5)}.lofi::after{background:-webkit-radial-gradient(circle,transparent 70%,#222 150%);background:radial-gradient(circle,transparent 70%,#222 150%);mix-blend-mode:multiply}._1977{-webkit-filter:contrast(1.1) brightness(1.1) saturate(1.3);filter:contrast(1.1) brightness(1.1) saturate(1.3)}._1977:after{background:rgba(243,106,188,.3);mix-blend-mode:screen}.brooklyn{-webkit-filter:contrast(.9) brightness(1.1);filter:contrast(.9) brightness(1.1)}.brooklyn::after{background:-webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);background:radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);mix-blend-mode:overlay}.xpro2{-webkit-filter:sepia(.3);filter:sepia(.3)}.xpro2::after{background:-webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);background:radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);mix-blend-mode:color-burn}.nashville{-webkit-filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2);filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2)}.nashville::after{background:rgba(0,70,150,.4);mix-blend-mode:lighten}.nashville::before{background:rgba(247,176,153,.56);mix-blend-mode:darken}.lark{-webkit-filter:contrast(.9);filter:contrast(.9)}.lark::after{background:rgba(242,242,242,.8);mix-blend-mode:darken}.lark::before{background:#22253f;mix-blend-mode:color-dodge}.moon{-webkit-filter:grayscale(1) contrast(1.1) brightness(1.1);filter:grayscale(1) contrast(1.1) brightness(1.1)}.moon::before{background:#a0a0a0;mix-blend-mode:soft-light}.moon::after{background:#383838;mix-blend-mode:lighten}.clarendon{-webkit-filter:contrast(1.2) saturate(1.35);filter:contrast(1.2) saturate(1.35)}.clarendon:before{background:rgba(127,187,227,.2);mix-blend-mode:overlay}.willow{-webkit-filter:grayscale(.5) contrast(.95) brightness(.9);filter:grayscale(.5) contrast(.95) brightness(.9)}.willow::before{background-color:radial-gradient(40%,circle,#d4a9af 55%,#000 150%);mix-blend-mode:overlay}.willow::after{background-color:#d8cdcb;mix-blend-mode:color}.rise{-webkit-filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9);filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9)}.rise::after{background:-webkit-radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);background:radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);mix-blend-mode:overlay;opacity:.6}.rise::before{background:-webkit-radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));background:radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));mix-blend-mode:multiply}._1977:after,._1977:before,.aden:after,.aden:before,.brooklyn:after,.brooklyn:before,.clarendon:after,.clarendon:before,.earlybird:after,.earlybird:before,.gingham:after,.gingham:before,.hudson:after,.hudson:before,.inkwell:after,.inkwell:before,.lark:after,.lark:before,.lofi:after,.lofi:before,.mayfair:after,.mayfair:before,.moon:after,.moon:before,.nashville:after,.nashville:before,.perpetua:after,.perpetua:before,.reyes:after,.reyes:before,.rise:after,.rise:before,.slumber:after,.slumber:before,.toaster:after,.toaster:before,.walden:after,.walden:before,.willow:after,.willow:before,.xpro2:after,.xpro2:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}._1977,.aden,.brooklyn,.clarendon,.earlybird,.gingham,.hudson,.inkwell,.lark,.lofi,.mayfair,.moon,.nashville,.perpetua,.reyes,.rise,.slumber,.toaster,.walden,.willow,.xpro2{position:relative}._1977 img,.aden img,.brooklyn img,.clarendon img,.earlybird img,.gingham img,.hudson img,.inkwell img,.lark img,.lofi img,.mayfair img,.moon img,.nashville img,.perpetua img,.reyes img,.rise img,.slumber img,.toaster img,.walden img,.willow img,.xpro2 img{width:100%;z-index:1}._1977:before,.aden:before,.brooklyn:before,.clarendon:before,.earlybird:before,.gingham:before,.hudson:before,.inkwell:before,.lark:before,.lofi:before,.mayfair:before,.moon:before,.nashville:before,.perpetua:before,.reyes:before,.rise:before,.slumber:before,.toaster:before,.walden:before,.willow:before,.xpro2:before{z-index:2}._1977:after,.aden:after,.brooklyn:after,.clarendon:after,.earlybird:after,.gingham:after,.hudson:after,.inkwell:after,.lark:after,.lofi:after,.mayfair:after,.moon:after,.nashville:after,.perpetua:after,.reyes:after,.rise:after,.slumber:after,.toaster:after,.walden:after,.willow:after,.xpro2:after{z-index:3}.slumber{-webkit-filter:saturate(.66) brightness(1.05);filter:saturate(.66) brightness(1.05)}.slumber::after{background:rgba(125,105,24,.5);mix-blend-mode:soft-light}.slumber::before{background:rgba(69,41,12,.4);mix-blend-mode:lighten} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/settings-ver.5.3.1.css b/public/assets/plugins/rs-plugin-5.3.1/css/settings-ver.5.3.1.css new file mode 100644 index 0000000..7d77007 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/settings-ver.5.3.1.css @@ -0,0 +1,1405 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.0 Default Style Settings - + +Screen Stylesheet + +version: 5.0.0 +date: 29/10/15 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + +#debungcontrolls { + z-index:100000; + position:fixed; + bottom:0px; width:100%; + height:auto; + background:rgba(0,0,0,0.6); + padding:10px; + box-sizing: border-box; +} + +.debugtimeline { + width:100%; + height:10px; + position:relative; + display:block; + margin-bottom:3px; + display:none; + white-space: nowrap; + box-sizing: border-box; +} + +.debugtimeline:hover { + height:15px; + +} + +.the_timeline_tester { + background:#e74c3c; + position:absolute; + top:0px; + left:0px; + height:100%; + width:0; +} + + +.debugtimeline.tl_slide .the_timeline_tester { + background:#f39c12; +} + +.debugtimeline.tl_frame .the_timeline_tester { + background:#3498db; +} + +.debugtimline_txt { + color:#fff; + font-weight: 400; + font-size:7px; + position:absolute; + left:10px; + top:0px; + white-space: nowrap; + line-height: 10px; +} + + +.rtl { direction: rtl;} +@font-face { + font-family: 'revicons'; + src: url('../fonts/revicons/revicons.eot?5510888'); + src: url('../fonts/revicons/revicons.eot?5510888#iefix') format('embedded-opentype'), + url('../fonts/revicons/revicons.woff?5510888') format('woff'), + url('../fonts/revicons/revicons.ttf?5510888') format('truetype'), + url('../fonts/revicons/revicons.svg?5510888#revicons') format('svg'); + font-weight: normal; + font-style: normal; +} + + [class^="revicon-"]:before, [class*=" revicon-"]:before { + font-family: "revicons"; + font-style: normal; + font-weight: normal; + speak: none; + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Animation center compensation - margins should be symmetric */ + /* remove if not needed */ + margin-left: .2em; + + /* you can be more comfortable with increased icons size */ + /* font-size: 120%; */ + + /* Uncomment for 3D effect */ + /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ +} + +.revicon-search-1:before { content: '\e802'; } /* '' */ +.revicon-pencil-1:before { content: '\e831'; } /* '' */ +.revicon-picture-1:before { content: '\e803'; } /* '' */ +.revicon-cancel:before { content: '\e80a'; } /* '' */ +.revicon-info-circled:before { content: '\e80f'; } /* '' */ +.revicon-trash:before { content: '\e801'; } /* '' */ +.revicon-left-dir:before { content: '\e817'; } /* '' */ +.revicon-right-dir:before { content: '\e818'; } /* '' */ +.revicon-down-open:before { content: '\e83b'; } /* '' */ +.revicon-left-open:before { content: '\e819'; } /* '' */ +.revicon-right-open:before { content: '\e81a'; } /* '' */ +.revicon-angle-left:before { content: '\e820'; } /* '' */ +.revicon-angle-right:before { content: '\e81d'; } /* '' */ +.revicon-left-big:before { content: '\e81f'; } /* '' */ +.revicon-right-big:before { content: '\e81e'; } /* '' */ +.revicon-magic:before { content: '\e807'; } /* '' */ +.revicon-picture:before { content: '\e800'; } /* '' */ +.revicon-export:before { content: '\e80b'; } /* '' */ +.revicon-cog:before { content: '\e832'; } /* '' */ +.revicon-login:before { content: '\e833'; } /* '' */ +.revicon-logout:before { content: '\e834'; } /* '' */ +.revicon-video:before { content: '\e805'; } /* '' */ +.revicon-arrow-combo:before { content: '\e827'; } /* '' */ +.revicon-left-open-1:before { content: '\e82a'; } /* '' */ +.revicon-right-open-1:before { content: '\e82b'; } /* '' */ +.revicon-left-open-mini:before { content: '\e822'; } /* '' */ +.revicon-right-open-mini:before { content: '\e823'; } /* '' */ +.revicon-left-open-big:before { content: '\e824'; } /* '' */ +.revicon-right-open-big:before { content: '\e825'; } /* '' */ +.revicon-left:before { content: '\e836'; } /* '' */ +.revicon-right:before { content: '\e826'; } /* '' */ +.revicon-ccw:before { content: '\e808'; } /* '' */ +.revicon-arrows-ccw:before { content: '\e806'; } /* '' */ +.revicon-palette:before { content: '\e829'; } /* '' */ +.revicon-list-add:before { content: '\e80c'; } /* '' */ +.revicon-doc:before { content: '\e809'; } /* '' */ +.revicon-left-open-outline:before { content: '\e82e'; } /* '' */ +.revicon-left-open-2:before { content: '\e82c'; } /* '' */ +.revicon-right-open-outline:before { content: '\e82f'; } /* '' */ +.revicon-right-open-2:before { content: '\e82d'; } /* '' */ +.revicon-equalizer:before { content: '\e83a'; } /* '' */ +.revicon-layers-alt:before { content: '\e804'; } /* '' */ +.revicon-popup:before { content: '\e828'; } /* '' */ + + + +/****************************** + - BASIC STYLES - +******************************/ + +.rev_slider_wrapper{ + position:relative; + z-index: 0; +} + + +.rev_slider{ + position:relative; + overflow:visible; +} + +.entry-content .rev_slider a, +.rev_slider a { box-shadow: none; } + +.tp-overflow-hidden { overflow:hidden !important;} +.group_ov_hidden { overflow:hidden} + +.tp-simpleresponsive img, +.rev_slider img{ + max-width:none !important; + -moz-transition: none; + -webkit-transition: none; + -o-transition: none; + transition: none; + margin:0px; + padding:0px; + border-width:0px; + border:none; +} + +.rev_slider .no-slides-text{ + font-weight:bold; + text-align:center; + padding-top:80px; +} + +.rev_slider >ul, +.rev_slider_wrapper >ul, +.tp-revslider-mainul >li, +.rev_slider >ul >li, +.rev_slider >ul >li:before, +.tp-revslider-mainul >li:before, +.tp-simpleresponsive >ul, +.tp-simpleresponsive >ul >li, +.tp-simpleresponsive >ul >li:before, +.tp-revslider-mainul >li, +.tp-simpleresponsive >ul >li{ + list-style:none !important; + position:absolute; + margin:0px !important; + padding:0px !important; + overflow-x: visible; + overflow-y: visible; + list-style-type: none !important; + background-image:none; + background-position:0px 0px; + text-indent: 0em; + top:0px;left:0px; +} + + +.tp-revslider-mainul >li, +.rev_slider >ul >li, +.rev_slider >ul >li:before, +.tp-revslider-mainul >li:before, +.tp-simpleresponsive >ul >li, +.tp-simpleresponsive >ul >li:before, +.tp-revslider-mainul >li, +.tp-simpleresponsive >ul >li { + visibility:hidden; +} + +.tp-revslider-slidesli, +.tp-revslider-mainul { + padding:0 !important; + margin:0 !important; + list-style:none !important; +} + +.rev_slider li.tp-revslider-slidesli { + position: absolute !important; +} + + +.tp-caption .rs-untoggled-content { display:block;} +.tp-caption .rs-toggled-content { display:none;} + +.rs-toggle-content-active.tp-caption .rs-toggled-content { display:block;} +.rs-toggle-content-active.tp-caption .rs-untoggled-content { display:none;} + +.rev_slider .tp-caption, +.rev_slider .caption { + position:relative; + visibility:hidden; + white-space: nowrap; + display: block; +} + + +.rev_slider .tp-mask-wrap .tp-caption, +.rev_slider .tp-mask-wrap *:last-child, +.wpb_text_column .rev_slider .tp-mask-wrap .tp-caption, +.wpb_text_column .rev_slider .tp-mask-wrap *:last-child{ + margin-bottom:0; + +} + +.tp-svg-layer svg { width:100%; height:100%;position: relative;vertical-align: top} + + +/* CAROUSEL FUNCTIONS */ +.tp-carousel-wrapper { + cursor:url(openhand.cur), move; +} +.tp-carousel-wrapper.dragged { + cursor:url(closedhand.cur), move; +} + +/* ADDED FOR SLIDELINK MANAGEMENT */ +.tp-caption { + z-index:1 +} + +.tp_inner_padding { + box-sizing:border-box; + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + max-height:none !important; +} + + +.tp-caption { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; + position:absolute; + -webkit-font-smoothing: antialiased !important; +} + +.tp-caption.tp-layer-selectable { + -moz-user-select: all; + -khtml-user-select: all; + -webkit-user-select: all; + -o-user-select: all; +} + +.tp-forcenotvisible, +.tp-hide-revslider, +.tp-caption.tp-hidden-caption, +.tp-parallax-wrap.tp-hidden-caption { + visibility:hidden !important; + display:none !important +} + +.rev_slider embed, +.rev_slider iframe, +.rev_slider object, +.rev_slider audio, +.rev_slider video { + max-width: none !important +} + +.tp-element-background { position:absolute; top:0px;left:0px; width:100%;height:100%;z-index:0;} + +/*********************************************************** + - ZONES / GOUP / ROW / COLUMN LAYERS AND HELPERS - +***********************************************************/ +.rev_row_zone { position:absolute; width:100%;left:0px; box-sizing: border-box;min-height:50px; font-size:0px;} + +.rev_row_zone_top { top:0px;} +.rev_row_zone_middle { top:50%; -webit-transform:translateY(-50%);transform:translateY(-50%);} +.rev_row_zone_bottom { bottom:0px;} + +.rev_column .tp-parallax-wrap { vertical-align: top } + +.rev_slider .tp-caption.rev_row { + display:table; + position:relative; + width:100% !important; + table-layout: fixed; + box-sizing: border-box; + vertical-align: top; + height:auto !important; + font-size:0px; +} + +.rev_column { + display: table-cell; + position: relative; + vertical-align: top; + height: auto; + box-sizing: border-box; + font-size:0px; +} + +.rev_column_inner { + box-sizing: border-box; + display: block; + position: relative; + width:100% !important; + height:auto !important; + white-space: normal !important; +} + +.rev_column_bg { + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + z-index: 0; + box-sizing: border-box; + background-clip: content-box; + border: 0px solid transparent; +} + + + +.rev_column_inner .tp-parallax-wrap, +.rev_column_inner .tp-loop-wrap, +.rev_column_inner .tp-mask-wrap { text-align: inherit; } +.rev_column_inner .tp-mask-wrap { display: inline-block;} + + +.rev_column_inner .tp-parallax-wrap .tp-loop-wrap, +.rev_column_inner .tp-parallax-wrap .tp-mask-wrap, +.rev_column_inner .tp-parallax-wrap { position: relative !important; left:auto !important; top:auto !important; line-height: 0px;} + +.rev_column_inner .tp-parallax-wrap .tp-loop-wrap, +.rev_column_inner .tp-parallax-wrap .tp-mask-wrap, +.rev_column_inner .tp-parallax-wrap, +.rev_column_inner .rev_layer_in_column { vertical-align: top; } + +.rev_break_columns { display: block !important } +.rev_break_columns .tp-parallax-wrap.rev_column { display:block !important; width:100% !important; } + + +/********************************************** + - FULLSCREEN AND FULLWIDHT CONTAINERS - +**********************************************/ +.rev_slider_wrapper { width:100%;} + +.fullscreen-container { + position:relative; + padding:0; +} + + +.fullwidthbanner-container{ + position:relative; + padding:0; + overflow:hidden; +} + +.fullwidthbanner-container .fullwidthabanner{ + width:100%; + position:relative; +} + + + +/********************************* + - SPECIAL TP CAPTIONS - +**********************************/ + +.tp-static-layers { + position:absolute; z-index:101; top:0px;left:0px; + /*pointer-events:none;*/ + +} + + +.tp-caption .frontcorner { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; +} + +.tp-caption .backcorner { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; +} + +.tp-caption .frontcornertop { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; +} + +.tp-caption .backcornertop { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; +} + +.tp-layer-inner-rotation { + position: relative !important; +} + + +/*********************************************** + - SPECIAL ALTERNATIVE IMAGE SETTINGS - +***********************************************/ + +img.tp-slider-alternative-image { + width:100%; height:auto; +} + + +/****************************** + - IE8 HACKS - +*******************************/ +.noFilterClass { + filter:none !important; +} + + +/******************************** + - FULLSCREEN VIDEO - +*********************************/ + +.rs-background-video-layer { position: absolute;top:0px;left:0px; width:100%;height:100%;visibility: hidden;z-index: 0;} + +.tp-caption.coverscreenvideo { width:100%;height:100%;top:0px;left:0px;position:absolute;} +.caption.fullscreenvideo, +.tp-caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%} + +.caption.fullscreenvideo iframe, +.caption.fullscreenvideo audio, +.caption.fullscreenvideo video, +.tp-caption.fullscreenvideo iframe, +.tp-caption.fullscreenvideo iframe audio, +.tp-caption.fullscreenvideo iframe video { width:100% !important; height:100% !important; display: none} + +.fullcoveredvideo audio, +.fullscreenvideo audio +.fullcoveredvideo video, +.fullscreenvideo video { background: #000} + +.fullcoveredvideo .tp-poster { background-position: center center;background-size: cover;width:100%;height:100%;top:0px;left:0px} + + +.videoisplaying .html5vid .tp-poster { display: none} + +.tp-video-play-button { + background:#000; + background:rgba(0,0,0,0.3); + border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; + position: absolute; + top: 50%; + left: 50%; + color: #FFF; + z-index: 3; + margin-top: -25px; + margin-left: -25px; + line-height: 50px !important; + text-align: center; + cursor: pointer; + width: 50px; + height:50px; + box-sizing: border-box; + -moz-box-sizing: border-box; + display: inline-block; + vertical-align: top; + z-index: 4; + opacity: 0; + -webkit-transition:opacity 300ms ease-out !important; + -moz-transition:opacity 300ms ease-out !important; + -o-transition:opacity 300ms ease-out !important; + transition:opacity 300ms ease-out !important; +} + +.tp-hiddenaudio, +.tp-audio-html5 .tp-video-play-button { display:none !important;} +.tp-caption .html5vid { width:100% !important; height:100% !important;} +.tp-video-play-button i { width:50px;height:50px; display:inline-block; text-align: center; vertical-align: top; line-height: 50px !important; font-size: 40px !important;} +.tp-caption:hover .tp-video-play-button { opacity: 1;} +.tp-caption .tp-revstop { display:none; border-left:5px solid #fff !important; border-right:5px solid #fff !important;margin-top:15px !important;line-height: 20px !important;vertical-align: top; font-size:25px !important;} +.videoisplaying .revicon-right-dir { display:none} +.videoisplaying .tp-revstop { display:inline-block} + +.videoisplaying .tp-video-play-button { display:none} +.tp-caption:hover .tp-video-play-button { display:block} + +.fullcoveredvideo .tp-video-play-button { display:none !important} + + +.fullscreenvideo .fullscreenvideo audio { object-fit:contain !important;} +.fullscreenvideo .fullscreenvideo video { object-fit:contain !important;} + +.fullscreenvideo .fullcoveredvideo audio { object-fit:cover !important;} +.fullscreenvideo .fullcoveredvideo video { object-fit:cover !important;} + +.tp-video-controls { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 5px; + opacity: 0; + -webkit-transition: opacity .3s; + -moz-transition: opacity .3s; + -o-transition: opacity .3s; + -ms-transition: opacity .3s; + transition: opacity .3s; + background-image: linear-gradient(to bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -o-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -moz-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -webkit-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -ms-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.13, rgb(0,0,0)),color-stop(1, rgb(50,50,50))); + display:table;max-width:100%; overflow:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; +} + +.tp-caption:hover .tp-video-controls { opacity: .9;} + +.tp-video-button { + background: rgba(0,0,0,.5); + border: 0; + color: #EEE; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; + cursor:pointer; + line-height:12px; + font-size:12px; + color:#fff; + padding:0px; + margin:0px; + outline: none; + } +.tp-video-button:hover { cursor: pointer;} + + +.tp-video-button-wrap, +.tp-video-seek-bar-wrap, +.tp-video-vol-bar-wrap { padding:0px 5px;display:table-cell; vertical-align: middle;} + +.tp-video-seek-bar-wrap { width:80%} +.tp-video-vol-bar-wrap { width:20%} + +.tp-volume-bar, +.tp-seek-bar { width:100%; cursor: pointer; outline:none; line-height:12px;margin:0; padding:0;} + + +.rs-fullvideo-cover { width:100%;height:100%;top:0px;left:0px;position: absolute; background:transparent;z-index:5;} + + +.rs-background-video-layer video::-webkit-media-controls { display:none !important;} +.rs-background-video-layer audio::-webkit-media-controls { display:none !important;} + +.rs-background-video-layer video::-webkit-media-controls-start-playback-button { + display: none !important; +} + +.tp-audio-html5 .tp-video-controls { opacity: 1 !important; visibility: visible !important} + +.disabled_lc .tp-video-play-button { display:none !important; } +.disabled_lc .tp-video-play-button { display:none !important; } + +/******************************** + - DOTTED OVERLAYS - +*********************************/ +.tp-dottedoverlay { background-repeat:repeat;width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:3} +.tp-dottedoverlay.twoxtwo { background:url(../assets/gridtile.png)} +.tp-dottedoverlay.twoxtwowhite { background:url(../assets/gridtile_white.png)} +.tp-dottedoverlay.threexthree { background:url(../assets/gridtile_3x3.png)} +.tp-dottedoverlay.threexthreewhite { background:url(../assets/gridtile_3x3_white.png)} + + +/****************************** + - SHADOWS - +******************************/ + +.tp-shadowcover { width:100%;height:100%;top:0px;left:0px;background: #fff;position: absolute; z-index: -1;} +.tp-shadow1 { + -webkit-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.8); + -moz-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.8); + box-shadow: 0 10px 6px -6px rgba(0,0,0,0.8); +} + +.tp-shadow2:before, .tp-shadow2:after, +.tp-shadow3:before, .tp-shadow4:after +{ + z-index: -2; + position: absolute; + content: ""; + bottom: 10px; + left: 10px; + width: 50%; + top: 85%; + max-width:300px; + background: transparent; + -webkit-box-shadow: 0 15px 10px rgba(0,0,0,0.8); + -moz-box-shadow: 0 15px 10px rgba(0,0,0,0.8); + box-shadow: 0 15px 10px rgba(0,0,0,0.8); + -webkit-transform: rotate(-3deg); + -moz-transform: rotate(-3deg); + -o-transform: rotate(-3deg); + -ms-transform: rotate(-3deg); + transform: rotate(-3deg); +} + +.tp-shadow2:after, +.tp-shadow4:after +{ + -webkit-transform: rotate(3deg); + -moz-transform: rotate(3deg); + -o-transform: rotate(3deg); + -ms-transform: rotate(3deg); + transform: rotate(3deg); + right: 10px; + left: auto; +} + +.tp-shadow5 +{ + position:relative; + -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; +} +.tp-shadow5:before, .tp-shadow5:after +{ + content:""; + position:absolute; + z-index:-2; + -webkit-box-shadow:0 0 25px 0px rgba(0,0,0,0.6); + -moz-box-shadow:0 0 25px 0px rgba(0,0,0,0.6); + box-shadow:0 0 25px 0px rgba(0,0,0,0.6); + top:30%; + bottom:0; + left:20px; + right:20px; + -moz-border-radius:100px / 20px; + border-radius:100px / 20px; +} + +/****************************** + - BUTTONS - +*******************************/ + +.tp-button{ + padding:6px 13px 5px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + height:30px; + cursor:pointer; + color:#fff !important; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6) !important; font-size:15px; line-height:45px !important; + font-family: arial, sans-serif; font-weight: bold; letter-spacing: -1px; + text-decoration:none; +} + +.tp-button.big { color:#fff; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6); font-weight:bold; padding:9px 20px; font-size:19px; line-height:57px !important; } + + +.purchase:hover, +.tp-button:hover, +.tp-button.big:hover { background-position:bottom, 15px 11px} + + +/* BUTTON COLORS */ + +.tp-button.green, .tp-button:hover.green, +.purchase.green, .purchase:hover.green { background-color:#21a117; -webkit-box-shadow: 0px 3px 0px 0px #104d0b; -moz-box-shadow: 0px 3px 0px 0px #104d0b; box-shadow: 0px 3px 0px 0px #104d0b; } + +.tp-button.blue, .tp-button:hover.blue, +.purchase.blue, .purchase:hover.blue { background-color:#1d78cb; -webkit-box-shadow: 0px 3px 0px 0px #0f3e68; -moz-box-shadow: 0px 3px 0px 0px #0f3e68; box-shadow: 0px 3px 0px 0px #0f3e68} + +.tp-button.red, .tp-button:hover.red, +.purchase.red, .purchase:hover.red { background-color:#cb1d1d; -webkit-box-shadow: 0px 3px 0px 0px #7c1212; -moz-box-shadow: 0px 3px 0px 0px #7c1212; box-shadow: 0px 3px 0px 0px #7c1212} + +.tp-button.orange, .tp-button:hover.orange, +.purchase.orange, .purchase:hover.orange { background-color:#ff7700; -webkit-box-shadow: 0px 3px 0px 0px #a34c00; -moz-box-shadow: 0px 3px 0px 0px #a34c00; box-shadow: 0px 3px 0px 0px #a34c00} + +.tp-button.darkgrey,.tp-button.grey, +.tp-button:hover.darkgrey,.tp-button:hover.grey, +.purchase.darkgrey, .purchase:hover.darkgrey { background-color:#555; -webkit-box-shadow: 0px 3px 0px 0px #222; -moz-box-shadow: 0px 3px 0px 0px #222; box-shadow: 0px 3px 0px 0px #222} + +.tp-button.lightgrey, .tp-button:hover.lightgrey, +.purchase.lightgrey, .purchase:hover.lightgrey { background-color:#888; -webkit-box-shadow: 0px 3px 0px 0px #555; -moz-box-shadow: 0px 3px 0px 0px #555; box-shadow: 0px 3px 0px 0px #555} + + + +/* TP BUTTONS DESKTOP SIZE */ + +.rev-btn, +.rev-btn:visited { outline:none !important; box-shadow:none !important; text-decoration: none !important; line-height: 44px; font-size: 17px; font-weight: 500; padding: 12px 35px; box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; font-family: "Roboto", sans-serif; cursor: pointer;} + +.rev-btn.rev-uppercase, +.rev-btn.rev-uppercase:visited { text-transform: uppercase; letter-spacing: 1px; font-size: 15px; font-weight: 900; } + +.rev-btn.rev-withicon i { font-size: 15px; font-weight: normal; position: relative; top: 0px; -webkit-transition: all 0.2s ease-out !important; -moz-transition: all 0.2s ease-out !important; -o-transition: all 0.2s ease-out !important; -ms-transition: all 0.2s ease-out !important; margin-left:10px !important;} + +.rev-btn.rev-hiddenicon i { font-size: 15px; font-weight: normal; position: relative; top: 0px; -webkit-transition: all 0.2s ease-out !important; -moz-transition: all 0.2s ease-out !important; -o-transition: all 0.2s ease-out !important; -ms-transition: all 0.2s ease-out !important; opacity: 0; margin-left:0px !important; width:0px !important; } +.rev-btn.rev-hiddenicon:hover i { opacity: 1 !important; margin-left:10px !important; width:auto !important;} + +/* REV BUTTONS MEDIUM */ +.rev-btn.rev-medium, +.rev-btn.rev-medium:visited { line-height: 36px; font-size: 14px; padding: 10px 30px; } + +.rev-btn.rev-medium.rev-withicon i { font-size: 14px; top: 0px; } + +.rev-btn.rev-medium.rev-hiddenicon i { font-size: 14px; top: 0px; } + + +/* REV BUTTONS SMALL */ +.rev-btn.rev-small, +.rev-btn.rev-small:visited { line-height: 28px; font-size: 12px; padding: 7px 20px; } + +.rev-btn.rev-small.rev-withicon i { font-size: 12px; top: 0px; } + +.rev-btn.rev-small.rev-hiddenicon i { font-size: 12px; top: 0px; } + + +/* ROUNDING OPTIONS */ +.rev-maxround { -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; } +.rev-minround { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } + + +/* BURGER BUTTON */ +.rev-burger { + position: relative; + width: 60px; + height: 60px; + box-sizing: border-box; + padding: 22px 0 0 14px; + border-radius: 50%; + border: 1px solid rgba(51,51,51,0.25); + tap-highlight-color: transparent; + cursor: pointer; +} +.rev-burger span { + display: block; + width: 30px; + height: 3px; + background: #333; + transition: .7s; + pointer-events: none; + transform-style: flat !important; +} +.rev-burger span:nth-child(2) { + margin: 3px 0; +} + +#dialog_addbutton .rev-burger:hover :first-child, +.open .rev-burger :first-child, +.open.rev-burger :first-child { + transform: translateY(6px) rotate(-45deg); + -webkit-transform: translateY(6px) rotate(-45deg); +} +#dialog_addbutton .rev-burger:hover :nth-child(2), +.open .rev-burger :nth-child(2), +.open.rev-burger :nth-child(2) { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); + opacity: 0; +} +#dialog_addbutton .rev-burger:hover :last-child, +.open .rev-burger :last-child, +.open.rev-burger :last-child { + transform: translateY(-6px) rotate(-135deg); + -webkit-transform: translateY(-6px) rotate(-135deg); +} + +.rev-burger.revb-white { + border: 2px solid rgba(255,255,255,0.2); +} +.rev-burger.revb-white span { + background: #fff; +} +.rev-burger.revb-whitenoborder { + border: 0; +} +.rev-burger.revb-whitenoborder span { + background: #fff; +} +.rev-burger.revb-darknoborder { + border: 0; +} +.rev-burger.revb-darknoborder span { + background: #333; +} + +.rev-burger.revb-whitefull { + background: #fff; + border:none; +} + +.rev-burger.revb-whitefull span { + background:#333; +} + +.rev-burger.revb-darkfull { + background: #333; + border:none; +} + +.rev-burger.revb-darkfull span { + background:#fff; +} + + +/* SCROLL DOWN BUTTON */ +@-webkit-keyframes rev-ani-mouse { + 0% { opacity: 1;top: 29%;} + 15% {opacity: 1;top: 50%;} + 50% { opacity: 0;top: 50%;} + 100% { opacity: 0;top: 29%;} +} +@-moz-keyframes rev-ani-mouse { + 0% {opacity: 1;top: 29%;} + 15% {opacity: 1;top: 50%;} + 50% {opacity: 0;top: 50%;} + 100% {opacity: 0;top: 29%;} +} +@keyframes rev-ani-mouse { + 0% {opacity: 1;top: 29%;} + 15% {opacity: 1;top: 50%;} + 50% {opacity: 0;top: 50%;} + 100% {opacity: 0;top: 29%;} +} +.rev-scroll-btn { + display: inline-block; + position: relative; + left: 0; + right: 0; + text-align: center; + cursor: pointer; + width:35px; + height:55px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border: 3px solid white; + border-radius: 23px; +} +.rev-scroll-btn > * { + display: inline-block; + line-height: 18px; + font-size: 13px; + font-weight: normal; + color: #7f8c8d; + color: #fff; + font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; + letter-spacing: 2px; +} +.rev-scroll-btn > *:hover, +.rev-scroll-btn > *:focus, +.rev-scroll-btn > *.active { + color: #fff; +} +.rev-scroll-btn > *:hover, +.rev-scroll-btn > *:focus, +.rev-scroll-btn > *:active, +.rev-scroll-btn > *.active { + filter: alpha(opacity=80); +} + +.rev-scroll-btn.revs-fullwhite { + background:#fff; +} + +.rev-scroll-btn.revs-fullwhite span { + background: #333; +} + +.rev-scroll-btn.revs-fulldark { + background:#333; + border:none; +} + +.rev-scroll-btn.revs-fulldark span { + background: #fff; +} + +.rev-scroll-btn span { + position: absolute; + display: block; + top: 29%; + left: 50%; + width: 8px; + height: 8px; + margin: -4px 0 0 -4px; + background: white; + border-radius: 50%; + -webkit-animation: rev-ani-mouse 2.5s linear infinite; + -moz-animation: rev-ani-mouse 2.5s linear infinite; + animation: rev-ani-mouse 2.5s linear infinite; +} + +.rev-scroll-btn.revs-dark { + border-color:#333; +} +.rev-scroll-btn.revs-dark span { + background: #333; +} + +.rev-control-btn { + position: relative; + display: inline-block; + z-index: 5; + color: #FFF; + font-size: 20px; + line-height: 60px; + font-weight: 400; + font-style: normal; + font-family: Raleway; + text-decoration: none; + text-align: center; + background-color: #000; + border-radius: 50px; + text-shadow: none; + background-color: rgba(0, 0, 0, 0.50); + width:60px; + height:60px; + box-sizing: border-box; + cursor: pointer; +} + +.rev-cbutton-dark-sr { + border-radius: 3px; +} + +.rev-cbutton-light { + color: #333; + background-color: rgba(255,255,255, 0.75); +} + +.rev-cbutton-light-sr { + color: #333; + border-radius: 3px; + background-color: rgba(255,255,255, 0.75); +} + + +.rev-sbutton { + line-height: 37px; + width:37px; + height:37px; +} + +.rev-sbutton-blue { + background-color: #3B5998 +} +.rev-sbutton-lightblue { + background-color: #00A0D1; +} +.rev-sbutton-red { + background-color: #DD4B39; +} + + + + +/************************************ +- TP BANNER TIMER - +*************************************/ +.tp-bannertimer { visibility: hidden; width:100%; height:5px; /*background:url(../assets/timer.png);*/ background: #fff; background: rgba(0,0,0,0.15); position:absolute; z-index:200; top:0px} +.tp-bannertimer.tp-bottom { top:auto; bottom:0px !important;height:5px} + + +/********************************************* +- BASIC SETTINGS FOR THE BANNER - +***********************************************/ + + .tp-simpleresponsive img { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; +} + +.tp-caption img { + background: transparent; + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); + zoom: 1; +} + + + +/* CAPTION SLIDELINK **/ +.caption.slidelink a div, +.tp-caption.slidelink a div { width:3000px; height:1500px; background:url(../assets/coloredbg.png) repeat} +.tp-caption.slidelink a span{ background:url(../assets/coloredbg.png) repeat} +.tp-shape { width:100%;height:100%;} + + + +/********************************************* +- WOOCOMMERCE STYLES - +***********************************************/ + +.tp-caption .rs-starring { display: inline-block} +.tp-caption .rs-starring .star-rating { float: none;} + +.tp-caption .rs-starring .star-rating { + color: #FFC321 !important; + display: inline-block; + vertical-align: top; +} + +.tp-caption .rs-starring .star-rating, +.tp-caption .rs-starring-page .star-rating { + position: relative; + height: 1em; + + width: 5.4em; + font-family: star; +} + +.tp-caption .rs-starring .star-rating:before, +.tp-caption .rs-starring-page .star-rating:before { + content: "\73\73\73\73\73"; + color: #E0DADF; + float: left; + top: 0; + left: 0; + position: absolute; +} + +.tp-caption .rs-starring .star-rating span { + overflow: hidden; + float: left; + top: 0; + left: 0; + position: absolute; + padding-top: 1.5em; + font-size: 1em !important; +} + +.tp-caption .rs-starring .star-rating span:before, +.tp-caption .rs-starring .star-rating span:before { + content: "\53\53\53\53\53"; + top: 0; + position: absolute; + left: 0; +} + +.tp-caption .rs-starring .star-rating { + color: #FFC321 !important; +} + + +.tp-caption .rs-starring .star-rating, +.tp-caption .rs-starring-page .star-rating { + + font-size: 1em !important; + font-family: star; +} + + +/****************************** + - LOADER FORMS - +********************************/ + +.tp-loader { + top:50%; left:50%; + z-index:10000; + position:absolute; +} + +.tp-loader.spinner0 { + width: 40px; + height: 40px; + background-color: #fff; + background-image:url(../assets/loader.gif); + background-repeat:no-repeat; + background-position: center center; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + margin-top:-20px; + margin-left:-20px; + -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; + animation: tp-rotateplane 1.2s infinite ease-in-out; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + +.tp-loader.spinner1 { + width: 40px; + height: 40px; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + margin-top:-20px; + margin-left:-20px; + -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; + animation: tp-rotateplane 1.2s infinite ease-in-out; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + + +.tp-loader.spinner5 { + background-image:url(../assets/loader.gif); + background-repeat:no-repeat; + background-position:10px 10px; + background-color:#fff; + margin:-22px -22px; + width:44px;height:44px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + +@-webkit-keyframes tp-rotateplane { + 0% { -webkit-transform: perspective(120px) } + 50% { -webkit-transform: perspective(120px) rotateY(180deg) } + 100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) } +} + +@keyframes tp-rotateplane { + 0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg);} + 50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);} + 100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);} +} + + +.tp-loader.spinner2 { + width: 40px; + height: 40px; + margin-top:-20px;margin-left:-20px; + background-color: #ff0000; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + border-radius: 100%; + -webkit-animation: tp-scaleout 1.0s infinite ease-in-out; + animation: tp-scaleout 1.0s infinite ease-in-out; +} + +@-webkit-keyframes tp-scaleout { + 0% { -webkit-transform: scale(0.0) } + 100% {-webkit-transform: scale(1.0); opacity: 0;} +} + +@keyframes tp-scaleout { + 0% {transform: scale(0.0);-webkit-transform: scale(0.0);} + 100% {transform: scale(1.0);-webkit-transform: scale(1.0);opacity: 0;} +} + + +.tp-loader.spinner3 { + margin: -9px 0px 0px -35px; + width: 70px; + text-align: center; +} + +.tp-loader.spinner3 .bounce1, +.tp-loader.spinner3 .bounce2, +.tp-loader.spinner3 .bounce3 { + width: 18px; + height: 18px; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + border-radius: 100%; + display: inline-block; + -webkit-animation: tp-bouncedelay 1.4s infinite ease-in-out; + animation: tp-bouncedelay 1.4s infinite ease-in-out; + /* Prevent first frame from flickering when animation starts */ + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} + +.tp-loader.spinner3 .bounce1 { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.tp-loader.spinner3 .bounce2 { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +@-webkit-keyframes tp-bouncedelay { + 0%, 80%, 100% { -webkit-transform: scale(0.0) } + 40% { -webkit-transform: scale(1.0) } +} + +@keyframes tp-bouncedelay { + 0%, 80%, 100% {transform: scale(0.0);} + 40% {transform: scale(1.0);} +} + + + + +.tp-loader.spinner4 { + margin: -20px 0px 0px -20px; + width: 40px; + height: 40px; + text-align: center; + -webkit-animation: tp-rotate 2.0s infinite linear; + animation: tp-rotate 2.0s infinite linear; +} + +.tp-loader.spinner4 .dot1, +.tp-loader.spinner4 .dot2 { + width: 60%; + height: 60%; + display: inline-block; + position: absolute; + top: 0; + background-color: #fff; + border-radius: 100%; + -webkit-animation: tp-bounce 2.0s infinite ease-in-out; + animation: tp-bounce 2.0s infinite ease-in-out; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); +} + +.tp-loader.spinner4 .dot2 { + top: auto; + bottom: 0px; + -webkit-animation-delay: -1.0s; + animation-delay: -1.0s; +} + +@-webkit-keyframes tp-rotate { 100% { -webkit-transform: rotate(360deg) }} +@keyframes tp-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }} + +@-webkit-keyframes tp-bounce { + 0%, 100% { -webkit-transform: scale(0.0) } + 50% { -webkit-transform: scale(1.0) } +} + +@keyframes tp-bounce { + 0%, 100% {transform: scale(0.0);} + 50% { transform: scale(1.0);} +} + + + +/*********************************************** + - STANDARD NAVIGATION SETTINGS +***********************************************/ + + +.tp-thumbs.navbar, +.tp-bullets.navbar, +.tp-tabs.navbar { border:none; min-height: 0; margin:0; border-radius: 0; -moz-border-radius:0; -webkit-border-radius:0;} + +.tp-tabs, +.tp-thumbs, +.tp-bullets { position:absolute; display:block; z-index:1000; top:0px; left:0px;} + +.tp-tab, +.tp-thumb { cursor: pointer; position:absolute;opacity:0.5; box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;} + +.tp-arr-imgholder, +.tp-videoposter, +.tp-thumb-image, +.tp-tab-image { background-position: center center; background-size:cover;width:100%;height:100%; display:block; position:absolute;top:0px;left:0px;} + +.tp-tab:hover, +.tp-tab.selected, +.tp-thumb:hover, +.tp-thumb.selected { opacity:1;} + +.tp-tab-mask, +.tp-thumb-mask { box-sizing:border-box !important; -webkit-box-sizing:border-box !important; -moz-box-sizing:border-box !important} + +.tp-tabs, +.tp-thumbs { box-sizing:content-box !important; -webkit-box-sizing:content-box !important; -moz-box-sizing: content-box !important} + +.tp-bullet { width:15px;height:15px; position:absolute; background:#fff; background:rgba(255,255,255,0.3); cursor: pointer;} +.tp-bullet.selected, +.tp-bullet:hover { background:#fff;} + +.tp-bannertimer { background:#000; background:rgba(0,0,0,0.15); height:5px;} + + +.tparrows { cursor:pointer; background:#000; background:rgba(0,0,0,0.5); width:40px;height:40px;position:absolute; display:block; z-index:1000; } +.tparrows:hover { background:#000;} +.tparrows:before { font-family: "revicons"; font-size:15px; color:#fff; display:block; line-height: 40px; text-align: center;} +.tparrows.tp-leftarrow:before { content: '\e824'; } +.tparrows.tp-rightarrow:before { content: '\e825'; } + + + +/*************************** + - KEN BURNS FIXES - +***************************/ + +body.rtl .tp-kbimg {left: 0 !important} + + + +/*************************** + - 3D SHADOW MODE - +***************************/ + +.dddwrappershadow { box-shadow:0 45px 100px rgba(0, 0, 0, 0.4);} + +/******************* + - DEBUG MODE - +*******************/ + +.hglayerinfo { position: fixed; + bottom: 0px; + left: 0px; + color: #FFF; + font-size: 12px; + line-height: 20px; + font-weight: 600; + background: rgba(0, 0, 0, 0.75); + padding: 5px 10px; + z-index: 2000; + white-space: normal;} +.hginfo { position:absolute;top:-2px;left:-2px;color:#e74c3c;font-size:12px;font-weight:600; background:#000;padding:2px 5px;} +.indebugmode .tp-caption:hover { border:1px dashed #c0392b !important;} +.helpgrid { border:2px dashed #c0392b;position:absolute;top:0px;left:0px;z-index:0 } +#revsliderlogloglog { padding:15px;color:#fff;position:fixed; top:0px;left:0px;width:200px;height:150px;background:rgba(0,0,0,0.7); z-index:100000; font-size:10px; overflow:scroll;} + + + +/** +INSTAGRAM FILTERS BY UNA +https://una.im/CSSgram/ +**/ +.aden{-webkit-filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2);filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)}.aden::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.perpetua::after,.reyes::after{mix-blend-mode:soft-light;opacity:.5}.inkwell{-webkit-filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1);filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1)}.perpetua::after{background:-webkit-linear-gradient(top,#005b9a,#e6c13d);background:linear-gradient(to bottom,#005b9a,#e6c13d)}.reyes{-webkit-filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75);filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75)}.reyes::after{background:#efcdad}.gingham{-webkit-filter:brightness(1.05) hue-rotate(-10deg);filter:brightness(1.05) hue-rotate(-10deg)}.gingham::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.toaster{-webkit-filter:contrast(1.5) brightness(.9);filter:contrast(1.5) brightness(.9)}.toaster::after{background:-webkit-radial-gradient(circle,#804e0f,#3b003b);background:radial-gradient(circle,#804e0f,#3b003b);mix-blend-mode:screen}.walden{-webkit-filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6);filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6)}.walden::after{background:#04c;mix-blend-mode:screen;opacity:.3}.hudson{-webkit-filter:brightness(1.2) contrast(.9) saturate(1.1);filter:brightness(1.2) contrast(.9) saturate(1.1)}.hudson::after{background:-webkit-radial-gradient(circle,#a6b1ff 50%,#342134);background:radial-gradient(circle,#a6b1ff 50%,#342134);mix-blend-mode:multiply;opacity:.5}.earlybird{-webkit-filter:contrast(.9) sepia(.2);filter:contrast(.9) sepia(.2)}.earlybird::after{background:-webkit-radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);background:radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);mix-blend-mode:overlay}.mayfair{-webkit-filter:contrast(1.1) saturate(1.1);filter:contrast(1.1) saturate(1.1)}.mayfair::after{background:-webkit-radial-gradient(40% 40%,circle,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);background:radial-gradient(circle at 40% 40%,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);mix-blend-mode:overlay;opacity:.4}.lofi{-webkit-filter:saturate(1.1) contrast(1.5);filter:saturate(1.1) contrast(1.5)}.lofi::after{background:-webkit-radial-gradient(circle,transparent 70%,#222 150%);background:radial-gradient(circle,transparent 70%,#222 150%);mix-blend-mode:multiply}._1977{-webkit-filter:contrast(1.1) brightness(1.1) saturate(1.3);filter:contrast(1.1) brightness(1.1) saturate(1.3)}._1977:after{background:rgba(243,106,188,.3);mix-blend-mode:screen}.brooklyn{-webkit-filter:contrast(.9) brightness(1.1);filter:contrast(.9) brightness(1.1)}.brooklyn::after{background:-webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);background:radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);mix-blend-mode:overlay}.xpro2{-webkit-filter:sepia(.3);filter:sepia(.3)}.xpro2::after{background:-webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);background:radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);mix-blend-mode:color-burn}.nashville{-webkit-filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2);filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2)}.nashville::after{background:rgba(0,70,150,.4);mix-blend-mode:lighten}.nashville::before{background:rgba(247,176,153,.56);mix-blend-mode:darken}.lark{-webkit-filter:contrast(.9);filter:contrast(.9)}.lark::after{background:rgba(242,242,242,.8);mix-blend-mode:darken}.lark::before{background:#22253f;mix-blend-mode:color-dodge}.moon{-webkit-filter:grayscale(1) contrast(1.1) brightness(1.1);filter:grayscale(1) contrast(1.1) brightness(1.1)}.moon::before{background:#a0a0a0;mix-blend-mode:soft-light}.moon::after{background:#383838;mix-blend-mode:lighten}.clarendon{-webkit-filter:contrast(1.2) saturate(1.35);filter:contrast(1.2) saturate(1.35)}.clarendon:before{background:rgba(127,187,227,.2);mix-blend-mode:overlay}.willow{-webkit-filter:grayscale(.5) contrast(.95) brightness(.9);filter:grayscale(.5) contrast(.95) brightness(.9)}.willow::before{background-color:radial-gradient(40%,circle,#d4a9af 55%,#000 150%);mix-blend-mode:overlay}.willow::after{background-color:#d8cdcb;mix-blend-mode:color}.rise{-webkit-filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9);filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9)}.rise::after{background:-webkit-radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);background:radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);mix-blend-mode:overlay;opacity:.6}.rise::before{background:-webkit-radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));background:radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));mix-blend-mode:multiply}._1977:after,._1977:before,.aden:after,.aden:before,.brooklyn:after,.brooklyn:before,.clarendon:after,.clarendon:before,.earlybird:after,.earlybird:before,.gingham:after,.gingham:before,.hudson:after,.hudson:before,.inkwell:after,.inkwell:before,.lark:after,.lark:before,.lofi:after,.lofi:before,.mayfair:after,.mayfair:before,.moon:after,.moon:before,.nashville:after,.nashville:before,.perpetua:after,.perpetua:before,.reyes:after,.reyes:before,.rise:after,.rise:before,.slumber:after,.slumber:before,.toaster:after,.toaster:before,.walden:after,.walden:before,.willow:after,.willow:before,.xpro2:after,.xpro2:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}._1977,.aden,.brooklyn,.clarendon,.earlybird,.gingham,.hudson,.inkwell,.lark,.lofi,.mayfair,.moon,.nashville,.perpetua,.reyes,.rise,.slumber,.toaster,.walden,.willow,.xpro2{position:relative}._1977 img,.aden img,.brooklyn img,.clarendon img,.earlybird img,.gingham img,.hudson img,.inkwell img,.lark img,.lofi img,.mayfair img,.moon img,.nashville img,.perpetua img,.reyes img,.rise img,.slumber img,.toaster img,.walden img,.willow img,.xpro2 img{width:100%;z-index:1}._1977:before,.aden:before,.brooklyn:before,.clarendon:before,.earlybird:before,.gingham:before,.hudson:before,.inkwell:before,.lark:before,.lofi:before,.mayfair:before,.moon:before,.nashville:before,.perpetua:before,.reyes:before,.rise:before,.slumber:before,.toaster:before,.walden:before,.willow:before,.xpro2:before{z-index:2}._1977:after,.aden:after,.brooklyn:after,.clarendon:after,.earlybird:after,.gingham:after,.hudson:after,.inkwell:after,.lark:after,.lofi:after,.mayfair:after,.moon:after,.nashville:after,.perpetua:after,.reyes:after,.rise:after,.slumber:after,.toaster:after,.walden:after,.willow:after,.xpro2:after{z-index:3}.slumber{-webkit-filter:saturate(.66) brightness(1.05);filter:saturate(.66) brightness(1.05)}.slumber::after{background:rgba(125,105,24,.5);mix-blend-mode:soft-light}.slumber::before{background:rgba(69,41,12,.4);mix-blend-mode:lighten} + diff --git a/public/assets/plugins/rs-plugin-5.3.1/css/settings.css b/public/assets/plugins/rs-plugin-5.3.1/css/settings.css new file mode 100644 index 0000000..93f6c1a --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/css/settings.css @@ -0,0 +1,13 @@ +/*----------------------------------------------------------------------------- + +- Revolution Slider 5.3.1 Default Style Settings - + +Screen Stylesheet + +version: 5.3.1 +date: 30/11/16 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ +#debungcontrolls,.debugtimeline{width:100%;box-sizing:border-box}.tp-caption,.tp-simpleresponsive img{-moz-user-select:none;-webkit-user-select:none}.rev_column,.rev_column .tp-parallax-wrap,.tp-svg-layer svg{vertical-align:top}#debungcontrolls{z-index:100000;position:fixed;bottom:0;height:auto;background:rgba(0,0,0,.6);padding:10px}.debugtimeline{height:10px;position:relative;margin-bottom:3px;display:none;white-space:nowrap}.debugtimeline:hover{height:15px}.the_timeline_tester{background:#e74c3c;position:absolute;top:0;left:0;height:100%;width:0}.debugtimeline.tl_slide .the_timeline_tester{background:#f39c12}.debugtimeline.tl_frame .the_timeline_tester{background:#3498db}.debugtimline_txt{color:#fff;font-weight:400;font-size:7px;position:absolute;left:10px;top:0;white-space:nowrap;line-height:10px}.rtl{direction:rtl}@font-face{font-family:revicons;src:url(../fonts/revicons/revicons.eot?5510888);src:url(../fonts/revicons/revicons.eot?5510888#iefix) format('embedded-opentype'),url(../fonts/revicons/revicons.woff?5510888) format('woff'),url(../fonts/revicons/revicons.ttf?5510888) format('truetype'),url(../fonts/revicons/revicons.svg?5510888#revicons) format('svg');font-weight:400;font-style:normal}[class*=" revicon-"]:before,[class^=revicon-]:before{font-family:revicons;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.revicon-search-1:before{content:'\e802'}.revicon-pencil-1:before{content:'\e831'}.revicon-picture-1:before{content:'\e803'}.revicon-cancel:before{content:'\e80a'}.revicon-info-circled:before{content:'\e80f'}.revicon-trash:before{content:'\e801'}.revicon-left-dir:before{content:'\e817'}.revicon-right-dir:before{content:'\e818'}.revicon-down-open:before{content:'\e83b'}.revicon-left-open:before{content:'\e819'}.revicon-right-open:before{content:'\e81a'}.revicon-angle-left:before{content:'\e820'}.revicon-angle-right:before{content:'\e81d'}.revicon-left-big:before{content:'\e81f'}.revicon-right-big:before{content:'\e81e'}.revicon-magic:before{content:'\e807'}.revicon-picture:before{content:'\e800'}.revicon-export:before{content:'\e80b'}.revicon-cog:before{content:'\e832'}.revicon-login:before{content:'\e833'}.revicon-logout:before{content:'\e834'}.revicon-video:before{content:'\e805'}.revicon-arrow-combo:before{content:'\e827'}.revicon-left-open-1:before{content:'\e82a'}.revicon-right-open-1:before{content:'\e82b'}.revicon-left-open-mini:before{content:'\e822'}.revicon-right-open-mini:before{content:'\e823'}.revicon-left-open-big:before{content:'\e824'}.revicon-right-open-big:before{content:'\e825'}.revicon-left:before{content:'\e836'}.revicon-right:before{content:'\e826'}.revicon-ccw:before{content:'\e808'}.revicon-arrows-ccw:before{content:'\e806'}.revicon-palette:before{content:'\e829'}.revicon-list-add:before{content:'\e80c'}.revicon-doc:before{content:'\e809'}.revicon-left-open-outline:before{content:'\e82e'}.revicon-left-open-2:before{content:'\e82c'}.revicon-right-open-outline:before{content:'\e82f'}.revicon-right-open-2:before{content:'\e82d'}.revicon-equalizer:before{content:'\e83a'}.revicon-layers-alt:before{content:'\e804'}.revicon-popup:before{content:'\e828'}.rev_slider_wrapper{position:relative;z-index:0}.rev_slider{position:relative;overflow:visible}.entry-content .rev_slider a,.rev_slider a{box-shadow:none}.tp-overflow-hidden{overflow:hidden!important}.group_ov_hidden{overflow:hidden}.rev_slider img,.tp-simpleresponsive img{max-width:none!important;-moz-transition:none;-webkit-transition:none;-o-transition:none;transition:none;margin:0;padding:0;border:none}.rev_slider .no-slides-text{font-weight:700;text-align:center;padding-top:80px}.rev_slider>ul,.rev_slider>ul>li,.rev_slider>ul>li:before,.rev_slider_wrapper>ul,.tp-revslider-mainul>li,.tp-revslider-mainul>li:before,.tp-simpleresponsive>ul,.tp-simpleresponsive>ul>li,.tp-simpleresponsive>ul>li:before{list-style:none!important;position:absolute;margin:0!important;padding:0!important;overflow-x:visible;overflow-y:visible;background-image:none;background-position:0 0;text-indent:0;top:0;left:0}.rev_slider>ul>li,.rev_slider>ul>li:before,.tp-revslider-mainul>li,.tp-revslider-mainul>li:before,.tp-simpleresponsive>ul>li,.tp-simpleresponsive>ul>li:before{visibility:hidden}.tp-revslider-mainul,.tp-revslider-slidesli{padding:0!important;margin:0!important;list-style:none!important}.fullscreen-container,.fullwidthbanner-container{padding:0;position:relative}.rev_slider li.tp-revslider-slidesli{position:absolute!important}.tp-caption .rs-untoggled-content{display:block}.tp-caption .rs-toggled-content{display:none}.rs-toggle-content-active.tp-caption .rs-toggled-content{display:block}.rs-toggle-content-active.tp-caption .rs-untoggled-content{display:none}.rev_slider .caption,.rev_slider .tp-caption{position:relative;visibility:hidden;white-space:nowrap;display:block}.rev_slider .tp-mask-wrap .tp-caption,.rev_slider .tp-mask-wrap :last-child,.wpb_text_column .rev_slider .tp-mask-wrap .tp-caption,.wpb_text_column .rev_slider .tp-mask-wrap :last-child{margin-bottom:0}.tp-svg-layer svg{width:100%;height:100%;position:relative}.tp-carousel-wrapper{cursor:url(openhand.cur),move}.tp-carousel-wrapper.dragged{cursor:url(closedhand.cur),move}.tp-caption{z-index:1;-khtml-user-select:none;-o-user-select:none;position:absolute;-webkit-font-smoothing:antialiased!important}.tp_inner_padding{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;max-height:none!important}.tp-caption.tp-layer-selectable{-moz-user-select:all;-khtml-user-select:all;-webkit-user-select:all;-o-user-select:all}.tp-caption.tp-hidden-caption,.tp-forcenotvisible,.tp-hide-revslider,.tp-parallax-wrap.tp-hidden-caption{visibility:hidden!important;display:none!important}.rev_slider audio,.rev_slider embed,.rev_slider iframe,.rev_slider object,.rev_slider video{max-width:none!important}.tp-element-background{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.rev_row_zone{position:absolute;width:100%;left:0;box-sizing:border-box;min-height:50px;font-size:0}.rev_column_inner,.rev_slider .tp-caption.rev_row{position:relative;width:100%!important;box-sizing:border-box}.rev_row_zone_top{top:0}.rev_row_zone_middle{top:50%;-webit-transform:translateY(-50%);transform:translateY(-50%)}.rev_row_zone_bottom{bottom:0}.rev_slider .tp-caption.rev_row{display:table;table-layout:fixed;vertical-align:top;height:auto!important;font-size:0}.rev_column{display:table-cell;position:relative;height:auto;box-sizing:border-box;font-size:0}.rev_column_inner{display:block;height:auto!important;white-space:normal!important}.rev_column_bg{width:100%;height:100%;position:absolute;top:0;left:0;z-index:0;box-sizing:border-box;background-clip:content-box;border:0 solid transparent}.tp-caption .backcorner,.tp-caption .backcornertop,.tp-caption .frontcorner,.tp-caption .frontcornertop{height:0;top:0;width:0;position:absolute}.rev_column_inner .tp-loop-wrap,.rev_column_inner .tp-mask-wrap,.rev_column_inner .tp-parallax-wrap{text-align:inherit}.rev_column_inner .tp-mask-wrap{display:inline-block}.rev_column_inner .tp-parallax-wrap,.rev_column_inner .tp-parallax-wrap .tp-loop-wrap,.rev_column_inner .tp-parallax-wrap .tp-mask-wrap{position:relative!important;left:auto!important;top:auto!important;line-height:0}.tp-video-play-button,.tp-video-play-button i{line-height:50px!important;vertical-align:top}.rev_column_inner .rev_layer_in_column,.rev_column_inner .tp-parallax-wrap,.rev_column_inner .tp-parallax-wrap .tp-loop-wrap,.rev_column_inner .tp-parallax-wrap .tp-mask-wrap{vertical-align:top}.rev_break_columns{display:block!important}.rev_break_columns .tp-parallax-wrap.rev_column{display:block!important;width:100%!important}.rev_slider_wrapper{width:100%}.fullwidthbanner-container{overflow:hidden}.fullwidthbanner-container .fullwidthabanner{width:100%;position:relative}.tp-static-layers{position:absolute;z-index:101;top:0;left:0}.tp-caption .frontcorner{border-left:40px solid transparent;border-right:0 solid transparent;border-top:40px solid #00A8FF;left:-40px}.tp-caption .backcorner{border-left:0 solid transparent;border-right:40px solid transparent;border-bottom:40px solid #00A8FF;right:0}.tp-caption .frontcornertop{border-left:40px solid transparent;border-right:0 solid transparent;border-bottom:40px solid #00A8FF;left:-40px}.tp-caption .backcornertop{border-left:0 solid transparent;border-right:40px solid transparent;border-top:40px solid #00A8FF;right:0}.tp-layer-inner-rotation{position:relative!important}img.tp-slider-alternative-image{width:100%;height:auto}.caption.fullscreenvideo,.rs-background-video-layer,.tp-caption.coverscreenvideo,.tp-caption.fullscreenvideo{width:100%;height:100%;top:0;left:0;position:absolute}.noFilterClass{filter:none!important}.rs-background-video-layer{visibility:hidden;z-index:0}.caption.fullscreenvideo audio,.caption.fullscreenvideo iframe,.caption.fullscreenvideo video,.tp-caption.fullscreenvideo iframe,.tp-caption.fullscreenvideo iframe audio,.tp-caption.fullscreenvideo iframe video{width:100%!important;height:100%!important;display:none}.fullcoveredvideo audio,.fullscreenvideo audio .fullcoveredvideo video,.fullscreenvideo video{background:#000}.fullcoveredvideo .tp-poster{background-position:center center;background-size:cover;width:100%;height:100%;top:0;left:0}.videoisplaying .html5vid .tp-poster{display:none}.tp-video-play-button{background:#000;background:rgba(0,0,0,.3);border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;position:absolute;top:50%;left:50%;color:#FFF;margin-top:-25px;margin-left:-25px;text-align:center;cursor:pointer;width:50px;height:50px;box-sizing:border-box;-moz-box-sizing:border-box;display:inline-block;z-index:4;opacity:0;-webkit-transition:opacity .3s ease-out!important;-moz-transition:opacity .3s ease-out!important;-o-transition:opacity .3s ease-out!important;transition:opacity .3s ease-out!important}.tp-audio-html5 .tp-video-play-button,.tp-hiddenaudio{display:none!important}.tp-caption .html5vid{width:100%!important;height:100%!important}.tp-video-play-button i{width:50px;height:50px;display:inline-block;text-align:center;font-size:40px!important}.rs-fullvideo-cover,.tp-dottedoverlay,.tp-shadowcover{height:100%;top:0;position:absolute;left:0}.tp-caption .tp-revstop{display:none;border-left:5px solid #fff!important;border-right:5px solid #fff!important;margin-top:15px!important;line-height:20px!important;vertical-align:top;font-size:25px!important}.tp-seek-bar,.tp-video-button,.tp-volume-bar{outline:0;line-height:12px;margin:0;cursor:pointer}.videoisplaying .revicon-right-dir{display:none}.videoisplaying .tp-revstop{display:inline-block}.videoisplaying .tp-video-play-button{display:none}.tp-caption:hover .tp-video-play-button{opacity:1;display:block}.fullcoveredvideo .tp-video-play-button{display:none!important}.fullscreenvideo .fullscreenvideo audio,.fullscreenvideo .fullscreenvideo video{object-fit:contain!important}.fullscreenvideo .fullcoveredvideo audio,.fullscreenvideo .fullcoveredvideo video{object-fit:cover!important}.tp-video-controls{position:absolute;bottom:0;left:0;right:0;padding:5px;opacity:0;-webkit-transition:opacity .3s;-moz-transition:opacity .3s;-o-transition:opacity .3s;-ms-transition:opacity .3s;transition:opacity .3s;background-image:linear-gradient(to bottom,#000 13%,#323232 100%);background-image:-o-linear-gradient(bottom,#000 13%,#323232 100%);background-image:-moz-linear-gradient(bottom,#000 13%,#323232 100%);background-image:-webkit-linear-gradient(bottom,#000 13%,#323232 100%);background-image:-ms-linear-gradient(bottom,#000 13%,#323232 100%);background-image:-webkit-gradient(linear,left bottom,left top,color-stop(.13,#000),color-stop(1,#323232));display:table;max-width:100%;overflow:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.rev-btn.rev-hiddenicon i,.rev-btn.rev-withicon i{-webkit-transition:all .2s ease-out!important;-o-transition:all .2s ease-out!important;-ms-transition:all .2s ease-out!important}.tp-caption:hover .tp-video-controls{opacity:.9}.tp-video-button{background:rgba(0,0,0,.5);border:0;-webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px;font-size:12px;color:#fff;padding:0}.tp-video-button:hover{cursor:pointer}.tp-video-button-wrap,.tp-video-seek-bar-wrap,.tp-video-vol-bar-wrap{padding:0 5px;display:table-cell;vertical-align:middle}.tp-video-seek-bar-wrap{width:80%}.tp-video-vol-bar-wrap{width:20%}.tp-seek-bar,.tp-volume-bar{width:100%;padding:0}.rs-fullvideo-cover{width:100%;background:0 0;z-index:5}.rs-background-video-layer video::-webkit-media-controls{display:none!important}.rs-background-video-layer audio::-webkit-media-controls{display:none!important}.rs-background-video-layer video::-webkit-media-controls-start-playback-button{display:none!important}.tp-audio-html5 .tp-video-controls{opacity:1!important;visibility:visible!important}.disabled_lc .tp-video-play-button{display:none!important}.tp-dottedoverlay{background-repeat:repeat;width:100%;z-index:3}.tp-dottedoverlay.twoxtwo{background:url(../assets/gridtile.png)}.tp-dottedoverlay.twoxtwowhite{background:url(../assets/gridtile_white.png)}.tp-dottedoverlay.threexthree{background:url(../assets/gridtile_3x3.png)}.tp-dottedoverlay.threexthreewhite{background:url(../assets/gridtile_3x3_white.png)}.tp-shadowcover{width:100%;background:#fff;z-index:-1}.tp-shadow1{-webkit-box-shadow:0 10px 6px -6px rgba(0,0,0,.8);-moz-box-shadow:0 10px 6px -6px rgba(0,0,0,.8);box-shadow:0 10px 6px -6px rgba(0,0,0,.8)}.tp-shadow2:after,.tp-shadow2:before,.tp-shadow3:before,.tp-shadow4:after{z-index:-2;position:absolute;content:"";bottom:10px;left:10px;width:50%;top:85%;max-width:300px;background:0 0;-webkit-box-shadow:0 15px 10px rgba(0,0,0,.8);-moz-box-shadow:0 15px 10px rgba(0,0,0,.8);box-shadow:0 15px 10px rgba(0,0,0,.8);-webkit-transform:rotate(-3deg);-moz-transform:rotate(-3deg);-o-transform:rotate(-3deg);-ms-transform:rotate(-3deg);transform:rotate(-3deg)}.tp-shadow2:after,.tp-shadow4:after{-webkit-transform:rotate(3deg);-moz-transform:rotate(3deg);-o-transform:rotate(3deg);-ms-transform:rotate(3deg);transform:rotate(3deg);right:10px;left:auto}.tp-shadow5{position:relative;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;-moz-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset}.tp-shadow5:after,.tp-shadow5:before{content:"";position:absolute;z-index:-2;-webkit-box-shadow:0 0 25px 0 rgba(0,0,0,.6);-moz-box-shadow:0 0 25px 0 rgba(0,0,0,.6);box-shadow:0 0 25px 0 rgba(0,0,0,.6);top:30%;bottom:0;left:20px;right:20px;-moz-border-radius:100px/20px;border-radius:100px/20px}.tp-button{padding:6px 13px 5px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;height:30px;cursor:pointer;color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.6)!important;font-size:15px;line-height:45px!important;font-family:arial,sans-serif;font-weight:700;letter-spacing:-1px;text-decoration:none}.tp-button.big{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.6);font-weight:700;padding:9px 20px;font-size:19px;line-height:57px!important}.purchase:hover,.tp-button.big:hover,.tp-button:hover{background-position:bottom,15px 11px}.purchase.green,.purchase:hover.green,.tp-button.green,.tp-button:hover.green{background-color:#21a117;-webkit-box-shadow:0 3px 0 0 #104d0b;-moz-box-shadow:0 3px 0 0 #104d0b;box-shadow:0 3px 0 0 #104d0b}.purchase.blue,.purchase:hover.blue,.tp-button.blue,.tp-button:hover.blue{background-color:#1d78cb;-webkit-box-shadow:0 3px 0 0 #0f3e68;-moz-box-shadow:0 3px 0 0 #0f3e68;box-shadow:0 3px 0 0 #0f3e68}.purchase.red,.purchase:hover.red,.tp-button.red,.tp-button:hover.red{background-color:#cb1d1d;-webkit-box-shadow:0 3px 0 0 #7c1212;-moz-box-shadow:0 3px 0 0 #7c1212;box-shadow:0 3px 0 0 #7c1212}.purchase.orange,.purchase:hover.orange,.tp-button.orange,.tp-button:hover.orange{background-color:#f70;-webkit-box-shadow:0 3px 0 0 #a34c00;-moz-box-shadow:0 3px 0 0 #a34c00;box-shadow:0 3px 0 0 #a34c00}.purchase.darkgrey,.purchase:hover.darkgrey,.tp-button.darkgrey,.tp-button.grey,.tp-button:hover.darkgrey,.tp-button:hover.grey{background-color:#555;-webkit-box-shadow:0 3px 0 0 #222;-moz-box-shadow:0 3px 0 0 #222;box-shadow:0 3px 0 0 #222}.purchase.lightgrey,.purchase:hover.lightgrey,.tp-button.lightgrey,.tp-button:hover.lightgrey{background-color:#888;-webkit-box-shadow:0 3px 0 0 #555;-moz-box-shadow:0 3px 0 0 #555;box-shadow:0 3px 0 0 #555}.rev-btn,.rev-btn:visited{outline:0!important;box-shadow:none!important;text-decoration:none!important;line-height:44px;font-size:17px;font-weight:500;padding:12px 35px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;font-family:Roboto,sans-serif;cursor:pointer}.rev-btn.rev-uppercase,.rev-btn.rev-uppercase:visited{text-transform:uppercase;letter-spacing:1px;font-size:15px;font-weight:900}.rev-btn.rev-withicon i{font-size:15px;font-weight:400;position:relative;top:0;-moz-transition:all .2s ease-out!important;margin-left:10px!important}.rev-btn.rev-hiddenicon i{font-size:15px;font-weight:400;position:relative;top:0;-moz-transition:all .2s ease-out!important;opacity:0;margin-left:0!important;width:0!important}.rev-btn.rev-hiddenicon:hover i{opacity:1!important;margin-left:10px!important;width:auto!important}.rev-btn.rev-medium,.rev-btn.rev-medium:visited{line-height:36px;font-size:14px;padding:10px 30px}.rev-btn.rev-medium.rev-hiddenicon i,.rev-btn.rev-medium.rev-withicon i{font-size:14px;top:0}.rev-btn.rev-small,.rev-btn.rev-small:visited{line-height:28px;font-size:12px;padding:7px 20px}.rev-btn.rev-small.rev-hiddenicon i,.rev-btn.rev-small.rev-withicon i{font-size:12px;top:0}.rev-maxround{-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.rev-minround{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.rev-burger{position:relative;width:60px;height:60px;box-sizing:border-box;padding:22px 0 0 14px;border-radius:50%;border:1px solid rgba(51,51,51,.25);tap-highlight-color:transparent;cursor:pointer}.rev-burger span{display:block;width:30px;height:3px;background:#333;transition:.7s;pointer-events:none;transform-style:flat!important}.rev-burger.revb-white span,.rev-burger.revb-whitenoborder span{background:#fff}.rev-burger span:nth-child(2){margin:3px 0}#dialog_addbutton .rev-burger:hover :first-child,.open .rev-burger :first-child,.open.rev-burger :first-child{transform:translateY(6px) rotate(-45deg);-webkit-transform:translateY(6px) rotate(-45deg)}#dialog_addbutton .rev-burger:hover :nth-child(2),.open .rev-burger :nth-child(2),.open.rev-burger :nth-child(2){transform:rotate(-45deg);-webkit-transform:rotate(-45deg);opacity:0}#dialog_addbutton .rev-burger:hover :last-child,.open .rev-burger :last-child,.open.rev-burger :last-child{transform:translateY(-6px) rotate(-135deg);-webkit-transform:translateY(-6px) rotate(-135deg)}.rev-burger.revb-white{border:2px solid rgba(255,255,255,.2)}.rev-burger.revb-darknoborder,.rev-burger.revb-whitenoborder{border:0}.rev-burger.revb-darknoborder span{background:#333}.rev-burger.revb-whitefull{background:#fff;border:none}.rev-burger.revb-whitefull span{background:#333}.rev-burger.revb-darkfull{background:#333;border:none}.rev-burger.revb-darkfull span,.rev-scroll-btn.revs-fullwhite{background:#fff}@-webkit-keyframes rev-ani-mouse{0%{opacity:1;top:29%}15%{opacity:1;top:50%}50%{opacity:0;top:50%}100%{opacity:0;top:29%}}@-moz-keyframes rev-ani-mouse{0%{opacity:1;top:29%}15%{opacity:1;top:50%}50%{opacity:0;top:50%}100%{opacity:0;top:29%}}@keyframes rev-ani-mouse{0%{opacity:1;top:29%}15%{opacity:1;top:50%}50%{opacity:0;top:50%}100%{opacity:0;top:29%}}.rev-scroll-btn{display:inline-block;position:relative;left:0;right:0;text-align:center;cursor:pointer;width:35px;height:55px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:3px solid #fff;border-radius:23px}.rev-control-btn,.tp-tab,.tp-thumb{box-sizing:border-box;cursor:pointer}.rev-scroll-btn>*{display:inline-block;line-height:18px;font-size:13px;font-weight:400;color:#fff;font-family:proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif;letter-spacing:2px}.rev-scroll-btn>.active,.rev-scroll-btn>:focus,.rev-scroll-btn>:hover{color:#fff}.rev-scroll-btn>.active,.rev-scroll-btn>:active,.rev-scroll-btn>:focus,.rev-scroll-btn>:hover{filter:alpha(opacity=80)}.rev-scroll-btn.revs-fullwhite span{background:#333}.rev-scroll-btn.revs-fulldark{background:#333;border:none}.rev-scroll-btn.revs-fulldark span,.tp-bullet{background:#fff}.rev-scroll-btn span{position:absolute;display:block;top:29%;left:50%;width:8px;height:8px;margin:-4px 0 0 -4px;background:#fff;border-radius:50%;-webkit-animation:rev-ani-mouse 2.5s linear infinite;-moz-animation:rev-ani-mouse 2.5s linear infinite;animation:rev-ani-mouse 2.5s linear infinite}.rev-scroll-btn.revs-dark{border-color:#333}.rev-scroll-btn.revs-dark span{background:#333}.rev-control-btn{position:relative;display:inline-block;z-index:5;color:#FFF;font-size:20px;line-height:60px;font-weight:400;font-style:normal;font-family:Raleway;text-decoration:none;text-align:center;background-color:#000;border-radius:50px;text-shadow:none;background-color:rgba(0,0,0,.5);width:60px;height:60px}.rev-cbutton-dark-sr,.rev-cbutton-light-sr{border-radius:3px}.rev-cbutton-light,.rev-cbutton-light-sr{color:#333;background-color:rgba(255,255,255,.75)}.rev-sbutton{line-height:37px;width:37px;height:37px}.rev-sbutton-blue{background-color:#3B5998}.rev-sbutton-lightblue{background-color:#00A0D1}.rev-sbutton-red{background-color:#DD4B39}.tp-bannertimer{visibility:hidden;width:100%;position:absolute;z-index:200;top:0}.tp-bannertimer.tp-bottom{top:auto;bottom:0!important;height:5px}.tp-simpleresponsive img{-khtml-user-select:none;-o-user-select:none}.tp-caption img{background:0 0;-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF, endColorstr=#00FFFFFF);zoom:1}.caption.slidelink a div,.tp-caption.slidelink a div{width:3000px;height:1500px;background:url(../assets/coloredbg.png)}.tp-caption.slidelink a span{background:url(../assets/coloredbg.png)}.tp-loader.spinner0,.tp-loader.spinner5{background-image:url(../assets/loader.gif);background-repeat:no-repeat}.tp-shape{width:100%;height:100%}.tp-caption .rs-starring{display:inline-block}.tp-caption .rs-starring .star-rating{float:none;display:inline-block;vertical-align:top}.tp-caption .rs-starring .star-rating,.tp-caption .rs-starring-page .star-rating{position:relative;height:1em;width:5.4em;font-size:1em!important;font-family:star}.tp-loader.spinner0,.tp-loader.spinner1{width:40px;height:40px;box-shadow:0 0 20px 0 rgba(0,0,0,.15);margin-top:-20px;margin-left:-20px;border-radius:3px;background-color:#fff}.tp-caption .rs-starring .star-rating:before,.tp-caption .rs-starring-page .star-rating:before{content:"\73\73\73\73\73";color:#E0DADF;float:left;top:0;left:0;position:absolute}.tp-caption .rs-starring .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em;font-size:1em!important}.tp-caption .rs-starring .star-rating span:before{content:"\53\53\53\53\53";top:0;position:absolute;left:0}.tp-caption .rs-starring .star-rating{color:#FFC321!important}.tp-loader{top:50%;left:50%;z-index:10000;position:absolute}.tp-loader.spinner0{background-position:center center;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.15);-webkit-animation:tp-rotateplane 1.2s infinite ease-in-out;animation:tp-rotateplane 1.2s infinite ease-in-out;-moz-border-radius:3px;-webkit-border-radius:3px}.tp-loader.spinner1{-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.15);-webkit-animation:tp-rotateplane 1.2s infinite ease-in-out;animation:tp-rotateplane 1.2s infinite ease-in-out;-moz-border-radius:3px;-webkit-border-radius:3px}.tp-loader.spinner5{background-position:10px 10px;background-color:#fff;margin:-22px;width:44px;height:44px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}@-webkit-keyframes tp-rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspective(120px) rotateY(180deg)}100%{-webkit-transform:perspective(120px) rotateY(180deg) rotateX(180deg)}}@keyframes tp-rotateplane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}100%{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}.tp-loader.spinner2{width:40px;height:40px;margin-top:-20px;margin-left:-20px;background-color:red;box-shadow:0 0 20px 0 rgba(0,0,0,.15);-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.15);border-radius:100%;-webkit-animation:tp-scaleout 1s infinite ease-in-out;animation:tp-scaleout 1s infinite ease-in-out}@-webkit-keyframes tp-scaleout{0%{-webkit-transform:scale(0)}100%{-webkit-transform:scale(1);opacity:0}}@keyframes tp-scaleout{0%{transform:scale(0);-webkit-transform:scale(0)}100%{transform:scale(1);-webkit-transform:scale(1);opacity:0}}.tp-loader.spinner3{margin:-9px 0 0 -35px;width:70px;text-align:center}.tp-loader.spinner3 .bounce1,.tp-loader.spinner3 .bounce2,.tp-loader.spinner3 .bounce3{width:18px;height:18px;background-color:#fff;box-shadow:0 0 20px 0 rgba(0,0,0,.15);-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.15);border-radius:100%;display:inline-block;-webkit-animation:tp-bouncedelay 1.4s infinite ease-in-out;animation:tp-bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.tp-loader.spinner3 .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.tp-loader.spinner3 .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes tp-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes tp-bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tp-loader.spinner4{margin:-20px 0 0 -20px;width:40px;height:40px;text-align:center;-webkit-animation:tp-rotate 2s infinite linear;animation:tp-rotate 2s infinite linear}.tp-loader.spinner4 .dot1,.tp-loader.spinner4 .dot2{width:60%;height:60%;display:inline-block;position:absolute;top:0;background-color:#fff;border-radius:100%;-webkit-animation:tp-bounce 2s infinite ease-in-out;animation:tp-bounce 2s infinite ease-in-out;box-shadow:0 0 20px 0 rgba(0,0,0,.15);-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.15)}.tp-loader.spinner4 .dot2{top:auto;bottom:0;-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes tp-rotate{100%{-webkit-transform:rotate(360deg)}}@keyframes tp-rotate{100%{transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@-webkit-keyframes tp-bounce{0%,100%{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes tp-bounce{0%,100%{transform:scale(0)}50%{transform:scale(1)}}.tp-bullets.navbar,.tp-tabs.navbar,.tp-thumbs.navbar{border:none;min-height:0;margin:0;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0}.tp-bullets,.tp-tabs,.tp-thumbs{position:absolute;display:block;z-index:1000;top:0;left:0}.tp-tab,.tp-thumb{position:absolute;opacity:.5;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.tp-arr-imgholder,.tp-tab-image,.tp-thumb-image,.tp-videoposter{background-position:center center;background-size:cover;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tp-tab.selected,.tp-tab:hover,.tp-thumb.selected,.tp-thumb:hover{opacity:1}.tp-tab-mask,.tp-thumb-mask{box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important}.tp-tabs,.tp-thumbs{box-sizing:content-box!important;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}.tp-bullet{width:15px;height:15px;position:absolute;background:rgba(255,255,255,.3);cursor:pointer}.tp-bullet.selected,.tp-bullet:hover{background:#fff}.tp-bannertimer{background:#000;background:rgba(0,0,0,.15);height:5px}.tparrows{cursor:pointer;background:#000;background:rgba(0,0,0,.5);width:40px;height:40px;position:absolute;display:block;z-index:1000}.tparrows:hover{background:#000}.tparrows:before{font-family:revicons;font-size:15px;color:#fff;display:block;line-height:40px;text-align:center}.hginfo,.hglayerinfo{font-size:12px;font-weight:600}.tparrows.tp-leftarrow:before{content:'\e824'}.tparrows.tp-rightarrow:before{content:'\e825'}body.rtl .tp-kbimg{left:0!important}.dddwrappershadow{box-shadow:0 45px 100px rgba(0,0,0,.4)}.hglayerinfo{position:fixed;bottom:0;left:0;color:#FFF;line-height:20px;background:rgba(0,0,0,.75);padding:5px 10px;z-index:2000;white-space:normal}.helpgrid,.hginfo{position:absolute}.hginfo{top:-2px;left:-2px;color:#e74c3c;background:#000;padding:2px 5px}.indebugmode .tp-caption:hover{border:1px dashed #c0392b!important}.helpgrid{border:2px dashed #c0392b;top:0;left:0;z-index:0}#revsliderlogloglog{padding:15px;color:#fff;position:fixed;top:0;left:0;width:200px;height:150px;background:rgba(0,0,0,.7);z-index:100000;font-size:10px;overflow:scroll}.aden{-webkit-filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2);filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)}.aden::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.perpetua::after,.reyes::after{mix-blend-mode:soft-light;opacity:.5}.inkwell{-webkit-filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1);filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1)}.perpetua::after{background:-webkit-linear-gradient(top,#005b9a,#e6c13d);background:linear-gradient(to bottom,#005b9a,#e6c13d)}.reyes{-webkit-filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75);filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75)}.reyes::after{background:#efcdad}.gingham{-webkit-filter:brightness(1.05) hue-rotate(-10deg);filter:brightness(1.05) hue-rotate(-10deg)}.gingham::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.toaster{-webkit-filter:contrast(1.5) brightness(.9);filter:contrast(1.5) brightness(.9)}.toaster::after{background:-webkit-radial-gradient(circle,#804e0f,#3b003b);background:radial-gradient(circle,#804e0f,#3b003b);mix-blend-mode:screen}.walden{-webkit-filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6);filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6)}.walden::after{background:#04c;mix-blend-mode:screen;opacity:.3}.hudson{-webkit-filter:brightness(1.2) contrast(.9) saturate(1.1);filter:brightness(1.2) contrast(.9) saturate(1.1)}.hudson::after{background:-webkit-radial-gradient(circle,#a6b1ff 50%,#342134);background:radial-gradient(circle,#a6b1ff 50%,#342134);mix-blend-mode:multiply;opacity:.5}.earlybird{-webkit-filter:contrast(.9) sepia(.2);filter:contrast(.9) sepia(.2)}.earlybird::after{background:-webkit-radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);background:radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);mix-blend-mode:overlay}.mayfair{-webkit-filter:contrast(1.1) saturate(1.1);filter:contrast(1.1) saturate(1.1)}.mayfair::after{background:-webkit-radial-gradient(40% 40%,circle,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);background:radial-gradient(circle at 40% 40%,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);mix-blend-mode:overlay;opacity:.4}.lofi{-webkit-filter:saturate(1.1) contrast(1.5);filter:saturate(1.1) contrast(1.5)}.lofi::after{background:-webkit-radial-gradient(circle,transparent 70%,#222 150%);background:radial-gradient(circle,transparent 70%,#222 150%);mix-blend-mode:multiply}._1977{-webkit-filter:contrast(1.1) brightness(1.1) saturate(1.3);filter:contrast(1.1) brightness(1.1) saturate(1.3)}._1977:after{background:rgba(243,106,188,.3);mix-blend-mode:screen}.brooklyn{-webkit-filter:contrast(.9) brightness(1.1);filter:contrast(.9) brightness(1.1)}.brooklyn::after{background:-webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);background:radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);mix-blend-mode:overlay}.xpro2{-webkit-filter:sepia(.3);filter:sepia(.3)}.xpro2::after{background:-webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);background:radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);mix-blend-mode:color-burn}.nashville{-webkit-filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2);filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2)}.nashville::after{background:rgba(0,70,150,.4);mix-blend-mode:lighten}.nashville::before{background:rgba(247,176,153,.56);mix-blend-mode:darken}.lark{-webkit-filter:contrast(.9);filter:contrast(.9)}.lark::after{background:rgba(242,242,242,.8);mix-blend-mode:darken}.lark::before{background:#22253f;mix-blend-mode:color-dodge}.moon{-webkit-filter:grayscale(1) contrast(1.1) brightness(1.1);filter:grayscale(1) contrast(1.1) brightness(1.1)}.moon::before{background:#a0a0a0;mix-blend-mode:soft-light}.moon::after{background:#383838;mix-blend-mode:lighten}.clarendon{-webkit-filter:contrast(1.2) saturate(1.35);filter:contrast(1.2) saturate(1.35)}.clarendon:before{background:rgba(127,187,227,.2);mix-blend-mode:overlay}.willow{-webkit-filter:grayscale(.5) contrast(.95) brightness(.9);filter:grayscale(.5) contrast(.95) brightness(.9)}.willow::before{background-color:radial-gradient(40%,circle,#d4a9af 55%,#000 150%);mix-blend-mode:overlay}.willow::after{background-color:#d8cdcb;mix-blend-mode:color}.rise{-webkit-filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9);filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9)}.rise::after{background:-webkit-radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);background:radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);mix-blend-mode:overlay;opacity:.6}.rise::before{background:-webkit-radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));background:radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));mix-blend-mode:multiply}._1977:after,._1977:before,.aden:after,.aden:before,.brooklyn:after,.brooklyn:before,.clarendon:after,.clarendon:before,.earlybird:after,.earlybird:before,.gingham:after,.gingham:before,.hudson:after,.hudson:before,.inkwell:after,.inkwell:before,.lark:after,.lark:before,.lofi:after,.lofi:before,.mayfair:after,.mayfair:before,.moon:after,.moon:before,.nashville:after,.nashville:before,.perpetua:after,.perpetua:before,.reyes:after,.reyes:before,.rise:after,.rise:before,.slumber:after,.slumber:before,.toaster:after,.toaster:before,.walden:after,.walden:before,.willow:after,.willow:before,.xpro2:after,.xpro2:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}._1977,.aden,.brooklyn,.clarendon,.earlybird,.gingham,.hudson,.inkwell,.lark,.lofi,.mayfair,.moon,.nashville,.perpetua,.reyes,.rise,.slumber,.toaster,.walden,.willow,.xpro2{position:relative}._1977 img,.aden img,.brooklyn img,.clarendon img,.earlybird img,.gingham img,.hudson img,.inkwell img,.lark img,.lofi img,.mayfair img,.moon img,.nashville img,.perpetua img,.reyes img,.rise img,.slumber img,.toaster img,.walden img,.willow img,.xpro2 img{width:100%;z-index:1}._1977:before,.aden:before,.brooklyn:before,.clarendon:before,.earlybird:before,.gingham:before,.hudson:before,.inkwell:before,.lark:before,.lofi:before,.mayfair:before,.moon:before,.nashville:before,.perpetua:before,.reyes:before,.rise:before,.slumber:before,.toaster:before,.walden:before,.willow:before,.xpro2:before{z-index:2}._1977:after,.aden:after,.brooklyn:after,.clarendon:after,.earlybird:after,.gingham:after,.hudson:after,.inkwell:after,.lark:after,.lofi:after,.mayfair:after,.moon:after,.nashville:after,.perpetua:after,.reyes:after,.rise:after,.slumber:after,.toaster:after,.walden:after,.willow:after,.xpro2:after{z-index:3}.slumber{-webkit-filter:saturate(.66) brightness(1.05);filter:saturate(.66) brightness(1.05)}.slumber::after{background:rgba(125,105,24,.5);mix-blend-mode:soft-light}.slumber::before{background:rgba(69,41,12,.4);mix-blend-mode:lighten} \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/css/font-awesome.css b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/css/font-awesome.css new file mode 100644 index 0000000..2403fb2 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/css/font-awesome.css @@ -0,0 +1,2337 @@ +/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */ +/* FONT PATH + * -------------------------- */ +@font-face { + font-family: 'FontAwesome'; + src: url('../fonts/fontawesome-webfont.eot?v=4.7.0'); + src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg'); + font-weight: normal; + font-style: normal; +} +[class^="fa-icon-"], [class*=" fa-icon-"] { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* makes the font 33% larger relative to the icon container */ +.fa-icon-lg { + font-size: 1.33333333em; + line-height: 0.75em; + vertical-align: -15%; +} +.fa-icon-2x { + font-size: 2em; +} +.fa-icon-3x { + font-size: 3em; +} +.fa-icon-4x { + font-size: 4em; +} +.fa-icon-5x { + font-size: 5em; +} +.fa-icon-fw { + width: 1.28571429em; + text-align: center; +} +.fa-icon-ul { + padding-left: 0; + margin-left: 2.14285714em; + list-style-type: none; +} +.fa-icon-ul > li { + position: relative; +} +.fa-icon-li { + position: absolute; + left: -2.14285714em; + width: 2.14285714em; + top: 0.14285714em; + text-align: center; +} +.fa-icon-li.fa-icon-lg { + left: -1.85714286em; +} +.fa-icon-border { + padding: .2em .25em .15em; + border: solid 0.08em #eeeeee; + border-radius: .1em; +} +.fa-icon-pull-left { + float: left; +} +.fa-icon-pull-right { + float: right; +} +.fa.fa-icon-pull-left { + margin-right: .3em; +} +.fa.fa-icon-pull-right { + margin-left: .3em; +} +/* Deprecated as of 4.4.0 */ +.pull-right { + float: right; +} +.pull-left { + float: left; +} +.fa.pull-left { + margin-right: .3em; +} +.fa.pull-right { + margin-left: .3em; +} +.fa-icon-spin { + -webkit-animation: fa-spin 2s infinite linear; + animation: fa-spin 2s infinite linear; +} +.fa-icon-pulse { + -webkit-animation: fa-spin 1s infinite steps(8); + animation: fa-spin 1s infinite steps(8); +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +.fa-icon-rotate-90 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; + -webkit-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); +} +.fa-icon-rotate-180 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; + -webkit-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); +} +.fa-icon-rotate-270 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; + -webkit-transform: rotate(270deg); + -ms-transform: rotate(270deg); + transform: rotate(270deg); +} +.fa-icon-flip-horizontal { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; + -webkit-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + transform: scale(-1, 1); +} +.fa-icon-flip-vertical { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; + -webkit-transform: scale(1, -1); + -ms-transform: scale(1, -1); + transform: scale(1, -1); +} +:root .fa-icon-rotate-90, +:root .fa-icon-rotate-180, +:root .fa-icon-rotate-270, +:root .fa-icon-flip-horizontal, +:root .fa-icon-flip-vertical { + filter: none; +} +.fa-icon-stack { + position: relative; + display: inline-block; + width: 2em; + height: 2em; + line-height: 2em; + vertical-align: middle; +} +.fa-icon-stack-1x, +.fa-icon-stack-2x { + position: absolute; + left: 0; + width: 100%; + text-align: center; +} +.fa-icon-stack-1x { + line-height: inherit; +} +.fa-icon-stack-2x { + font-size: 2em; +} +.fa-icon-inverse { + color: #fff; +} +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ +.fa-icon-glass:before { + content: "\f000"; +} +.fa-icon-music:before { + content: "\f001"; +} +.fa-icon-search:before { + content: "\f002"; +} +.fa-icon-envelope-o:before { + content: "\f003"; +} +.fa-icon-heart:before { + content: "\f004"; +} +.fa-icon-star:before { + content: "\f005"; +} +.fa-icon-star-o:before { + content: "\f006"; +} +.fa-icon-user:before { + content: "\f007"; +} +.fa-icon-film:before { + content: "\f008"; +} +.fa-icon-th-large:before { + content: "\f009"; +} +.fa-icon-th:before { + content: "\f00a"; +} +.fa-icon-th-list:before { + content: "\f00b"; +} +.fa-icon-check:before { + content: "\f00c"; +} +.fa-icon-remove:before, +.fa-icon-close:before, +.fa-icon-times:before { + content: "\f00d"; +} +.fa-icon-search-plus:before { + content: "\f00e"; +} +.fa-icon-search-minus:before { + content: "\f010"; +} +.fa-icon-power-off:before { + content: "\f011"; +} +.fa-icon-signal:before { + content: "\f012"; +} +.fa-icon-gear:before, +.fa-icon-cog:before { + content: "\f013"; +} +.fa-icon-trash-o:before { + content: "\f014"; +} +.fa-icon-home:before { + content: "\f015"; +} +.fa-icon-file-o:before { + content: "\f016"; +} +.fa-icon-clock-o:before { + content: "\f017"; +} +.fa-icon-road:before { + content: "\f018"; +} +.fa-icon-download:before { + content: "\f019"; +} +.fa-icon-arrow-circle-o-down:before { + content: "\f01a"; +} +.fa-icon-arrow-circle-o-up:before { + content: "\f01b"; +} +.fa-icon-inbox:before { + content: "\f01c"; +} +.fa-icon-play-circle-o:before { + content: "\f01d"; +} +.fa-icon-rotate-right:before, +.fa-icon-repeat:before { + content: "\f01e"; +} +.fa-icon-refresh:before { + content: "\f021"; +} +.fa-icon-list-alt:before { + content: "\f022"; +} +.fa-icon-lock:before { + content: "\f023"; +} +.fa-icon-flag:before { + content: "\f024"; +} +.fa-icon-headphones:before { + content: "\f025"; +} +.fa-icon-volume-off:before { + content: "\f026"; +} +.fa-icon-volume-down:before { + content: "\f027"; +} +.fa-icon-volume-up:before { + content: "\f028"; +} +.fa-icon-qrcode:before { + content: "\f029"; +} +.fa-icon-barcode:before { + content: "\f02a"; +} +.fa-icon-tag:before { + content: "\f02b"; +} +.fa-icon-tags:before { + content: "\f02c"; +} +.fa-icon-book:before { + content: "\f02d"; +} +.fa-icon-bookmark:before { + content: "\f02e"; +} +.fa-icon-print:before { + content: "\f02f"; +} +.fa-icon-camera:before { + content: "\f030"; +} +.fa-icon-font:before { + content: "\f031"; +} +.fa-icon-bold:before { + content: "\f032"; +} +.fa-icon-italic:before { + content: "\f033"; +} +.fa-icon-text-height:before { + content: "\f034"; +} +.fa-icon-text-width:before { + content: "\f035"; +} +.fa-icon-align-left:before { + content: "\f036"; +} +.fa-icon-align-center:before { + content: "\f037"; +} +.fa-icon-align-right:before { + content: "\f038"; +} +.fa-icon-align-justify:before { + content: "\f039"; +} +.fa-icon-list:before { + content: "\f03a"; +} +.fa-icon-dedent:before, +.fa-icon-outdent:before { + content: "\f03b"; +} +.fa-icon-indent:before { + content: "\f03c"; +} +.fa-icon-video-camera:before { + content: "\f03d"; +} +.fa-icon-photo:before, +.fa-icon-image:before, +.fa-icon-picture-o:before { + content: "\f03e"; +} +.fa-icon-pencil:before { + content: "\f040"; +} +.fa-icon-map-marker:before { + content: "\f041"; +} +.fa-icon-adjust:before { + content: "\f042"; +} +.fa-icon-tint:before { + content: "\f043"; +} +.fa-icon-edit:before, +.fa-icon-pencil-square-o:before { + content: "\f044"; +} +.fa-icon-share-square-o:before { + content: "\f045"; +} +.fa-icon-check-square-o:before { + content: "\f046"; +} +.fa-icon-arrows:before { + content: "\f047"; +} +.fa-icon-step-backward:before { + content: "\f048"; +} +.fa-icon-fast-backward:before { + content: "\f049"; +} +.fa-icon-backward:before { + content: "\f04a"; +} +.fa-icon-play:before { + content: "\f04b"; +} +.fa-icon-pause:before { + content: "\f04c"; +} +.fa-icon-stop:before { + content: "\f04d"; +} +.fa-icon-forward:before { + content: "\f04e"; +} +.fa-icon-fast-forward:before { + content: "\f050"; +} +.fa-icon-step-forward:before { + content: "\f051"; +} +.fa-icon-eject:before { + content: "\f052"; +} +.fa-icon-chevron-left:before { + content: "\f053"; +} +.fa-icon-chevron-right:before { + content: "\f054"; +} +.fa-icon-plus-circle:before { + content: "\f055"; +} +.fa-icon-minus-circle:before { + content: "\f056"; +} +.fa-icon-times-circle:before { + content: "\f057"; +} +.fa-icon-check-circle:before { + content: "\f058"; +} +.fa-icon-question-circle:before { + content: "\f059"; +} +.fa-icon-info-circle:before { + content: "\f05a"; +} +.fa-icon-crosshairs:before { + content: "\f05b"; +} +.fa-icon-times-circle-o:before { + content: "\f05c"; +} +.fa-icon-check-circle-o:before { + content: "\f05d"; +} +.fa-icon-ban:before { + content: "\f05e"; +} +.fa-icon-arrow-left:before { + content: "\f060"; +} +.fa-icon-arrow-right:before { + content: "\f061"; +} +.fa-icon-arrow-up:before { + content: "\f062"; +} +.fa-icon-arrow-down:before { + content: "\f063"; +} +.fa-icon-mail-forward:before, +.fa-icon-share:before { + content: "\f064"; +} +.fa-icon-expand:before { + content: "\f065"; +} +.fa-icon-compress:before { + content: "\f066"; +} +.fa-icon-plus:before { + content: "\f067"; +} +.fa-icon-minus:before { + content: "\f068"; +} +.fa-icon-asterisk:before { + content: "\f069"; +} +.fa-icon-exclamation-circle:before { + content: "\f06a"; +} +.fa-icon-gift:before { + content: "\f06b"; +} +.fa-icon-leaf:before { + content: "\f06c"; +} +.fa-icon-fire:before { + content: "\f06d"; +} +.fa-icon-eye:before { + content: "\f06e"; +} +.fa-icon-eye-slash:before { + content: "\f070"; +} +.fa-icon-warning:before, +.fa-icon-exclamation-triangle:before { + content: "\f071"; +} +.fa-icon-plane:before { + content: "\f072"; +} +.fa-icon-calendar:before { + content: "\f073"; +} +.fa-icon-random:before { + content: "\f074"; +} +.fa-icon-comment:before { + content: "\f075"; +} +.fa-icon-magnet:before { + content: "\f076"; +} +.fa-icon-chevron-up:before { + content: "\f077"; +} +.fa-icon-chevron-down:before { + content: "\f078"; +} +.fa-icon-retweet:before { + content: "\f079"; +} +.fa-icon-shopping-cart:before { + content: "\f07a"; +} +.fa-icon-folder:before { + content: "\f07b"; +} +.fa-icon-folder-open:before { + content: "\f07c"; +} +.fa-icon-arrows-v:before { + content: "\f07d"; +} +.fa-icon-arrows-h:before { + content: "\f07e"; +} +.fa-icon-bar-chart-o:before, +.fa-icon-bar-chart:before { + content: "\f080"; +} +.fa-icon-twitter-square:before { + content: "\f081"; +} +.fa-icon-facebook-square:before { + content: "\f082"; +} +.fa-icon-camera-retro:before { + content: "\f083"; +} +.fa-icon-key:before { + content: "\f084"; +} +.fa-icon-gears:before, +.fa-icon-cogs:before { + content: "\f085"; +} +.fa-icon-comments:before { + content: "\f086"; +} +.fa-icon-thumbs-o-up:before { + content: "\f087"; +} +.fa-icon-thumbs-o-down:before { + content: "\f088"; +} +.fa-icon-star-half:before { + content: "\f089"; +} +.fa-icon-heart-o:before { + content: "\f08a"; +} +.fa-icon-sign-out:before { + content: "\f08b"; +} +.fa-icon-linkedin-square:before { + content: "\f08c"; +} +.fa-icon-thumb-tack:before { + content: "\f08d"; +} +.fa-icon-external-link:before { + content: "\f08e"; +} +.fa-icon-sign-in:before { + content: "\f090"; +} +.fa-icon-trophy:before { + content: "\f091"; +} +.fa-icon-github-square:before { + content: "\f092"; +} +.fa-icon-upload:before { + content: "\f093"; +} +.fa-icon-lemon-o:before { + content: "\f094"; +} +.fa-icon-phone:before { + content: "\f095"; +} +.fa-icon-square-o:before { + content: "\f096"; +} +.fa-icon-bookmark-o:before { + content: "\f097"; +} +.fa-icon-phone-square:before { + content: "\f098"; +} +.fa-icon-twitter:before { + content: "\f099"; +} +.fa-icon-facebook-f:before, +.fa-icon-facebook:before { + content: "\f09a"; +} +.fa-icon-github:before { + content: "\f09b"; +} +.fa-icon-unlock:before { + content: "\f09c"; +} +.fa-icon-credit-card:before { + content: "\f09d"; +} +.fa-icon-feed:before, +.fa-icon-rss:before { + content: "\f09e"; +} +.fa-icon-hdd-o:before { + content: "\f0a0"; +} +.fa-icon-bullhorn:before { + content: "\f0a1"; +} +.fa-icon-bell:before { + content: "\f0f3"; +} +.fa-icon-certificate:before { + content: "\f0a3"; +} +.fa-icon-hand-o-right:before { + content: "\f0a4"; +} +.fa-icon-hand-o-left:before { + content: "\f0a5"; +} +.fa-icon-hand-o-up:before { + content: "\f0a6"; +} +.fa-icon-hand-o-down:before { + content: "\f0a7"; +} +.fa-icon-arrow-circle-left:before { + content: "\f0a8"; +} +.fa-icon-arrow-circle-right:before { + content: "\f0a9"; +} +.fa-icon-arrow-circle-up:before { + content: "\f0aa"; +} +.fa-icon-arrow-circle-down:before { + content: "\f0ab"; +} +.fa-icon-globe:before { + content: "\f0ac"; +} +.fa-icon-wrench:before { + content: "\f0ad"; +} +.fa-icon-tasks:before { + content: "\f0ae"; +} +.fa-icon-filter:before { + content: "\f0b0"; +} +.fa-icon-briefcase:before { + content: "\f0b1"; +} +.fa-icon-arrows-alt:before { + content: "\f0b2"; +} +.fa-icon-group:before, +.fa-icon-users:before { + content: "\f0c0"; +} +.fa-icon-chain:before, +.fa-icon-link:before { + content: "\f0c1"; +} +.fa-icon-cloud:before { + content: "\f0c2"; +} +.fa-icon-flask:before { + content: "\f0c3"; +} +.fa-icon-cut:before, +.fa-icon-scissors:before { + content: "\f0c4"; +} +.fa-icon-copy:before, +.fa-icon-files-o:before { + content: "\f0c5"; +} +.fa-icon-paperclip:before { + content: "\f0c6"; +} +.fa-icon-save:before, +.fa-icon-floppy-o:before { + content: "\f0c7"; +} +.fa-icon-square:before { + content: "\f0c8"; +} +.fa-icon-navicon:before, +.fa-icon-reorder:before, +.fa-icon-bars:before { + content: "\f0c9"; +} +.fa-icon-list-ul:before { + content: "\f0ca"; +} +.fa-icon-list-ol:before { + content: "\f0cb"; +} +.fa-icon-strikethrough:before { + content: "\f0cc"; +} +.fa-icon-underline:before { + content: "\f0cd"; +} +.fa-icon-table:before { + content: "\f0ce"; +} +.fa-icon-magic:before { + content: "\f0d0"; +} +.fa-icon-truck:before { + content: "\f0d1"; +} +.fa-icon-pinterest:before { + content: "\f0d2"; +} +.fa-icon-pinterest-square:before { + content: "\f0d3"; +} +.fa-icon-google-plus-square:before { + content: "\f0d4"; +} +.fa-icon-google-plus:before { + content: "\f0d5"; +} +.fa-icon-money:before { + content: "\f0d6"; +} +.fa-icon-caret-down:before { + content: "\f0d7"; +} +.fa-icon-caret-up:before { + content: "\f0d8"; +} +.fa-icon-caret-left:before { + content: "\f0d9"; +} +.fa-icon-caret-right:before { + content: "\f0da"; +} +.fa-icon-columns:before { + content: "\f0db"; +} +.fa-icon-unsorted:before, +.fa-icon-sort:before { + content: "\f0dc"; +} +.fa-icon-sort-down:before, +.fa-icon-sort-desc:before { + content: "\f0dd"; +} +.fa-icon-sort-up:before, +.fa-icon-sort-asc:before { + content: "\f0de"; +} +.fa-icon-envelope:before { + content: "\f0e0"; +} +.fa-icon-linkedin:before { + content: "\f0e1"; +} +.fa-icon-rotate-left:before, +.fa-icon-undo:before { + content: "\f0e2"; +} +.fa-icon-legal:before, +.fa-icon-gavel:before { + content: "\f0e3"; +} +.fa-icon-dashboard:before, +.fa-icon-tachometer:before { + content: "\f0e4"; +} +.fa-icon-comment-o:before { + content: "\f0e5"; +} +.fa-icon-comments-o:before { + content: "\f0e6"; +} +.fa-icon-flash:before, +.fa-icon-bolt:before { + content: "\f0e7"; +} +.fa-icon-sitemap:before { + content: "\f0e8"; +} +.fa-icon-umbrella:before { + content: "\f0e9"; +} +.fa-icon-paste:before, +.fa-icon-clipboard:before { + content: "\f0ea"; +} +.fa-icon-lightbulb-o:before { + content: "\f0eb"; +} +.fa-icon-exchange:before { + content: "\f0ec"; +} +.fa-icon-cloud-download:before { + content: "\f0ed"; +} +.fa-icon-cloud-upload:before { + content: "\f0ee"; +} +.fa-icon-user-md:before { + content: "\f0f0"; +} +.fa-icon-stethoscope:before { + content: "\f0f1"; +} +.fa-icon-suitcase:before { + content: "\f0f2"; +} +.fa-icon-bell-o:before { + content: "\f0a2"; +} +.fa-icon-coffee:before { + content: "\f0f4"; +} +.fa-icon-cutlery:before { + content: "\f0f5"; +} +.fa-icon-file-text-o:before { + content: "\f0f6"; +} +.fa-icon-building-o:before { + content: "\f0f7"; +} +.fa-icon-hospital-o:before { + content: "\f0f8"; +} +.fa-icon-ambulance:before { + content: "\f0f9"; +} +.fa-icon-medkit:before { + content: "\f0fa"; +} +.fa-icon-fighter-jet:before { + content: "\f0fb"; +} +.fa-icon-beer:before { + content: "\f0fc"; +} +.fa-icon-h-square:before { + content: "\f0fd"; +} +.fa-icon-plus-square:before { + content: "\f0fe"; +} +.fa-icon-angle-double-left:before { + content: "\f100"; +} +.fa-icon-angle-double-right:before { + content: "\f101"; +} +.fa-icon-angle-double-up:before { + content: "\f102"; +} +.fa-icon-angle-double-down:before { + content: "\f103"; +} +.fa-icon-angle-left:before { + content: "\f104"; +} +.fa-icon-angle-right:before { + content: "\f105"; +} +.fa-icon-angle-up:before { + content: "\f106"; +} +.fa-icon-angle-down:before { + content: "\f107"; +} +.fa-icon-desktop:before { + content: "\f108"; +} +.fa-icon-laptop:before { + content: "\f109"; +} +.fa-icon-tablet:before { + content: "\f10a"; +} +.fa-icon-mobile-phone:before, +.fa-icon-mobile:before { + content: "\f10b"; +} +.fa-icon-circle-o:before { + content: "\f10c"; +} +.fa-icon-quote-left:before { + content: "\f10d"; +} +.fa-icon-quote-right:before { + content: "\f10e"; +} +.fa-icon-spinner:before { + content: "\f110"; +} +.fa-icon-circle:before { + content: "\f111"; +} +.fa-icon-mail-reply:before, +.fa-icon-reply:before { + content: "\f112"; +} +.fa-icon-github-alt:before { + content: "\f113"; +} +.fa-icon-folder-o:before { + content: "\f114"; +} +.fa-icon-folder-open-o:before { + content: "\f115"; +} +.fa-icon-smile-o:before { + content: "\f118"; +} +.fa-icon-frown-o:before { + content: "\f119"; +} +.fa-icon-meh-o:before { + content: "\f11a"; +} +.fa-icon-gamepad:before { + content: "\f11b"; +} +.fa-icon-keyboard-o:before { + content: "\f11c"; +} +.fa-icon-flag-o:before { + content: "\f11d"; +} +.fa-icon-flag-checkered:before { + content: "\f11e"; +} +.fa-icon-terminal:before { + content: "\f120"; +} +.fa-icon-code:before { + content: "\f121"; +} +.fa-icon-mail-reply-all:before, +.fa-icon-reply-all:before { + content: "\f122"; +} +.fa-icon-star-half-empty:before, +.fa-icon-star-half-full:before, +.fa-icon-star-half-o:before { + content: "\f123"; +} +.fa-icon-location-arrow:before { + content: "\f124"; +} +.fa-icon-crop:before { + content: "\f125"; +} +.fa-icon-code-fork:before { + content: "\f126"; +} +.fa-icon-unlink:before, +.fa-icon-chain-broken:before { + content: "\f127"; +} +.fa-icon-question:before { + content: "\f128"; +} +.fa-icon-info:before { + content: "\f129"; +} +.fa-icon-exclamation:before { + content: "\f12a"; +} +.fa-icon-superscript:before { + content: "\f12b"; +} +.fa-icon-subscript:before { + content: "\f12c"; +} +.fa-icon-eraser:before { + content: "\f12d"; +} +.fa-icon-puzzle-piece:before { + content: "\f12e"; +} +.fa-icon-microphone:before { + content: "\f130"; +} +.fa-icon-microphone-slash:before { + content: "\f131"; +} +.fa-icon-shield:before { + content: "\f132"; +} +.fa-icon-calendar-o:before { + content: "\f133"; +} +.fa-icon-fire-extinguisher:before { + content: "\f134"; +} +.fa-icon-rocket:before { + content: "\f135"; +} +.fa-icon-maxcdn:before { + content: "\f136"; +} +.fa-icon-chevron-circle-left:before { + content: "\f137"; +} +.fa-icon-chevron-circle-right:before { + content: "\f138"; +} +.fa-icon-chevron-circle-up:before { + content: "\f139"; +} +.fa-icon-chevron-circle-down:before { + content: "\f13a"; +} +.fa-icon-html5:before { + content: "\f13b"; +} +.fa-icon-css3:before { + content: "\f13c"; +} +.fa-icon-anchor:before { + content: "\f13d"; +} +.fa-icon-unlock-alt:before { + content: "\f13e"; +} +.fa-icon-bullseye:before { + content: "\f140"; +} +.fa-icon-ellipsis-h:before { + content: "\f141"; +} +.fa-icon-ellipsis-v:before { + content: "\f142"; +} +.fa-icon-rss-square:before { + content: "\f143"; +} +.fa-icon-play-circle:before { + content: "\f144"; +} +.fa-icon-ticket:before { + content: "\f145"; +} +.fa-icon-minus-square:before { + content: "\f146"; +} +.fa-icon-minus-square-o:before { + content: "\f147"; +} +.fa-icon-level-up:before { + content: "\f148"; +} +.fa-icon-level-down:before { + content: "\f149"; +} +.fa-icon-check-square:before { + content: "\f14a"; +} +.fa-icon-pencil-square:before { + content: "\f14b"; +} +.fa-icon-external-link-square:before { + content: "\f14c"; +} +.fa-icon-share-square:before { + content: "\f14d"; +} +.fa-icon-compass:before { + content: "\f14e"; +} +.fa-icon-toggle-down:before, +.fa-icon-caret-square-o-down:before { + content: "\f150"; +} +.fa-icon-toggle-up:before, +.fa-icon-caret-square-o-up:before { + content: "\f151"; +} +.fa-icon-toggle-right:before, +.fa-icon-caret-square-o-right:before { + content: "\f152"; +} +.fa-icon-euro:before, +.fa-icon-eur:before { + content: "\f153"; +} +.fa-icon-gbp:before { + content: "\f154"; +} +.fa-icon-dollar:before, +.fa-icon-usd:before { + content: "\f155"; +} +.fa-icon-rupee:before, +.fa-icon-inr:before { + content: "\f156"; +} +.fa-icon-cny:before, +.fa-icon-rmb:before, +.fa-icon-yen:before, +.fa-icon-jpy:before { + content: "\f157"; +} +.fa-icon-ruble:before, +.fa-icon-rouble:before, +.fa-icon-rub:before { + content: "\f158"; +} +.fa-icon-won:before, +.fa-icon-krw:before { + content: "\f159"; +} +.fa-icon-bitcoin:before, +.fa-icon-btc:before { + content: "\f15a"; +} +.fa-icon-file:before { + content: "\f15b"; +} +.fa-icon-file-text:before { + content: "\f15c"; +} +.fa-icon-sort-alpha-asc:before { + content: "\f15d"; +} +.fa-icon-sort-alpha-desc:before { + content: "\f15e"; +} +.fa-icon-sort-amount-asc:before { + content: "\f160"; +} +.fa-icon-sort-amount-desc:before { + content: "\f161"; +} +.fa-icon-sort-numeric-asc:before { + content: "\f162"; +} +.fa-icon-sort-numeric-desc:before { + content: "\f163"; +} +.fa-icon-thumbs-up:before { + content: "\f164"; +} +.fa-icon-thumbs-down:before { + content: "\f165"; +} +.fa-icon-youtube-square:before { + content: "\f166"; +} +.fa-icon-youtube:before { + content: "\f167"; +} +.fa-icon-xing:before { + content: "\f168"; +} +.fa-icon-xing-square:before { + content: "\f169"; +} +.fa-icon-youtube-play:before { + content: "\f16a"; +} +.fa-icon-dropbox:before { + content: "\f16b"; +} +.fa-icon-stack-overflow:before { + content: "\f16c"; +} +.fa-icon-instagram:before { + content: "\f16d"; +} +.fa-icon-flickr:before { + content: "\f16e"; +} +.fa-icon-adn:before { + content: "\f170"; +} +.fa-icon-bitbucket:before { + content: "\f171"; +} +.fa-icon-bitbucket-square:before { + content: "\f172"; +} +.fa-icon-tumblr:before { + content: "\f173"; +} +.fa-icon-tumblr-square:before { + content: "\f174"; +} +.fa-icon-long-arrow-down:before { + content: "\f175"; +} +.fa-icon-long-arrow-up:before { + content: "\f176"; +} +.fa-icon-long-arrow-left:before { + content: "\f177"; +} +.fa-icon-long-arrow-right:before { + content: "\f178"; +} +.fa-icon-apple:before { + content: "\f179"; +} +.fa-icon-windows:before { + content: "\f17a"; +} +.fa-icon-android:before { + content: "\f17b"; +} +.fa-icon-linux:before { + content: "\f17c"; +} +.fa-icon-dribbble:before { + content: "\f17d"; +} +.fa-icon-skype:before { + content: "\f17e"; +} +.fa-icon-foursquare:before { + content: "\f180"; +} +.fa-icon-trello:before { + content: "\f181"; +} +.fa-icon-female:before { + content: "\f182"; +} +.fa-icon-male:before { + content: "\f183"; +} +.fa-icon-gittip:before, +.fa-icon-gratipay:before { + content: "\f184"; +} +.fa-icon-sun-o:before { + content: "\f185"; +} +.fa-icon-moon-o:before { + content: "\f186"; +} +.fa-icon-archive:before { + content: "\f187"; +} +.fa-icon-bug:before { + content: "\f188"; +} +.fa-icon-vk:before { + content: "\f189"; +} +.fa-icon-weibo:before { + content: "\f18a"; +} +.fa-icon-renren:before { + content: "\f18b"; +} +.fa-icon-pagelines:before { + content: "\f18c"; +} +.fa-icon-stack-exchange:before { + content: "\f18d"; +} +.fa-icon-arrow-circle-o-right:before { + content: "\f18e"; +} +.fa-icon-arrow-circle-o-left:before { + content: "\f190"; +} +.fa-icon-toggle-left:before, +.fa-icon-caret-square-o-left:before { + content: "\f191"; +} +.fa-icon-dot-circle-o:before { + content: "\f192"; +} +.fa-icon-wheelchair:before { + content: "\f193"; +} +.fa-icon-vimeo-square:before { + content: "\f194"; +} +.fa-icon-turkish-lira:before, +.fa-icon-try:before { + content: "\f195"; +} +.fa-icon-plus-square-o:before { + content: "\f196"; +} +.fa-icon-space-shuttle:before { + content: "\f197"; +} +.fa-icon-slack:before { + content: "\f198"; +} +.fa-icon-envelope-square:before { + content: "\f199"; +} +.fa-icon-wordpress:before { + content: "\f19a"; +} +.fa-icon-openid:before { + content: "\f19b"; +} +.fa-icon-institution:before, +.fa-icon-bank:before, +.fa-icon-university:before { + content: "\f19c"; +} +.fa-icon-mortar-board:before, +.fa-icon-graduation-cap:before { + content: "\f19d"; +} +.fa-icon-yahoo:before { + content: "\f19e"; +} +.fa-icon-google:before { + content: "\f1a0"; +} +.fa-icon-reddit:before { + content: "\f1a1"; +} +.fa-icon-reddit-square:before { + content: "\f1a2"; +} +.fa-icon-stumbleupon-circle:before { + content: "\f1a3"; +} +.fa-icon-stumbleupon:before { + content: "\f1a4"; +} +.fa-icon-delicious:before { + content: "\f1a5"; +} +.fa-icon-digg:before { + content: "\f1a6"; +} +.fa-icon-pied-piper-pp:before { + content: "\f1a7"; +} +.fa-icon-pied-piper-alt:before { + content: "\f1a8"; +} +.fa-icon-drupal:before { + content: "\f1a9"; +} +.fa-icon-joomla:before { + content: "\f1aa"; +} +.fa-icon-language:before { + content: "\f1ab"; +} +.fa-icon-fax:before { + content: "\f1ac"; +} +.fa-icon-building:before { + content: "\f1ad"; +} +.fa-icon-child:before { + content: "\f1ae"; +} +.fa-icon-paw:before { + content: "\f1b0"; +} +.fa-icon-spoon:before { + content: "\f1b1"; +} +.fa-icon-cube:before { + content: "\f1b2"; +} +.fa-icon-cubes:before { + content: "\f1b3"; +} +.fa-icon-behance:before { + content: "\f1b4"; +} +.fa-icon-behance-square:before { + content: "\f1b5"; +} +.fa-icon-steam:before { + content: "\f1b6"; +} +.fa-icon-steam-square:before { + content: "\f1b7"; +} +.fa-icon-recycle:before { + content: "\f1b8"; +} +.fa-icon-automobile:before, +.fa-icon-car:before { + content: "\f1b9"; +} +.fa-icon-cab:before, +.fa-icon-taxi:before { + content: "\f1ba"; +} +.fa-icon-tree:before { + content: "\f1bb"; +} +.fa-icon-spotify:before { + content: "\f1bc"; +} +.fa-icon-deviantart:before { + content: "\f1bd"; +} +.fa-icon-soundcloud:before { + content: "\f1be"; +} +.fa-icon-database:before { + content: "\f1c0"; +} +.fa-icon-file-pdf-o:before { + content: "\f1c1"; +} +.fa-icon-file-word-o:before { + content: "\f1c2"; +} +.fa-icon-file-excel-o:before { + content: "\f1c3"; +} +.fa-icon-file-powerpoint-o:before { + content: "\f1c4"; +} +.fa-icon-file-photo-o:before, +.fa-icon-file-picture-o:before, +.fa-icon-file-image-o:before { + content: "\f1c5"; +} +.fa-icon-file-zip-o:before, +.fa-icon-file-archive-o:before { + content: "\f1c6"; +} +.fa-icon-file-sound-o:before, +.fa-icon-file-audio-o:before { + content: "\f1c7"; +} +.fa-icon-file-movie-o:before, +.fa-icon-file-video-o:before { + content: "\f1c8"; +} +.fa-icon-file-code-o:before { + content: "\f1c9"; +} +.fa-icon-vine:before { + content: "\f1ca"; +} +.fa-icon-codepen:before { + content: "\f1cb"; +} +.fa-icon-jsfiddle:before { + content: "\f1cc"; +} +.fa-icon-life-bouy:before, +.fa-icon-life-buoy:before, +.fa-icon-life-saver:before, +.fa-icon-support:before, +.fa-icon-life-ring:before { + content: "\f1cd"; +} +.fa-icon-circle-o-notch:before { + content: "\f1ce"; +} +.fa-icon-ra:before, +.fa-icon-resistance:before, +.fa-icon-rebel:before { + content: "\f1d0"; +} +.fa-icon-ge:before, +.fa-icon-empire:before { + content: "\f1d1"; +} +.fa-icon-git-square:before { + content: "\f1d2"; +} +.fa-icon-git:before { + content: "\f1d3"; +} +.fa-icon-y-combinator-square:before, +.fa-icon-yc-square:before, +.fa-icon-hacker-news:before { + content: "\f1d4"; +} +.fa-icon-tencent-weibo:before { + content: "\f1d5"; +} +.fa-icon-qq:before { + content: "\f1d6"; +} +.fa-icon-wechat:before, +.fa-icon-weixin:before { + content: "\f1d7"; +} +.fa-icon-send:before, +.fa-icon-paper-plane:before { + content: "\f1d8"; +} +.fa-icon-send-o:before, +.fa-icon-paper-plane-o:before { + content: "\f1d9"; +} +.fa-icon-history:before { + content: "\f1da"; +} +.fa-icon-circle-thin:before { + content: "\f1db"; +} +.fa-icon-header:before { + content: "\f1dc"; +} +.fa-icon-paragraph:before { + content: "\f1dd"; +} +.fa-icon-sliders:before { + content: "\f1de"; +} +.fa-icon-share-alt:before { + content: "\f1e0"; +} +.fa-icon-share-alt-square:before { + content: "\f1e1"; +} +.fa-icon-bomb:before { + content: "\f1e2"; +} +.fa-icon-soccer-ball-o:before, +.fa-icon-futbol-o:before { + content: "\f1e3"; +} +.fa-icon-tty:before { + content: "\f1e4"; +} +.fa-icon-binoculars:before { + content: "\f1e5"; +} +.fa-icon-plug:before { + content: "\f1e6"; +} +.fa-icon-slideshare:before { + content: "\f1e7"; +} +.fa-icon-twitch:before { + content: "\f1e8"; +} +.fa-icon-yelp:before { + content: "\f1e9"; +} +.fa-icon-newspaper-o:before { + content: "\f1ea"; +} +.fa-icon-wifi:before { + content: "\f1eb"; +} +.fa-icon-calculator:before { + content: "\f1ec"; +} +.fa-icon-paypal:before { + content: "\f1ed"; +} +.fa-icon-google-wallet:before { + content: "\f1ee"; +} +.fa-icon-cc-visa:before { + content: "\f1f0"; +} +.fa-icon-cc-mastercard:before { + content: "\f1f1"; +} +.fa-icon-cc-discover:before { + content: "\f1f2"; +} +.fa-icon-cc-amex:before { + content: "\f1f3"; +} +.fa-icon-cc-paypal:before { + content: "\f1f4"; +} +.fa-icon-cc-stripe:before { + content: "\f1f5"; +} +.fa-icon-bell-slash:before { + content: "\f1f6"; +} +.fa-icon-bell-slash-o:before { + content: "\f1f7"; +} +.fa-icon-trash:before { + content: "\f1f8"; +} +.fa-icon-copyright:before { + content: "\f1f9"; +} +.fa-icon-at:before { + content: "\f1fa"; +} +.fa-icon-eyedropper:before { + content: "\f1fb"; +} +.fa-icon-paint-brush:before { + content: "\f1fc"; +} +.fa-icon-birthday-cake:before { + content: "\f1fd"; +} +.fa-icon-area-chart:before { + content: "\f1fe"; +} +.fa-icon-pie-chart:before { + content: "\f200"; +} +.fa-icon-line-chart:before { + content: "\f201"; +} +.fa-icon-lastfm:before { + content: "\f202"; +} +.fa-icon-lastfm-square:before { + content: "\f203"; +} +.fa-icon-toggle-off:before { + content: "\f204"; +} +.fa-icon-toggle-on:before { + content: "\f205"; +} +.fa-icon-bicycle:before { + content: "\f206"; +} +.fa-icon-bus:before { + content: "\f207"; +} +.fa-icon-ioxhost:before { + content: "\f208"; +} +.fa-icon-angellist:before { + content: "\f209"; +} +.fa-icon-cc:before { + content: "\f20a"; +} +.fa-icon-shekel:before, +.fa-icon-sheqel:before, +.fa-icon-ils:before { + content: "\f20b"; +} +.fa-icon-meanpath:before { + content: "\f20c"; +} +.fa-icon-buysellads:before { + content: "\f20d"; +} +.fa-icon-connectdevelop:before { + content: "\f20e"; +} +.fa-icon-dashcube:before { + content: "\f210"; +} +.fa-icon-forumbee:before { + content: "\f211"; +} +.fa-icon-leanpub:before { + content: "\f212"; +} +.fa-icon-sellsy:before { + content: "\f213"; +} +.fa-icon-shirtsinbulk:before { + content: "\f214"; +} +.fa-icon-simplybuilt:before { + content: "\f215"; +} +.fa-icon-skyatlas:before { + content: "\f216"; +} +.fa-icon-cart-plus:before { + content: "\f217"; +} +.fa-icon-cart-arrow-down:before { + content: "\f218"; +} +.fa-icon-diamond:before { + content: "\f219"; +} +.fa-icon-ship:before { + content: "\f21a"; +} +.fa-icon-user-secret:before { + content: "\f21b"; +} +.fa-icon-motorcycle:before { + content: "\f21c"; +} +.fa-icon-street-view:before { + content: "\f21d"; +} +.fa-icon-heartbeat:before { + content: "\f21e"; +} +.fa-icon-venus:before { + content: "\f221"; +} +.fa-icon-mars:before { + content: "\f222"; +} +.fa-icon-mercury:before { + content: "\f223"; +} +.fa-icon-intersex:before, +.fa-icon-transgender:before { + content: "\f224"; +} +.fa-icon-transgender-alt:before { + content: "\f225"; +} +.fa-icon-venus-double:before { + content: "\f226"; +} +.fa-icon-mars-double:before { + content: "\f227"; +} +.fa-icon-venus-mars:before { + content: "\f228"; +} +.fa-icon-mars-stroke:before { + content: "\f229"; +} +.fa-icon-mars-stroke-v:before { + content: "\f22a"; +} +.fa-icon-mars-stroke-h:before { + content: "\f22b"; +} +.fa-icon-neuter:before { + content: "\f22c"; +} +.fa-icon-genderless:before { + content: "\f22d"; +} +.fa-icon-facebook-official:before { + content: "\f230"; +} +.fa-icon-pinterest-p:before { + content: "\f231"; +} +.fa-icon-whatsapp:before { + content: "\f232"; +} +.fa-icon-server:before { + content: "\f233"; +} +.fa-icon-user-plus:before { + content: "\f234"; +} +.fa-icon-user-times:before { + content: "\f235"; +} +.fa-icon-hotel:before, +.fa-icon-bed:before { + content: "\f236"; +} +.fa-icon-viacoin:before { + content: "\f237"; +} +.fa-icon-train:before { + content: "\f238"; +} +.fa-icon-subway:before { + content: "\f239"; +} +.fa-icon-medium:before { + content: "\f23a"; +} +.fa-icon-yc:before, +.fa-icon-y-combinator:before { + content: "\f23b"; +} +.fa-icon-optin-monster:before { + content: "\f23c"; +} +.fa-icon-opencart:before { + content: "\f23d"; +} +.fa-icon-expeditedssl:before { + content: "\f23e"; +} +.fa-icon-battery-4:before, +.fa-icon-battery:before, +.fa-icon-battery-full:before { + content: "\f240"; +} +.fa-icon-battery-3:before, +.fa-icon-battery-three-quarters:before { + content: "\f241"; +} +.fa-icon-battery-2:before, +.fa-icon-battery-half:before { + content: "\f242"; +} +.fa-icon-battery-1:before, +.fa-icon-battery-quarter:before { + content: "\f243"; +} +.fa-icon-battery-0:before, +.fa-icon-battery-empty:before { + content: "\f244"; +} +.fa-icon-mouse-pointer:before { + content: "\f245"; +} +.fa-icon-i-cursor:before { + content: "\f246"; +} +.fa-icon-object-group:before { + content: "\f247"; +} +.fa-icon-object-ungroup:before { + content: "\f248"; +} +.fa-icon-sticky-note:before { + content: "\f249"; +} +.fa-icon-sticky-note-o:before { + content: "\f24a"; +} +.fa-icon-cc-jcb:before { + content: "\f24b"; +} +.fa-icon-cc-diners-club:before { + content: "\f24c"; +} +.fa-icon-clone:before { + content: "\f24d"; +} +.fa-icon-balance-scale:before { + content: "\f24e"; +} +.fa-icon-hourglass-o:before { + content: "\f250"; +} +.fa-icon-hourglass-1:before, +.fa-icon-hourglass-start:before { + content: "\f251"; +} +.fa-icon-hourglass-2:before, +.fa-icon-hourglass-half:before { + content: "\f252"; +} +.fa-icon-hourglass-3:before, +.fa-icon-hourglass-end:before { + content: "\f253"; +} +.fa-icon-hourglass:before { + content: "\f254"; +} +.fa-icon-hand-grab-o:before, +.fa-icon-hand-rock-o:before { + content: "\f255"; +} +.fa-icon-hand-stop-o:before, +.fa-icon-hand-paper-o:before { + content: "\f256"; +} +.fa-icon-hand-scissors-o:before { + content: "\f257"; +} +.fa-icon-hand-lizard-o:before { + content: "\f258"; +} +.fa-icon-hand-spock-o:before { + content: "\f259"; +} +.fa-icon-hand-pointer-o:before { + content: "\f25a"; +} +.fa-icon-hand-peace-o:before { + content: "\f25b"; +} +.fa-icon-trademark:before { + content: "\f25c"; +} +.fa-icon-registered:before { + content: "\f25d"; +} +.fa-icon-creative-commons:before { + content: "\f25e"; +} +.fa-icon-gg:before { + content: "\f260"; +} +.fa-icon-gg-circle:before { + content: "\f261"; +} +.fa-icon-tripadvisor:before { + content: "\f262"; +} +.fa-icon-odnoklassniki:before { + content: "\f263"; +} +.fa-icon-odnoklassniki-square:before { + content: "\f264"; +} +.fa-icon-get-pocket:before { + content: "\f265"; +} +.fa-icon-wikipedia-w:before { + content: "\f266"; +} +.fa-icon-safari:before { + content: "\f267"; +} +.fa-icon-chrome:before { + content: "\f268"; +} +.fa-icon-firefox:before { + content: "\f269"; +} +.fa-icon-opera:before { + content: "\f26a"; +} +.fa-icon-internet-explorer:before { + content: "\f26b"; +} +.fa-icon-tv:before, +.fa-icon-television:before { + content: "\f26c"; +} +.fa-icon-contao:before { + content: "\f26d"; +} +.fa-icon-500px:before { + content: "\f26e"; +} +.fa-icon-amazon:before { + content: "\f270"; +} +.fa-icon-calendar-plus-o:before { + content: "\f271"; +} +.fa-icon-calendar-minus-o:before { + content: "\f272"; +} +.fa-icon-calendar-times-o:before { + content: "\f273"; +} +.fa-icon-calendar-check-o:before { + content: "\f274"; +} +.fa-icon-industry:before { + content: "\f275"; +} +.fa-icon-map-pin:before { + content: "\f276"; +} +.fa-icon-map-signs:before { + content: "\f277"; +} +.fa-icon-map-o:before { + content: "\f278"; +} +.fa-icon-map:before { + content: "\f279"; +} +.fa-icon-commenting:before { + content: "\f27a"; +} +.fa-icon-commenting-o:before { + content: "\f27b"; +} +.fa-icon-houzz:before { + content: "\f27c"; +} +.fa-icon-vimeo:before { + content: "\f27d"; +} +.fa-icon-black-tie:before { + content: "\f27e"; +} +.fa-icon-fonticons:before { + content: "\f280"; +} +.fa-icon-reddit-alien:before { + content: "\f281"; +} +.fa-icon-edge:before { + content: "\f282"; +} +.fa-icon-credit-card-alt:before { + content: "\f283"; +} +.fa-icon-codiepie:before { + content: "\f284"; +} +.fa-icon-modx:before { + content: "\f285"; +} +.fa-icon-fort-awesome:before { + content: "\f286"; +} +.fa-icon-usb:before { + content: "\f287"; +} +.fa-icon-product-hunt:before { + content: "\f288"; +} +.fa-icon-mixcloud:before { + content: "\f289"; +} +.fa-icon-scribd:before { + content: "\f28a"; +} +.fa-icon-pause-circle:before { + content: "\f28b"; +} +.fa-icon-pause-circle-o:before { + content: "\f28c"; +} +.fa-icon-stop-circle:before { + content: "\f28d"; +} +.fa-icon-stop-circle-o:before { + content: "\f28e"; +} +.fa-icon-shopping-bag:before { + content: "\f290"; +} +.fa-icon-shopping-basket:before { + content: "\f291"; +} +.fa-icon-hashtag:before { + content: "\f292"; +} +.fa-icon-bluetooth:before { + content: "\f293"; +} +.fa-icon-bluetooth-b:before { + content: "\f294"; +} +.fa-icon-percent:before { + content: "\f295"; +} +.fa-icon-gitlab:before { + content: "\f296"; +} +.fa-icon-wpbeginner:before { + content: "\f297"; +} +.fa-icon-wpforms:before { + content: "\f298"; +} +.fa-icon-envira:before { + content: "\f299"; +} +.fa-icon-universal-access:before { + content: "\f29a"; +} +.fa-icon-wheelchair-alt:before { + content: "\f29b"; +} +.fa-icon-question-circle-o:before { + content: "\f29c"; +} +.fa-icon-blind:before { + content: "\f29d"; +} +.fa-icon-audio-description:before { + content: "\f29e"; +} +.fa-icon-volume-control-phone:before { + content: "\f2a0"; +} +.fa-icon-braille:before { + content: "\f2a1"; +} +.fa-icon-assistive-listening-systems:before { + content: "\f2a2"; +} +.fa-icon-asl-interpreting:before, +.fa-icon-american-sign-language-interpreting:before { + content: "\f2a3"; +} +.fa-icon-deafness:before, +.fa-icon-hard-of-hearing:before, +.fa-icon-deaf:before { + content: "\f2a4"; +} +.fa-icon-glide:before { + content: "\f2a5"; +} +.fa-icon-glide-g:before { + content: "\f2a6"; +} +.fa-icon-signing:before, +.fa-icon-sign-language:before { + content: "\f2a7"; +} +.fa-icon-low-vision:before { + content: "\f2a8"; +} +.fa-icon-viadeo:before { + content: "\f2a9"; +} +.fa-icon-viadeo-square:before { + content: "\f2aa"; +} +.fa-icon-snapchat:before { + content: "\f2ab"; +} +.fa-icon-snapchat-ghost:before { + content: "\f2ac"; +} +.fa-icon-snapchat-square:before { + content: "\f2ad"; +} +.fa-icon-pied-piper:before { + content: "\f2ae"; +} +.fa-icon-first-order:before { + content: "\f2b0"; +} +.fa-icon-yoast:before { + content: "\f2b1"; +} +.fa-icon-themeisle:before { + content: "\f2b2"; +} +.fa-icon-google-plus-circle:before, +.fa-icon-google-plus-official:before { + content: "\f2b3"; +} +.fa-icon-fa:before, +.fa-icon-font-awesome:before { + content: "\f2b4"; +} +.fa-icon-handshake-o:before { + content: "\f2b5"; +} +.fa-icon-envelope-open:before { + content: "\f2b6"; +} +.fa-icon-envelope-open-o:before { + content: "\f2b7"; +} +.fa-icon-linode:before { + content: "\f2b8"; +} +.fa-icon-address-book:before { + content: "\f2b9"; +} +.fa-icon-address-book-o:before { + content: "\f2ba"; +} +.fa-icon-vcard:before, +.fa-icon-address-card:before { + content: "\f2bb"; +} +.fa-icon-vcard-o:before, +.fa-icon-address-card-o:before { + content: "\f2bc"; +} +.fa-icon-user-circle:before { + content: "\f2bd"; +} +.fa-icon-user-circle-o:before { + content: "\f2be"; +} +.fa-icon-user-o:before { + content: "\f2c0"; +} +.fa-icon-id-badge:before { + content: "\f2c1"; +} +.fa-icon-drivers-license:before, +.fa-icon-id-card:before { + content: "\f2c2"; +} +.fa-icon-drivers-license-o:before, +.fa-icon-id-card-o:before { + content: "\f2c3"; +} +.fa-icon-quora:before { + content: "\f2c4"; +} +.fa-icon-free-code-camp:before { + content: "\f2c5"; +} +.fa-icon-telegram:before { + content: "\f2c6"; +} +.fa-icon-thermometer-4:before, +.fa-icon-thermometer:before, +.fa-icon-thermometer-full:before { + content: "\f2c7"; +} +.fa-icon-thermometer-3:before, +.fa-icon-thermometer-three-quarters:before { + content: "\f2c8"; +} +.fa-icon-thermometer-2:before, +.fa-icon-thermometer-half:before { + content: "\f2c9"; +} +.fa-icon-thermometer-1:before, +.fa-icon-thermometer-quarter:before { + content: "\f2ca"; +} +.fa-icon-thermometer-0:before, +.fa-icon-thermometer-empty:before { + content: "\f2cb"; +} +.fa-icon-shower:before { + content: "\f2cc"; +} +.fa-icon-bathtub:before, +.fa-icon-s15:before, +.fa-icon-bath:before { + content: "\f2cd"; +} +.fa-icon-podcast:before { + content: "\f2ce"; +} +.fa-icon-window-maximize:before { + content: "\f2d0"; +} +.fa-icon-window-minimize:before { + content: "\f2d1"; +} +.fa-icon-window-restore:before { + content: "\f2d2"; +} +.fa-icon-times-rectangle:before, +.fa-icon-window-close:before { + content: "\f2d3"; +} +.fa-icon-times-rectangle-o:before, +.fa-icon-window-close-o:before { + content: "\f2d4"; +} +.fa-icon-bandcamp:before { + content: "\f2d5"; +} +.fa-icon-grav:before { + content: "\f2d6"; +} +.fa-icon-etsy:before { + content: "\f2d7"; +} +.fa-icon-imdb:before { + content: "\f2d8"; +} +.fa-icon-ravelry:before { + content: "\f2d9"; +} +.fa-icon-eercast:before { + content: "\f2da"; +} +.fa-icon-microchip:before { + content: "\f2db"; +} +.fa-icon-snowflake-o:before { + content: "\f2dc"; +} +.fa-icon-superpowers:before { + content: "\f2dd"; +} +.fa-icon-wpexplorer:before { + content: "\f2de"; +} +.fa-icon-meetup:before { + content: "\f2e0"; +} +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; +} diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/css/font-awesome.min.css b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/css/font-awesome.min.css new file mode 100644 index 0000000..9b27f8e --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/css/font-awesome.min.css @@ -0,0 +1,4 @@ +/*! + * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.6.3');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.6.3') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.6.3') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.6.3') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/FontAwesome.otf b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/FontAwesome.otf new file mode 100644 index 0000000..401ec0f Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/FontAwesome.otf differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.eot b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.svg b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..855c845 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.ttf b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000..35acda2 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.woff b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000..400014a Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.woff2 b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/fonts/fontawesome-webfont.woff2 differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/index.php b/public/assets/plugins/rs-plugin-5.3.1/fonts/font-awesome/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/index.php b/public/assets/plugins/rs-plugin-5.3.1/fonts/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/helper.css b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/helper.css new file mode 100644 index 0000000..16bff1f --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/helper.css @@ -0,0 +1,191 @@ + +/* HELPER CLASS + * -------------------------- */ + +/* FA based classes */ + +/*! Modified from font-awesome helper CSS classes - PIXEDEN + * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (CSS: MIT License) + */ + +/* makes the font 33% larger relative to the icon container */ +.pe-lg { + font-size: 1.3333333333333333em; + line-height: 0.75em; + vertical-align: -15%; +} +.pe-2x { + font-size: 2em; +} +.pe-3x { + font-size: 3em; +} +.pe-4x { + font-size: 4em; +} +.pe-5x { + font-size: 5em; +} +.pe-fw { + width: 1.2857142857142858em; + text-align: center; +} +.pe-ul { + padding-left: 0; + margin-left: 2.142857142857143em; + list-style-type: none; +} +.pe-ul > li { + position: relative; +} +.pe-li { + position: absolute; + left: -2.142857142857143em; + width: 2.142857142857143em; + top: 0.14285714285714285em; + text-align: center; +} +.pe-li.pe-lg { + left: -1.8571428571428572em; +} +.pe-border { + padding: .2em .25em .15em; + border: solid 0.08em #eeeeee; + border-radius: .1em; +} +.pull-right { + float: right; +} +.pull-left { + float: left; +} +.pe.pull-left { + margin-right: .3em; +} +.pe.pull-right { + margin-left: .3em; +} +.pe-spin { + -webkit-animation: spin 2s infinite linear; + -moz-animation: spin 2s infinite linear; + -o-animation: spin 2s infinite linear; + animation: spin 2s infinite linear; +} +@-moz-keyframes spin { + 0% { + -moz-transform: rotate(0deg); + } + 100% { + -moz-transform: rotate(359deg); + } +} +@-webkit-keyframes spin { + 0% { + -webkit-transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + } +} +@-o-keyframes spin { + 0% { + -o-transform: rotate(0deg); + } + 100% { + -o-transform: rotate(359deg); + } +} +@-ms-keyframes spin { + 0% { + -ms-transform: rotate(0deg); + } + 100% { + -ms-transform: rotate(359deg); + } +} +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(359deg); + } +} +.pe-rotate-90 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + -o-transform: rotate(90deg); + transform: rotate(90deg); +} +.pe-rotate-180 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + -o-transform: rotate(180deg); + transform: rotate(180deg); +} +.pe-rotate-270 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); + -webkit-transform: rotate(270deg); + -moz-transform: rotate(270deg); + -ms-transform: rotate(270deg); + -o-transform: rotate(270deg); + transform: rotate(270deg); +} +.pe-flip-horizontal { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); + -webkit-transform: scale(-1, 1); + -moz-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + -o-transform: scale(-1, 1); + transform: scale(-1, 1); +} +.pe-flip-vertical { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); + -webkit-transform: scale(1, -1); + -moz-transform: scale(1, -1); + -ms-transform: scale(1, -1); + -o-transform: scale(1, -1); + transform: scale(1, -1); +} +.pe-stack { + position: relative; + display: inline-block; + width: 2em; + height: 2em; + line-height: 2em; + vertical-align: middle; +} +.pe-stack-1x, +.pe-stack-2x { + position: absolute; + left: 0; + width: 100%; + text-align: center; +} +.pe-stack-1x { + line-height: inherit; +} +.pe-stack-2x { + font-size: 2em; +} +.pe-inverse { + color: #fff; +} + +/* Custom classes / mods - PIXEDEN */ +.pe-va { + vertical-align: middle; +} + +.pe-border { + border: solid 0.08em #eaeaea; +} + +[class^="pe-7s-"], [class*=" pe-7s-"] { + display: inline-block; +} \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/index.php b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css new file mode 100644 index 0000000..44bcbaa --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css @@ -0,0 +1,632 @@ +@font-face { + font-family: 'Pe-icon-7-stroke'; + src:url('../fonts/Pe-icon-7-stroke.eot?d7yf1v'); + src:url('../fonts/Pe-icon-7-stroke.eot?#iefixd7yf1v') format('embedded-opentype'), + url('../fonts/Pe-icon-7-stroke.woff?d7yf1v') format('woff'), + url('../fonts/Pe-icon-7-stroke.ttf?d7yf1v') format('truetype'), + url('../fonts/Pe-icon-7-stroke.svg?d7yf1v#Pe-icon-7-stroke') format('svg'); + font-weight: normal; + font-style: normal; +} + +[class^="pe-7s-"], [class*=" pe-7s-"] { + display: inline-block; + font-family: 'Pe-icon-7-stroke'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.pe-7s-album:before { + content: "\e6aa"; +} +.pe-7s-arc:before { + content: "\e6ab"; +} +.pe-7s-back-2:before { + content: "\e6ac"; +} +.pe-7s-bandaid:before { + content: "\e6ad"; +} +.pe-7s-car:before { + content: "\e6ae"; +} +.pe-7s-diamond:before { + content: "\e6af"; +} +.pe-7s-door-lock:before { + content: "\e6b0"; +} +.pe-7s-eyedropper:before { + content: "\e6b1"; +} +.pe-7s-female:before { + content: "\e6b2"; +} +.pe-7s-gym:before { + content: "\e6b3"; +} +.pe-7s-hammer:before { + content: "\e6b4"; +} +.pe-7s-headphones:before { + content: "\e6b5"; +} +.pe-7s-helm:before { + content: "\e6b6"; +} +.pe-7s-hourglass:before { + content: "\e6b7"; +} +.pe-7s-leaf:before { + content: "\e6b8"; +} +.pe-7s-magic-wand:before { + content: "\e6b9"; +} +.pe-7s-male:before { + content: "\e6ba"; +} +.pe-7s-map-2:before { + content: "\e6bb"; +} +.pe-7s-next-2:before { + content: "\e6bc"; +} +.pe-7s-paint-bucket:before { + content: "\e6bd"; +} +.pe-7s-pendrive:before { + content: "\e6be"; +} +.pe-7s-photo:before { + content: "\e6bf"; +} +.pe-7s-piggy:before { + content: "\e6c0"; +} +.pe-7s-plugin:before { + content: "\e6c1"; +} +.pe-7s-refresh-2:before { + content: "\e6c2"; +} +.pe-7s-rocket:before { + content: "\e6c3"; +} +.pe-7s-settings:before { + content: "\e6c4"; +} +.pe-7s-shield:before { + content: "\e6c5"; +} +.pe-7s-smile:before { + content: "\e6c6"; +} +.pe-7s-usb:before { + content: "\e6c7"; +} +.pe-7s-vector:before { + content: "\e6c8"; +} +.pe-7s-wine:before { + content: "\e6c9"; +} +.pe-7s-cloud-upload:before { + content: "\e68a"; +} +.pe-7s-cash:before { + content: "\e68c"; +} +.pe-7s-close:before { + content: "\e680"; +} +.pe-7s-bluetooth:before { + content: "\e68d"; +} +.pe-7s-cloud-download:before { + content: "\e68b"; +} +.pe-7s-way:before { + content: "\e68e"; +} +.pe-7s-close-circle:before { + content: "\e681"; +} +.pe-7s-id:before { + content: "\e68f"; +} +.pe-7s-angle-up:before { + content: "\e682"; +} +.pe-7s-wristwatch:before { + content: "\e690"; +} +.pe-7s-angle-up-circle:before { + content: "\e683"; +} +.pe-7s-world:before { + content: "\e691"; +} +.pe-7s-angle-right:before { + content: "\e684"; +} +.pe-7s-volume:before { + content: "\e692"; +} +.pe-7s-angle-right-circle:before { + content: "\e685"; +} +.pe-7s-users:before { + content: "\e693"; +} +.pe-7s-angle-left:before { + content: "\e686"; +} +.pe-7s-user-female:before { + content: "\e694"; +} +.pe-7s-angle-left-circle:before { + content: "\e687"; +} +.pe-7s-up-arrow:before { + content: "\e695"; +} +.pe-7s-angle-down:before { + content: "\e688"; +} +.pe-7s-switch:before { + content: "\e696"; +} +.pe-7s-angle-down-circle:before { + content: "\e689"; +} +.pe-7s-scissors:before { + content: "\e697"; +} +.pe-7s-wallet:before { + content: "\e600"; +} +.pe-7s-safe:before { + content: "\e698"; +} +.pe-7s-volume2:before { + content: "\e601"; +} +.pe-7s-volume1:before { + content: "\e602"; +} +.pe-7s-voicemail:before { + content: "\e603"; +} +.pe-7s-video:before { + content: "\e604"; +} +.pe-7s-user:before { + content: "\e605"; +} +.pe-7s-upload:before { + content: "\e606"; +} +.pe-7s-unlock:before { + content: "\e607"; +} +.pe-7s-umbrella:before { + content: "\e608"; +} +.pe-7s-trash:before { + content: "\e609"; +} +.pe-7s-tools:before { + content: "\e60a"; +} +.pe-7s-timer:before { + content: "\e60b"; +} +.pe-7s-ticket:before { + content: "\e60c"; +} +.pe-7s-target:before { + content: "\e60d"; +} +.pe-7s-sun:before { + content: "\e60e"; +} +.pe-7s-study:before { + content: "\e60f"; +} +.pe-7s-stopwatch:before { + content: "\e610"; +} +.pe-7s-star:before { + content: "\e611"; +} +.pe-7s-speaker:before { + content: "\e612"; +} +.pe-7s-signal:before { + content: "\e613"; +} +.pe-7s-shuffle:before { + content: "\e614"; +} +.pe-7s-shopbag:before { + content: "\e615"; +} +.pe-7s-share:before { + content: "\e616"; +} +.pe-7s-server:before { + content: "\e617"; +} +.pe-7s-search:before { + content: "\e618"; +} +.pe-7s-film:before { + content: "\e6a5"; +} +.pe-7s-science:before { + content: "\e619"; +} +.pe-7s-disk:before { + content: "\e6a6"; +} +.pe-7s-ribbon:before { + content: "\e61a"; +} +.pe-7s-repeat:before { + content: "\e61b"; +} +.pe-7s-refresh:before { + content: "\e61c"; +} +.pe-7s-add-user:before { + content: "\e6a9"; +} +.pe-7s-refresh-cloud:before { + content: "\e61d"; +} +.pe-7s-paperclip:before { + content: "\e69c"; +} +.pe-7s-radio:before { + content: "\e61e"; +} +.pe-7s-note2:before { + content: "\e69d"; +} +.pe-7s-print:before { + content: "\e61f"; +} +.pe-7s-network:before { + content: "\e69e"; +} +.pe-7s-prev:before { + content: "\e620"; +} +.pe-7s-mute:before { + content: "\e69f"; +} +.pe-7s-power:before { + content: "\e621"; +} +.pe-7s-medal:before { + content: "\e6a0"; +} +.pe-7s-portfolio:before { + content: "\e622"; +} +.pe-7s-like2:before { + content: "\e6a1"; +} +.pe-7s-plus:before { + content: "\e623"; +} +.pe-7s-left-arrow:before { + content: "\e6a2"; +} +.pe-7s-play:before { + content: "\e624"; +} +.pe-7s-key:before { + content: "\e6a3"; +} +.pe-7s-plane:before { + content: "\e625"; +} +.pe-7s-joy:before { + content: "\e6a4"; +} +.pe-7s-photo-gallery:before { + content: "\e626"; +} +.pe-7s-pin:before { + content: "\e69b"; +} +.pe-7s-phone:before { + content: "\e627"; +} +.pe-7s-plug:before { + content: "\e69a"; +} +.pe-7s-pen:before { + content: "\e628"; +} +.pe-7s-right-arrow:before { + content: "\e699"; +} +.pe-7s-paper-plane:before { + content: "\e629"; +} +.pe-7s-delete-user:before { + content: "\e6a7"; +} +.pe-7s-paint:before { + content: "\e62a"; +} +.pe-7s-bottom-arrow:before { + content: "\e6a8"; +} +.pe-7s-notebook:before { + content: "\e62b"; +} +.pe-7s-note:before { + content: "\e62c"; +} +.pe-7s-next:before { + content: "\e62d"; +} +.pe-7s-news-paper:before { + content: "\e62e"; +} +.pe-7s-musiclist:before { + content: "\e62f"; +} +.pe-7s-music:before { + content: "\e630"; +} +.pe-7s-mouse:before { + content: "\e631"; +} +.pe-7s-more:before { + content: "\e632"; +} +.pe-7s-moon:before { + content: "\e633"; +} +.pe-7s-monitor:before { + content: "\e634"; +} +.pe-7s-micro:before { + content: "\e635"; +} +.pe-7s-menu:before { + content: "\e636"; +} +.pe-7s-map:before { + content: "\e637"; +} +.pe-7s-map-marker:before { + content: "\e638"; +} +.pe-7s-mail:before { + content: "\e639"; +} +.pe-7s-mail-open:before { + content: "\e63a"; +} +.pe-7s-mail-open-file:before { + content: "\e63b"; +} +.pe-7s-magnet:before { + content: "\e63c"; +} +.pe-7s-loop:before { + content: "\e63d"; +} +.pe-7s-look:before { + content: "\e63e"; +} +.pe-7s-lock:before { + content: "\e63f"; +} +.pe-7s-lintern:before { + content: "\e640"; +} +.pe-7s-link:before { + content: "\e641"; +} +.pe-7s-like:before { + content: "\e642"; +} +.pe-7s-light:before { + content: "\e643"; +} +.pe-7s-less:before { + content: "\e644"; +} +.pe-7s-keypad:before { + content: "\e645"; +} +.pe-7s-junk:before { + content: "\e646"; +} +.pe-7s-info:before { + content: "\e647"; +} +.pe-7s-home:before { + content: "\e648"; +} +.pe-7s-help2:before { + content: "\e649"; +} +.pe-7s-help1:before { + content: "\e64a"; +} +.pe-7s-graph3:before { + content: "\e64b"; +} +.pe-7s-graph2:before { + content: "\e64c"; +} +.pe-7s-graph1:before { + content: "\e64d"; +} +.pe-7s-graph:before { + content: "\e64e"; +} +.pe-7s-global:before { + content: "\e64f"; +} +.pe-7s-gleam:before { + content: "\e650"; +} +.pe-7s-glasses:before { + content: "\e651"; +} +.pe-7s-gift:before { + content: "\e652"; +} +.pe-7s-folder:before { + content: "\e653"; +} +.pe-7s-flag:before { + content: "\e654"; +} +.pe-7s-filter:before { + content: "\e655"; +} +.pe-7s-file:before { + content: "\e656"; +} +.pe-7s-expand1:before { + content: "\e657"; +} +.pe-7s-exapnd2:before { + content: "\e658"; +} +.pe-7s-edit:before { + content: "\e659"; +} +.pe-7s-drop:before { + content: "\e65a"; +} +.pe-7s-drawer:before { + content: "\e65b"; +} +.pe-7s-download:before { + content: "\e65c"; +} +.pe-7s-display2:before { + content: "\e65d"; +} +.pe-7s-display1:before { + content: "\e65e"; +} +.pe-7s-diskette:before { + content: "\e65f"; +} +.pe-7s-date:before { + content: "\e660"; +} +.pe-7s-cup:before { + content: "\e661"; +} +.pe-7s-culture:before { + content: "\e662"; +} +.pe-7s-crop:before { + content: "\e663"; +} +.pe-7s-credit:before { + content: "\e664"; +} +.pe-7s-copy-file:before { + content: "\e665"; +} +.pe-7s-config:before { + content: "\e666"; +} +.pe-7s-compass:before { + content: "\e667"; +} +.pe-7s-comment:before { + content: "\e668"; +} +.pe-7s-coffee:before { + content: "\e669"; +} +.pe-7s-cloud:before { + content: "\e66a"; +} +.pe-7s-clock:before { + content: "\e66b"; +} +.pe-7s-check:before { + content: "\e66c"; +} +.pe-7s-chat:before { + content: "\e66d"; +} +.pe-7s-cart:before { + content: "\e66e"; +} +.pe-7s-camera:before { + content: "\e66f"; +} +.pe-7s-call:before { + content: "\e670"; +} +.pe-7s-calculator:before { + content: "\e671"; +} +.pe-7s-browser:before { + content: "\e672"; +} +.pe-7s-box2:before { + content: "\e673"; +} +.pe-7s-box1:before { + content: "\e674"; +} +.pe-7s-bookmarks:before { + content: "\e675"; +} +.pe-7s-bicycle:before { + content: "\e676"; +} +.pe-7s-bell:before { + content: "\e677"; +} +.pe-7s-battery:before { + content: "\e678"; +} +.pe-7s-ball:before { + content: "\e679"; +} +.pe-7s-back:before { + content: "\e67a"; +} +.pe-7s-attention:before { + content: "\e67b"; +} +.pe-7s-anchor:before { + content: "\e67c"; +} +.pe-7s-albums:before { + content: "\e67d"; +} +.pe-7s-alarm:before { + content: "\e67e"; +} +.pe-7s-airplay:before { + content: "\e67f"; +} diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.eot b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.eot new file mode 100644 index 0000000..6f7b584 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.eot differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.svg b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.svg new file mode 100644 index 0000000..13d9709 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.svg @@ -0,0 +1,212 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.ttf b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.ttf new file mode 100644 index 0000000..bc8a269 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.ttf differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.woff b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.woff new file mode 100644 index 0000000..c205e6f Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.woff differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/index.php b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/fonts/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/index.php b/public/assets/plugins/rs-plugin-5.3.1/fonts/pe-icon-7-stroke/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/index.php b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.eot b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.eot new file mode 100644 index 0000000..955dc3f Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.eot differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.svg b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.svg new file mode 100644 index 0000000..7c9d595 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.svg @@ -0,0 +1,54 @@ + + + +Copyright (C) 2013 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.ttf b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.ttf new file mode 100644 index 0000000..4e8df98 Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.ttf differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.woff b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.woff new file mode 100644 index 0000000..6d3ea4d Binary files /dev/null and b/public/assets/plugins/rs-plugin-5.3.1/fonts/revicons/revicons.woff differ diff --git a/public/assets/plugins/rs-plugin-5.3.1/index.php b/public/assets/plugins/rs-plugin-5.3.1/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/info.cfg b/public/assets/plugins/rs-plugin-5.3.1/info.cfg new file mode 100644 index 0000000..2fc6e01 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/info.cfg @@ -0,0 +1,3 @@ +{ +"version":"5.3.1" +} \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/index.php b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.actions.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.actions.min.js new file mode 100644 index 0000000..eaeaba8 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.actions.min.js @@ -0,0 +1,7 @@ +/******************************************** + * REVOLUTION 5.3 EXTENSION - ACTIONS + * @version: 2.0.4 (24.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +!function($){"use strict";var _R=jQuery.fn.revolution,_ISM=_R.is_mobile(),extension={alias:"Actions Min JS",name:"revolution.extensions.actions.min.js",min_core:"5.3",version:"2.0.4"};jQuery.extend(!0,_R,{checkActions:function(a,b,c){return"stop"!==_R.compare_version(extension).check&&void checkActions_intern(a,b,c)}});var checkActions_intern=function(a,b,c){c&&jQuery.each(c,function(c,d){d.delay=parseInt(d.delay,0)/1e3,a.addClass("tp-withaction"),b.fullscreen_esclistener||"exitfullscreen"!=d.action&&"togglefullscreen"!=d.action||(jQuery(document).keyup(function(b){27==b.keyCode&&jQuery("#rs-go-fullscreen").length>0&&a.trigger(d.event)}),b.fullscreen_esclistener=!0);var e="backgroundvideo"==d.layer?jQuery(".rs-background-video-layer"):"firstvideo"==d.layer?jQuery(".tp-revslider-slidesli").find(".tp-videolayer"):jQuery("#"+d.layer);switch(jQuery.inArray(d.action,["toggleslider","toggle_mute_video","toggle_global_mute_video","togglefullscreen"])!=-1&&a.data("togglelisteners",!0),d.action){case"togglevideo":jQuery.each(e,function(b,c){c=jQuery(c);var d=c.data("videotoggledby");void 0==d&&(d=new Array),d.push(a),c.data("videotoggledby",d)});break;case"togglelayer":jQuery.each(e,function(b,c){c=jQuery(c);var e=c.data("layertoggledby");void 0==e&&(e=new Array),e.push(a),c.data("layertoggledby",e),c.data("triggered_startstatus",d.layerstatus)});break;case"toggle_mute_video":jQuery.each(e,function(b,c){c=jQuery(c);var d=c.data("videomutetoggledby");void 0==d&&(d=new Array),d.push(a),c.data("videomutetoggledby",d)});break;case"toggle_global_mute_video":jQuery.each(e,function(b,c){c=jQuery(c);var d=c.data("videomutetoggledby");void 0==d&&(d=new Array),d.push(a),c.data("videomutetoggledby",d)});break;case"toggleslider":void 0==b.slidertoggledby&&(b.slidertoggledby=new Array),b.slidertoggledby.push(a);break;case"togglefullscreen":void 0==b.fullscreentoggledby&&(b.fullscreentoggledby=new Array),b.fullscreentoggledby.push(a)}switch(a.on(d.event,function(){if("click"===d.event&&a.hasClass("tp-temporarydisabled"))return!1;var c="backgroundvideo"==d.layer?jQuery(".active-revslide .slotholder .rs-background-video-layer"):"firstvideo"==d.layer?jQuery(".active-revslide .tp-videolayer").first():jQuery("#"+d.layer);if("stoplayer"==d.action||"togglelayer"==d.action||"startlayer"==d.action){if(c.length>0){var e=c.data();"startlayer"==d.action||"togglelayer"==d.action&&"in"!=c.data("animdirection")?(e.animdirection="in",e.triggerstate="on",_R.toggleState(e.layertoggledby),_R.playAnimationFrame&&(clearTimeout(e.triggerdelay),e.triggerdelay=setTimeout(function(){_R.playAnimationFrame({caption:c,opt:b,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"})},1e3*d.delay))):("stoplayer"==d.action||"togglelayer"==d.action&&"out"!=c.data("animdirection"))&&(e.animdirection="out",e.triggered=!0,e.triggerstate="off",_R.stopVideo&&_R.stopVideo(c,b),_R.unToggleState(e.layertoggledby),_R.endMoveCaption&&(clearTimeout(e.triggerdelay),e.triggerdelay=setTimeout(function(){_R.playAnimationFrame({caption:c,opt:b,frame:"frame_999",triggerdirection:"out",triggerframein:"frame_0",triggerframeout:"frame_999"})},1e3*d.delay)))}}else!_ISM||"playvideo"!=d.action&&"stopvideo"!=d.action&&"togglevideo"!=d.action&&"mutevideo"!=d.action&&"unmutevideo"!=d.action&&"toggle_mute_video"!=d.action&&"toggle_global_mute_video"!=d.action?(d.delay="NaN"===d.delay||NaN===d.delay?0:d.delay,punchgs.TweenLite.delayedCall(d.delay,function(){actionSwitches(c,b,d,a)},[c,b,d,a])):actionSwitches(c,b,d,a)}),d.action){case"togglelayer":case"startlayer":case"playlayer":case"stoplayer":var e=jQuery("#"+d.layer),f=e.data();e.length>0&&void 0!==f&&(void 0!==f.frames&&"bytrigger"!=f.frames[0].delay||void 0===f.frames&&"bytrigger"!==f.start)&&(f.triggerstate="on")}})},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.c,1);break;case"previous":case"prev":case"-1":opt.sc_indicator="arrow",_R.callingNewSlide(opt.c,-1);break;default:var ts=jQuery.isNumeric(a.slide)?parseInt(a.slide,0):a.slide;_R.callingNewSlide(opt.c,ts)}break;case"simplelink":window.open(a.url,a.target);break;case"toggleslider":opt.noloopanymore=0,"playing"==opt.sliderstatus?(opt.c.revpause(),opt.forcepause_viatoggle=!0,_R.unToggleState(opt.slidertoggledby)):(opt.forcepause_viatoggle=!1,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"toggle_global_mute_video":opt.globalmute===!0?(opt.globalmute=!1,void 0!=opt.playingvideos&&opt.playingvideos.length>0&&jQuery.each(opt.playingvideos,function(a,b){_R.unMuteVideo&&_R.unMuteVideo(b,opt)})):(opt.globalmute=!0,void 0!=opt.playingvideos&&opt.playingvideos.length>0&&jQuery.each(opt.playingvideos,function(a,b){_R.muteVideo&&_R.muteVideo(b,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").length>0&&("togglefullscreen"==a.action||"exitfullscreen"==a.action)){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=!1,opt.c.revredraw(),void 0!=opt.playingvideos&&opt.playingvideos.length>0&&jQuery.each(opt.playingvideos,function(a,b){_R.playVideo(b,opt)}),_R.unToggleState(opt.fullscreentoggledby)}else if(0==jQuery("#rs-go-fullscreen").length&&("togglefullscreen"==a.action||"gofullscreen"==a.action)){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('
    ');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:"#fff"}),opt.oldminheight=opt.minHeight,opt.minHeight=jQuery(window).height(),opt.infullscreenmode=!0,opt.c.revredraw(),void 0!=opt.playingvideos&&opt.playingvideos.length>0&&jQuery.each(opt.playingvideos,function(a,b){_R.playVideo(b,opt)}),_R.toggleState(opt.fullscreentoggledby)}break;default:var obj={};obj.event=a,obj.layer=_nc,opt.c.trigger("layeraction",[obj])}},getOffContH=function(a){if(void 0==a)return 0;if(a.split(",").length>1){var b=a.split(","),c=0;return b&&jQuery.each(b,function(a,b){jQuery(b).length>0&&(c+=jQuery(b).outerHeight(!0))}),c}return jQuery(a).height()}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.carousel.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.carousel.min.js new file mode 100644 index 0000000..c135770 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.carousel.min.js @@ -0,0 +1,7 @@ +/******************************************** + * REVOLUTION 5.0 EXTENSION - CAROUSEL + * @version: 1.2.1 (18.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +!function(a){"use strict";var b=jQuery.fn.revolution,c={alias:"Carousel Min JS",name:"revolution.extensions.carousel.min.js",min_core:"5.3.0",version:"1.2.1"};jQuery.extend(!0,b,{prepareCarousel:function(a,d,h,i){return"stop"!==b.compare_version(c).check&&(h=a.carousel.lastdirection=f(h,a.carousel.lastdirection),e(a),a.carousel.slide_offset_target=j(a),void(void 0!==i?g(a,h,!1,0):void 0==d?b.carouselToEvalPosition(a,h):g(a,h,!1)))},carouselToEvalPosition:function(a,c){var d=a.carousel;c=d.lastdirection=f(c,d.lastdirection);var e="center"===d.horizontal_align?(d.wrapwidth/2-d.slide_width/2-d.slide_globaloffset)/d.slide_width:(0-d.slide_globaloffset)/d.slide_width,h=b.simp(e,a.slideamount,!1),i=h-Math.floor(h),j=0,k=-1*(Math.ceil(h)-h),l=-1*(Math.floor(h)-h);j=i>=.3&&"left"===c||i>=.7&&"right"===c?k:i<.3&&"left"===c||i<.7&&"right"===c?l:j,j="off"===d.infinity?h<0?h:e>a.slideamount-1?e-(a.slideamount-1):j:j,d.slide_offset_target=j*d.slide_width,0!==Math.abs(d.slide_offset_target)?g(a,c,!0):b.organiseCarousel(a,c)},organiseCarousel:function(a,b,c,d){b=void 0===b||"down"==b||"up"==b||null===b||jQuery.isEmptyObject(b)?"left":b;for(var e=a.carousel,f=new Array,g=e.slides.length,i=("right"===e.horizontal_align?a.width:0,0);ie.wrapwidth-e.inneroffset&&"right"==b?e.slide_offset-(e.slides.length-i)*e.slide_width:j,j=j<0-e.inneroffset-e.slide_width&&"left"==b?j+e.maxwidth:j),f[i]=j}var k=999;e.slides&&jQuery.each(e.slides,function(d,h){var i=f[d];"on"===e.infinity&&(i=i>e.wrapwidth-e.inneroffset&&"left"===b?f[0]-(g-d)*e.slide_width:i,i=i<0-e.inneroffset-e.slide_width?"left"==b?i+e.maxwidth:"right"===b?f[g-1]+(d+1)*e.slide_width:i:i);var j=new Object;j.left=i+e.inneroffset;var l="center"===e.horizontal_align?(Math.abs(e.wrapwidth/2)-(j.left+e.slide_width/2))/e.slide_width:(e.inneroffset-j.left)/e.slide_width,n="center"===e.horizontal_align?2:1;if((c&&Math.abs(l)0?1-l:Math.abs(l)>e.maxVisibleItems-1?1-(Math.abs(l)-(e.maxVisibleItems-1)):1;break;case"right":j.autoAlpha=l>-1&&l<0?1-Math.abs(l):l>e.maxVisibleItems-1?1-(Math.abs(l)-(e.maxVisibleItems-1)):1}else j.autoAlpha=Math.abs(l)0)if("on"===e.vary_scale){j.scale=1-Math.abs(e.minScale/100/Math.ceil(e.maxVisibleItems/n)*l);var o=(e.slide_width-e.slide_width*j.scale)*Math.abs(l)}else{j.scale=l>=1||l<=-1?1-e.minScale/100:(100-e.minScale*Math.abs(l))/100;var o=(e.slide_width-e.slide_width*(1-e.minScale/100))*Math.abs(l)}void 0!==e.maxRotation&&0!=Math.abs(e.maxRotation)&&("on"===e.vary_rotation?(j.rotationY=Math.abs(e.maxRotation)-Math.abs((1-Math.abs(1/Math.ceil(e.maxVisibleItems/n)*l))*e.maxRotation),j.autoAlpha=Math.abs(j.rotationY)>90?0:j.autoAlpha):j.rotationY=l>=1||l<=-1?e.maxRotation:Math.abs(l)*e.maxRotation,j.rotationY=l<0?j.rotationY*-1:j.rotationY),j.x=-1*e.space*l,j.left=Math.floor(j.left),j.x=Math.floor(j.x),void 0!==j.scale?l<0?j.x-o:j.x+o:j.x,j.zIndex=Math.round(100-Math.abs(5*l)),j.transformStyle="3D"!=a.parallax.type&&"3d"!=a.parallax.type?"flat":"preserve-3d",punchgs.TweenLite.set(h,j)}),d&&(a.c.find(".next-revslide").removeClass("next-revslide"),jQuery(e.slides[e.focused]).addClass("next-revslide"),a.c.trigger("revolution.nextslide.waiting"));e.wrapwidth/2-e.slide_offset,e.maxwidth+e.slide_offset-e.wrapwidth/2}});var d=function(a){var b=a.carousel;b.infbackup=b.infinity,b.maxVisiblebackup=b.maxVisibleItems,b.slide_globaloffset="none",b.slide_offset=0,b.wrap=a.c.find(".tp-carousel-wrapper"),b.slides=a.c.find(".tp-revslider-slidesli"),0!==b.maxRotation&&("3D"!=a.parallax.type&&"3d"!=a.parallax.type?punchgs.TweenLite.set(b.wrap,{perspective:1200,transformStyle:"flat"}):punchgs.TweenLite.set(b.wrap,{perspective:1600,transformStyle:"preserve-3d"})),void 0!==b.border_radius&&parseInt(b.border_radius,0)>0&&punchgs.TweenLite.set(a.c.find(".tp-revslider-slidesli"),{borderRadius:b.border_radius})},e=function(a){void 0===a.bw&&b.setSize(a);var c=a.carousel,e=b.getHorizontalOffset(a.c,"left"),f=b.getHorizontalOffset(a.c,"right");void 0===c.wrap&&d(a),c.slide_width="on"!==c.stretch?a.gridwidth[a.curWinRange]*a.bw:a.c.width(),c.maxwidth=a.slideamount*c.slide_width,c.maxVisiblebackup>c.slides.length+1&&(c.maxVisibleItems=c.slides.length+2),c.wrapwidth=c.maxVisibleItems*c.slide_width+(c.maxVisibleItems-1)*c.space,c.wrapwidth="auto"!=a.sliderLayout?c.wrapwidth>a.c.closest(".tp-simpleresponsive").width()?a.c.closest(".tp-simpleresponsive").width():c.wrapwidth:c.wrapwidth>a.ul.width()?a.ul.width():c.wrapwidth,c.infinity=c.wrapwidth>=c.maxwidth?"off":c.infbackup,c.wrapoffset="center"===c.horizontal_align?(a.c.width()-f-e-c.wrapwidth)/2:0,c.wrapoffset="auto"!=a.sliderLayout&&a.outernav?0:c.wrapoffsetMath.abs(b)?a>0?a-Math.abs(Math.floor(a/b)*b):a+Math.abs(Math.floor(a/b)*b):a},i=function(a,b,c){var c,c,d=b-a,e=b-c-a;return d=h(d,c),e=h(e,c),Math.abs(d)>Math.abs(e)?e:d},j=function(a){var c=0,d=a.carousel;if(void 0!==d.positionanim&&d.positionanim.kill(),"none"==d.slide_globaloffset)d.slide_globaloffset=c="center"===d.horizontal_align?d.wrapwidth/2-d.slide_width/2:0;else{d.slide_globaloffset=d.slide_offset,d.slide_offset=0;var e=a.c.find(".processing-revslide").index(),f="center"===d.horizontal_align?(d.wrapwidth/2-d.slide_width/2-d.slide_globaloffset)/d.slide_width:(0-d.slide_globaloffset)/d.slide_width;f=b.simp(f,a.slideamount,!1),e=e>=0?e:a.c.find(".active-revslide").index(),e=e>=0?e:0,c="off"===d.infinity?f-e:-i(f,e,a.slideamount),c*=d.slide_width}return c}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.kenburn.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.kenburn.min.js new file mode 100644 index 0000000..4d24f00 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.kenburn.min.js @@ -0,0 +1,7 @@ +/******************************************** + * REVOLUTION 5.0 EXTENSION - KEN BURN + * @version: 1.2 (2.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +!function(a){"use strict";var b=jQuery.fn.revolution,c={alias:"KenBurns Min JS",name:"revolution.extensions.kenburn.min.js",min_core:"5.0",version:"1.2.0"};jQuery.extend(!0,b,{stopKenBurn:function(a){return"stop"!==b.compare_version(c).check&&void(void 0!=a.data("kbtl")&&a.data("kbtl").pause())},startKenBurn:function(a,d,e){if("stop"===b.compare_version(c).check)return!1;var f=a.data(),g=a.find(".defaultimg"),h=g.data("lazyload")||g.data("src"),j=(f.owidth/f.oheight,"carousel"===d.sliderType?d.carousel.slide_width:d.ul.width()),k=d.ul.height();a.data("kbtl")&&a.data("kbtl").kill(),e=e||0,0==a.find(".tp-kbimg").length&&(a.append('
    '),a.data("kenburn",a.find(".tp-kbimg")));var m=function(a,b,c,d,e,f,g){var h=a*c,i=b*c,j=Math.abs(d-h),k=Math.abs(e-i),l=new Object;return l.l=(0-f)*j,l.r=l.l+h,l.t=(0-g)*k,l.b=l.t+i,l.h=f,l.v=g,l},n=function(a,b,c,d,e){var f=a.bgposition.split(" ")||"center center",g="center"==f[0]?"50%":"left"==f[0]||"left"==f[1]?"0%":"right"==f[0]||"right"==f[1]?"100%":f[0],h="center"==f[1]?"50%":"top"==f[0]||"top"==f[1]?"0%":"bottom"==f[0]||"bottom"==f[1]?"100%":f[1];g=parseInt(g,0)/100||0,h=parseInt(h,0)/100||0;var i=new Object;return i.start=m(e.start.width,e.start.height,e.start.scale,b,c,g,h),i.end=m(e.start.width,e.start.height,e.end.scale,b,c,g,h),i},o=function(a,b,c){var d=c.scalestart/100,e=c.scaleend/100,f=void 0!=c.offsetstart?c.offsetstart.split(" ")||[0,0]:[0,0],g=void 0!=c.offsetend?c.offsetend.split(" ")||[0,0]:[0,0];c.bgposition="center center"==c.bgposition?"50% 50%":c.bgposition;var h=new Object,i=a*d,k=(i/c.owidth*c.oheight,a*e);k/c.owidth*c.oheight;if(h.start=new Object,h.starto=new Object,h.end=new Object,h.endo=new Object,h.start.width=a,h.start.height=h.start.width/c.owidth*c.oheight,h.start.height0?0:p+f[0]0?0:r+g[0]0?0:q+f[1]0?0:s+g[1]
  • ');var m=e.find(".helpgrid");m.append('
    Zoom:'+Math.round(100*c.bw)+"%     Device Level:"+c.curWinRange+"    Grid Preset:"+c.gridwidth[c.curWinRange]+"x"+c.gridheight[c.curWinRange]+"
    "),c.c.append('
    '),m.append('
    ')}void 0!==l&&c.layers[l]&&jQuery.each(c.layers[l],function(a,d){var e=jQuery(this);b.updateMarkup(this,c),b.prepareSingleCaption({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h}),h&&0!==i||b.buildFullTimeLine({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h,regenerate:0===i}),f&&"carousel"===c.sliderType&&"on"===c.carousel.showLayersAllTime&&b.animcompleted(e,c)}),c.layers.static&&jQuery.each(c.layers.static,function(a,d){var e=jQuery(this),g=e.data();g.hoveredstatus!==!0&&g.inhoveroutanimation!==!0&&(b.updateMarkup(this,c),b.prepareSingleCaption({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h}),h&&0!==i||b.buildFullTimeLine({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h,regenerate:0===i}),f&&"carousel"===c.sliderType&&"on"===c.carousel.showLayersAllTime&&b.animcompleted(e,c))});var n=c.nextSlide===-1||void 0===c.nextSlide?0:c.nextSlide;n=n>c.rowzones.length?c.rowzones.length:n,void 0!=c.rowzones&&c.rowzones.length>0&&void 0!=c.rowzones[n]&&n>=0&&n<=c.rowzones.length&&c.rowzones[n].length>0&&b.setSize(c),h||void 0!==i&&(void 0!==l&&jQuery.each(c.timelines[l].layers,function(a,d){var e=d.layer.data();"none"!==d.wrapper&&void 0!==d.wrapper||("keep"==d.triggerstate&&"on"===e.triggerstate?b.playAnimationFrame({caption:d.layer,opt:c,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}):d.timeline.restart(0))}),c.timelines.staticlayers&&jQuery.each(c.timelines.staticlayers.layers,function(a,d){var e=d.layer.data(),f=n>=d.firstslide&&n<=d.lastslide,g=nd.lastslide,h=d.timeline.getLabelTime("slide_"+d.firstslide),i=d.timeline.getLabelTime("slide_"+d.lastslide),j=e.static_layer_timeline_time,k="in"===e.animdirection||"out"!==e.animdirection&&void 0,l="bytrigger"===e.frames[0].delay,o=("bytrigger"===e.frames[e.frames.length-1].delay,e.triggered_startstatus),p=e.lasttriggerstate;e.hoveredstatus!==!0&&1!=e.inhoveroutanimation&&(void 0!==j&&k&&("keep"==p?(b.playAnimationFrame({caption:d.layer,opt:c,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}),e.triggeredtimeline.time(j)):e.hoveredstatus!==!0&&d.timeline.time(j)),"reset"===p&&"hidden"===o&&(d.timeline.time(0),e.animdirection="out"),f?k?n===d.lastslide&&(d.timeline.play(i),e.animdirection="in"):(l||"in"===e.animdirection||d.timeline.play(h),("visible"==o&&"keep"!==p||"keep"===p&&k===!0||"visible"==o&&void 0===k)&&(d.timeline.play(h+.01),e.animdirection="in")):g&&k&&d.timeline.play("frame_999"))})),void 0!=g&&setTimeout(function(){g.resume()},30)},prepareSingleCaption:function(a){var c=a.caption,d=c.data(),e=a.opt,f=a.recall,g=a.recall,i=(a.preset,jQuery("body").hasClass("rtl"));if(d._pw=void 0===d._pw?c.closest(".tp-parallax-wrap"):d._pw,d._lw=void 0===d._lw?c.closest(".tp-loop-wrap"):d._lw,d._mw=void 0===d._mw?c.closest(".tp-mask-wrap"):d._mw,d._responsive=d.responsive||"on",d._respoffset=d.responsive_offset||"on",d._ba=d.basealign||"grid",d._gw="grid"===d._ba?e.width:e.ulw,d._gh="grid"===d._ba?e.height:e.ulh,d._lig=void 0===d._lig?c.hasClass("rev_layer_in_group")?c.closest(".rev_group"):c.hasClass("rev_layer_in_column")?c.closest(".rev_column_inner"):c.hasClass("rev_column_inner")?c.closest(".rev_row"):"none":d._lig,d._ingroup=void 0===d._ingroup?!(c.hasClass("rev_group")||!c.closest(".rev_group")):d._ingroup,d._isgroup=void 0===d._isgroup?!!c.hasClass("rev_group"):d._isgroup,d._nctype=d.type||"none",d._cbgc_auto=void 0===d._cbgc_auto?"column"===d._nctype&&d._pw.find(".rev_column_bg_auto_sized"):d._cbgc_auto,d._cbgc_man=void 0===d._cbgc_man?"column"===d._nctype&&d._pw.find(".rev_column_bg_man_sized"):d._cbgc_man,d._slideid=d._slideid||c.closest(".tp-revslider-slidesli").data("index"),d._id=void 0===d._id?c.data("id")||c.attr("id"):d._id,d._slidelink=void 0===d._slidelink?void 0!==c.hasClass("slidelink")&&c.hasClass("slidelink"):d._slidelink,void 0===d._li&&(c.hasClass("tp-static-layer")?(d._isstatic=!0,d._li=c.closest(".tp-static-layers"),d._slideid="staticlayers"):d._li=c.closest(".tp-revslider-slidesli")),d._row=void 0===d._row?"column"===d._nctype&&d._pw.closest(".rev_row"):d._row,void 0===d._togglelisteners&&c.find(".rs-toggled-content")?(d._togglelisteners=!0,void 0===d.actions&&c.click(function(){b.swaptoggleState(c)})):d._togglelisteners=!1,"fullscreen"==e.sliderLayout&&(a.offsety=d._gh/2-e.gridheight[e.curWinRange]*e.bh/2),("on"==e.autoHeight||void 0!=e.minHeight&&e.minHeight>0)&&(a.offsety=e.conh/2-e.gridheight[e.curWinRange]*e.bh/2),a.offsety<0&&(a.offsety=0),e.debugMode){c.closest("li").find(".helpgrid").css({top:a.offsety+"px",left:a.offsetx+"px"});var k=e.c.find(".hglayerinfo");c.on("hover, mouseenter",function(){var a="";c.data()&&jQuery.each(c.data(),function(b,c){"object"!=typeof c&&(a=a+''+b+":"+c+"    ")}),k.html(a)})}var m=void 0===d.visibility?"oon":o(d.visibility,e)[e.forcedWinRange]||o(d.visibility,e)||"ooon";if("off"===m||d._gw0){var n=c.find("img");d.layertype="image",0==n.width()&&n.css({width:"auto"}),0==n.height()&&n.css({height:"auto"}),void 0==n.data("ww")&&n.width()>0&&n.data("ww",n.width()),void 0==n.data("hh")&&n.height()>0&&n.data("hh",n.height());var q=n.data("ww"),t=n.data("hh"),v="slide"==d._ba?e.ulw:e.gridwidth[e.curWinRange],w="slide"==d._ba?e.ulh:e.gridheight[e.curWinRange];q=o(n.data("ww"),e)[e.curWinRange]||o(n.data("ww"),e)||"auto",t=o(n.data("hh"),e)[e.curWinRange]||o(n.data("hh"),e)||"auto";var x="full"===q||"full-proportional"===q,y="full"===t||"full-proportional"===t;if("full-proportional"===q){var z=n.data("owidth"),A=n.data("oheight");z/v0?q:parseFloat(q),t=y?w:!jQuery.isNumeric(t)&&t.indexOf("%")>0?t:parseFloat(t);q=void 0===q?0:q,t=void 0===t?0:t,"off"!==d._responsive?("grid"!=d._ba&&x?jQuery.isNumeric(q)?n.css({width:q+"px"}):n.css({width:q}):jQuery.isNumeric(q)?n.css({width:q*e.bw+"px"}):n.css({width:q}),"grid"!=d._ba&&y?jQuery.isNumeric(t)?n.css({height:t+"px"}):n.css({height:t}):jQuery.isNumeric(t)?n.css({height:t*e.bh+"px"}):n.css({height:t})):n.css({width:q,height:t}),d._ingroup&&(void 0!==q&&!jQuery.isNumeric(q)&&q.indexOf("%")>0&&punchgs.TweenLite.set([d._lw,d._pw,d._mw],{minWidth:q}),void 0!==t&&!jQuery.isNumeric(t)&&t.indexOf("%")>0&&punchgs.TweenLite.set([d._lw,d._pw,d._mw],{minHeight:t}))}if("slide"===d._ba)a.offsetx=0,a.offsety=0;else if(d._isstatic&&void 0!==e.carousel&&void 0!==e.carousel.horizontal_align){switch(e.carousel.horizontal_align){case"center":a.offsetx=0+(e.ulw-e.gridwidth[e.curWinRange])/2;break;case"left":break;case"right":a.offsetx=e.ulw-e.gridwidth[e.curWinRange]}a.offsetx=a.offsetx<0?0:a.offsetx}var B="html5"==d.audio?"audio":"video";if(c.hasClass("tp-videolayer")||c.hasClass("tp-audiolayer")||c.find("iframe").length>0||c.find(B).length>0){if(d.layertype="video",b.manageVideoLayer&&b.manageVideoLayer(c,e,f,g),!f&&!g){d.videotype;b.resetVideo&&b.resetVideo(c,e,a.preset)}var D=d.aspectratio;void 0!=D&&D.split(":").length>1&&b.prepareCoveredVideo(D,e,c);var n=c.find("iframe")?c.find("iframe"):n=c.find(B),E=!c.find("iframe"),F=c.hasClass("coverscreenvideo");n.css({display:"block"}),void 0==c.data("videowidth")&&(c.data("videowidth",n.width()),c.data("videoheight",n.height()));var q=o(c.data("videowidth"),e)[e.curWinRange]||o(c.data("videowidth"),e)||"auto",t=o(c.data("videoheight"),e)[e.curWinRange]||o(c.data("videoheight"),e)||"auto";!jQuery.isNumeric(q)&&q.indexOf("%")>0?t=parseFloat(t)*e.bh+"px":(q=parseFloat(q)*e.bw+"px",t=parseFloat(t)*e.bh+"px"),d.cssobj=void 0===d.cssobj?r(c,0):d.cssobj;var G=s(d.cssobj,e);if("auto"==G.lineHeight&&(G.lineHeight=G.fontSize+4),c.hasClass("fullscreenvideo")||F){a.offsetx=0,a.offsety=0,c.data("x",0),c.data("y",0);var H=d._gh;"on"==e.autoHeight&&(H=e.conh),c.css({width:d._gw,height:H})}else punchgs.TweenLite.set(c,{paddingTop:Math.round(G.paddingTop*e.bh)+"px",paddingBottom:Math.round(G.paddingBottom*e.bh)+"px",paddingLeft:Math.round(G.paddingLeft*e.bw)+"px",paddingRight:Math.round(G.paddingRight*e.bw)+"px",marginTop:G.marginTop*e.bh+"px",marginBottom:G.marginBottom*e.bh+"px",marginLeft:G.marginLeft*e.bw+"px",marginRight:G.marginRight*e.bw+"px",borderTopWidth:Math.round(G.borderTopWidth*e.bh)+"px",borderBottomWidth:Math.round(G.borderBottomWidth*e.bh)+"px",borderLeftWidth:Math.round(G.borderLeftWidth*e.bw)+"px",borderRightWidth:Math.round(G.borderRightWidth*e.bw)+"px",width:q,height:t});(0==E&&!F||1!=d.forcecover&&!c.hasClass("fullscreenvideo")&&!F)&&(n.width(q),n.height(t)),d._ingroup&&void 0!==d.videowidth&&!jQuery.isNumeric(d.videowidth)&&d.videowidth.indexOf("%")>0&&punchgs.TweenLite.set([d._lw,d._pw,d._mw],{minWidth:d.videowidth})}u(c,e,0,d._responsive),c.hasClass("tp-resizeme")&&c.find("*").each(function(){u(jQuery(this),e,"rekursive",d._responsive)});var I=c.outerHeight(),J=c.css("backgroundColor");p(c,".frontcorner","left","borderRight","borderTopColor",I,J),p(c,".frontcornertop","left","borderRight","borderBottomColor",I,J),p(c,".backcorner","right","borderLeft","borderBottomColor",I,J),p(c,".backcornertop","right","borderLeft","borderTopColor",I,J),"on"==e.fullScreenAlignForce&&(a.offsetx=0,a.offsety=0),d.arrobj=new Object,d.arrobj.voa=o(d.voffset,e)[e.curWinRange]||o(d.voffset,e)[0],d.arrobj.hoa=o(d.hoffset,e)[e.curWinRange]||o(d.hoffset,e)[0],d.arrobj.elx=o(d.x,e)[e.curWinRange]||o(d.x,e)[0],d.arrobj.ely=o(d.y,e)[e.curWinRange]||o(d.y,e)[0];var K=0==d.arrobj.voa.length?0:d.arrobj.voa,L=0==d.arrobj.hoa.length?0:d.arrobj.hoa,M=0==d.arrobj.elx.length?0:d.arrobj.elx,N=0==d.arrobj.ely.length?0:d.arrobj.ely;d.eow=c.outerWidth(!0),d.eoh=c.outerHeight(!0),0==d.eow&&0==d.eoh&&(d.eow=e.ulw,d.eoh=e.ulh);var O="off"!==d._respoffset?parseInt(K,0)*e.bw:parseInt(K,0),P="off"!==d._respoffset?parseInt(L,0)*e.bw:parseInt(L,0),Q="grid"===d._ba?e.gridwidth[e.curWinRange]*e.bw:d._gw,R="grid"===d._ba?e.gridheight[e.curWinRange]*e.bw:d._gh;"on"==e.fullScreenAlignForce&&(Q=e.ulw,R=e.ulh),"none"!==d._lig&&void 0!=d._lig&&(Q=d._lig.width(),R=d._lig.height(),a.offsetx=0,a.offsety=0),M="center"===M||"middle"===M?Q/2-d.eow/2+P:"left"===M?P:"right"===M?Q-d.eow-P:"off"!==d._respoffset?M*e.bw:M,N="center"==N||"middle"==N?R/2-d.eoh/2+O:"top"==N?O:"bottom"==N?R-d.eoh-O:"off"!==d._respoffset?N*e.bw:N,i&&!d._slidelink&&(M+=d.eow),d._slidelink&&(M=0),d.calcx=parseInt(M,0)+a.offsetx,d.calcy=parseInt(N,0)+a.offsety;var S=c.css("z-Index");if("row"!==d._nctype&&"column"!==d._nctype)punchgs.TweenLite.set(d._pw,{zIndex:S,top:d.calcy,left:d.calcx,overwrite:"auto"});else if("row"!==d._nctype)punchgs.TweenLite.set(d._pw,{zIndex:S,width:d.columnwidth,top:0,left:0,overwrite:"auto"});else if("row"===d._nctype){var T="grid"===d._ba?Q+"px":"100%";punchgs.TweenLite.set(d._pw,{zIndex:S,width:T,top:0,left:a.offsetx,overwrite:"auto"})}void 0!==d.blendmode&&punchgs.TweenLite.set(d._pw,{mixBlendMode:d.blendmode}),"row"===d._nctype&&(d.columnbreak<=e.curWinRange?c.addClass("rev_break_columns"):c.removeClass("rev_break_columns")),"on"==d.loopanimation&&punchgs.TweenLite.set(d._lw,{minWidth:d.eow,minHeight:d.eoh}),d._ingroup&&(void 0!==d._groupw&&!jQuery.isNumeric(d._groupw)&&d._groupw.indexOf("%")>0&&punchgs.TweenLite.set([d._lw,d._pw,d._mw],{minWidth:d._groupw}),void 0!==d._grouph&&!jQuery.isNumeric(d._grouph)&&d._grouph.indexOf("%")>0&&punchgs.TweenLite.set([d._lw,d._pw,d._mw],{minHeight:d._grouph}))},createTimelineStructure:function(a){function b(a,b,c,d){var f,e=new punchgs.TimelineLite({paused:!0});c=c||new Object,c[a.attr("id")]=c[a.attr("id")]||new Object,"staticlayers"===d&&(c[a.attr("id")].firstslide=a.data("startslide"),c[a.attr("id")].lastslide=a.data("endslide")),a.data("slideid",d),c[a.attr("id")].defclasses=f=a[0].className,c[a.attr("id")].wrapper=f.indexOf("rev_layer_in_column")>=0?a.closest(".rev_column_inner"):f.indexOf("rev_column_inner")>=0?a.closest(".rev_row"):f.indexOf("rev_layer_in_group")>=0?a.closest(".rev_group"):"none",c[a.attr("id")].timeline=e,c[a.attr("id")].layer=a,c[a.attr("id")].triggerstate=a.data("lasttriggerstate"),c[a.attr("id")].dchildren=f.indexOf("rev_row")>=0?a[0].getElementsByClassName("rev_column_inner"):f.indexOf("rev_column_inner")>=0?a[0].getElementsByClassName("tp-caption"):f.indexOf("rev_group")>=0?a[0].getElementsByClassName("rev_layer_in_group"):"none",a.data("timeline",e)}a.timelines=a.timelines||new Object,a.c.find(".tp-revslider-slidesli, .tp-static-layers").each(function(){var c=jQuery(this),d=c.data("index");a.timelines[d]=a.timelines[d]||{},a.timelines[d].layers=a.timelines[d].layers||new Object,c.find(".tp-caption").each(function(c){b(jQuery(this),a,a.timelines[d].layers,d)})})},buildFullTimeLine:function(a){var k,l,c=a.caption,d=c.data(),f=a.opt,i={},n=j();if(k=f.timelines[d._slideid].layers[d._id],!k.generated||a.regenerate===!0){if(l=k.timeline,k.generated=!0,void 0!==d.current_timeline&&a.regenerate!==!0?(d.current_timeline_pause=d.current_timeline.paused(),d.current_timeline_time=d.current_timeline.time(),d.current_is_nc_timeline=l===d.current_timeline,d.static_layer_timeline_time=d.current_timeline_time):(d.static_layer_timeline_time=d.current_timeline_time,d.current_timeline_time=0,d.current_timeline&&d.current_timeline.clear()),l.clear(),i.svg=void 0!=d.svg_src&&c.find("svg"),i.svg&&(d.idlesvg=h(d.svg_idle,g())),d.hoverframeindex!==-1&&void 0!==d.hoverframeindex&&!c.hasClass("rs-hover-ready")){if(c.addClass("rs-hover-ready"),d.hovertimelines={},d.hoveranim=m(n,d.frames[d.hoverframeindex].to),d.hoveranim=q(d.hoveranim,d.frames[d.hoverframeindex].style),i.svg){var p=h(d.svg_hover,g());void 0!=d.hoveranim.anim.color&&(p.anim.fill=d.hoveranim.anim.color,d.idlesvg.anim.fill=i.svg.css("color")),d.hoversvg=p}c.hover(function(a){var b={caption:jQuery(a.currentTarget),opt:f,firstframe:"frame_0",lastframe:"frame_999"},d=(e(b),b.caption),g=d.data(),h=g.frames[g.hoverframeindex],j=!0;g.forcehover=h.force,j&&(g.hovertimelines.item=punchgs.TweenLite.to(d,h.speed/1e3,g.hoveranim.anim),(g.hoverzIndex||g.hoveranim.anim&&g.hoveranim.anim.zIndex)&&(g.basiczindex=void 0===g.basiczindex?g.cssobj.zIndex:g.basiczindex,g.hoverzIndex=void 0===g.hoverzIndex?g.hoveranim.anim.zIndex:g.hoverzIndex,g.inhoverinanimation=!0,0===h.speed&&(g.inhoverinanimation=!1),g.hovertimelines.pwhoveranim=punchgs.TweenLite.to(g._pw,h.speed/1e3,{overwrite:"auto",zIndex:g.hoverzIndex}),g.hovertimelines.pwhoveranim.eventCallback("onComplete",function(a){a.inhoverinanimation=!1},[g])),i.svg&&(g.hovertimelines.svghoveranim=punchgs.TweenLite.to([i.svg,i.svg.find("path")],h.speed/1e3,g.hoversvg.anim)),g.hoveredstatus=!0)},function(a){var b={caption:jQuery(a.currentTarget),opt:f,firstframe:"frame_0",lastframe:"frame_999"},d=(e(b),b.caption),g=d.data(),h=g.frames[g.hoverframeindex],j=!0;j&&(g.hoveredstatus=!1,g.inhoveroutanimation=!0,g.hovertimelines.item.pause(),g.hovertimelines.item=punchgs.TweenLite.to(d,h.speed/1e3,jQuery.extend(!0,{},g._gsTransformTo)),0==h.speed&&(g.inhoveroutanimation=!1),g.hovertimelines.item.eventCallback("onComplete",function(a){a.inhoveroutanimation=!1},[g]),void 0!==g.hovertimelines.pwhoveranim&&(g.hovertimelines.pwhoveranim=punchgs.TweenLite.to(g._pw,h.speed/1e3,{overwrite:"auto",zIndex:g.basiczindex})),i.svg&&punchgs.TweenLite.to([i.svg,i.svg.find("path")],h.speed/1e3,g.idlesvg.anim))})}for(var r=0;r=0?t:parseInt(t,0)/1e3:"wait");void 0!==k.firstslide&&"frame_0"===s&&(l.addLabel("slide_"+k.firstslide+"_pause",0),l.addPause("slide_"+k.firstslide+"_pause"),l.addLabel("slide_"+k.firstslide,"+=0.005")),void 0!==k.lastslide&&"frame_999"===s&&(l.addLabel("slide_"+k.lastslide+"_pause","+=0.01"),l.addPause("slide_"+k.lastslide+"_pause"),l.addLabel("slide_"+k.lastslide,"+=0.005")),jQuery.isNumeric(v)?l.addLabel(s,"+="+v):(l.addLabel("pause_"+r,"+=0.01"),l.addPause("pause_"+r),l.addLabel(s,"+=0.01")),l=b.createFrameOnTimeline({caption:a.caption,timeline:l,label:s,frameindex:r,opt:f})}a.regenerate||(d.current_is_nc_timeline&&(d.current_timeline=l),d.current_timeline_pause?l.pause(d.current_timeline_time):l.time(d.current_timeline_time))}},createFrameOnTimeline:function(a){var c=a.caption,d=c.data(),e=a.label,g=a.timeline,h=a.frameindex,j=a.opt,k=c,o={},p=j.timelines[d._slideid].layers[d._id],q=d.frames.length-1,r=d.frames[h].split;if(d.hoverframeindex!==-1&&d.hoverframeindex==q&&(q-=1),o.content=new punchgs.TimelineLite({align:"normal"}),o.mask=new punchgs.TimelineLite({align:"normal"}),void 0===g.vars.id&&(g.vars.id=Math.round(1e5*Math.random())),"column"===d._nctype&&(g.add(punchgs.TweenLite.set(d._cbgc_man,{display:"block"}),e),g.add(punchgs.TweenLite.set(d._cbgc_auto,{display:"none"}),e)),void 0===d.mySplitText&&d.splittext){var s=c.find("a").length>0?c.find("a"):c;d.mySplitText=new punchgs.SplitText(s,{type:"chars,words,lines",charsClass:"tp-splitted tp-charsplit",wordsClass:"tp-splitted tp-wordsplit",linesClass:"tp-splitted tp-linesplit"}),c.addClass("splitted")}void 0!==d.mySplitText&&r&&r.match(/chars|words|lines/g)&&(k=d.mySplitText[r]);var y,z,t=h!==d.outframeindex?m(f(),d.frames[h].to):void 0!==d.frames[h].to&&null===d.frames[h].to.match(/auto:auto/g)?m(i(),d.frames[h].to,1==j.sdir):m(i(),d.frames[d.inframeindex].from,0==j.sdir),u=void 0!==d.frames[h].from?m(t,d.frames[d.inframeindex].from,1==j.sdir):void 0,x=d.frames[h].splitdelay;if(0!==h||a.fromcurrentstate?z=n(d.frames[h].mask):y=n(d.frames[h].mask),t.anim.ease=void 0===d.frames[h].ease?punchgs.Power1.easeInOut:d.frames[h].ease,void 0!==u&&(u.anim.ease=void 0===d.frames[h].ease?punchgs.Power1.easeInOut:d.frames[h].ease,u.speed=void 0===d.frames[h].speed?u.speed:d.frames[h].speed,u.anim.x=u.anim.x*j.bw||l(u.anim.x,j,d.eow,d.eoh,d.calcy,d.calcx,"horizontal"),u.anim.y=u.anim.y*j.bw||l(u.anim.y,j,d.eow,d.eoh,d.calcy,d.calcx,"vertical")),void 0!==t&&(t.anim.ease=void 0===d.frames[h].ease?punchgs.Power1.easeInOut:d.frames[h].ease,t.speed=void 0===d.frames[h].speed?t.speed:d.frames[h].speed,t.anim.x=t.anim.x*j.bw||l(t.anim.x,j,d.eow,d.eoh,d.calcy,d.calcx,"horizontal"),t.anim.y=t.anim.y*j.bw||l(t.anim.y,j,d.eow,d.eoh,d.calcy,d.calcx,"vertical")),c.data("iframes")&&g.add(punchgs.TweenLite.set(c.find("iframe"),{autoAlpha:1}),e+"+=0.001"),h===d.outframeindex&&(d.frames[h].to&&d.frames[h].to.match(/auto:auto/g),t.speed=void 0===d.frames[h].speed||"inherit"===d.frames[h].speed?d.frames[d.inframeindex].speed:d.frames[h].speed,t.anim.ease=void 0===d.frames[h].ease||"inherit"===d.frames[h].ease?d.frames[d.inframeindex].ease:d.frames[h].ease,t.anim.overwrite="auto"),0!==h||a.fromcurrentstate)0===h&&a.fromcurrentstate&&(t.speed=u.speed);else{if(k!=c){var A=jQuery.extend({},t.anim,!0);g.add(punchgs.TweenLite.set(c,t.anim),e),t=f(),t.ease=A.ease,void 0!==A.filter&&(t.anim.filter=A.filter),void 0!==A["-webkit-filter"]&&(t.anim["-webkit-filter"]=A["-webkit-filter"])}u.anim.visibility="hidden",u.anim.immediateRender=!0,t.anim.visibility="visible"}return a.fromcurrentstate&&(t.anim.immediateRender=!0),0!==h||a.fromcurrentstate?g.add(o.content.staggerTo(k,t.speed/1e3,t.anim,x),e):g.add(o.content.staggerFromTo(k,u.speed/1e3,u.anim,t.anim,x),e),void 0===z||z===!1||0===h&&a.ignorefirstframe||(z.anim.ease=void 0===z.anim.ease||"inherit"===z.anim.ease?d.frames[0].ease:z.anim.ease,z.anim.overflow="hidden",z.anim.x=z.anim.x*j.bw||l(z.anim.x,j,d.eow,d.eoh,d.calcy,d.calcx,"horizontal"),z.anim.y=z.anim.y*j.bw||l(z.anim.y,j,d.eow,d.eoh,d.calcy,d.calcx,"vertical")),0===h&&y&&y!==!1&&!a.fromcurrentstate||0===h&&a.ignorefirstframe?(z=new Object,z.anim=new Object,z.anim.overwrite="auto",z.anim.ease=t.anim.ease,z.anim.x=z.anim.y=0,y&&y!==!1&&(y.anim.x=y.anim.x*j.bw||l(y.anim.x,j,d.eow,d.eoh,d.calcy,d.calcx,"horizontal"),y.anim.y=y.anim.y*j.bw||l(y.anim.y,j,d.eow,d.eoh,d.calcy,d.calcx,"vertical"),y.anim.overflow="hidden")):0===h&&g.add(o.mask.set(d._mw,{overflow:"visible"}),e),void 0!==y&&void 0!==z&&y!==!1&&z!==!1?g.add(o.mask.fromTo(d._mw,u.speed/1e3,y.anim,z.anim,x),e):void 0!==z&&z!==!1&&g.add(o.mask.to(d._mw,t.speed/1e3,z.anim,x),e),g.addLabel(e+"_end"),d._gsTransformTo&&h===q&&d.hoveredstatus&&(d.hovertimelines.item=punchgs.TweenLite.to(c,0,d._gsTransformTo)),d._gsTransformTo=!1,o.content.eventCallback("onStart",function(a,c,d,e,f,g,h,i){var k={};if(k.layer=h,k.eventtype=0===a?"enterstage":a===e.outframeindex?"leavestage":"framestarted",k.layertype=h.data("layertype"),e.active=!0,k.frame_index=a,k.layersettings=h.data(),j.c.trigger("revolution.layeraction",[k]),"on"==e.loopanimation&&w(e._lw,j.bw),"enterstage"===k.eventtype&&(e.animdirection="in",e.visibleelement=!0,b.toggleState(e.layertoggledby)),"none"!==c.dchildren&&void 0!==c.dchildren&&c.dchildren.length>0)if(0===a)for(var l=0;l=c.removeonslide||a.currentslide0)for(var f=0;f1){var c=a.split(","),d=parseFloat(c[1].split("}")[0]);c=parseFloat(c[0].split("{")[1]),a=Math.random()*(d-c)+c}return a},l=function(a,b,c,d,e,f,g){return!jQuery.isNumeric(a)&&a.match(/%]/g)?(a=a.split("[")[1].split("]")[0], +"horizontal"==g?a=(c+2)*parseInt(a,0)/100:"vertical"==g&&(a=(d+2)*parseInt(a,0)/100)):(a="layer_left"===a?0-c:"layer_right"===a?c:a,a="layer_top"===a?0-d:"layer_bottom"===a?d:a,a="left"===a||"stage_left"===a?0-c-f:"right"===a||"stage_right"===a?b.conw-f:"center"===a||"stage_center"===a?b.conw/2-c/2-f:a,a="top"===a||"stage_top"===a?0-d-e:"bottom"===a||"stage_bottom"===a?b.conh-e:"middle"===a||"stage_middle"===a?b.conh/2-d/2-e:a),a},m=function(a,b,c){var d=new Object;if(d=jQuery.extend(!0,{},d,a),void 0===b)return d;var e=b.split(";"),f="";return e&&jQuery.each(e,function(a,b){var e=b.split(":"),g=e[0],h=e[1];c&&void 0!=h&&h.length>0&&h.match(/\(R\)/)&&(h=h.replace("(R)",""),h="right"===h?"left":"left"===h?"right":"top"===h?"bottom":"bottom"===h?"top":h,"["===h[0]&&"-"===h[1]?h=h.replace("[-","["):"["===h[0]&&"-"!==h[1]?h=h.replace("[","[-"):"-"===h[0]?h=h.replace("-",""):h[0].match(/[1-9]/)&&(h="-"+h)),void 0!=h&&(h=h.replace(/\(R\)/,""),"rotationX"!=g&&"rX"!=g||(d.anim.rotationX=k(h,d.anim.rotationX)+"deg"),"rotationY"!=g&&"rY"!=g||(d.anim.rotationY=k(h,d.anim.rotationY)+"deg"),"rotationZ"!=g&&"rZ"!=g||(d.anim.rotation=k(h,d.anim.rotationZ)+"deg"),"scaleX"!=g&&"sX"!=g||(d.anim.scaleX=k(h,d.anim.scaleX)),"scaleY"!=g&&"sY"!=g||(d.anim.scaleY=k(h,d.anim.scaleY)),"opacity"!=g&&"o"!=g||(d.anim.opacity=k(h,d.anim.opacity)),"fb"==g&&(f=""===f?"blur("+parseInt(h,0)+"px)":f+" blur("+parseInt(h,0)+"px)"),"fg"==g&&(f=""===f?"grayscale("+parseInt(h,0)+"%)":f+" grayscale("+parseInt(h,0)+"%)"),0===d.anim.opacity&&(d.anim.autoAlpha=0),d.anim.opacity=0==d.anim.opacity?1e-4:d.anim.opacity,"skewX"!=g&&"skX"!=g||(d.anim.skewX=k(h,d.anim.skewX)),"skewY"!=g&&"skY"!=g||(d.anim.skewY=k(h,d.anim.skewY)),"x"==g&&(d.anim.x=k(h,d.anim.x)),"y"==g&&(d.anim.y=k(h,d.anim.y)),"z"==g&&(d.anim.z=k(h,d.anim.z)),"transformOrigin"!=g&&"tO"!=g||(d.anim.transformOrigin=h.toString()),"transformPerspective"!=g&&"tP"!=g||(d.anim.transformPerspective=parseInt(h,0)),"speed"!=g&&"s"!=g||(d.speed=parseFloat(h)))}),""!==f&&(d.anim["-webkit-filter"]=f,d.anim.filter=f),d},n=function(a){if(void 0===a)return!1;var b=new Object;b.anim=new Object;var c=a.split(";");return c&&jQuery.each(c,function(a,c){c=c.split(":");var d=c[0],e=c[1];"x"==d&&(b.anim.x=e),"y"==d&&(b.anim.y=e),"s"==d&&(b.speed=parseFloat(e)),"e"!=d&&"ease"!=d||(b.anim.ease=e)}),b},o=function(a,b,c){if(void 0==a&&(a=0),!jQuery.isArray(a)&&"string"===jQuery.type(a)&&(a.split(",").length>1||a.split("[").length>1)){a=a.replace("[",""),a=a.replace("]","");var d=a.match(/'/g)?a.split("',"):a.split(",");a=new Array,d&&jQuery.each(d,function(b,c){c=c.replace("'",""),c=c.replace("'",""),a.push(c)})}else{var e=a;jQuery.isArray(a)||(a=new Array,a.push(e))}var e=a[a.length-1];if(a.length0&&(a.anim[d[0]]=d[1])}),a},r=function(a,b){var e,c=new Object,d=!1;if("rekursive"==b&&(e=a.closest(".tp-caption"),e&&a.css("fontSize")===e.css("fontSize")&&(d=!0)),c.basealign=a.data("basealign")||"grid",c.fontSize=d?void 0===e.data("fontsize")?parseInt(e.css("fontSize"),0)||0:e.data("fontsize"):void 0===a.data("fontsize")?parseInt(a.css("fontSize"),0)||0:a.data("fontsize"),c.fontWeight=d?void 0===e.data("fontweight")?parseInt(e.css("fontWeight"),0)||0:e.data("fontweight"):void 0===a.data("fontweight")?parseInt(a.css("fontWeight"),0)||0:a.data("fontweight"),c.whiteSpace=d?void 0===e.data("whitespace")?e.css("whitespace")||"normal":e.data("whitespace"):void 0===a.data("whitespace")?a.css("whitespace")||"normal":a.data("whitespace"),c.textAlign=d?void 0===e.data("textalign")?e.css("textalign")||"inherit":e.data("textalign"):void 0===a.data("textalign")?a.css("textalign")||"inherit":a.data("textalign"),c.zIndex=d?void 0===e.data("zIndex")?e.css("zIndex")||"inherit":e.data("zIndex"):void 0===a.data("zIndex")?a.css("zIndex")||"inherit":a.data("zIndex"),jQuery.inArray(a.data("layertype"),["video","image","audio"])!==-1||a.is("img")?c.lineHeight=0:c.lineHeight=d?void 0===e.data("lineheight")?parseInt(e.css("lineHeight"),0)||0:e.data("lineheight"):void 0===a.data("lineheight")?parseInt(a.css("lineHeight"),0)||0:a.data("lineheight"),c.letterSpacing=d?void 0===e.data("letterspacing")?parseFloat(e.css("letterSpacing"),0)||0:e.data("letterspacing"):void 0===a.data("letterspacing")?parseFloat(a.css("letterSpacing"))||0:a.data("letterspacing"),c.paddingTop=void 0===a.data("paddingtop")?parseInt(a.css("paddingTop"),0)||0:a.data("paddingtop"),c.paddingBottom=void 0===a.data("paddingbottom")?parseInt(a.css("paddingBottom"),0)||0:a.data("paddingbottom"),c.paddingLeft=void 0===a.data("paddingleft")?parseInt(a.css("paddingLeft"),0)||0:a.data("paddingleft"),c.paddingRight=void 0===a.data("paddingright")?parseInt(a.css("paddingRight"),0)||0:a.data("paddingright"),c.marginTop=void 0===a.data("margintop")?parseInt(a.css("marginTop"),0)||0:a.data("margintop"),c.marginBottom=void 0===a.data("marginbottom")?parseInt(a.css("marginBottom"),0)||0:a.data("marginbottom"),c.marginLeft=void 0===a.data("marginleft")?parseInt(a.css("marginLeft"),0)||0:a.data("marginleft"),c.marginRight=void 0===a.data("marginright")?parseInt(a.css("marginRight"),0)||0:a.data("marginright"),c.borderTopWidth=void 0===a.data("bordertopwidth")?parseInt(a.css("borderTopWidth"),0)||0:a.data("bordertopwidth"),c.borderBottomWidth=void 0===a.data("borderbottomwidth")?parseInt(a.css("borderBottomWidth"),0)||0:a.data("borderbottomwidth"),c.borderLeftWidth=void 0===a.data("borderleftwidth")?parseInt(a.css("borderLeftWidth"),0)||0:a.data("borderleftwidth"),c.borderRightWidth=void 0===a.data("borderrightwidth")?parseInt(a.css("borderRightWidth"),0)||0:a.data("borderrightwidth"),"rekursive"!=b){if(c.color=void 0===a.data("color")?"nopredefinedcolor":a.data("color"),c.whiteSpace=d?void 0===e.data("whitespace")?e.css("whiteSpace")||"nowrap":e.data("whitespace"):void 0===a.data("whitespace")?a.css("whiteSpace")||"nowrap":a.data("whitespace"),c.textAlign=d?void 0===e.data("textalign")?e.css("textalign")||"inherit":e.data("textalign"):void 0===a.data("textalign")?a.css("textalign")||"inherit":a.data("textalign"),c.minWidth=void 0===a.data("width")?parseInt(a.css("minWidth"),0)||0:a.data("width"),c.minHeight=void 0===a.data("height")?parseInt(a.css("minHeight"),0)||0:a.data("height"),void 0!=a.data("videowidth")&&void 0!=a.data("videoheight")){var f=a.data("videowidth"),g=a.data("videoheight");f="100%"===f?"none":f,g="100%"===g?"none":g,a.data("width",f),a.data("height",g)}c.maxWidth=void 0===a.data("width")?parseInt(a.css("maxWidth"),0)||"none":a.data("width"),c.maxHeight=void 0===a.data("height")?parseInt(a.css("maxHeight"),0)||"none":a.data("height"),c.wan=void 0===a.data("wan")?parseInt(a.css("-webkit-transition"),0)||"none":a.data("wan"),c.moan=void 0===a.data("moan")?parseInt(a.css("-moz-animation-transition"),0)||"none":a.data("moan"),c.man=void 0===a.data("man")?parseInt(a.css("-ms-animation-transition"),0)||"none":a.data("man"),c.ani=void 0===a.data("ani")?parseInt(a.css("transition"),0)||"none":a.data("ani")}return c.styleProps={borderTopLeftRadius:a[0].style.borderTopLeftRadius,borderTopRightRadius:a[0].style.borderTopRightRadius,borderBottomRightRadius:a[0].style.borderBottomRightRadius,borderBottomLeftRadius:a[0].style.borderBottomLeftRadius,"background-color":a[0].style["background-color"],"border-top-color":a[0].style["border-top-color"],"border-bottom-color":a[0].style["border-bottom-color"],"border-right-color":a[0].style["border-right-color"],"border-left-color":a[0].style["border-left-color"],"border-top-style":a[0].style["border-top-style"],"border-bottom-style":a[0].style["border-bottom-style"],"border-left-style":a[0].style["border-left-style"],"border-right-style":a[0].style["border-right-style"],"border-left-width":a[0].style["border-left-width"],"border-right-width":a[0].style["border-right-width"],"border-bottom-width":a[0].style["border-bottom-width"],"border-top-width":a[0].style["border-top-width"],color:a[0].style.color,"text-decoration":a[0].style["text-decoration"],"font-style":a[0].style["font-style"]},""==c.styleProps.color&&(c.styleProps.color=a.css("color")),c},s=function(a,b){var c=new Object;return a&&jQuery.each(a,function(d,e){var f=o(e,b)[b.curWinRange];c[d]=void 0!==f?f:a[d]}),c},t=function(a,b,c,d){return a=jQuery.isNumeric(a)?a*b+"px":a,a="full"===a?d:"auto"===a||"none"===a?c:a},u=function(a,b,c,d){var e=a.data();e=void 0===e?{}:e;try{if("BR"==a[0].nodeName||"br"==a[0].tagName)return!1}catch(a){}e.cssobj=void 0===e.cssobj?r(a,c):e.cssobj;var f=s(e.cssobj,b),g=b.bw,h=b.bh;if("off"===d&&(g=1,h=1),"auto"==f.lineHeight&&(f.lineHeight=f.fontSize+4),!a.hasClass("tp-splitted")){a.css("-webkit-transition","none"),a.css("-moz-transition","none"),a.css("-ms-transition","none"),a.css("transition","none");var i=void 0!==a.data("transform_hover")||void 0!==a.data("style_hover");if(i&&punchgs.TweenLite.set(a,f.styleProps),punchgs.TweenLite.set(a,{fontSize:Math.round(f.fontSize*g)+"px",fontWeight:f.fontWeight,letterSpacing:Math.floor(f.letterSpacing*g)+"px",paddingTop:Math.round(f.paddingTop*h)+"px",paddingBottom:Math.round(f.paddingBottom*h)+"px",paddingLeft:Math.round(f.paddingLeft*g)+"px",paddingRight:Math.round(f.paddingRight*g)+"px",marginTop:f.marginTop*h+"px",marginBottom:f.marginBottom*h+"px",marginLeft:f.marginLeft*g+"px",marginRight:f.marginRight*g+"px",borderTopWidth:Math.round(f.borderTopWidth*h)+"px",borderBottomWidth:Math.round(f.borderBottomWidth*h)+"px",borderLeftWidth:Math.round(f.borderLeftWidth*g)+"px",borderRightWidth:Math.round(f.borderRightWidth*g)+"px",lineHeight:Math.round(f.lineHeight*h)+"px",textAlign:f.textAlign,overwrite:"auto"}),"rekursive"!=c){var j="slide"==f.basealign?b.ulw:b.gridwidth[b.curWinRange],k="slide"==f.basealign?b.ulh:b.gridheight[b.curWinRange],l=t(f.maxWidth,g,"none",j),m=t(f.maxHeight,h,"none",k),n=t(f.minWidth,g,"0px",j),o=t(f.minHeight,h,"0px",k);if(n=void 0===n?0:n,o=void 0===o?0:o,l=void 0===l?"none":l,m=void 0===m?"none":m,e._isgroup&&("#1/1#"===n&&(n=l=j),"#1/2#"===n&&(n=l=j/2),"#1/3#"===n&&(n=l=j/3),"#1/4#"===n&&(n=l=j/4),"#1/5#"===n&&(n=l=j/5),"#1/6#"===n&&(n=l=j/6),"#2/3#"===n&&(n=l=j/3*2),"#3/4#"===n&&(n=l=j/4*3),"#2/5#"===n&&(n=l=j/5*2),"#3/5#"===n&&(n=l=j/5*3),"#4/5#"===n&&(n=l=j/5*4),"#3/6#"===n&&(n=l=j/6*3),"#4/6#"===n&&(n=l=j/6*4),"#5/6#"===n&&(n=l=j/6*5)),e._ingroup&&(e._groupw=n,e._grouph=o),punchgs.TweenLite.set(a,{maxWidth:l,maxHeight:m,minWidth:n,minHeight:o,whiteSpace:f.whiteSpace,textAlign:f.textAlign,overwrite:"auto"}),"nopredefinedcolor"!=f.color&&punchgs.TweenLite.set(a,{color:f.color,overwrite:"auto"}),void 0!=e.svg_src){var p="nopredefinedcolor"!=f.color&&void 0!=f.color?f.color:void 0!=f.css&&"nopredefinedcolor"!=f.css.color&&void 0!=f.css.color?f.css.color:void 0!=f.styleProps.color?f.styleProps.color:void 0!=f.styleProps.css&&void 0!=f.styleProps.css.color&&f.styleProps.css.color;0!=p&&(punchgs.TweenLite.set(a.find("svg"),{fill:p,overwrite:"auto"}),punchgs.TweenLite.set(a.find("svg path"),{fill:p,overwrite:"auto"}))}}"column"===e._nctype&&(void 0===e._column_bg_set&&(e._column_bg_set=a.css("backgroundColor"),e._column_bg_image=a.css("backgroundImage"),e._column_bg_image_repeat=a.css("backgroundRepeat"),e._column_bg_image_position=a.css("backgroundPosition"),e._column_bg_image_size=a.css("backgroundSize"),e._column_bg_opacity=a.data("bgopacity"),e._column_bg_opacity=void 0===e._column_bg_opacity?1:e._column_bg_opacity,punchgs.TweenLite.set(a,{backgroundColor:"transparent",backgroundImage:""})),setTimeout(function(){v(a,b)},1),e._cbgc_auto&&(e._cbgc_auto[0].style.backgroundSize=e._column_bg_image_size,jQuery.isArray(f.marginLeft)?punchgs.TweenLite.set(e._cbgc_auto,{borderTopWidth:f.marginTop[b.curWinRange]*h+"px",borderLeftWidth:f.marginLeft[b.curWinRange]*g+"px",borderRightWidth:f.marginRight[b.curWinRange]*g+"px",borderBottomWidth:f.marginBottom[b.curWinRange]*h+"px",backgroundColor:e._column_bg_set,backgroundImage:e._column_bg_image,backgroundRepeat:e._column_bg_image_repeat,backgroundPosition:e._column_bg_image_position,opacity:e._column_bg_opacity}):punchgs.TweenLite.set(e._cbgc_auto,{borderTopWidth:f.marginTop*h+"px",borderLeftWidth:f.marginLeft*g+"px",borderRightWidth:f.marginRight*g+"px",borderBottomWidth:f.marginBottom*h+"px",backgroundColor:e._column_bg_set,backgroundImage:e._column_bg_image,backgroundRepeat:e._column_bg_image_repeat,backgroundPosition:e._column_bg_image_position,opacity:e._column_bg_opacity}))),setTimeout(function(){a.css("-webkit-transition",a.data("wan")),a.css("-moz-transition",a.data("moan")),a.css("-ms-transition",a.data("man")),a.css("transition",a.data("ani"))},30)}},v=function(a,b){var c=a.data();if(c._cbgc_man){var d,e,f,g,h;jQuery.isArray(c.cssobj.marginLeft)?(d=c.cssobj.marginLeft[b.curWinRange]*b.bw,e=c.cssobj.marginTop[b.curWinRange]*b.bh,f=c.cssobj.marginBottom[b.curWinRange]*b.bh,g=c.cssobj.marginRight[b.curWinRange]*b.bw):(d=c.cssobj.marginLeft*b.bw,e=c.cssobj.marginTop*b.bh,f=c.cssobj.marginBottom*b.bh,g=c.cssobj.marginRight*b.bw),h=c._row.hasClass("rev_break_columns")?"100%":c._row.outerHeight()-(e+f)+"px",c._cbgc_man[0].style.backgroundSize=c._column_bg_image_size,punchgs.TweenLite.set(c._cbgc_man,{width:"100%",height:h,backgroundColor:c._column_bg_set,backgroundImage:c._column_bg_image,backgroundRepeat:c._column_bg_image_repeat,backgroundPosition:c._column_bg_image_position,overwrite:"auto",opacity:c._column_bg_opacity})}},w=function(a,b){var c=a.data();if(a.hasClass("rs-pendulum")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.TimelineLite;var d=void 0==a.data("startdeg")?-20:a.data("startdeg"),e=void 0==a.data("enddeg")?20:a.data("enddeg"),f=void 0==a.data("speed")?2:a.data("speed"),g=void 0==a.data("origin")?"50% 50%":a.data("origin"),h=void 0==a.data("easing")?punchgs.Power2.easeInOut:a.data("easing");d*=b,e*=b,c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",rotation:d,transformOrigin:g},{rotation:e,ease:h})),c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",rotation:e,transformOrigin:g},{rotation:d,ease:h,onComplete:function(){c._loop_timeline.restart()}}))}if(a.hasClass("rs-rotate")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.TimelineLite;var d=void 0==a.data("startdeg")?0:a.data("startdeg"),e=void 0==a.data("enddeg")?360:a.data("enddeg"),f=void 0==a.data("speed")?2:a.data("speed"),g=void 0==a.data("origin")?"50% 50%":a.data("origin"),h=void 0==a.data("easing")?punchgs.Power2.easeInOut:a.data("easing");d*=b,e*=b,c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",rotation:d,transformOrigin:g},{rotation:e,ease:h,onComplete:function(){c._loop_timeline.restart()}}))}if(a.hasClass("rs-slideloop")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.TimelineLite;var i=void 0==a.data("xs")?0:a.data("xs"),j=void 0==a.data("ys")?0:a.data("ys"),k=void 0==a.data("xe")?0:a.data("xe"),l=void 0==a.data("ye")?0:a.data("ye"),f=void 0==a.data("speed")?2:a.data("speed"),h=void 0==a.data("easing")?punchgs.Power2.easeInOut:a.data("easing");i*=b,j*=b,k*=b,l*=b,c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",x:i,y:j},{x:k,y:l,ease:h})),c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",x:k,y:l},{x:i,y:j,onComplete:function(){c._loop_timeline.restart()}}))}if(a.hasClass("rs-pulse")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.TimelineLite;var m=void 0==a.data("zoomstart")?0:a.data("zoomstart"),n=void 0==a.data("zoomend")?0:a.data("zoomend"),f=void 0==a.data("speed")?2:a.data("speed"),h=void 0==a.data("easing")?punchgs.Power2.easeInOut:a.data("easing");c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",scale:m},{scale:n,ease:h})),c._loop_timeline.append(new punchgs.TweenLite.fromTo(a,f,{force3D:"auto",scale:n},{scale:m,onComplete:function(){c._loop_timeline.restart()}}))}if(a.hasClass("rs-wave")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.TimelineLite;var o=void 0==a.data("angle")?10:parseInt(a.data("angle"),0),p=void 0==a.data("radius")?10:parseInt(a.data("radius"),0),f=void 0==a.data("speed")?-20:a.data("speed"),g=void 0==a.data("origin")?"50% 50%":a.data("origin"),q=g.split(" "),r=new Object;q.length>=1?(r.x=q[0],r.y=q[1]):(r.x="50%",r.y="50%"),p*=b;var s=(parseInt(r.x,0)/100-.5)*a.width(),t=(parseInt(r.y,0)/100-.5)*a.height(),u=-1*p+t,v=0+s,w={a:0,ang:o,element:a,unit:p,xoffset:v,yoffset:u},x=parseInt(o,0),y=new punchgs.TweenLite.fromTo(w,f,{a:0+x},{a:360+x,force3D:"auto",ease:punchgs.Linear.easeNone});y.eventCallback("onUpdate",function(a){var b=a.a*(Math.PI/180),c=a.yoffset+a.unit*(1-Math.sin(b)),d=a.xoffset+Math.cos(b)*a.unit;punchgs.TweenLite.to(a.element,.1,{force3D:"auto",x:d,y:c})},[w]),y.eventCallback("onComplete",function(a){a._loop_timeline.restart()},[c]),c._loop_timeline.append(y)}},x=function(a){a.closest(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var a=this;void 0!=a._loop_timeline&&(a._loop_timeline.pause(),a._loop_timeline=null)})}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.migration.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.migration.min.js new file mode 100644 index 0000000..82d1aff --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.migration.min.js @@ -0,0 +1,7 @@ +/***************************************************************************************************** + * jquery.themepunch.revmigrate.js - jQuery Plugin for Revolution Slider Migration from 4.x to 5.0 + * @version: 1.0.2 (20.01.2016) + * @requires jQuery v1.7 or later (tested on 1.9) + * @author ThemePunch +*****************************************************************************************************/ +!function(t){var a=jQuery.fn.revolution;jQuery.extend(!0,a,{migration:function(t,a){return a=o(a),e(t,a),a}});var o=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 void 0==t.fallbacks&&(t.fallbacks={isJoomla:t.isJoomla||!1,panZoomDisableOnMobile:t.parallaxDisableOnMobile||"off",simplifyAll:t.simplifyAll||"on",nextSlideOnWindowFocus:t.nextSlideOnWindowFocus||"off",disableFocusListener:t.disableFocusListener||!0}),t},e=function(t,a){var o=new Object,e=t.width(),r=t.height();o.skewfromleftshort="x:-50;skX:85;o:0",o.skewfromrightshort="x:50;skX:-85;o:0",o.sfl="x:-50;o:0",o.sfr="x:50;o:0",o.sft="y:-50;o:0",o.sfb="y:50;o:0",o.skewfromleft="x:top;skX:85;o:0",o.skewfromright="x:bottom;skX:-85;o:0",o.lfl="x:top;o:0",o.lfr="x:bottom;o:0",o.lft="y:left;o:0",o.lfb="y:right;o:0",o.fade="o:0";720*Math.random()-360;t.find(".tp-caption").each(function(){var t=jQuery(this),a=(Math.random()*(2*e)-e,Math.random()*(2*r)-r,3*Math.random(),720*Math.random()-360,70*Math.random()-35,70*Math.random()-35,t.attr("class"));o.randomrotate="x:{-400,400};y:{-400,400};sX:{0,2};sY:{0,2};rZ:{-180,180};rX:{-180,180};rY:{-180,180};o:0;",a.match("randomrotate")?t.data("transform_in",o.randomrotate):a.match(/\blfl\b/)?t.data("transform_in",o.lfl):a.match(/\blfr\b/)?t.data("transform_in",o.lfr):a.match(/\blft\b/)?t.data("transform_in",o.lft):a.match(/\blfb\b/)?t.data("transform_in",o.lfb):a.match(/\bsfl\b/)?t.data("transform_in",o.sfl):a.match(/\bsfr\b/)?t.data("transform_in",o.sfr):a.match(/\bsft\b/)?t.data("transform_in",o.sft):a.match(/\bsfb\b/)?t.data("transform_in",o.sfb):a.match(/\bskewfromleftshort\b/)?t.data("transform_in",o.skewfromleftshort):a.match(/\bskewfromrightshort\b/)?t.data("transform_in",o.skewfromrightshort):a.match(/\bskewfromleft\b/)?t.data("transform_in",o.skewfromleft):a.match(/\bskewfromright\b/)?t.data("transform_in",o.skewfromright):a.match(/\bfade\b/)&&t.data("transform_in",o.fade),a.match(/\brandomrotateout\b/)?t.data("transform_out",o.randomrotate):a.match(/\bltl\b/)?t.data("transform_out",o.lfl):a.match(/\bltr\b/)?t.data("transform_out",o.lfr):a.match(/\bltt\b/)?t.data("transform_out",o.lft):a.match(/\bltb\b/)?t.data("transform_out",o.lfb):a.match(/\bstl\b/)?t.data("transform_out",o.sfl):a.match(/\bstr\b/)?t.data("transform_out",o.sfr):a.match(/\bstt\b/)?t.data("transform_out",o.sft):a.match(/\bstb\b/)?t.data("transform_out",o.sfb):a.match(/\bskewtoleftshortout\b/)?t.data("transform_out",o.skewfromleftshort):a.match(/\bskewtorightshortout\b/)?t.data("transform_out",o.skewfromrightshort):a.match(/\bskewtoleftout\b/)?t.data("transform_out",o.skewfromleft):a.match(/\bskewtorightout\b/)?t.data("transform_out",o.skewfromright):a.match(/\bfadeout\b/)&&t.data("transform_out",o.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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.navigation.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.navigation.min.js new file mode 100644 index 0000000..fafcf08 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.navigation.min.js @@ -0,0 +1,7 @@ +/******************************************** + * REVOLUTION 5.2 EXTENSION - NAVIGATION + * @version: 1.3.2 (25.10.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +!function(a){"use strict";var b=jQuery.fn.revolution,c=b.is_mobile(),d={alias:"Navigation Min JS",name:"revolution.extensions.navigation.min.js",min_core:"5.3",version:"1.3.2"};jQuery.extend(!0,b,{hideUnHideNav:function(a){var b=a.c.width(),c=a.navigation.arrows,d=a.navigation.bullets,e=a.navigation.thumbnails,f=a.navigation.tabs;m(c)&&y(a.c.find(".tparrows"),c.hide_under,b,c.hide_over),m(d)&&y(a.c.find(".tp-bullets"),d.hide_under,b,d.hide_over),m(e)&&y(a.c.parent().find(".tp-thumbs"),e.hide_under,b,e.hide_over),m(f)&&y(a.c.parent().find(".tp-tabs"),f.hide_under,b,f.hide_over),x(a)},resizeThumbsTabs:function(a,b){if(a.navigation&&a.navigation.tabs.enable||a.navigation&&a.navigation.thumbnails.enable){var c=(jQuery(window).width()-480)/500,d=new punchgs.TimelineLite,e=a.navigation.tabs,g=a.navigation.thumbnails,h=a.navigation.bullets;if(d.pause(),c=c>1?1:c<0?0:c,m(e)&&(b||e.width>e.min_width)&&f(c,d,a.c,e,a.slideamount,"tab"),m(g)&&(b||g.width>g.min_width)&&f(c,d,a.c,g,a.slideamount,"thumb"),m(h)&&b){var i=a.c.find(".tp-bullets");i.find(".tp-bullet").each(function(a){var b=jQuery(this),c=a+1,d=b.outerWidth()+parseInt(void 0===h.space?0:h.space,0),e=b.outerHeight()+parseInt(void 0===h.space?0:h.space,0);"vertical"===h.direction?(b.css({top:(c-1)*e+"px",left:"0px"}),i.css({height:(c-1)*e+b.outerHeight(),width:b.outerWidth()})):(b.css({left:(c-1)*d+"px",top:"0px"}),i.css({width:(c-1)*d+b.outerWidth(),height:b.outerHeight()}))})}d.play(),x(a)}return!0},updateNavIndexes:function(a){function d(a){c.find(a).lenght>0&&c.find(a).each(function(a){jQuery(this).data("liindex",a)})}var c=a.c;d(".tp-tab"),d(".tp-bullet"),d(".tp-thumb"),b.resizeThumbsTabs(a,!0),b.manageNavigation(a)},manageNavigation:function(a){var c=b.getHorizontalOffset(a.c.parent(),"left"),d=b.getHorizontalOffset(a.c.parent(),"right");m(a.navigation.bullets)&&("fullscreen"!=a.sliderLayout&&"fullwidth"!=a.sliderLayout&&(a.navigation.bullets.h_offset_old=void 0===a.navigation.bullets.h_offset_old?a.navigation.bullets.h_offset:a.navigation.bullets.h_offset_old,a.navigation.bullets.h_offset="center"===a.navigation.bullets.h_align?a.navigation.bullets.h_offset_old+c/2-d/2:a.navigation.bullets.h_offset_old+c-d),t(a.c.find(".tp-bullets"),a.navigation.bullets,a)),m(a.navigation.thumbnails)&&t(a.c.parent().find(".tp-thumbs"),a.navigation.thumbnails,a),m(a.navigation.tabs)&&t(a.c.parent().find(".tp-tabs"),a.navigation.tabs,a),m(a.navigation.arrows)&&("fullscreen"!=a.sliderLayout&&"fullwidth"!=a.sliderLayout&&(a.navigation.arrows.left.h_offset_old=void 0===a.navigation.arrows.left.h_offset_old?a.navigation.arrows.left.h_offset:a.navigation.arrows.left.h_offset_old,a.navigation.arrows.left.h_offset="right"===a.navigation.arrows.left.h_align?a.navigation.arrows.left.h_offset_old+d:a.navigation.arrows.left.h_offset_old+c,a.navigation.arrows.right.h_offset_old=void 0===a.navigation.arrows.right.h_offset_old?a.navigation.arrows.right.h_offset:a.navigation.arrows.right.h_offset_old,a.navigation.arrows.right.h_offset="right"===a.navigation.arrows.right.h_align?a.navigation.arrows.right.h_offset_old+d:a.navigation.arrows.right.h_offset_old+c),t(a.c.find(".tp-leftarrow.tparrows"),a.navigation.arrows.left,a),t(a.c.find(".tp-rightarrow.tparrows"),a.navigation.arrows.right,a)),m(a.navigation.thumbnails)&&e(a.c.parent().find(".tp-thumbs"),a.navigation.thumbnails),m(a.navigation.tabs)&&e(a.c.parent().find(".tp-tabs"),a.navigation.tabs)},createNavigation:function(a,f){if("stop"===b.compare_version(d).check)return!1;var g=a.parent(),j=f.navigation.arrows,n=f.navigation.bullets,r=f.navigation.thumbnails,s=f.navigation.tabs,t=m(j),v=m(n),x=m(r),y=m(s);h(a,f),i(a,f),t&&q(a,j,f),f.li.each(function(b){var c=jQuery(f.li[f.li.length-1-b]),d=jQuery(this);v&&(f.navigation.bullets.rtl?u(a,n,c,f):u(a,n,d,f)),x&&(f.navigation.thumbnails.rtl?w(a,r,c,"tp-thumb",f):w(a,r,d,"tp-thumb",f)),y&&(f.navigation.tabs.rtl?w(a,s,c,"tp-tab",f):w(a,s,d,"tp-tab",f))}),a.bind("revolution.slide.onafterswap revolution.nextslide.waiting",function(){var b=0==a.find(".next-revslide").length?a.find(".active-revslide").data("index"):a.find(".next-revslide").data("index");a.find(".tp-bullet").each(function(){var a=jQuery(this);a.data("liref")===b?a.addClass("selected"):a.removeClass("selected")}),g.find(".tp-thumb, .tp-tab").each(function(){var a=jQuery(this);a.data("liref")===b?(a.addClass("selected"),a.hasClass("tp-tab")?e(g.find(".tp-tabs"),s):e(g.find(".tp-thumbs"),r)):a.removeClass("selected")});var c=0,d=!1;f.thumbs&&jQuery.each(f.thumbs,function(a,e){c=d===!1?a:c,d=e.id===b||a===b||d});var h=c>0?c-1:f.slideamount-1,i=c+1==f.slideamount?0:c+1;if(j.enable===!0){var k=j.tmp;if(void 0!=f.thumbs[h]&&jQuery.each(f.thumbs[h].params,function(a,b){k=k.replace(b.from,b.to)}),j.left.j.html(k),k=j.tmp,i>f.slideamount)return;jQuery.each(f.thumbs[i].params,function(a,b){k=k.replace(b.from,b.to)}),j.right.j.html(k),punchgs.TweenLite.set(j.left.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+f.thumbs[h].src+")"}),punchgs.TweenLite.set(j.right.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+f.thumbs[i].src+")"})}}),l(j),l(n),l(r),l(s),g.on("mouseenter mousemove",function(){g.hasClass("tp-mouseover")||(g.addClass("tp-mouseover"),punchgs.TweenLite.killDelayedCallsTo(p),t&&j.hide_onleave&&p(g.find(".tparrows"),j,"show"),v&&n.hide_onleave&&p(g.find(".tp-bullets"),n,"show"),x&&r.hide_onleave&&p(g.find(".tp-thumbs"),r,"show"),y&&s.hide_onleave&&p(g.find(".tp-tabs"),s,"show"),c&&(g.removeClass("tp-mouseover"),o(a,f)))}),g.on("mouseleave",function(){g.removeClass("tp-mouseover"),o(a,f)}),t&&j.hide_onleave&&p(g.find(".tparrows"),j,"hide",0),v&&n.hide_onleave&&p(g.find(".tp-bullets"),n,"hide",0),x&&r.hide_onleave&&p(g.find(".tp-thumbs"),r,"hide",0),y&&s.hide_onleave&&p(g.find(".tp-tabs"),s,"hide",0),x&&k(g.find(".tp-thumbs"),f),y&&k(g.find(".tp-tabs"),f),"carousel"===f.sliderType&&k(a,f,!0),"on"==f.navigation.touch.touchenabled&&k(a,f,"swipebased")}});var e=function(a,b){var d=(a.hasClass("tp-thumbs")?".tp-thumbs":".tp-tabs",a.hasClass("tp-thumbs")?".tp-thumb-mask":".tp-tab-mask"),e=a.hasClass("tp-thumbs")?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",f=a.hasClass("tp-thumbs")?".tp-thumb":".tp-tab",g=a.find(d),h=g.find(e),i=b.direction,j="vertical"===i?g.find(f).first().outerHeight(!0)+b.space:g.find(f).first().outerWidth(!0)+b.space,k="vertical"===i?g.height():g.width(),l=parseInt(g.find(f+".selected").data("liindex"),0),m=k/j,n="vertical"===i?g.height():g.width(),o=0-l*j,p="vertical"===i?h.height():h.width(),q=o<0-(p-n)?0-(p-n):q>0?0:o,r=h.data("offset");m>2&&(q=o-(r+j)<=0?o-(r+j)<0-j?r:q+j:q,q=o-j+r+k0?0:q,"vertical"!==i&&g.width()>=h.width()&&(q=0),"vertical"===i&&g.height()>=h.height()&&(q=0),a.hasClass("dragged")||("vertical"===i?h.data("tmmove",punchgs.TweenLite.to(h,.5,{top:q+"px",ease:punchgs.Power3.easeInOut})):h.data("tmmove",punchgs.TweenLite.to(h,.5,{left:q+"px",ease:punchgs.Power3.easeInOut})),h.data("offset",q))},f=function(a,b,c,d,e,f){var g=c.parent().find(".tp-"+f+"s"),h=g.find(".tp-"+f+"s-inner-wrapper"),i=g.find(".tp-"+f+"-mask"),j=d.width*a300||e<-300)&&(e/=10),{spinX:b,spinY:c,pixelX:d,pixelY:e}},h=function(a,c){"on"===c.navigation.keyboardNavigation&&jQuery(document).keydown(function(d){("horizontal"==c.navigation.keyboard_direction&&39==d.keyCode||"vertical"==c.navigation.keyboard_direction&&40==d.keyCode)&&(c.sc_indicator="arrow",c.sc_indicator_dir=0,b.callingNewSlide(a,1)),("horizontal"==c.navigation.keyboard_direction&&37==d.keyCode||"vertical"==c.navigation.keyboard_direction&&38==d.keyCode)&&(c.sc_indicator="arrow",c.sc_indicator_dir=1,b.callingNewSlide(a,-1))})},i=function(a,c){if("on"===c.navigation.mouseScrollNavigation||"carousel"===c.navigation.mouseScrollNavigation){c.isIEEleven=!!navigator.userAgent.match(/Trident.*rv\:11\./),c.isSafari=!!navigator.userAgent.match(/safari/i),c.ischrome=!!navigator.userAgent.match(/chrome/i);var d=c.ischrome?-49:c.isIEEleven||c.isSafari?-9:navigator.userAgent.match(/mozilla/i)?-29:-49,e=c.ischrome?49:c.isIEEleven||c.isSafari?9:navigator.userAgent.match(/mozilla/i)?29:49;a.on("mousewheel DOMMouseScroll",function(f){var h=g(f.originalEvent),i=a.find(".tp-revslider-slidesli.active-revslide").index(),j=a.find(".tp-revslider-slidesli.processing-revslide").index(),k=i!=-1&&0==i||j!=-1&&0==j,l=i!=-1&&i==c.slideamount-1||1!=j&&j==c.slideamount-1,m=!0;"carousel"==c.navigation.mouseScrollNavigation&&(k=l=!1),j==-1?h.pixelYe&&(l||(c.sc_indicator="arrow","reverse"!==c.navigation.mouseScrollReverse&&(c.sc_indicator_dir=0,b.callingNewSlide(a,1)),m=!1),k||(c.sc_indicator="arrow","reverse"===c.navigation.mouseScrollReverse&&(c.sc_indicator_dir=1,b.callingNewSlide(a,-1)),m=!1)):m=!1;var n=c.c.offset().top-jQuery("body").scrollTop(),o=n+c.c.height();return"carousel"!=c.navigation.mouseScrollNavigation?("reverse"!==c.navigation.mouseScrollReverse&&(n>0&&h.pixelY>0||ojQuery(window).height()&&h.pixelY>0)&&(m=!0)):m=!1,0==m?(f.preventDefault(f),!1):void 0})}},j=function(a,b,d){return a=c?jQuery(d.target).closest("."+a).length||jQuery(d.srcElement).closest("."+a).length:jQuery(d.toElement).closest("."+a).length||jQuery(d.originalTarget).closest("."+a).length,a===!0||1===a?1:0},k=function(a,d,e){var f=d.carousel;jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"),f.Limit="endless";var h=(c||"Firefox"===b.get_browser(),a),i="vertical"===d.navigation.thumbnails.direction||"vertical"===d.navigation.tabs.direction?"none":"vertical",k=d.navigation.touch.swipe_direction||"horizontal";i="swipebased"==e&&"vertical"==k?"none":e?"vertical":i,jQuery.fn.swipetp||(jQuery.fn.swipetp=jQuery.fn.swipe),jQuery.fn.swipetp.defaults&&jQuery.fn.swipetp.defaults.excludedElements||jQuery.fn.swipetp.defaults||(jQuery.fn.swipetp.defaults=new Object),jQuery.fn.swipetp.defaults.excludedElements="label, button, input, select, textarea, .noSwipe",h.swipetp({allowPageScroll:i,triggerOnTouchLeave:!0,treshold:d.navigation.touch.swipe_treshold,fingers:d.navigation.touch.swipe_min_touches,excludeElements:jQuery.fn.swipetp.defaults.excludedElements,swipeStatus:function(c,e,g,h,i,l,m){var n=j("rev_slider_wrapper",a,c),o=j("tp-thumbs",a,c),p=j("tp-tabs",a,c),q=jQuery(this).attr("class"),r=!!q.match(/tp-tabs|tp-thumb/gi);if("carousel"===d.sliderType&&(("move"===e||"end"===e||"cancel"==e)&&d.dragStartedOverSlider&&!d.dragStartedOverThumbs&&!d.dragStartedOverTabs||"start"===e&&n>0&&0===o&&0===p))switch(d.dragStartedOverSlider=!0,h=g&&g.match(/left|up/g)?Math.round(h*-1):h=Math.round(1*h),e){case"start":void 0!==f.positionanim&&(f.positionanim.kill(),f.slide_globaloffset="off"===f.infinity?f.slide_offset:b.simp(f.slide_offset,f.maxwidth)),f.overpull="none",f.wrap.addClass("dragged");break;case"move":if(d.c.find(".tp-withaction").addClass("tp-temporarydisabled"),f.slide_offset="off"===f.infinity?f.slide_globaloffset+h:b.simp(f.slide_globaloffset+h,f.maxwidth),"off"===f.infinity){var s="center"===f.horizontal_align?(f.wrapwidth/2-f.slide_width/2-f.slide_offset)/f.slide_width:(0-f.slide_offset)/f.slide_width;"none"!==f.overpull&&0!==f.overpull||!(s<0||s>d.slideamount-1)?s>=0&&s<=d.slideamount-1&&(s>=0&&h>f.overpull||s<=d.slideamount-1&&hd.slideamount-1?f.slide_offset+(f.overpull-h)/1.1-Math.sqrt(Math.abs((f.overpull-h)/1.1)):f.slide_offset}b.organiseCarousel(d,g,!0,!0);break;case"end":case"cancel":f.slide_globaloffset=f.slide_offset,f.wrap.removeClass("dragged"),b.carouselToEvalPosition(d,g),d.dragStartedOverSlider=!1,d.dragStartedOverThumbs=!1,d.dragStartedOverTabs=!1,setTimeout(function(){d.c.find(".tp-withaction").removeClass("tp-temporarydisabled")},19)}else{if(("move"!==e&&"end"!==e&&"cancel"!=e||d.dragStartedOverSlider||!d.dragStartedOverThumbs&&!d.dragStartedOverTabs)&&!("start"===e&&n>0&&(o>0||p>0))){if("end"==e&&!r){if(d.sc_indicator="arrow","horizontal"==k&&"left"==g||"vertical"==k&&"up"==g)return d.sc_indicator_dir=0,b.callingNewSlide(d.c,1),!1;if("horizontal"==k&&"right"==g||"vertical"==k&&"down"==g)return d.sc_indicator_dir=1,b.callingNewSlide(d.c,-1),!1}return d.dragStartedOverSlider=!1,d.dragStartedOverThumbs=!1,d.dragStartedOverTabs=!1,!0}o>0&&(d.dragStartedOverThumbs=!0),p>0&&(d.dragStartedOverTabs=!0);var t=d.dragStartedOverThumbs?".tp-thumbs":".tp-tabs",u=d.dragStartedOverThumbs?".tp-thumb-mask":".tp-tab-mask",v=d.dragStartedOverThumbs?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",w=d.dragStartedOverThumbs?".tp-thumb":".tp-tab",x=d.dragStartedOverThumbs?d.navigation.thumbnails:d.navigation.tabs;h=g&&g.match(/left|up/g)?Math.round(h*-1):h=Math.round(1*h);var y=a.parent().find(u),z=y.find(v),A=x.direction,B="vertical"===A?z.height():z.width(),C="vertical"===A?y.height():y.width(),D="vertical"===A?y.find(w).first().outerHeight(!0)+x.space:y.find(w).first().outerWidth(!0)+x.space,E=void 0===z.data("offset")?0:parseInt(z.data("offset"),0),F=0;switch(e){case"start":a.parent().find(t).addClass("dragged"),E="vertical"===A?z.position().top:z.position().left,z.data("offset",E),z.data("tmmove")&&z.data("tmmove").pause();break;case"move":if(B<=C)return!1;F=E+h,F=F>0?"horizontal"===A?F-z.width()*(F/z.width()*F/z.width()):F-z.height()*(F/z.height()*F/z.height()):F;var G="vertical"===A?0-(z.height()-y.height()):0-(z.width()-y.width());F=F0?0:F,F=Math.abs(h)>D/10?h<=0?Math.floor(F/D)*D:Math.ceil(F/D)*D:h<0?Math.ceil(F/D)*D:Math.floor(F/D)*D,F="vertical"===A?F<0-(z.height()-y.height())?0-(z.height()-y.height()):F:F<0-(z.width()-y.width())?0-(z.width()-y.width()):F,F=F>0?0:F,"vertical"===A?punchgs.TweenLite.to(z,.5,{top:F+"px",ease:punchgs.Power3.easeOut}):punchgs.TweenLite.to(z,.5,{left:F+"px",ease:punchgs.Power3.easeOut}),F=F?F:"vertical"===A?z.position().top:z.position().left,z.data("offset",F),z.data("distance",h),setTimeout(function(){d.dragStartedOverSlider=!1,d.dragStartedOverThumbs=!1,d.dragStartedOverTabs=!1},100),a.parent().find(t).removeClass("dragged"),!1}}}})},l=function(a){a.hide_delay=jQuery.isNumeric(parseInt(a.hide_delay,0))?a.hide_delay/1e3:.2,a.hide_delay_mobile=jQuery.isNumeric(parseInt(a.hide_delay_mobile,0))?a.hide_delay_mobile/1e3:.2},m=function(a){return a&&a.enable},n=function(a){return a&&a.enable&&a.hide_onleave===!0&&(void 0===a.position||!a.position.match(/outer/g))},o=function(a,b){var d=a.parent();n(b.navigation.arrows)&&punchgs.TweenLite.delayedCall(c?b.navigation.arrows.hide_delay_mobile:b.navigation.arrows.hide_delay,p,[d.find(".tparrows"),b.navigation.arrows,"hide"]),n(b.navigation.bullets)&&punchgs.TweenLite.delayedCall(c?b.navigation.bullets.hide_delay_mobile:b.navigation.bullets.hide_delay,p,[d.find(".tp-bullets"),b.navigation.bullets,"hide"]),n(b.navigation.thumbnails)&&punchgs.TweenLite.delayedCall(c?b.navigation.thumbnails.hide_delay_mobile:b.navigation.thumbnails.hide_delay,p,[d.find(".tp-thumbs"),b.navigation.thumbnails,"hide"]),n(b.navigation.tabs)&&punchgs.TweenLite.delayedCall(c?b.navigation.tabs.hide_delay_mobile:b.navigation.tabs.hide_delay,p,[d.find(".tp-tabs"),b.navigation.tabs,"hide"])},p=function(a,b,c,d){switch(d=void 0===d?.5:d,c){case"show":punchgs.TweenLite.to(a,d,{autoAlpha:1,ease:punchgs.Power3.easeInOut,overwrite:"auto"});break;case"hide":punchgs.TweenLite.to(a,d,{autoAlpha:0,ease:punchgs.Power3.easeInOu,overwrite:"auto"})}},q=function(a,b,c){b.style=void 0===b.style?"":b.style,b.left.style=void 0===b.left.style?"":b.left.style,b.right.style=void 0===b.right.style?"":b.right.style,0===a.find(".tp-leftarrow.tparrows").length&&a.append('
    '+b.tmp+"
    "),0===a.find(".tp-rightarrow.tparrows").length&&a.append('
    '+b.tmp+"
    ");var d=a.find(".tp-leftarrow.tparrows"),e=a.find(".tp-rightarrow.tparrows");b.rtl?(d.click(function(){c.sc_indicator="arrow",c.sc_indicator_dir=0,a.revnext()}),e.click(function(){c.sc_indicator="arrow",c.sc_indicator_dir=1,a.revprev()})):(e.click(function(){c.sc_indicator="arrow",c.sc_indicator_dir=0,a.revnext()}),d.click(function(){c.sc_indicator="arrow",c.sc_indicator_dir=1,a.revprev()})),b.right.j=a.find(".tp-rightarrow.tparrows"),b.left.j=a.find(".tp-leftarrow.tparrows"),b.padding_top=parseInt(c.carousel.padding_top||0,0),b.padding_bottom=parseInt(c.carousel.padding_bottom||0,0),t(d,b.left,c),t(e,b.right,c),b.left.opt=c,b.right.opt=c,"outer-left"!=b.position&&"outer-right"!=b.position||(c.outernav=!0)},r=function(a,b,c){var d=a.outerHeight(!0),f=(a.outerWidth(!0),void 0==b.opt?0:0==c.conh?c.height:c.conh),g="layergrid"==b.container?"fullscreen"==c.sliderLayout?c.height/2-c.gridheight[c.curWinRange]*c.bh/2:"on"==c.autoHeight||void 0!=c.minHeight&&c.minHeight>0?f/2-c.gridheight[c.curWinRange]*c.bh/2:0:0,h="top"===b.v_align?{top:"0px",y:Math.round(b.v_offset+g)+"px"}:"center"===b.v_align?{top:"50%",y:Math.round(0-d/2+b.v_offset)+"px"}:{top:"100%",y:Math.round(0-(d+b.v_offset+g))+"px"};a.hasClass("outer-bottom")||punchgs.TweenLite.set(a,h)},s=function(a,b,c){var e=(a.outerHeight(!0),a.outerWidth(!0)),f="layergrid"==b.container?"carousel"===c.sliderType?0:c.width/2-c.gridwidth[c.curWinRange]*c.bw/2:0,g="left"===b.h_align?{left:"0px",x:Math.round(b.h_offset+f)+"px"}:"center"===b.h_align?{left:"50%",x:Math.round(0-e/2+b.h_offset)+"px"}:{left:"100%",x:Math.round(0-(e+b.h_offset+f))+"px"};punchgs.TweenLite.set(a,g)},t=function(a,b,c){var d=a.closest(".tp-simpleresponsive").length>0?a.closest(".tp-simpleresponsive"):a.closest(".tp-revslider-mainul").length>0?a.closest(".tp-revslider-mainul"):a.closest(".rev_slider_wrapper").length>0?a.closest(".rev_slider_wrapper"):a.parent().find(".tp-revslider-mainul"),e=d.width(),f=d.height();if(r(a,b,c),s(a,b,c),"outer-left"!==b.position||"fullwidth"!=b.sliderLayout&&"fullscreen"!=b.sliderLayout?"outer-right"!==b.position||"fullwidth"!=b.sliderLayout&&"fullscreen"!=b.sliderLayout||punchgs.TweenLite.set(a,{right:0-a.outerWidth()+"px",x:b.h_offset+"px"}):punchgs.TweenLite.set(a,{left:0-a.outerWidth()+"px",x:b.h_offset+"px"}),a.hasClass("tp-thumbs")||a.hasClass("tp-tabs")){var g=a.data("wr_padding"),h=a.data("maxw"),i=a.data("maxh"),j=a.hasClass("tp-thumbs")?a.find(".tp-thumb-mask"):a.find(".tp-tab-mask"),k=parseInt(b.padding_top||0,0),l=parseInt(b.padding_bottom||0,0);h>e&&"outer-left"!==b.position&&"outer-right"!==b.position?(punchgs.TweenLite.set(a,{left:"0px",x:0,maxWidth:e-2*g+"px"}),punchgs.TweenLite.set(j,{maxWidth:e-2*g+"px"})):(punchgs.TweenLite.set(a,{maxWidth:h+"px"}),punchgs.TweenLite.set(j,{maxWidth:h+"px"})),i+2*g>f&&"outer-bottom"!==b.position&&"outer-top"!==b.position?(punchgs.TweenLite.set(a,{top:"0px",y:0,maxHeight:k+l+(f-2*g)+"px"}),punchgs.TweenLite.set(j,{maxHeight:k+l+(f-2*g)+"px"})):(punchgs.TweenLite.set(a,{maxHeight:i+"px"}),punchgs.TweenLite.set(j,{maxHeight:i+"px"})),"outer-left"!==b.position&&"outer-right"!==b.position&&(k=0,l=0),b.span===!0&&"vertical"===b.direction?(punchgs.TweenLite.set(a,{maxHeight:k+l+(f-2*g)+"px",height:k+l+(f-2*g)+"px",top:0-k,y:0}),r(j,b,c)):b.span===!0&&"horizontal"===b.direction&&(punchgs.TweenLite.set(a,{maxWidth:"100%",width:e-2*g+"px",left:0,x:0}),s(j,b,c))}},u=function(a,b,c,d){0===a.find(".tp-bullets").length&&(b.style=void 0===b.style?"":b.style,a.append('
    '));var e=a.find(".tp-bullets"),f=c.data("index"),g=b.tmp;jQuery.each(d.thumbs[c.index()].params,function(a,b){g=g.replace(b.from,b.to)}),e.append('
    '+g+"
    ");var h=a.find(".justaddedbullet"),i=a.find(".tp-bullet").length,j=h.outerWidth()+parseInt(void 0===b.space?0:b.space,0),k=h.outerHeight()+parseInt(void 0===b.space?0:b.space,0);"vertical"===b.direction?(h.css({top:(i-1)*k+"px",left:"0px"}),e.css({height:(i-1)*k+h.outerHeight(),width:h.outerWidth()})):(h.css({left:(i-1)*j+"px",top:"0px"}),e.css({width:(i-1)*j+h.outerWidth(),height:h.outerHeight()})),h.find(".tp-bullet-image").css({backgroundImage:"url("+d.thumbs[c.index()].src+")"}),h.data("liref",f),h.click(function(){d.sc_indicator="bullet",a.revcallslidewithid(f),a.find(".tp-bullet").removeClass("selected"),jQuery(this).addClass("selected")}),h.removeClass("justaddedbullet"),b.padding_top=parseInt(d.carousel.padding_top||0,0),b.padding_bottom=parseInt(d.carousel.padding_bottom||0,0),b.opt=d,"outer-left"!=b.position&&"outer-right"!=b.position||(d.outernav=!0),e.addClass("nav-pos-hor-"+b.h_align),e.addClass("nav-pos-ver-"+b.v_align),e.addClass("nav-dir-"+b.direction),t(e,b,d)},v=function(a,b){b=parseFloat(b),a=a.replace("#","");var c=parseInt(a.substring(0,2),16),d=parseInt(a.substring(2,4),16),e=parseInt(a.substring(4,6),16),f="rgba("+c+","+d+","+e+","+b+")";return f},w=function(a,b,c,d,e){var f="tp-thumb"===d?".tp-thumbs":".tp-tabs",g="tp-thumb"===d?".tp-thumb-mask":".tp-tab-mask",h="tp-thumb"===d?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",i="tp-thumb"===d?".tp-thumb":".tp-tab",j="tp-thumb"===d?".tp-thumb-image":".tp-tab-image";if(b.visibleAmount=b.visibleAmount>e.slideamount?e.slideamount:b.visibleAmount,b.sliderLayout=e.sliderLayout,0===a.parent().find(f).length){b.style=void 0===b.style?"":b.style;var k=b.span===!0?"tp-span-wrapper":"",l='
    ';"outer-top"===b.position?a.parent().prepend(l):"outer-bottom"===b.position?a.after(l):a.append(l),b.padding_top=parseInt(e.carousel.padding_top||0,0),b.padding_bottom=parseInt(e.carousel.padding_bottom||0,0),"outer-left"!=b.position&&"outer-right"!=b.position||(e.outernav=!0)}var m=c.data("index"),n=a.parent().find(f),o=n.find(g),p=o.find(h),q="horizontal"===b.direction?b.width*b.visibleAmount+b.space*(b.visibleAmount-1):b.width,r="horizontal"===b.direction?b.height:b.height*b.visibleAmount+b.space*(b.visibleAmount-1),s=b.tmp;jQuery.each(e.thumbs[c.index()].params,function(a,b){s=s.replace(b.from,b.to)}),p.append('
    '+s+"
    ");var u=n.find(".justaddedthumb"),w=n.find(i).length,x=u.outerWidth()+parseInt(void 0===b.space?0:b.space,0),y=u.outerHeight()+parseInt(void 0===b.space?0:b.space,0);u.find(j).css({backgroundImage:"url("+e.thumbs[c.index()].src+")"}),"vertical"===b.direction?(u.css({top:(w-1)*y+"px",left:"0px"}),p.css({height:(w-1)*y+u.outerHeight(),width:u.outerWidth()})):(u.css({left:(w-1)*x+"px",top:"0px"}),p.css({width:(w-1)*x+u.outerWidth(),height:u.outerHeight()})),n.data("maxw",q),n.data("maxh",r),n.data("wr_padding",b.wrapper_padding);var z="outer-top"===b.position||"outer-bottom"===b.position?"relative":"absolute";"outer-top"!==b.position&&"outer-bottom"!==b.position||"center"!==b.h_align?"0":"auto";o.css({maxWidth:q+"px",maxHeight:r+"px",overflow:"hidden",position:"relative"}),n.css({maxWidth:q+"px",maxHeight:r+"px",overflow:"visible",position:z,background:v(b.wrapper_color,b.wrapper_opacity),padding:b.wrapper_padding+"px",boxSizing:"contet-box"}),u.click(function(){e.sc_indicator="bullet";var b=a.parent().find(h).data("distance");b=void 0===b?0:b,Math.abs(b)<10&&(a.revcallslidewithid(m),a.parent().find(f).removeClass("selected"),jQuery(this).addClass("selected"))}),u.removeClass("justaddedthumb"),b.opt=e,n.addClass("nav-pos-hor-"+b.h_align),n.addClass("nav-pos-ver-"+b.v_align),n.addClass("nav-dir-"+b.direction),t(n,b,e)},x=function(a){var b=a.c.parent().find(".outer-top"),c=a.c.parent().find(".outer-bottom");a.top_outer=b.hasClass("tp-forcenotvisible")?0:b.outerHeight()||0,a.bottom_outer=c.hasClass("tp-forcenotvisible")?0:c.outerHeight()||0},y=function(a,b,c,d){b>c||c>d?a.addClass("tp-forcenotvisible"):a.removeClass("tp-forcenotvisible")}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.parallax.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.parallax.min.js new file mode 100644 index 0000000..384dc84 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.parallax.min.js @@ -0,0 +1,7 @@ +/******************************************** + * REVOLUTION 5.2.6 EXTENSION - PARALLAX + * @version: 2.2.0 (16.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +!function(a){"use strict";function e(a,b){a.lastscrolltop=b}var b=jQuery.fn.revolution,c=b.is_mobile(),d={alias:"Parallax Min JS",name:"revolution.extensions.parallax.min.js",min_core:"5.3",version:"2.2.0"};jQuery.extend(!0,b,{checkForParallax:function(a,e){function g(a){if("3D"==f.type||"3d"==f.type){a.find(".slotholder").wrapAll('
    '),a.find(".tp-parallax-wrap").wrapAll('
    '),a.find(".rs-parallaxlevel-tobggroup").closest(".tp-parallax-wrap").wrapAll('
    ');var b=a.find(".dddwrapper"),c=a.find(".dddwrapper-layer"),d=a.find(".dddwrapper-layertobggroup");d.appendTo(b),"carousel"==e.sliderType&&("on"==f.ddd_shadow&&b.addClass("dddwrappershadow"),punchgs.TweenLite.set(b,{borderRadius:e.carousel.border_radius})),punchgs.TweenLite.set(a,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600}),punchgs.TweenLite.set(b,{force3D:"auto",transformOrigin:"50% 50%"}),punchgs.TweenLite.set(c,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5}),punchgs.TweenLite.set(e.ul,{transformStyle:"preserve-3d",transformPerspective:1600})}}if("stop"===b.compare_version(d).check)return!1;var f=e.parallax;if(!f.done){if(f.done=!0,c&&"on"==f.disable_onmobile)return!1;"3D"!=f.type&&"3d"!=f.type||(punchgs.TweenLite.set(e.c,{overflow:f.ddd_overflow}),punchgs.TweenLite.set(e.ul,{overflow:f.ddd_overflow}),"carousel"!=e.sliderType&&"on"==f.ddd_shadow&&(e.c.prepend('
    '),punchgs.TweenLite.set(e.c.find(".dddwrappershadow"),{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%",width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0}))),e.li.each(function(){g(jQuery(this))}),("3D"==f.type||"3d"==f.type)&&e.c.find(".tp-static-layers").length>0&&(punchgs.TweenLite.set(e.c.find(".tp-static-layers"),{top:0,left:0,width:"100%",height:"100%"}),g(e.c.find(".tp-static-layers"))),f.pcontainers=new Array,f.pcontainer_depths=new Array,f.bgcontainers=new Array,f.bgcontainer_depths=new Array,e.c.find(".tp-revslider-slidesli .slotholder, .tp-revslider-slidesli .rs-background-video-layer").each(function(){var a=jQuery(this),b=a.data("bgparallax")||e.parallax.bgparallax;b="on"==b?1:b,void 0!==b&&"off"!==b&&(f.bgcontainers.push(a),f.bgcontainer_depths.push(e.parallax.levels[parseInt(b,0)-1]/100))});for(var h=1;h<=f.levels.length;h++)e.c.find(".rs-parallaxlevel-"+h).each(function(){var a=jQuery(this),b=a.closest(".tp-parallax-wrap");b.data("parallaxlevel",f.levels[h-1]),b.addClass("tp-parallax-container"),f.pcontainers.push(b),f.pcontainer_depths.push(f.levels[h-1])});"mouse"!=f.type&&"scroll+mouse"!=f.type&&"mouse+scroll"!=f.type&&"3D"!=f.type&&"3d"!=f.type||(a.mouseenter(function(b){var c=a.find(".active-revslide"),d=a.offset().top,e=a.offset().left,f=b.pageX-e,g=b.pageY-d;c.data("enterx",f),c.data("entery",g)}),a.on("mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath",function(b,c){var d=c&&c.li?c.li:a.find(".active-revslide");if("enterpoint"==f.origo){var g=a.offset().top,h=a.offset().left;void 0==d.data("enterx")&&d.data("enterx",b.pageX-h),void 0==d.data("entery")&&d.data("entery",b.pageY-g);var i=d.data("enterx")||b.pageX-h,j=d.data("entery")||b.pageY-g,k=i-(b.pageX-h),l=j-(b.pageY-g),m=f.speed/1e3||.4}else var g=a.offset().top,h=a.offset().left,k=e.conw/2-(b.pageX-h),l=e.conh/2-(b.pageY-g),m=f.speed/1e3||3;"mouseleave"==b.type&&(k=f.ddd_lasth||0,l=f.ddd_lastv||0,m=1.5);for(var n=0;njQuery(window).height()){var h=d;d=c,c=h}var i=a.width(),j=a.height(),k=360/i*d,l=180/j*c,m=f.speed/1e3||3,n=[];if(g.find(".tp-parallax-container").each(function(a){n.push(jQuery(this))}),a.find(".tp-static-layers .tp-parallax-container").each(function(){n.push(jQuery(this))}),jQuery.each(n,function(){var a=jQuery(this),b=parseInt(a.data("parallaxlevel"),0),c=b/100,d=k*c*2,e=l*c*4;punchgs.TweenLite.to(a,m,{force3D:"auto",x:d,y:e,ease:punchgs.Power3.easeOut,overwrite:"all"})}),"3D"==f.type||"3d"==f.type){var o=".tp-revslider-slidesli .dddwrapper, .dddwrappershadow, .tp-revslider-slidesli .dddwrapper-layer, .tp-static-layers .dddwrapper-layer";"carousel"===e.sliderType&&(o=".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer, .tp-static-layers .dddwrapper-layer"),e.c.find(o).each(function(){var a=jQuery(this),c=f.levels[f.levels.length-1]/200,d=k*c,g=l*c*3,h=0==e.conw?0:Math.round(k/e.conw*c*500)||0,i=0==e.conh?0:Math.round(l/e.conh*c*700)||0,j=a.closest("li"),n=0,o=!1;a.hasClass("dddwrapper-layer")&&(n=f.ddd_z_correction||65,o=!0),a.hasClass("dddwrapper-layer")&&(d=0,g=0),j.hasClass("active-revslide")||"carousel"!=e.sliderType?"on"!=f.ddd_bgfreeze||o?punchgs.TweenLite.to(a,m,{rotationX:i,rotationY:-h,x:d,z:n,y:g,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(a,.5,{force3D:"auto",rotationY:0,rotationX:0,z:0,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(a,.5,{force3D:"auto",rotationY:0,z:0,x:0,y:0,rotationX:0,ease:punchgs.Power3.easeOut,overwrite:"all"}),"mouseleave"==b.type&&punchgs.TweenLite.to(jQuery(this),3.8,{z:0,ease:punchgs.Power3.easeOut})})}}));var i=e.scrolleffect;if(i.bgs=new Array,i.on){if("on"===i.on_slidebg)for(var h=0;ha.lastwindowheight?f.top/f.height:f.bottom>a.lastwindowheight?(f.bottom-a.lastwindowheight)/f.height:0;if(a.scrollproc=i,b.callBackHandling&&b.callBackHandling(a,"parallax","start"),g.enable){var j=1-Math.abs(i);j=j<0?0:j,jQuery.isNumeric(g.visible_area)||g.visible_area.indexOf("%")!==-1&&(g.visible_area=parseInt(g.visible_area)/100),1-g.visible_area<=j?a.inviewport||(a.inviewport=!0,b.enterInViewPort(a)):a.inviewport&&(a.inviewport=!1,b.leaveViewPort(a))}if(c&&"on"==h.disable_onmobile)return!1;if("3d"!=h.type&&"3D"!=h.type){if(("scroll"==h.type||"scroll+mouse"==h.type||"mouse+scroll"==h.type)&&h.pcontainers)for(var k=0;k0){var l=h.pcontainers[k],m=h.pcontainer_depths[k]/100,n=Math.round(i*-(m*a.conh)*10)/10||0;l.data("parallaxoffset",n),punchgs.TweenLite.set(l,{overwrite:"auto",force3D:"auto",y:n})}if(h.bgcontainers)for(var k=0;k=0&&(s=1),"bottom"==q.direction&&i<=0&&(s=1),s=s>1?1:s<0?0:s,"on"===q.fade&&(t.opacity=s),"on"===q.blur){var u=(1-s)*q.maxblur;t["-webkit-filter"]="blur("+u+"px)",t.filter="blur("+u+"px)"}if("on"===q.grayscale){var v=100*(1-s),w="grayscale("+v+"%)";t["-webkit-filter"]=void 0===t["-webkit-filter"]?w:t["-webkit-filter"]+" "+w,t.filter=void 0===t.filter?w:t.filter+" "+w}punchgs.TweenLite.set(q.layers,t)}if(q.bgs!==!1){var s=1-r*q.multiplicator,t={backfaceVisibility:"hidden",force3D:"true"};if("top"==q.direction&&i>=0&&(s=1),"bottom"==q.direction&&i<=0&&(s=1),s=s>1?1:s<0?0:s,"on"===q.fade&&(t.opacity=s),"on"===q.blur){var u=(1-s)*q.maxblur;t["-webkit-filter"]="blur("+u+"px)",t.filter="blur("+u+"px)"}if("on"===q.grayscale){var v=100*(1-s),w="grayscale("+v+"%)";t["-webkit-filter"]=void 0===t["-webkit-filter"]?w:t["-webkit-filter"]+" "+w,t.filter=void 0===t.filter?w:t.filter+" "+w}punchgs.TweenLite.set(q.bgs,t)}}b.callBackHandling&&b.callBackHandling(a,"parallax","end")}})}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.slideanims.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.slideanims.min.js new file mode 100644 index 0000000..1698668 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.slideanims.min.js @@ -0,0 +1,7 @@ +/************************************************ + * REVOLUTION 5.3 EXTENSION - SLIDE ANIMATIONS + * @version: 1.6 (17.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +************************************************/ +!function(a){"use strict";var b=jQuery.fn.revolution,c={alias:"SlideAnimations Min JS",name:"revolution.extensions.slideanims.min.js",min_core:"5.0",version:"1.6"};jQuery.extend(!0,b,{animateSlide:function(a,d,e,f,h,i,j,k){return"stop"===b.compare_version(c).check?k:g(a,d,e,f,h,i,j,k)}});var d=function(a,c,d,e){var f=a,g=f.find(".defaultimg"),h=g.data("mediafilter"),i=f.data("zoomstart"),j=f.data("rotationstart");void 0!=g.data("currotate")&&(j=g.data("currotate")),void 0!=g.data("curscale")&&"box"==e?i=100*g.data("curscale"):void 0!=g.data("curscale")&&(i=g.data("curscale")),b.slotSize(g,c);var k=g.attr("src"),l=g.css("backgroundColor"),m=c.width,n=c.height,o=g.data("fxof"),p=0;"on"==c.autoHeight&&(n=c.c.height()),void 0==o&&(o=0);var q=0,r=g.data("bgfit"),s=g.data("bgrepeat"),t=g.data("bgposition");switch(void 0==r&&(r="cover"),void 0==s&&(s="no-repeat"),void 0==t&&(t="center center"),e){case"box":for(var u=0,v=0,w=0;w
    '),v+=c.sloth,void 0!=i&&void 0!=j&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:j});u+=c.slotw}break;case"vertical":case"horizontal":if("horizontal"==e){if(!d)var q=0-c.slotw;for(var x=0;x
    '),void 0!=i&&void 0!=j&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:j})}else{if(!d)var q=0-c.sloth;for(var x=0;x
    '),void 0!=i&&void 0!=j&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:j})}}},e=function(a,b,c,d){function y(){jQuery.each(v,function(a,c){c[0]!=b&&c[8]!=b||(q=c[1],r=c[2],s=t),t+=1})}var e=a[0].opt,f=punchgs.Power1.easeIn,g=punchgs.Power1.easeOut,h=punchgs.Power1.easeInOut,i=punchgs.Power2.easeIn,j=punchgs.Power2.easeOut,k=punchgs.Power2.easeInOut,m=(punchgs.Power3.easeIn,punchgs.Power3.easeOut),n=punchgs.Power3.easeInOut,o=[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],p=[16,17,18,19,20,21,22,23,24,25,27],q=0,r=1,s=0,t=0,v=(new Array,[["boxslide",0,1,10,0,"box",!1,null,0,g,g,500,6],["boxfade",1,0,10,0,"box",!1,null,1,h,h,700,5],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2,k,k,700,3],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3,k,k,700,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4,g,g,300,5],["curtain-2",5,3,0,0,"horizontal",!0,!0,5,g,g,300,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6,g,g,300,5],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7,g,g,300,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8,j,j,500,8],["slotfade-horizontal",9,0,0,1e3,"horizontal",!0,null,9,j,j,2e3,10],["slotfade-vertical",10,0,0,1e3,"vertical",!0,null,10,j,j,2e3,10],["fade",11,0,1,300,"horizontal",!0,null,11,k,k,1e3,1],["crossfade",11,1,1,300,"horizontal",!0,null,11,k,k,1e3,1],["fadethroughdark",11,2,1,300,"horizontal",!0,null,11,k,k,1e3,1],["fadethroughlight",11,3,1,300,"horizontal",!0,null,11,k,k,1e3,1],["fadethroughtransparent",11,4,1,300,"horizontal",!0,null,11,k,k,1e3,1],["slideleft",12,0,1,0,"horizontal",!0,!0,12,n,n,1e3,1],["slideup",13,0,1,0,"horizontal",!0,!0,13,n,n,1e3,1],["slidedown",14,0,1,0,"horizontal",!0,!0,14,n,n,1e3,1],["slideright",15,0,1,0,"horizontal",!0,!0,15,n,n,1e3,1],["slideoverleft",12,7,1,0,"horizontal",!0,!0,12,n,n,1e3,1],["slideoverup",13,7,1,0,"horizontal",!0,!0,13,n,n,1e3,1],["slideoverdown",14,7,1,0,"horizontal",!0,!0,14,n,n,1e3,1],["slideoverright",15,7,1,0,"horizontal",!0,!0,15,n,n,1e3,1],["slideremoveleft",12,8,1,0,"horizontal",!0,!0,12,n,n,1e3,1],["slideremoveup",13,8,1,0,"horizontal",!0,!0,13,n,n,1e3,1],["slideremovedown",14,8,1,0,"horizontal",!0,!0,14,n,n,1e3,1],["slideremoveright",15,8,1,0,"horizontal",!0,!0,15,n,n,1e3,1],["papercut",16,0,0,600,"",null,null,16,n,n,1e3,2],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17,h,h,500,7],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18,h,h,500,5],["cubic",19,0,20,600,"horizontal",!1,!0,19,n,n,500,1],["cube",19,0,20,600,"horizontal",!1,!0,20,n,n,500,1],["flyin",20,0,4,600,"vertical",!1,!0,21,m,n,500,1],["turnoff",21,0,1,500,"horizontal",!1,!0,22,n,n,500,1],["incube",22,0,20,200,"horizontal",!1,!0,23,k,k,500,1],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24,j,j,500,1],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25,j,j,500,1],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26,k,k,500,1],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27,k,k,500,1],["fadefromright",14,1,1,0,"horizontal",!0,!0,28,k,k,1e3,1],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29,k,k,1e3,1],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30,k,k,1e3,1],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31,k,k,1e3,1],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32,k,k,1e3,1],["fadetorightfadefromleft",15,2,1,0,"horizontal",!0,!0,33,k,k,1e3,1],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34,k,k,1e3,1],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35,k,k,1e3,1],["parallaxtoright",15,3,1,0,"horizontal",!0,!0,36,k,i,1500,1],["parallaxtoleft",12,3,1,0,"horizontal",!0,!0,37,k,i,1500,1],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38,k,f,1500,1],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39,k,f,1500,1],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40,k,i,1e3,1],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41,k,i,1e3,1],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42,k,i,1e3,1],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43,k,i,1e3,1],["zoomout",13,5,1,0,"horizontal",!0,!0,44,k,i,1e3,1],["zoomin",13,6,1,0,"horizontal",!0,!0,45,k,i,1e3,1],["slidingoverlayup",27,0,1,0,"horizontal",!0,!0,47,h,g,2e3,1],["slidingoverlaydown",28,0,1,0,"horizontal",!0,!0,48,h,g,2e3,1],["slidingoverlayright",30,0,1,0,"horizontal",!0,!0,49,h,g,2e3,1],["slidingoverlayleft",29,0,1,0,"horizontal",!0,!0,50,h,g,2e3,1],["parallaxcirclesup",31,0,1,0,"horizontal",!0,!0,51,k,f,1500,1],["parallaxcirclesdown",32,0,1,0,"horizontal",!0,!0,52,k,f,1500,1],["parallaxcirclesright",33,0,1,0,"horizontal",!0,!0,53,k,f,1500,1],["parallaxcirclesleft",34,0,1,0,"horizontal",!0,!0,54,k,f,1500,1],["notransition",26,0,1,0,"horizontal",!0,null,46,k,i,1e3,1],["parallaxright",15,3,1,0,"horizontal",!0,!0,55,k,i,1500,1],["parallaxleft",12,3,1,0,"horizontal",!0,!0,56,k,i,1500,1],["parallaxup",14,3,1,0,"horizontal",!0,!0,57,k,f,1500,1],["parallaxdown",13,3,1,0,"horizontal",!0,!0,58,k,f,1500,1]]);e.duringslidechange=!0,e.testanims=!1,1==e.testanims&&(e.nexttesttransform=void 0===e.nexttesttransform?34:e.nexttesttransform+1,e.nexttesttransform=e.nexttesttransform>70?0:e.nexttesttransform,b=v[e.nexttesttransform][0],console.log(b+" "+e.nexttesttransform+" "+v[e.nexttesttransform][1]+" "+v[e.nexttesttransform][2])),jQuery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax","parralaxto"],function(a,c){b==c+"horizontal"&&(b=1!=d?c+"left":c+"right"),b==c+"vertical"&&(b=1!=d?c+"up":c+"down")}),"random"==b&&(b=Math.round(Math.random()*v.length-1),b>v.length-1&&(b=v.length-1)),"random-static"==b&&(b=Math.round(Math.random()*o.length-1),b>o.length-1&&(b=o.length-1),b=o[b]),"random-premium"==b&&(b=Math.round(Math.random()*p.length-1),b>p.length-1&&(b=p.length-1),b=p[b]);var w=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(1==e.isJoomla&&void 0!=window.MooTools&&w.indexOf(b)!=-1){var x=Math.round(Math.random()*(p.length-2))+1;x>p.length-1&&(x=p.length-1),0==x&&(x=1),b=p[x]}y(),q>30&&(q=30),q<0&&(q=0);var z=new Object;return z.nexttrans=q,z.STA=v[s],z.specials=r,z},f=function(a,b){return void 0==b||jQuery.isNumeric(a)?a:void 0==a?a:a.split(",")[b]},g=function(a,b,c,g,h,i,j,k){function V(a,b,c,d,e){var f=a.find(".slot"),g=6,h=[2,1.2,.9,.7,.55,.42],j=a.width(),l=a.height();f.wrap('
    ');for(var n=0;nl?h[a]*j:h[a]*l,m=i,n=0+(m/2-j/2),o=0+(i/2-l/2),p=0!=a?"50%":"0",q=31==c?l/2-i/2:32==c?l/2-i/2:l/2-i/2,r=33==c?j/2-m/2:34==c?j-m:j/2-m/2,s={scale:1,transformOrigo:"50% 50%",width:m+"px",height:i+"px",top:q+"px",left:r+"px",borderRadius:p},t={scale:1,top:l/2-i/2,left:j/2-m/2,ease:e},u=31==c?o:32==c?o:o,v=33==c?n:34==c?n+j/2:n,w={width:j,height:l,autoAlpha:1,top:u+"px",position:"absolute",left:v+"px"},x={top:o+"px",left:n+"px",ease:e},y=b,z=0;k.add(punchgs.TweenLite.fromTo(d,y,s,t),z),k.add(punchgs.TweenLite.fromTo(f,y,w,x),z),k.add(punchgs.TweenLite.fromTo(d,.001,{autoAlpha:0},{autoAlpha:1}),0)}})}var l=c[0].opt,m=h.index(),n=g.index(),o=nl.delay?l.delay:t,t+=q[4],l.slots=f(g.data("slotamount"),s),l.slots=void 0==l.slots||"default"==l.slots?q[12]:"random"==l.slots?Math.round(12*Math.random()+4):l.slots,l.slots=l.slots<1?"boxslide"==b?Math.round(6*Math.random()+3):"flyin"==b?Math.round(4*Math.random()+1):l.slots:l.slots,l.slots=(4==a||5==a||6==a)&&l.slots<3?3:l.slots,l.slots=0!=q[3]?Math.min(l.slots,q[3]):l.slots,l.slots=9==a?l.width/l.slots:10==a?l.height/l.slots:l.slots,l.rotate=f(g.data("rotate"),s),l.rotate=void 0==l.rotate||"default"==l.rotate?0:999==l.rotate||"random"==l.rotate?Math.round(360*Math.random()):l.rotate,l.rotate=!jQuery.support.transition||l.ie||l.ie9?0:l.rotate,11!=a&&(null!=q[7]&&d(j,l,q[7],q[5]),null!=q[6]&&d(i,l,q[6],q[5])),k.add(punchgs.TweenLite.set(i.find(".defaultvid"),{y:0,x:0,top:0,left:0,scale:1}),0),k.add(punchgs.TweenLite.set(j.find(".defaultvid"),{y:0,x:0,top:0,left:0,scale:1}),0),k.add(punchgs.TweenLite.set(i.find(".defaultvid"),{y:"+0%",x:"+0%"}),0),k.add(punchgs.TweenLite.set(j.find(".defaultvid"),{y:"+0%",x:"+0%"}),0),k.add(punchgs.TweenLite.set(i,{autoAlpha:1,y:"+0%",x:"+0%"}),0),k.add(punchgs.TweenLite.set(j,{autoAlpha:1,y:"+0%",x:"+0%"}),0),k.add(punchgs.TweenLite.set(i.parent(),{backgroundColor:"transparent"}),0),k.add(punchgs.TweenLite.set(j.parent(),{backgroundColor:"transparent"}),0);var u=f(g.data("easein"),s),v=f(g.data("easeout"),s);if(u="default"===u?q[9]||punchgs.Power2.easeInOut:u||q[9]||punchgs.Power2.easeInOut,v="default"===v?q[10]||punchgs.Power2.easeInOut:v||q[10]||punchgs.Power2.easeInOut,0==a){var w=Math.ceil(l.height/l.sloth),x=0;i.find(".slotslide").each(function(a){var b=jQuery(this);x+=1,x==w&&(x=0),k.add(punchgs.TweenLite.from(b,t/600,{opacity:0,top:0-l.sloth,left:0-l.slotw,rotation:l.rotate,force3D:"auto",ease:u}),(15*a+30*x)/1500)})}if(1==a){var y,z=0;i.find(".slotslide").each(function(a){var b=jQuery(this),c=Math.random()*t+300,d=500*Math.random()+200;c+d>y&&(y=d+d,z=a),k.add(punchgs.TweenLite.from(b,c/1e3,{autoAlpha:0,force3D:"auto",rotation:l.rotate,ease:u}),d/1e3)})}if(2==a){var A=new punchgs.TimelineLite;j.find(".slotslide").each(function(){var a=jQuery(this);A.add(punchgs.TweenLite.to(a,t/1e3,{left:l.slotw,ease:u,force3D:"auto",rotation:0-l.rotate}),0),k.add(A,0)}),i.find(".slotslide").each(function(){var a=jQuery(this);A.add(punchgs.TweenLite.from(a,t/1e3,{left:0-l.slotw,ease:u,force3D:"auto",rotation:l.rotate}),0),k.add(A,0)})}if(3==a){var A=new punchgs.TimelineLite;j.find(".slotslide").each(function(){var a=jQuery(this);A.add(punchgs.TweenLite.to(a,t/1e3,{top:l.sloth,ease:u,rotation:l.rotate,force3D:"auto",transformPerspective:600}),0),k.add(A,0)}),i.find(".slotslide").each(function(){var a=jQuery(this);A.add(punchgs.TweenLite.from(a,t/1e3,{top:0-l.sloth,rotation:l.rotate,ease:v,force3D:"auto",transformPerspective:600}),0),k.add(A,0)})}if(4==a||5==a){setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var B=t/1e3,A=new punchgs.TimelineLite;j.find(".slotslide").each(function(b){var c=jQuery(this),d=b*B/l.slots;5==a&&(d=(l.slots-b-1)*B/l.slots/1.5),A.add(punchgs.TweenLite.to(c,3*B,{transformPerspective:600,force3D:"auto",top:0+l.height,opacity:.5,rotation:l.rotate,ease:u,delay:d}),0),k.add(A,0)}),i.find(".slotslide").each(function(b){var c=jQuery(this),d=b*B/l.slots;5==a&&(d=(l.slots-b-1)*B/l.slots/1.5),A.add(punchgs.TweenLite.from(c,3*B,{top:0-l.height,opacity:.5,rotation:l.rotate,force3D:"auto",ease:punchgs.eo,delay:d}),0),k.add(A,0)})}if(6==a){l.slots<2&&(l.slots=2),l.slots%2&&(l.slots=l.slots+1);var A=new punchgs.TimelineLite;setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100),j.find(".slotslide").each(function(a){var b=jQuery(this);if(a+1l.delay&&(t=l.delay);var A=new punchgs.TimelineLite;setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100),j.find(".slotslide").each(function(){var a=jQuery(this).find("div");A.add(punchgs.TweenLite.to(a,t/1e3,{left:0-l.slotw/2+"px",top:0-l.height/2+"px",width:2*l.slotw+"px",height:2*l.height+"px",opacity:0,rotation:l.rotate,force3D:"auto",ease:u}),0),k.add(A,0)}),i.find(".slotslide").each(function(a){var b=jQuery(this).find("div");A.add(punchgs.TweenLite.fromTo(b,t/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-a*l.slotw+"px",ease:v,force3D:"auto",top:"0px",width:l.width,height:l.height,opacity:1,rotation:0,delay:.1}),0),k.add(A,0)})}if(8==a){t=3*t,t>l.delay&&(t=l.delay);var A=new punchgs.TimelineLite;j.find(".slotslide").each(function(){var a=jQuery(this).find("div");A.add(punchgs.TweenLite.to(a,t/1e3,{left:0-l.width/2+"px",top:0-l.sloth/2+"px",width:2*l.width+"px",height:2*l.sloth+"px",force3D:"auto",ease:u,opacity:0,rotation:l.rotate}),0),k.add(A,0)}),i.find(".slotslide").each(function(a){var b=jQuery(this).find("div");A.add(punchgs.TweenLite.fromTo(b,t/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-a*l.sloth+"px",width:i.find(".defaultimg").data("neww")+"px",height:i.find(".defaultimg").data("newh")+"px",opacity:1,ease:v,rotation:0}),0),k.add(A,0)})}if(9==a||10==a){var D=0;i.find(".slotslide").each(function(a){var b=jQuery(this);D++,k.add(punchgs.TweenLite.fromTo(b,t/2e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:u,delay:a*l.slots/100/2e3}),0)})}if(27==a||28==a||29==a||30==a){var E=i.find(".slot"),F=27==a||28==a?1:2,G=27==a||29==a?"-100%":"+100%",H=27==a||29==a?"+100%":"-100%",I=27==a||29==a?"-80%":"80%",J=27==a||29==a?"+80%":"-80%",K=27==a||29==a?"+10%":"-10%",L={overwrite:"all"},M={autoAlpha:0,zIndex:1,force3D:"auto",ease:u},N={position:"inherit",autoAlpha:0,overwrite:"all",zIndex:1},O={autoAlpha:1,force3D:"auto",ease:v},P={overwrite:"all",zIndex:2,opacity:1,autoAlpha:1},Q={autoAlpha:1,force3D:"auto",overwrite:"all",ease:u},R={overwrite:"all",zIndex:2,autoAlpha:1},S={autoAlpha:1,force3D:"auto",ease:u},T=1==F?"y":"x";L[T]="0px",M[T]=G,N[T]=K,O[T]="0%",P[T]=H,Q[T]=G,R[T]=I,S[T]=J,E.append(''),k.add(punchgs.TweenLite.fromTo(j,t/1e3,L,M),0),k.add(punchgs.TweenLite.fromTo(i.find(".defaultimg"),t/2e3,N,O),t/2e3),k.add(punchgs.TweenLite.fromTo(E,t/1e3,P,Q),0),k.add(punchgs.TweenLite.fromTo(E.find(".slotslide div"),t/1e3,R,S),0)}if(31==a||32==a||33==a||34==a){t=6e3,u=punchgs.Power3.easeInOut;var U=t/1e3;mas=U-U/5,_nt=a,fy=31==_nt?"+100%":32==_nt?"-100%":"0%",fx=33==_nt?"+100%":34==_nt?"-100%":"0%",ty=31==_nt?"-100%":32==_nt?"+100%":"0%",tx=33==_nt?"-100%":34==_nt?"+100%":"0%",k.add(punchgs.TweenLite.fromTo(j,U-.2*U,{y:0,x:0},{y:ty,x:tx,ease:v}),.2*U),k.add(punchgs.TweenLite.fromTo(i,U,{y:fy,x:fx},{y:"0%",x:"0%",ease:u}),0),i.find(".slot").remove(),i.find(".defaultimg").clone().appendTo(i).addClass("slot"),V(i,U,_nt,"in",u)}if(11==a){r>4&&(r=0);var D=0,W=2==r?"#000":3==r?"#fff":"transparent";switch(r){case 0:k.add(punchgs.TweenLite.fromTo(i,t/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:u}),0);break;case 1:k.add(punchgs.TweenLite.fromTo(i,t/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:u}),0),k.add(punchgs.TweenLite.fromTo(j,t/1e3,{autoAlpha:1},{autoAlpha:0,force3D:"auto",ease:u}),0);break;case 2:case 3:case 4:k.add(punchgs.TweenLite.set(j.parent(),{backgroundColor:W,force3D:"auto"}),0),k.add(punchgs.TweenLite.set(i.parent(),{backgroundColor:"transparent",force3D:"auto"}),0),k.add(punchgs.TweenLite.to(j,t/2e3,{autoAlpha:0,force3D:"auto",ease:u}),0),k.add(punchgs.TweenLite.fromTo(i,t/2e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:u}),t/2e3)}k.add(punchgs.TweenLite.set(i.find(".defaultimg"),{autoAlpha:1}),0),k.add(punchgs.TweenLite.set(j.find("defaultimg"),{autoAlpha:1}),0)}if(26==a){var D=0;t=0,k.add(punchgs.TweenLite.fromTo(i,t/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:u}),0),k.add(punchgs.TweenLite.to(j,t/1e3,{autoAlpha:0,force3D:"auto",ease:u}),0),k.add(punchgs.TweenLite.set(i.find(".defaultimg"),{autoAlpha:1}),0),k.add(punchgs.TweenLite.set(j.find("defaultimg"),{autoAlpha:1}),0)}if(12==a||13==a||14==a||15==a){t=t,t>l.delay&&(t=l.delay),setTimeout(function(){punchgs.TweenLite.set(j.find(".defaultimg"),{autoAlpha:0})},100);var X=l.width,Y=l.height,Z=i.find(".slotslide, .defaultvid"),$=0,_=0,aa=1,ba=1,ca=1,da=t/1e3,ea=da;"fullwidth"!=l.sliderLayout&&"fullscreen"!=l.sliderLayout||(X=Z.width(),Y=Z.height()),12==a?$=X:15==a?$=0-X:13==a?_=Y:14==a&&(_=0-Y),1==r&&(aa=0),2==r&&(aa=0),3==r&&(da=t/1300),4!=r&&5!=r||(ba=.6),6==r&&(ba=1.4),5!=r&&6!=r||(ca=1.4,aa=0,X=0,Y=0,$=0,_=0),6==r&&(ca=.6);7==r&&(X=0,Y=0);var ga=i.find(".slotslide"),ha=j.find(".slotslide, .defaultvid");if(k.add(punchgs.TweenLite.set(h,{zIndex:15}),0),k.add(punchgs.TweenLite.set(g,{zIndex:20}),0),8==r?(k.add(punchgs.TweenLite.set(h,{zIndex:20}),0),k.add(punchgs.TweenLite.set(g,{zIndex:15}),0),k.add(punchgs.TweenLite.set(ga,{left:0,top:0,scale:1,opacity:1,rotation:0,ease:u,force3D:"auto"}),0)):k.add(punchgs.TweenLite.from(ga,da,{left:$,top:_,scale:ca,opacity:aa,rotation:l.rotate,ease:u,force3D:"auto"}),0),4!=r&&5!=r||(X=0,Y=0),1!=r)switch(a){case 12:k.add(punchgs.TweenLite.to(ha,ea,{left:0-X+"px",force3D:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0);break;case 15:k.add(punchgs.TweenLite.to(ha,ea,{left:X+"px",force3D:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0);break;case 13:k.add(punchgs.TweenLite.to(ha,ea,{top:0-Y+"px",force3D:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0);break;case 14:k.add(punchgs.TweenLite.to(ha,ea,{top:Y+"px",force3D:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0)}}if(16==a){var A=new punchgs.TimelineLite;k.add(punchgs.TweenLite.set(h,{position:"absolute","z-index":20}),0),k.add(punchgs.TweenLite.set(g,{position:"absolute","z-index":15}),0),h.wrapInner('
    '),h.find(".tp-half-one").clone(!0).appendTo(h).addClass("tp-half-two"),h.find(".tp-half-two").removeClass("tp-half-one");var X=l.width,Y=l.height;"on"==l.autoHeight&&(Y=c.height()),h.find(".tp-half-one .defaultimg").wrap('
    '),h.find(".tp-half-two .defaultimg").wrap('
    '),h.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),h.find(".tp-half-two .tp-caption").wrapAll('
    '),k.add(punchgs.TweenLite.set(h.find(".tp-half-two"),{width:X,height:Y,overflow:"hidden",zIndex:15,position:"absolute",top:Y/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),k.add(punchgs.TweenLite.set(h.find(".tp-half-one"),{width:X,height:Y/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var ja=(h.find(".defaultimg"),Math.round(20*Math.random()-10)),ka=Math.round(20*Math.random()-10),la=Math.round(20*Math.random()-10),ma=.4*Math.random()-.2,na=.4*Math.random()-.2,oa=1*Math.random()+1,pa=1*Math.random()+1,qa=.3*Math.random()+.3;k.add(punchgs.TweenLite.set(h.find(".tp-half-one"),{overflow:"hidden"}),0),k.add(punchgs.TweenLite.fromTo(h.find(".tp-half-one"),t/800,{width:X,height:Y/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:oa,rotation:ja,y:0-Y-Y/4,autoAlpha:0,ease:u}),0),k.add(punchgs.TweenLite.fromTo(h.find(".tp-half-two"),t/800,{width:X,height:Y,overflow:"hidden",position:"absolute",top:Y/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:pa,rotation:ka,y:Y+Y/4,ease:u,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(h,{position:"absolute","z-index":15}),punchgs.TweenLite.set(g,{position:"absolute","z-index":20}),h.find(".tp-half-one").length>0&&(h.find(".tp-half-one .defaultimg").unwrap(),h.find(".tp-half-one .slotholder").unwrap()),h.find(".tp-half-two").remove()}}),0),A.add(punchgs.TweenLite.set(i.find(".defaultimg"),{autoAlpha:1}),0),null!=h.html()&&k.add(punchgs.TweenLite.fromTo(g,(t-200)/1e3,{scale:qa,x:l.width/4*ma,y:Y/4*na,rotation:la,force3D:"auto",transformOrigin:"center center",ease:v},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0),k.add(A,0)}if(17==a&&i.find(".slotslide").each(function(a){var b=jQuery(this);k.add(punchgs.TweenLite.fromTo(b,t/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:u,delay:.06*a}),0)}),18==a&&i.find(".slotslide").each(function(a){var b=jQuery(this);k.add(punchgs.TweenLite.fromTo(b,t/500,{autoAlpha:0,rotationY:110,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:u,delay:.06*a}),0)}),19==a||22==a){var A=new punchgs.TimelineLite;k.add(punchgs.TweenLite.set(h,{zIndex:20}),0),k.add(punchgs.TweenLite.set(g,{zIndex:20}),0),setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var ra=90,aa=1,sa="center center ";1==o&&(ra=-90),19==a?(sa=sa+"-"+l.height/2,aa=0):sa+=l.height/2,punchgs.TweenLite.set(c,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),i.find(".slotslide").each(function(a){var b=jQuery(this);A.add(punchgs.TweenLite.fromTo(b,t/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:l.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:sa,rotationX:ra},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:50*a/1e3,ease:u}),0),A.add(punchgs.TweenLite.to(b,.1,{autoAlpha:1,delay:50*a/1e3}),0),k.add(A)}),j.find(".slotslide").each(function(a){var b=jQuery(this),c=-90;1==o&&(c=90),A.add(punchgs.TweenLite.fromTo(b,t/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:sa,rotationX:0},{autoAlpha:1,rotationY:l.rotate,top:0,z:10,scale:1,rotationX:c,delay:50*a/1e3,force3D:"auto",ease:v}),0),k.add(A)}),k.add(punchgs.TweenLite.set(h,{zIndex:18}),0)}if(20==a){if(setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100),1==o)var ta=-l.width,ra=80,sa="20% 70% -"+l.height/2;else var ta=l.width,ra=-80,sa="80% 70% -"+l.height/2;i.find(".slotslide").each(function(a){var b=jQuery(this),c=50*a/1e3;k.add(punchgs.TweenLite.fromTo(b,t/1e3,{left:ta,rotationX:40,z:-600,opacity:aa,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:sa,transformStyle:"flat",rotationY:ra},{left:0,rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:c,ease:u}),0)}),j.find(".slotslide").each(function(a){var b=jQuery(this),c=50*a/1e3;if(c=a>0?c+t/9e3:0,1!=o)var d=-l.width/2,e=30,f="20% 70% -"+l.height/2;else var d=l.width/2,e=-30,f="80% 70% -"+l.height/2;v=punchgs.Power2.easeInOut,k.add(punchgs.TweenLite.fromTo(b,t/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:f,transformStyle:"flat",rotationY:0},{opacity:1,rotationX:20,top:0,z:-600,left:d,force3D:"auto",rotationY:e,delay:c,ease:v}),0)})}if(21==a||25==a){setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var ra=90,ta=-l.width,ua=-ra;if(1==o)if(25==a){var sa="center top 0";ra=l.rotate}else{var sa="left center 0";ua=l.rotate}else if(ta=l.width,ra=-90,25==a){var sa="center bottom 0";ua=-ra,ra=l.rotate}else{var sa="right center 0";ua=l.rotate}i.find(".slotslide").each(function(a){var b=jQuery(this),c=t/1.5/3;k.add(punchgs.TweenLite.fromTo(b,2*c/1e3,{left:0,transformStyle:"flat",rotationX:ua,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:sa,rotationY:ra},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",delay:c/1e3,ease:u}),0)}),1!=o?(ta=-l.width,ra=90,25==a?(sa="center top 0",ua=-ra,ra=l.rotate):(sa="left center 0",ua=l.rotate)):(ta=l.width,ra=-90,25==a?(sa="center bottom 0",ua=-ra,ra=l.rotate):(sa="right center 0",ua=l.rotate)),j.find(".slotslide").each(function(a){var b=jQuery(this);k.add(punchgs.TweenLite.fromTo(b,t/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:sa,rotationY:0},{left:0,rotationX:ua,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:ra,ease:v}),0)})}if(23==a||24==a){setTimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var ra=-90,aa=1,va=0;if(1==o&&(ra=90),23==a){var sa="center center -"+l.width/2;aa=0}else var sa="center center "+l.width/2;punchgs.TweenLite.set(c,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),i.find(".slotslide").each(function(a){var b=jQuery(this);k.add(punchgs.TweenLite.fromTo(b,t/1e3,{left:va,rotationX:l.rotate,force3D:"auto",opacity:aa,top:0,scale:1,transformPerspective:1200,transformOrigin:sa,rotationY:ra},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*a/500,ease:u}),0)}),ra=90,1==o&&(ra=-90),j.find(".slotslide").each(function(b){var c=jQuery(this);k.add(punchgs.TweenLite.fromTo(c,t/1e3,{left:0,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformStyle:"flat",transformPerspective:1200,transformOrigin:sa,rotationY:0},{left:va,rotationX:l.rotate,top:0,scale:1,rotationY:ra,delay:50*b/500,ease:v}),0),23==a&&k.add(punchgs.TweenLite.fromTo(c,t/2e3,{autoAlpha:1},{autoAlpha:0,delay:50*b/500+t/3e3,ease:v}),0)})}return k}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.video.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.video.min.js new file mode 100644 index 0000000..211a036 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/revolution.extension.video.min.js @@ -0,0 +1,7 @@ +/******************************************** + * REVOLUTION 5.2.5.1 EXTENSION - VIDEO FUNCTIONS + * @version: 2.0.2 (25.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +!function(a){"use strict";function e(a){return void 0==a?-1:jQuery.isNumeric(a)?a:a.split(":").length>1?60*parseInt(a.split(":")[0],0)+parseInt(a.split(":")[1],0):a}var b=jQuery.fn.revolution,c=b.is_mobile(),d={alias:"Video Min JS",name:"revolution.extensions.video.min.js",min_core:"5.3",version:"2.0.2"};jQuery.extend(!0,b,{preLoadAudio:function(a,c){return"stop"!==b.compare_version(d).check&&void a.find(".tp-audiolayer").each(function(){var a=jQuery(this),d={};0===a.find("audio").length&&(d.src=void 0!=a.data("videomp4")?a.data("videomp4"):"",d.pre=a.data("videopreload")||"",void 0===a.attr("id")&&a.attr("audio-layer-"+Math.round(199999*Math.random())),d.id=a.attr("id"),d.status="prepared",d.start=jQuery.now(),d.waittime=1e3*a.data("videopreloadwait")||5e3,"auto"!=d.pre&&"canplaythrough"!=d.pre&&"canplay"!=d.pre&&"progress"!=d.pre||(void 0===c.audioqueue&&(c.audioqueue=[]),c.audioqueue.push(d),b.manageVideoLayer(a,c)))})},preLoadAudioDone:function(a,b,c){b.audioqueue&&b.audioqueue.length>0&&jQuery.each(b.audioqueue,function(b,d){a.data("videomp4")!==d.src||d.pre!==c&&"auto"!==d.pre||(d.status="loaded")})},resetVideo:function(a,d,f){var g=a.data();switch(g.videotype){case"youtube":g.player;try{if("on"==g.forcerewind){var i=e(a.data("videostartat")),j=i==-1,k=1===g.bgvideo||a.find(".tp-videoposter").length>0;i=i==-1?0:i,void 0!=g.player&&(0!==i&&!j||k)&&(g.player.seekTo(i),g.player.pauseVideo())}}catch(a){}0==a.find(".tp-videoposter").length&&1!==g.bgvideo&&f!==!0&&punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});break;case"vimeo":var l=$f(a.find("iframe").attr("id"));try{if("on"==g.forcerewind){var i=e(g.videostartat),j=i==-1,k=1===g.bgvideo||a.find(".tp-videoposter").length>0;i=i==-1?0:i,(0!==i&&!j||k)&&(l.api("seekTo",i),l.api("pause"))}}catch(a){}0==a.find(".tp-videoposter").length&&1!==g.bgvideo&&f!==!0&&punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});break;case"html5":if(c&&1==g.disablevideoonmobile)return!1;var n="html5"==g.audio?"audio":"video",o=a.find(n),p=o[0];if(punchgs.TweenLite.to(o,.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),"on"==g.forcerewind&&!a.hasClass("videoisplaying"))try{var i=e(g.videostartat);p.currentTime=i==-1?0:i}catch(a){}("mute"==g.volume||b.lastToggleState(a.videomutetoggledby)||d.globalmute===!0)&&(p.muted=!0)}},isVideoMuted:function(a,b){var c=!1,d=a.data();switch(d.videotype){case"youtube":try{var e=d.player;c=e.isMuted()}catch(a){}break;case"vimeo":try{$f(a.find("iframe").attr("id"));"mute"==d.volume&&(c=!0)}catch(a){}break;case"html5":var g="html5"==d.audio?"audio":"video",h=a.find(g),i=h[0];i.muted&&(c=!0)}return c},muteVideo:function(a,b){var c=a.data();switch(c.videotype){case"youtube":try{var d=c.player;d.mute()}catch(a){}break;case"vimeo":try{var e=$f(a.find("iframe").attr("id"));a.data("volume","mute"),e.api("setVolume",0)}catch(a){}break;case"html5":var f="html5"==c.audio?"audio":"video",g=a.find(f),h=g[0];h.muted=!0}},unMuteVideo:function(a,b){if(b.globalmute!==!0){var c=a.data();switch(c.videotype){case"youtube":try{var d=c.player;d.unMute()}catch(a){}break;case"vimeo":try{var e=$f(a.find("iframe").attr("id"));a.data("volume","1"),e.api("setVolume",1)}catch(a){}break;case"html5":var f="html5"==c.audio?"audio":"video",g=a.find(f),h=g[0];h.muted=!1}}},stopVideo:function(a,b){var c=a.data();switch(b.leaveViewPortBasedStop||(b.lastplayedvideos=[]),b.leaveViewPortBasedStop=!1,c.videotype){case"youtube":try{var d=c.player;if(2===d.getPlayerState()||5===d.getPlayerState())return;d.pauseVideo(),c.youtubepausecalled=!0,setTimeout(function(){c.youtubepausecalled=!1},80)}catch(a){console.log("Issue at YouTube Video Pause:"),console.log(a)}break;case"vimeo":try{var e=$f(a.find("iframe").attr("id"));e.api("pause"),c.vimeopausecalled=!0,setTimeout(function(){c.vimeopausecalled=!1},80)}catch(a){console.log("Issue at Vimeo Video Pause:"),console.log(a)}break;case"html5":var f="html5"==c.audio?"audio":"video",g=a.find(f),h=g[0];void 0!=g&&void 0!=h&&h.pause()}},playVideo:function(a,d){clearTimeout(a.data("videoplaywait"));var g=a.data();switch(g.videotype){case"youtube":if(0==a.find("iframe").length)a.append(a.data("videomarkup")),h(a,d,!0);else if(void 0!=g.player.playVideo){var i=e(a.data("videostartat")),j=g.player.getCurrentTime();1==a.data("nextslideatend-triggered")&&(j=-1,a.data("nextslideatend-triggered",0)),i!=-1&&i>j&&g.player.seekTo(i),g.youtubepausecalled!==!0&&g.player.playVideo()}else a.data("videoplaywait",setTimeout(function(){g.youtubepausecalled!==!0&&b.playVideo(a,d)},50));break;case"vimeo":if(0==a.find("iframe").length)a.append(a.data("videomarkup")),h(a,d,!0);else if(a.hasClass("rs-apiready")){var k=a.find("iframe").attr("id"),l=$f(k);void 0==l.api("play")?a.data("videoplaywait",setTimeout(function(){g.vimeopausecalled!==!0&&b.playVideo(a,d)},50)):setTimeout(function(){l.api("play");var b=e(a.data("videostartat")),c=a.data("currenttime");1==a.data("nextslideatend-triggered")&&(c=-1,a.data("nextslideatend-triggered",0)),b!=-1&&b>c&&l.api("seekTo",b)},510)}else a.data("videoplaywait",setTimeout(function(){g.vimeopausecalled!==!0&&b.playVideo(a,d)},50));break;case"html5":if(c&&1==a.data("disablevideoonmobile"))return!1;var m="html5"==g.audio?"audio":"video",n=a.find(m),o=n[0],p=n.parent();if(1!=p.data("metaloaded"))f(o,"loadedmetadata",function(a){b.resetVideo(a,d),o.play();var c=e(a.data("videostartat")),f=o.currentTime;1==a.data("nextslideatend-triggered")&&(f=-1,a.data("nextslideatend-triggered",0)),c!=-1&&c>f&&(o.currentTime=c)}(a));else{o.play();var i=e(a.data("videostartat")),j=o.currentTime;1==a.data("nextslideatend-triggered")&&(j=-1,a.data("nextslideatend-triggered",0)),i!=-1&&i>j&&(o.currentTime=i)}}},isVideoPlaying:function(a,b){var c=!1;return void 0!=b.playingvideos&&jQuery.each(b.playingvideos,function(b,d){a.attr("id")==d.attr("id")&&(c=!0)}),c},removeMediaFromList:function(a,b){m(a,b)},prepareCoveredVideo:function(a,c,d){var e=d.find("iframe, video"),f=a.split(":")[0],g=a.split(":")[1],h=d.closest(".tp-revslider-slidesli"),i=h.width()/h.height(),j=f/g,k=i/j*100,l=j/i*100;i>j?punchgs.TweenLite.to(e,.001,{height:k+"%",width:"100%",top:-(k-100)/2+"%",left:"0px",position:"absolute"}):punchgs.TweenLite.to(e,.001,{width:l+"%",height:"100%",left:-(l-100)/2+"%",top:"0px",position:"absolute"}),e.hasClass("resizelistener")||(e.addClass("resizelistener"),jQuery(window).resize(function(){clearTimeout(e.data("resizelistener")),e.data("resizelistener",setTimeout(function(){b.prepareCoveredVideo(a,c,d)},30))}))},checkVideoApis:function(a,b,c){"https:"===location.protocol?"https":"http";if((void 0!=a.data("ytid")||a.find("iframe").length>0&&a.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&(b.youtubeapineeded=!0),(void 0!=a.data("ytid")||a.find("iframe").length>0&&a.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&0==c.addedyt){b.youtubestarttime=jQuery.now(),c.addedyt=1;var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var f=document.getElementsByTagName("script")[0],g=!0;jQuery("head").find("*").each(function(){"https://www.youtube.com/iframe_api"==jQuery(this).attr("src")&&(g=!1)}),g&&f.parentNode.insertBefore(e,f)}if((void 0!=a.data("vimeoid")||a.find("iframe").length>0&&a.find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&(b.vimeoapineeded=!0),(void 0!=a.data("vimeoid")||a.find("iframe").length>0&&a.find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&0==c.addedvim){b.vimeostarttime=jQuery.now(),c.addedvim=1;var h=document.createElement("script"),f=document.getElementsByTagName("script")[0],g=!0;h.src="https://secure-a.vimeocdn.com/js/froogaloop2.min.js",jQuery("head").find("*").each(function(){"https://secure-a.vimeocdn.com/js/froogaloop2.min.js"==jQuery(this).attr("src")&&(g=!1)}),g&&f.parentNode.insertBefore(h,f)}return c},manageVideoLayer:function(a,g,i,j){if("stop"===b.compare_version(d).check)return!1;var l=a.data(),m=l.videoattributes,n=l.ytid,o=l.vimeoid,p="auto"===l.videopreload||"canplay"===l.videopreload||"canplaythrough"===l.videopreload||"progress"===l.videopreload?"auto":l.videopreload,q=l.videomp4,r=l.videowebm,s=l.videoogv,t=l.allowfullscreenvideo,u=l.videocontrols,v="http",w="loop"==l.videoloop?"loop":"loopandnoslidestop"==l.videoloop?"loop":"",x=void 0!=q||void 0!=r?"html5":void 0!=n&&String(n).length>1?"youtube":void 0!=o&&String(o).length>1?"vimeo":"none",y="html5"==l.audio?"audio":"video",z="html5"==x&&0==a.find(y).length?"html5":"youtube"==x&&0==a.find("iframe").length?"youtube":"vimeo"==x&&0==a.find("iframe").length?"vimeo":"none";switch(w=l.nextslideatend===!0?"":w,l.videotype=x,z){case"html5":"controls"!=u&&(u="");var y="video";"html5"==l.audio&&(y="audio",a.addClass("tp-audio-html5"));var A="<"+y+' style="object-fit:cover;background-size:cover;visible:hidden;width:100%; height:100%" '+w+' preload="'+p+'">';"auto"==p&&(g.mediapreload=!0),void 0!=r&&"firefox"==b.get_browser().toLowerCase()&&(A=A+''),void 0!=q&&(A=A+''),void 0!=s&&(A=A+''),A=A+"";var B="";"true"!==t&&t!==!0||(B='
    '),"controls"==u&&(A+='
    '+B+"
    "),a.data("videomarkup",A),a.append(A),(c&&1==a.data("disablevideoonmobile")||b.isIE(8))&&a.find(y).remove(),a.find(y).each(function(c){var d=this,e=jQuery(this);e.parent().hasClass("html5vid")||e.wrap('
    ');var h=e.parent();1!=h.data("metaloaded")&&f(d,"loadedmetadata",function(a){k(a,g),b.resetVideo(a,g)}(a))});break;case"youtube":v="https","none"==u&&(m=m.replace("controls=1","controls=0"),m.toLowerCase().indexOf("controls")==-1&&(m+="&controls=0")),l.videoinline!==!0&&"true"!==l.videoinline&&1!==l.videoinline||(m+="&playsinline=1");var C=e(a.data("videostartat")),D=e(a.data("videoendat"));C!=-1&&(m=m+"&start="+C),D!=-1&&(m=m+"&end="+D);var E=m.split("origin="+v+"://"),F="";E.length>1?(F=E[0]+"origin="+v+"://",self.location.href.match(/www/gi)&&!E[1].match(/www/gi)&&(F+="www."),F+=E[1]):F=m;var G="true"===t||t===!0?"allowfullscreen":"";a.data("videomarkup",'');break;case"vimeo":v="https",a.data("videomarkup",'')}var H=c&&"on"==a.data("noposteronmobile");if(void 0!=l.videoposter&&l.videoposter.length>2&&!H)0==a.find(".tp-videoposter").length&&a.append('
    '),0==a.find("iframe").length&&a.find(".tp-videoposter").click(function(){if(b.playVideo(a,g),c){if(1==a.data("disablevideoonmobile"))return!1;punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut})}});else{if(c&&1==a.data("disablevideoonmobile"))return!1;0!=a.find("iframe").length||"youtube"!=x&&"vimeo"!=x||(a.append(a.data("videomarkup")),h(a,g,!1))}"none"!=a.data("dottedoverlay")&&void 0!=a.data("dottedoverlay")&&1!=a.find(".tp-dottedoverlay").length&&a.append('
    '),a.addClass("HasListener"),1==a.data("bgvideo")&&punchgs.TweenLite.set(a.find("video, iframe"),{autoAlpha:0})}});var f=function(a,b,c){a.addEventListener?a.addEventListener(b,c,{capture:!1,passive:!0}):a.attachEvent(b,c,{capture:!1,passive:!0})},g=function(a,b,c){var d={};return d.video=a,d.videotype=b,d.settings=c,d},h=function(a,d,f){var h=a.data(),k=a.find("iframe"),n="iframe"+Math.round(1e5*Math.random()+1),o=h.videoloop,p="loopandnoslidestop"!=o;if(o="loop"==o||"loopandnoslidestop"==o,1==a.data("forcecover")){a.removeClass("fullscreenvideo").addClass("coverscreenvideo");var q=a.data("aspectratio");void 0!=q&&q.split(":").length>1&&b.prepareCoveredVideo(q,d,a)}if(1==a.data("bgvideo")){var q=a.data("aspectratio");void 0!=q&&q.split(":").length>1&&b.prepareCoveredVideo(q,d,a)}if(k.attr("id",n),f&&a.data("startvideonow",!0),1!==a.data("videolistenerexist"))switch(h.videotype){case"youtube":var r=new YT.Player(n,{events:{onStateChange:function(c){var f=a.closest(".tp-simpleresponsive"),q=(h.videorate,a.data("videostart"),j());if(c.data==YT.PlayerState.PLAYING)punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),"mute"==a.data("volume")||b.lastToggleState(a.data("videomutetoggledby"))||d.globalmute===!0?r.mute():(r.unMute(),r.setVolume(parseInt(a.data("volume"),0)||75)),d.videoplaying=!0,l(a,d),p?d.c.trigger("stoptimer"):d.videoplaying=!1,d.c.trigger("revolution.slide.onvideoplay",g(r,"youtube",a.data())),b.toggleState(h.videotoggledby);else{if(0==c.data&&o){var s=e(a.data("videostartat"));s!=-1&&r.seekTo(s),r.playVideo(),b.toggleState(h.videotoggledby)}!q&&(0==c.data||2==c.data)&&"on"==a.data("showcoveronpause")&&a.find(".tp-videoposter").length>0&&(punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut})),c.data!=-1&&3!=c.data&&(d.videoplaying=!1,d.tonpause=!1,m(a,d),f.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(r,"youtube",a.data())),void 0!=d.currentLayerVideoIsPlaying&&d.currentLayerVideoIsPlaying.attr("id")!=a.attr("id")||b.unToggleState(h.videotoggledby)),0==c.data&&1==a.data("nextslideatend")?(i(),a.data("nextslideatend-triggered",1),d.c.revnext(),m(a,d)):(m(a,d),d.videoplaying=!1,f.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(r,"youtube",a.data())),void 0!=d.currentLayerVideoIsPlaying&&d.currentLayerVideoIsPlaying.attr("id")!=a.attr("id")||b.unToggleState(h.videotoggledby))}},onReady:function(b){var d=h.videorate;a.data("videostart");if(a.addClass("rs-apiready"),void 0!=d&&b.target.setPlaybackRate(parseFloat(d)),a.find(".tp-videoposter").unbind("click"),a.find(".tp-videoposter").click(function(){c||r.playVideo()}),a.data("startvideonow")){h.player.playVideo();var g=e(a.data("videostartat"));g!=-1&&h.player.seekTo(g)}a.data("videolistenerexist",1)}}});a.data("player",r);break;case"vimeo":for(var w,s=k.attr("src"),t={},u=s,v=/([^&=]+)=([^&]*)/g;w=v.exec(u);)t[decodeURIComponent(w[1])]=decodeURIComponent(w[2]);s=void 0!=t.player_id?s.replace(t.player_id,n):s+"&player_id="+n;try{s=s.replace("api=0","api=1")}catch(a){}s+="&api=1",k.attr("src",s);var r=a.find("iframe")[0],y=(jQuery("#"+n),$f(n));y.addEvent("ready",function(){if(a.addClass("rs-apiready"),y.addEvent("play",function(c){a.data("nextslidecalled",0),punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),d.c.trigger("revolution.slide.onvideoplay",g(y,"vimeo",a.data())),d.videoplaying=!0,l(a,d),p?d.c.trigger("stoptimer"):d.videoplaying=!1,"mute"==a.data("volume")||b.lastToggleState(a.data("videomutetoggledby"))||d.globalmute===!0?y.api("setVolume","0"):y.api("setVolume",parseInt(a.data("volume"),0)/100||.75),b.toggleState(h.videotoggledby)}),y.addEvent("playProgress",function(b){var c=e(a.data("videoendat"));if(a.data("currenttime",b.seconds),0!=c&&Math.abs(c-b.seconds)<.3&&c>b.seconds&&1!=a.data("nextslidecalled"))if(o){y.api("play");var f=e(a.data("videostartat"));f!=-1&&y.api("seekTo",f)}else 1==a.data("nextslideatend")&&(a.data("nextslideatend-triggered",1),a.data("nextslidecalled",1),d.c.revnext()),y.api("pause")}),y.addEvent("finish",function(c){m(a,d),d.videoplaying=!1,d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(y,"vimeo",a.data())),1==a.data("nextslideatend")&&(a.data("nextslideatend-triggered",1),d.c.revnext()),void 0!=d.currentLayerVideoIsPlaying&&d.currentLayerVideoIsPlaying.attr("id")!=a.attr("id")||b.unToggleState(h.videotoggledby)}),y.addEvent("pause",function(c){a.find(".tp-videoposter").length>0&&"on"==a.data("showcoveronpause")&&(punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find("iframe"),.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut})),d.videoplaying=!1,d.tonpause=!1,m(a,d),d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(y,"vimeo",a.data())),void 0!=d.currentLayerVideoIsPlaying&&d.currentLayerVideoIsPlaying.attr("id")!=a.attr("id")||b.unToggleState(h.videotoggledby)}),a.find(".tp-videoposter").unbind("click"),a.find(".tp-videoposter").click(function(){if(!c)return y.api("play"),!1}),a.data("startvideonow")){y.api("play");var f=e(a.data("videostartat"));f!=-1&&y.api("seekTo",f)}a.data("videolistenerexist",1)})}else{var z=e(a.data("videostartat"));switch(h.videotype){case"youtube":f&&(h.player.playVideo(),z!=-1&&h.player.seekTo());break;case"vimeo":if(f){var y=$f(a.find("iframe").attr("id"));y.api("play"),z!=-1&&y.api("seekTo",z)}}}},i=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},j=function(){try{if(void 0!==window.fullScreen)return window.fullScreen;var a=5;return jQuery.browser.webkit&&/Apple Computer/.test(navigator.vendor)&&(a=42),screen.width==window.innerWidth&&Math.abs(screen.height-window.innerHeight) 
    '),a.find("video, .tp-poster, .tp-video-play-button").click(function(){a.hasClass("videoisplaying")?p.pause():p.play()})),1==a.data("forcecover")||a.hasClass("fullscreenvideo")||1==a.data("bgvideo"))if(1==a.data("forcecover")||1==a.data("bgvideo")){q.addClass("fullcoveredvideo");var t=a.data("aspectratio")||"4:3";b.prepareCoveredVideo(t,d,a)}else q.addClass("fullscreenvideo");var u=a.find(".tp-vid-play-pause")[0],v=a.find(".tp-vid-mute")[0],w=a.find(".tp-vid-full-screen")[0],x=a.find(".tp-seek-bar")[0],y=a.find(".tp-volume-bar")[0];void 0!=u&&f(u,"click",function(){1==p.paused?p.play():p.pause()}),void 0!=v&&f(v,"click",function(){0==p.muted?(p.muted=!0,v.innerHTML="Unmute"):(p.muted=!1,v.innerHTML="Mute")}),void 0!=w&&w&&f(w,"click",function(){p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullscreen&&p.webkitRequestFullscreen()}),void 0!=x&&(f(x,"change",function(){var a=p.duration*(x.value/100);p.currentTime=a}),f(x,"mousedown",function(){a.addClass("seekbardragged"),p.pause()}),f(x,"mouseup",function(){a.removeClass("seekbardragged"),p.play()})),f(p,"canplaythrough",function(){b.preLoadAudioDone(a,d,"canplaythrough")}),f(p,"canplay",function(){b.preLoadAudioDone(a,d,"canplay")}),f(p,"progress",function(){b.preLoadAudioDone(a,d,"progress")}),f(p,"timeupdate",function(){var b=100/p.duration*p.currentTime,c=e(a.data("videoendat")),f=p.currentTime;if(void 0!=x&&(x.value=b),0!=c&&c!=-1&&Math.abs(c-f)<=.3&&c>f&&1!=a.data("nextslidecalled"))if(r){p.play();var g=e(a.data("videostartat"));g!=-1&&(p.currentTime=g)}else 1==a.data("nextslideatend")&&(a.data("nextslideatend-triggered",1),a.data("nextslidecalled",1),d.just_called_nextslide_at_htmltimer=!0,d.c.revnext(),setTimeout(function(){d.just_called_nextslide_at_htmltimer=!1},1e3)),p.pause()}),void 0!=y&&f(y,"change",function(){p.volume=y.value}),f(p,"play",function(){a.data("nextslidecalled",0);var c=a.data("volume");c=void 0!=c&&"mute"!=c?parseFloat(c)/100:c,d.globalmute===!0?p.muted=!0:p.muted=!1,c>1&&(c/=100),"mute"==c?p.muted=!0:void 0!=c&&(p.volume=c),a.addClass("videoisplaying");var e="html5"==k.audio?"audio":"video";l(a,d),s&&"audio"!=e?(d.videoplaying=!0,d.c.trigger("stoptimer"),d.c.trigger("revolution.slide.onvideoplay",g(p,"html5",k))):(d.videoplaying=!1,"audio"!=e&&d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(p,"html5",k))),punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find(e),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});var f=a.find(".tp-vid-play-pause")[0],h=a.find(".tp-vid-mute")[0];void 0!=f&&(f.innerHTML="Pause"),void 0!=h&&p.muted&&(h.innerHTML="Unmute"),b.toggleState(k.videotoggledby)}),f(p,"pause",function(){var c="html5"==k.audio?"audio":"video",e=j();!e&&a.find(".tp-videoposter").length>0&&"on"==a.data("showcoveronpause")&&!a.hasClass("seekbardragged")&&(punchgs.TweenLite.to(a.find(".tp-videoposter"),.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(a.find(c),.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut})),a.removeClass("videoisplaying"),d.videoplaying=!1,m(a,d),"audio"!=c&&d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(p,"html5",a.data()));var f=a.find(".tp-vid-play-pause")[0];void 0!=f&&(f.innerHTML="Play"),void 0!=d.currentLayerVideoIsPlaying&&d.currentLayerVideoIsPlaying.attr("id")!=a.attr("id")||b.unToggleState(k.videotoggledby)}),f(p,"ended",function(){i(),m(a,d),d.videoplaying=!1,m(a,d),"audio"!=n&&d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",g(p,"html5",a.data())),a.data("nextslideatend")===!0&&p.currentTime>0&&(1==!d.just_called_nextslide_at_htmltimer&&(a.data("nextslideatend-triggered",1),d.c.revnext(),d.just_called_nextslide_at_htmltimer=!0),setTimeout(function(){d.just_called_nextslide_at_htmltimer=!1},1500)),a.removeClass("videoisplaying")})},l=function(a,c){void 0==c.playingvideos&&(c.playingvideos=new Array),a.data("stopallvideos")&&void 0!=c.playingvideos&&c.playingvideos.length>0&&(c.lastplayedvideos=jQuery.extend(!0,[],c.playingvideos),jQuery.each(c.playingvideos,function(a,d){b.stopVideo(d,c)})),c.playingvideos.push(a),c.currentLayerVideoIsPlaying=a},m=function(a,b){void 0!=b.playingvideos&&jQuery.inArray(a,b.playingvideos)>=0&&b.playingvideos.splice(jQuery.inArray(a,b.playingvideos),1)}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/index.php b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.actions.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.actions.js new file mode 100644 index 0000000..3bfee5c --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.actions.js @@ -0,0 +1,372 @@ +/******************************************** + * REVOLUTION 5.3 EXTENSION - ACTIONS + * @version: 2.0.4 (24.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +(function($) { +"use strict"; +var _R = jQuery.fn.revolution, + _ISM = _R.is_mobile(), + extension = { alias:"Actions Min JS", + name:"revolution.extensions.actions.min.js", + min_core: "5.3", + version:"2.0.4" + }; + + +/////////////////////////////////////////// +// EXTENDED FUNCTIONS AVAILABLE GLOBAL // +/////////////////////////////////////////// +jQuery.extend(true,_R, { + checkActions : function(_nc,opt,as) { + + if (_R.compare_version(extension).check==="stop") return false; + + 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("tp-withaction"); + + // 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); + + + // NO NEED EXTRA TOGGLE CLASS HANDLING + if (jQuery.inArray(a.action,["toggleslider","toggle_mute_video","toggle_global_mute_video","togglefullscreen"])!=-1) { + _nc.data('togglelisteners',true); + } + + // 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); + _tnc.data('triggered_startstatus',a.layerstatus); + + }); + 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 "toggle_global_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() { + + if (a.event==="click" && _nc.hasClass("tp-temporarydisabled")) return false; + 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) { + var _ = tnc.data(); + if (a.action=="startlayer" || (a.action=="togglelayer" && tnc.data('animdirection')!="in")) { + _.animdirection= "in"; + _.triggerstate = "on"; + _R.toggleState(_.layertoggledby); + + if (_R.playAnimationFrame) { + clearTimeout(_.triggerdelay); + _.triggerdelay = setTimeout(function() { + _R.playAnimationFrame({caption:tnc,opt:opt,frame:"frame_0", triggerdirection:"in", triggerframein:"frame_0", triggerframeout:"frame_999"}); + },(a.delay*1000)); + } + } else + + if (a.action=="stoplayer" || (a.action=="togglelayer" && tnc.data('animdirection')!="out")) { + _.animdirection= "out"; + _.triggered= true; + _.triggerstate = "off"; + if (_R.stopVideo) _R.stopVideo(tnc,opt); + _R.unToggleState(_.layertoggledby); + if (_R.endMoveCaption) { + clearTimeout(_.triggerdelay); + _.triggerdelay = setTimeout(function() { + _R.playAnimationFrame({caption:tnc,opt:opt,frame:"frame_999", triggerdirection:"out", triggerframein:"frame_0", triggerframeout:"frame_999"}); + },(a.delay*1000)); + } + } + } + } else { + + if (_ISM && (a.action=='playvideo' || a.action=='stopvideo' || a.action=='togglevideo' || a.action=='mutevideo' || a.action=='unmutevideo' || a.action=='toggle_mute_video' || a.action=='toggle_global_mute_video')) { + actionSwitches(tnc,opt,a,_nc); + } else { + a.delay = a.delay === "NaN" || a.delay ===NaN ? 0 : a.delay; + 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), + d = tnc.data(); + + if (tnc.length>0 && d!==undefined && ((d.frames!==undefined && d.frames[0].delay!="bytrigger") || (d.frames===undefined && d.start!=="bytrigger"))) { + d.triggerstate="on"; + //d.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.c,1); + break; + case "previous": + case "prev": + case "-1": + opt.sc_indicator="arrow"; + _R.callingNewSlide(opt.c,-1); + break; + default: + var ts = jQuery.isNumeric(a.slide) ? parseInt(a.slide,0) : a.slide; + _R.callingNewSlide(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(); + opt.forcepause_viatoggle = true; + _R.unToggleState(opt.slidertoggledby); + } + else { + opt.forcepause_viatoggle = false; + 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 "toggle_global_mute_video": + if (opt.globalmute === true) { + opt.globalmute = false; + if (opt.playingvideos != undefined && opt.playingvideos.length>0) { + jQuery.each(opt.playingvideos,function(i,_nc) { + if (_R.unMuteVideo) _R.unMuteVideo(_nc,opt); + }); + } + + } else { + opt.globalmute = true; + if (opt.playingvideos != undefined && opt.playingvideos.length>0) { + jQuery.each(opt.playingvideos,function(i,_nc) { + if (_R.muteVideo) _R.muteVideo(_nc,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('
    '); + 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:'#fff'}); + 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; + default: + var obj = {}; + obj.event = a; + obj.layer = _nc; + opt.c.trigger('layeraction',[obj]); + break; + } +} + +var getOffContH = function(c) { + if (c==undefined) return 0; + if (c.split(',').length>1) { + var oc = c.split(","), + 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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.carousel.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.carousel.js new file mode 100644 index 0000000..5a59bfb --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.carousel.js @@ -0,0 +1,365 @@ +/******************************************** + * REVOLUTION 5.0 EXTENSION - CAROUSEL + * @version: 1.2.1 (18.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +(function($) { +"use strict"; +var _R = jQuery.fn.revolution, + extension = { alias:"Carousel Min JS", + name:"revolution.extensions.carousel.min.js", + min_core: "5.3.0", + version:"1.2.1" + }; + + /////////////////////////////////////////// + // EXTENDED FUNCTIONS AVAILABLE GLOBAL // + /////////////////////////////////////////// +jQuery.extend(true,_R, { + + // CALCULATE CAROUSEL POSITIONS + prepareCarousel : function(opt,a,direction,speed) { + + if (_R.compare_version(extension).check==="stop") return false; + + direction = opt.carousel.lastdirection = dircheck(direction,opt.carousel.lastdirection); + + setCarouselDefaults(opt); + + opt.carousel.slide_offset_target = getActiveCarouselOffset(opt); + + if (speed!==undefined) { + animateCarousel(opt,direction,false,0); + } else { + 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" ? opt.width : 0; + + + for (var i=0;i_.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)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)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,speed) { + + var _ = opt.carousel; + direction = _.lastdirection = dircheck(direction,_.lastdirection); + + var animobj = new Object(), + _ease = nsae ? punchgs.Power2.easeOut : _.easing; + + animobj.from = 0; + animobj.to = _.slide_offset_target; + speed = speed===undefined ? _.speed/1000 : speed; + speed = nsae ? 0.4 : speed; + + + if (_.positionanim!==undefined) + _.positionanim.pause(); + _.positionanim = punchgs.TweenLite.to(animobj,speed,{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.c,li.data('index')); + }, ease:_ease}); +} + + +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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.kenburn.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.kenburn.js new file mode 100644 index 0000000..356ddf8 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.kenburn.js @@ -0,0 +1,186 @@ +/******************************************** + * REVOLUTION 5.0 EXTENSION - KEN BURN + * @version: 1.2 (2.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ + +(function($) { +"use strict"; +var _R = jQuery.fn.revolution, + extension = { alias:"KenBurns Min JS", + name:"revolution.extensions.kenburn.min.js", + min_core: "5.0", + version:"1.2.0" + }; + +/////////////////////////////////////////// +// EXTENDED FUNCTIONS AVAILABLE GLOBAL // +/////////////////////////////////////////// +jQuery.extend(true,_R, { + + stopKenBurn : function(l) { + if (_R.compare_version(extension).check==="stop") return false; + + if (l.data('kbtl')!=undefined) + l.data('kbtl').pause(); + }, + + startKenBurn : function(l,opt,prgs) { + + if (_R.compare_version(extension).check==="stop") return false; + + 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('
    '); + 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.offsetstart != 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.height0 ? 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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.layeranimation.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.layeranimation.js new file mode 100644 index 0000000..b868b1b --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.layeranimation.js @@ -0,0 +1,2201 @@ +/************************************************ + * REVOLUTION 5.3 EXTENSION - LAYER ANIMATION + * @version: 3.4.4 (30.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +************************************************/ +(function($) { + "use strict"; + +var _R = jQuery.fn.revolution, + _ISM = _R.is_mobile(), + extension = { alias:"LayerAnimation Min JS", + name:"revolution.extensions.layeranimation.min.js", + min_core: "5.3.0", + version:"3.4.4" + }; + + +/////////////////////////////////////////// +// EXTENDED FUNCTIONS AVAILABLE GLOBAL // +/////////////////////////////////////////// +jQuery.extend(true,_R, { + + updateMarkup : function(layer,o) { + + var d = jQuery(layer).data(); + if (d.start!==undefined && !d.frames_added && d.frames===undefined) { + var frames = new Array(), + oin = getAnimDatas(newAnimObject(),d.transform_in,undefined, false), + oout = getAnimDatas(newAnimObject(),d.transform_out,undefined, false), + oh = getAnimDatas(newAnimObject(),d.transform_hover,undefined, false); + + if (jQuery.isNumeric(d.end) && jQuery.isNumeric(d.start) && jQuery.isNumeric(oin.speed)) { + d.end = (parseInt(d.end,0) - (parseInt(d.start,0)+parseFloat(oin.speed,0))); + } + + frames.push({frame:"0", delay:d.start, from:d.transform_in, to:d.transform_idle, split:d.splitin, speed:oin.speed, ease:oin.anim.ease, mask:d.mask_in, splitdelay:d.elementdelay}); + frames.push({frame:"5", delay:d.end, to:d.transform_out, split:d.splitout, speed:oout.speed, ease:oout.anim.ease, mask:d.mask_out, splitdelay:d.elementdelay}); + if (d.transform_hover) + frames.push({frame:"hover", to:d.transform_hover, style:d.style_hover, speed:oh.speed, ease:oh.anim.ease, splitdelay:d.elementdelay}); + d.frames = frames; + //layer.frames_added = true; + } + + if (!d.frames_added) { + d.inframeindex = 0; + d.outframeindex = -1; + d.hoverframeindex = -1; + if (d.frames!==undefined) { + for (var i=0;i
    '); + var hg = nextli.find('.helpgrid'); + hg.append('
    Zoom:'+(Math.round(opt.bw*100))+'%     Device Level:'+opt.curWinRange+'    Grid Preset:'+opt.gridwidth[opt.curWinRange]+'x'+opt.gridheight[opt.curWinRange]+'
    ') + opt.c.append('
    ') + hg.append('
    '); + } + + // PREPARE THE LAYERS + if (index!==undefined && opt.layers[index]) + jQuery.each(opt.layers[index], function(i,a) { + var _t = jQuery(this); + _R.updateMarkup(this,opt); + _R.prepareSingleCaption({caption:_t, opt:opt, offsetx:base_offsetx, offsety:base_offsety, index:i, recall:recall, preset:preset}); + if (!preset || startSlideAnimAt===0) _R.buildFullTimeLine({caption:_t, opt:opt, offsetx:base_offsetx, offsety:base_offsety, index:i, recall:recall, preset:preset, regenerate: startSlideAnimAt===0}); + + if (recall && opt.sliderType==="carousel" && opt.carousel.showLayersAllTime==="on") _R.animcompleted(_t,opt); + }); + + if (opt.layers["static"]) + jQuery.each(opt.layers["static"], function(i,a) { + var _t = jQuery(this), + _ = _t.data(); + + if (_.hoveredstatus!==true && _.inhoveroutanimation!==true) { + _R.updateMarkup(this,opt); + _R.prepareSingleCaption({caption:_t, opt:opt, offsetx:base_offsetx, offsety:base_offsety, index:i, recall:recall, preset:preset}); + if (!preset || startSlideAnimAt===0) _R.buildFullTimeLine({caption:_t, opt:opt, offsetx:base_offsetx, offsety:base_offsety, index:i, recall:recall, preset:preset, regenerate: startSlideAnimAt===0}); + if (recall && opt.sliderType==="carousel" && opt.carousel.showLayersAllTime==="on") _R.animcompleted(_t,opt); + } + }); + + + // RECALCULATE HEIGHTS OF SLIDE IF ROW EXIST + var _actli = opt.nextSlide === -1 || opt.nextSlide===undefined ? 0 : opt.nextSlide; + _actli = _actli>opt.rowzones.length ? opt.rowzones.length : _actli; + if (opt.rowzones!=undefined && opt.rowzones.length>0 && opt.rowzones[_actli]!=undefined && _actli>=0 && _actli<=opt.rowzones.length && opt.rowzones[_actli].length>0) + _R.setSize(opt); + + + // RESTART ANIMATION TIMELINES + + if (!preset) + if (startSlideAnimAt!==undefined) { + if (index!==undefined) + jQuery.each(opt.timelines[index].layers,function(key,o) { + var _ = o.layer.data(); + if (o.wrapper==="none" || o.wrapper===undefined) { + if (o.triggerstate=="keep" && _.triggerstate==="on") + _R.playAnimationFrame({caption:o.layer,opt:opt,frame:"frame_0", triggerdirection:"in", triggerframein:"frame_0", triggerframeout:"frame_999"}); + else + o.timeline.restart(0); + } + }); + if (opt.timelines.staticlayers) + jQuery.each(opt.timelines.staticlayers.layers,function(key,o) { + + var _ = o.layer.data(), + in_v_range = _actli>=o.firstslide && _actli<=o.lastslide, + in_uv_range = _actlio.lastslide, + flt = o.timeline.getLabelTime("slide_"+o.firstslide), + elt = o.timeline.getLabelTime("slide_"+o.lastslide), + ct = _.static_layer_timeline_time, + isvisible = _.animdirection==="in" ? true : _.animdirection==="out" ? false : undefined, + triggered_in = _.frames[0].delay==="bytrigger", + triggered_out = _.frames[_.frames.length-1].delay==="bytrigger", + layer_start_status = _.triggered_startstatus, + triggerstate = _.lasttriggerstate; + + if (_.hoveredstatus===true || _.inhoveroutanimation==true) return; + + /*console.log("-----------------------") + console.log("Show Static Layer Start") + console.log("-----------------------") + console.log(ct); + console.log(isvisible)*/ + + // LAYER ALREADY VISIBLE, TIMER IS NOT UNKNOW ANY MORE + if (ct!==undefined && isvisible) { + if (triggerstate=="keep") { + + _R.playAnimationFrame({caption:o.layer,opt:opt,frame:"frame_0", triggerdirection:"in", triggerframein:"frame_0", triggerframeout:"frame_999"}); + _.triggeredtimeline.time(ct); + } + else { + + if (_.hoveredstatus!==true) + o.timeline.time(ct); + } + } + + + + // RESET STATUS ALWAYS TO HIDDEN + if (triggerstate==="reset" && layer_start_status==="hidden") { + //console.log("Pre Path X"); + o.timeline.time(0); + _.animdirection = "out"; + } + + //console.log("in Range:"+in_v_range+" "+o.firstslide+" <= "+_actli+" <= "+o.lastslide); + // LAYER IS ON SLIDE TO SHOW, OR LAYER NEED TO DISAPPEAR + if (in_v_range) { + if (isvisible) { + //console.log("Path A"); + if (_actli===o.lastslide) { + //console.log("Path A.1"); + o.timeline.play(elt); + _.animdirection = "in"; + } + } else { + //console.log("Path B"); + //console.log(triggered_in+" "+_.animdirection) + if (!triggered_in && _.animdirection!=="in") { + //console.log("Path B.1") + o.timeline.play(flt); + } + if ((layer_start_status=="visible" && triggerstate!=="keep") || (triggerstate==="keep" && isvisible===true) || (layer_start_status=="visible" && isvisible===undefined)) { + //console.log("Path B.2"); + o.timeline.play(flt+0.01); + _.animdirection = "in"; + } + } + } else { + //console.log("Path C"); + if (in_uv_range) { + //console.log("Path C.1"); + if (isvisible) { + //console.log("Path C.1.1") + o.timeline.play("frame_999"); + } else { + //console.log("Path C.1.2") + } + } + } + + }); + + } + + + + // RESUME THE MAIN TIMELINE NOW + if (mtl != undefined) setTimeout(function() { + + mtl.resume(); + },30); + + + + + }, + + + + /******************************************** + PREPARE ALL LAYER SIZES, POSITION + ********************************************/ + prepareSingleCaption : function(obj) { + + var _nc = obj.caption, + _ = _nc.data(), + opt = obj.opt, + recall = obj.recall, + internrecall = obj.recall, + preset = obj.preset, + rtl = jQuery('body').hasClass("rtl"), + datas + + _._pw = _._pw===undefined ? _nc.closest('.tp-parallax-wrap') : _._pw; + _._lw = _._lw===undefined ? _nc.closest('.tp-loop-wrap') : _._lw; + _._mw = _._mw===undefined ? _nc.closest('.tp-mask-wrap') : _._mw; + + _._responsive = _.responsive || "on"; + _._respoffset = _.responsive_offset || "on"; + _._ba = _.basealign || "grid"; + _._gw = _._ba==="grid" ? opt.width : opt.ulw; + _._gh = _._ba==="grid" ? opt.height : opt.ulh; + + + _._lig = _._lig===undefined ? _nc.hasClass("rev_layer_in_group") ? _nc.closest('.rev_group') : _nc.hasClass("rev_layer_in_column") ?_nc.closest('.rev_column_inner') : _nc.hasClass("rev_column_inner") ? _nc.closest(".rev_row") : "none" : _._lig, + _._ingroup = _._ingroup===undefined ? !_nc.hasClass('rev_group') && _nc.closest('.rev_group') ? true : false :_._ingroup; + _._isgroup = _._isgroup===undefined ? _nc.hasClass("rev_group") ? true : false : _._isgroup; + _._nctype = _.type || "none"; + _._cbgc_auto = _._cbgc_auto===undefined ? _._nctype==="column" ? _._pw.find('.rev_column_bg_auto_sized') : false : _._cbgc_auto; + _._cbgc_man = _._cbgc_man===undefined ? _._nctype==="column" ? _._pw.find('.rev_column_bg_man_sized') : false : _._cbgc_man; + _._slideid = _._slideid || _nc.closest('.tp-revslider-slidesli').data('index'); + _._id = _._id===undefined ? _nc.data('id') || _nc.attr('id') : _._id; + _._slidelink = _._slidelink===undefined ? _nc.hasClass("slidelink")===undefined ? false : _nc.hasClass("slidelink") : _._slidelink; + + if (_._li===undefined) + if (_nc.hasClass("tp-static-layer")) { + _._isstatic = true; + _._li = _nc.closest('.tp-static-layers'); + _._slideid = "staticlayers"; + } else { + _._li = _nc.closest('.tp-revslider-slidesli'); + } + + _._row = _._row===undefined ? _._nctype==="column" ? _._pw.closest('.rev_row') : false : _._row; + + if (_._togglelisteners===undefined && _nc.find('.rs-toggled-content')) { + _._togglelisteners = true; + if (_.actions===undefined) _nc.click(function() {_R.swaptoggleState(_nc); }) + + } else { + _._togglelisteners = false; + } + + if (opt.sliderLayout=="fullscreen") + obj.offsety = _._gh/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2; + + if (opt.autoHeight=="on" || (opt.minHeight!=undefined && opt.minHeight>0)) + obj.offsety = opt.conh/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2;; + + if (obj.offsety<0) obj.offsety=0; + + // LAYER GRID FOR DEBUGGING + if (opt.debugMode) { + _nc.closest('li').find('.helpgrid').css({top:obj.offsety+"px", left:obj.offsetx+"px"}); + var linfo = opt.c.find('.hglayerinfo'); + _nc.on("hover, mouseenter",function() { + var ltxt = "", + spa = 0; + if (_nc.data()) + jQuery.each(_nc.data(),function(key,val) { + if (typeof val !== "object") { + + ltxt = ltxt + ''+key+":"+val+"    "; + + } + }); + linfo.html(ltxt); + }); + } + /* END OF DEBUGGING */ + + var handlecaption=0, + layervisible = _.visibility === undefined ? "oon" : makeArray(_.visibility,opt)[opt.forcedWinRange] || makeArray(_.visibility,opt) || "ooon"; + + // HIDE CAPTION IF RESOLUTION IS TOO LOW + if (layervisible==="off" || (_._gw0) { + var im = _nc.find('img'); + _.layertype = "image"; + if (im.width()==0) im.css({width:"auto"}); + if (im.height()==0) im.css({height:"auto"}); + if (im.data('ww') == undefined && im.width()>0) im.data('ww',im.width()); + if (im.data('hh') == undefined && im.height()>0) im.data('hh',im.height()); + + + var ww = im.data('ww'), + hh = im.data('hh'), + fuw = _._ba =="slide" ? opt.ulw : opt.gridwidth[opt.curWinRange], + fuh = _._ba =="slide" ? opt.ulh : opt.gridheight[opt.curWinRange]; + + ww = makeArray(im.data('ww'),opt)[opt.curWinRange] || makeArray(im.data('ww'),opt) || "auto", + hh = makeArray(im.data('hh'),opt)[opt.curWinRange] || makeArray(im.data('hh'),opt) || "auto"; + + + + var wful = ww==="full" || ww === "full-proportional", + hful = hh==="full" || hh === "full-proportional"; + + if (ww==="full-proportional") { + var ow = im.data('owidth'), + oh = im.data('oheight'); + if (ow/fuw < oh/fuh) { + ww = fuw; + hh = oh*(fuw/ow); + } else { + hh = fuh; + ww = ow*(fuh/oh); + } + } else { + + ww = wful ? fuw : !jQuery.isNumeric(ww) && ww.indexOf("%")>0 ? ww : parseFloat(ww); + hh = hful ? fuh : !jQuery.isNumeric(hh) && hh.indexOf("%")>0 ? hh : parseFloat(hh); + } + + ww = ww===undefined ? 0 : ww; + hh = hh===undefined ? 0 : hh; + + + if (_._responsive!=="off") { + if (_._ba!="grid" && wful) + if (jQuery.isNumeric(ww)) + im.css({width:ww+"px"}); + else + im.css({width:ww}); + else + if (jQuery.isNumeric(ww)) + im.css({width:(ww*opt.bw)+"px"}); + else + im.css({width:ww}); + + if (_._ba!="grid" && hful) + if (jQuery.isNumeric(hh)) + im.css({height:hh+"px"}); + else + im.css({height:hh}); + + else + if (jQuery.isNumeric(hh)) + im.css({height:(hh*opt.bh)+"px"}); + else + im.css({height:hh}); + + } else { + im.css({width:ww, height:hh}); + + } + + + if (_._ingroup) { + if (ww!==undefined && !jQuery.isNumeric(ww) && ww.indexOf("%")>0) + punchgs.TweenLite.set([_._lw,_._pw,_._mw],{minWidth:ww}); + + + if (hh!==undefined && !jQuery.isNumeric(hh) && hh.indexOf("%")>0) + punchgs.TweenLite.set([_._lw,_._pw,_._mw],{minHeight:hh}); + } + + + } + + + if (_._ba==="slide") { + obj.offsetx = 0; + obj.offsety=0; + } else + if (_._isstatic && opt.carousel!==undefined && opt.carousel.horizontal_align!==undefined) { + + switch (opt.carousel.horizontal_align) { + case "center": + obj.offsetx = 0 + (opt.ulw - opt.gridwidth[opt.curWinRange])/2; + + break; + case "left": + break; + case "right": + obj.offsetx = (opt.ulw - opt.gridwidth[opt.curWinRange]); + break; + } + obj.offsetx = obj.offsetx<0 ? 0 : obj.offsetx; + + } + + + + var tag = _.audio=="html5" ? "audio" : "video"; + + // IF IT IS A VIDEO LAYER + if (_nc.hasClass("tp-videolayer") || _nc.hasClass("tp-audiolayer") || _nc.find('iframe').length>0 || _nc.find(tag).length>0) { + + _.layertype = "video"; + if (_R.manageVideoLayer) _R.manageVideoLayer(_nc,opt,recall,internrecall); + if (!recall && !internrecall) { + var t = _.videotype; + if (_R.resetVideo) _R.resetVideo(_nc,opt,obj.preset); + } + + var asprat = _.aspectratio; + if (asprat!=undefined && asprat.split(":").length>1) + _R.prepareCoveredVideo(asprat,opt,_nc); + + var im = _nc.find('iframe') ? _nc.find('iframe') : im = _nc.find(tag), + html5vid = _nc.find('iframe') ? false : true, + yvcover = _nc.hasClass('coverscreenvideo'); + + im.css({display:"block"}); + + // SET WIDTH / HEIGHT + if (_nc.data('videowidth') == undefined) { + _nc.data('videowidth',im.width()); + _nc.data('videoheight',im.height()); + } + var ww = makeArray(_nc.data('videowidth'),opt)[opt.curWinRange] || makeArray(_nc.data('videowidth'),opt) || "auto", + hh = makeArray(_nc.data('videoheight'),opt)[opt.curWinRange] || makeArray(_nc.data('videoheight'),opt) || "auto"; + + if (!jQuery.isNumeric(ww) && ww.indexOf("%")>0) { + hh = (parseFloat(hh)*opt.bh)+"px"; + } else { + ww = (parseFloat(ww)*opt.bw)+"px"; + hh = (parseFloat(hh)*opt.bh)+"px"; + } + + // READ AND WRITE CSS SETTINGS OF IFRAME AND VIDEO FOR RESIZING ELEMENST ON DEMAND + _.cssobj = _.cssobj===undefined ? getcssParams(_nc,0) : _.cssobj; + + + var ncobj = setResponsiveCSSValues(_.cssobj,opt); + + + // IE8 FIX FOR AUTO LINEHEIGHT + if (ncobj.lineHeight=="auto") ncobj.lineHeight = ncobj.fontSize+4; + + + if (!_nc.hasClass('fullscreenvideo') && !yvcover) { + + punchgs.TweenLite.set(_nc,{ + paddingTop: Math.round((ncobj.paddingTop * opt.bh)) + "px", + paddingBottom: Math.round((ncobj.paddingBottom * opt.bh)) + "px", + paddingLeft: Math.round((ncobj.paddingLeft* opt.bw)) + "px", + paddingRight: Math.round((ncobj.paddingRight * opt.bw)) + "px", + marginTop: (ncobj.marginTop * opt.bh) + "px", + marginBottom: (ncobj.marginBottom * opt.bh) + "px", + marginLeft: (ncobj.marginLeft * opt.bw) + "px", + marginRight: (ncobj.marginRight * opt.bw) + "px", + borderTopWidth: Math.round(ncobj.borderTopWidth * opt.bh) + "px", + borderBottomWidth: Math.round(ncobj.borderBottomWidth * opt.bh) + "px", + borderLeftWidth: Math.round(ncobj.borderLeftWidth * opt.bw) + "px", + borderRightWidth: Math.round(ncobj.borderRightWidth * opt.bw) + "px", + width:ww, + height:hh + }); + } else { + obj.offsetx=0; obj.offsety=0; + _nc.data('x',0) + _nc.data('y',0) + + var ovhh = _._gh; + if (opt.autoHeight=="on") ovhh = opt.conh + _nc.css({'width':_._gw, 'height':ovhh }); + } + + + if ((html5vid == false && !yvcover) || ((_.forcecover!=1 && !_nc.hasClass('fullscreenvideo') && !yvcover))) { + + im.width(ww); + im.height(hh); + } + + if (_._ingroup) { + if (_.videowidth!==undefined && !jQuery.isNumeric(_.videowidth) && _.videowidth.indexOf("%")>0) + punchgs.TweenLite.set([_._lw,_._pw,_._mw],{minWidth:_.videowidth}); + } + + } // END OF POSITION AND STYLE READ OUTS OF VIDEO + + + + // RESPONIVE HANDLING OF CURRENT LAYER + calcCaptionResponsive(_nc,opt,0,_._responsive); + + + // ALL ELEMENTS IF THE MAIN ELEMENT IS REKURSIVE RESPONSIVE SHOULD BE REPONSIVE HANDLED + if (_nc.hasClass("tp-resizeme")) + _nc.find('*').each(function() { + calcCaptionResponsive(jQuery(this),opt,"rekursive",_._responsive); + }); + + // _nc FRONTCORNER CHANGES + var ncch = _nc.outerHeight(), + bgcol = _nc.css('backgroundColor'); + sharpCorners(_nc,'.frontcorner','left','borderRight','borderTopColor',ncch,bgcol); + sharpCorners(_nc,'.frontcornertop','left','borderRight','borderBottomColor',ncch,bgcol); + sharpCorners(_nc,'.backcorner','right','borderLeft','borderBottomColor',ncch,bgcol); + sharpCorners(_nc,'.backcornertop','right','borderLeft','borderTopColor',ncch,bgcol); + + + if (opt.fullScreenAlignForce == "on") { + obj.offsetx=0; + obj.offsety=0; + } + + + _.arrobj = new Object(); + _.arrobj.voa = makeArray(_.voffset,opt)[opt.curWinRange] || makeArray(_.voffset,opt)[0]; + _.arrobj.hoa = makeArray(_.hoffset,opt)[opt.curWinRange] || makeArray(_.hoffset,opt)[0]; + _.arrobj.elx = makeArray(_.x,opt)[opt.curWinRange] || makeArray(_.x,opt)[0]; + _.arrobj.ely = makeArray(_.y,opt)[opt.curWinRange] || makeArray(_.y,opt)[0]; + + + var voa = _.arrobj.voa.length==0 ? 0 : _.arrobj.voa, + hoa = _.arrobj.hoa.length==0 ? 0 : _.arrobj.hoa, + elx = _.arrobj.elx.length==0 ? 0 : _.arrobj.elx, + ely = _.arrobj.ely.length==0 ? 0 : _.arrobj.ely; + + + + + _.eow = _nc.outerWidth(true); + _.eoh = _nc.outerHeight(true); + + + + + // NEED CLASS FOR FULLWIDTH AND FULLHEIGHT LAYER SETTING !! + if (_.eow==0 && _.eoh==0) { + _.eow = opt.ulw; + _.eoh = opt.ulh; + } + + + var vofs= _._respoffset !=="off" ? parseInt(voa,0)*opt.bw : parseInt(voa,0), + hofs= _._respoffset !=="off" ? parseInt(hoa,0)*opt.bw : parseInt(hoa,0), + crw = _._ba==="grid" ? opt.gridwidth[opt.curWinRange]*opt.bw : _._gw, + crh = _._ba==="grid" ? opt.gridheight[opt.curWinRange]*opt.bw : _._gh; + + + if (opt.fullScreenAlignForce == "on") { + crw = opt.ulw; + crh = opt.ulh; + } + + // ALIGN POSITIONED ELEMENTS + if (_._lig!=="none" && _._lig!=undefined) { + crw=_._lig.width(); + crh=_._lig.height(); + obj.offsetx =0; + obj.offsety = 0; + } + + + + elx = elx==="center" || elx==="middle" ? (crw/2 - _.eow/2) + hofs : elx==="left" ? hofs : elx==="right" ? (crw - _.eow) - hofs : _._respoffset !=="off" ? elx * opt.bw : elx; + ely = ely=="center" || ely=="middle" ? (crh/2 - _.eoh/2) + vofs : ely =="top" ? vofs : ely=="bottom" ? (crh - _.eoh)-vofs : _._respoffset !=="off" ? ely*opt.bw : ely; + + if (rtl && !_._slidelink) + elx = elx + _.eow; + + if (_._slidelink) elx=0; + + + _.calcx = (parseInt(elx,0)+obj.offsetx); + _.calcy = (parseInt(ely,0)+obj.offsety); + + + + var tpcapindex = _nc.css("z-Index"); + + + // SET TOP/LEFT POSITION OF LAYER + if (_._nctype!=="row" && _._nctype!=="column") + punchgs.TweenLite.set(_._pw,{zIndex:tpcapindex, top:_.calcy,left:_.calcx,overwrite:"auto"}); + else + if (_._nctype!=="row") + punchgs.TweenLite.set(_._pw,{zIndex:tpcapindex, width:_.columnwidth, top:0,left:0,overwrite:"auto"}); + else + if (_._nctype==="row") { + var _roww = _._ba==="grid" ? crw+"px" : "100%"; + punchgs.TweenLite.set(_._pw,{zIndex:tpcapindex, width:_roww, top:0,left:obj.offsetx,overwrite:"auto"}); + } + if (_.blendmode!==undefined) + punchgs.TweenLite.set(_._pw,{mixBlendMode:_.blendmode}); + + /*if (_._nctype==="svg") { + _.svgcontainer = _.svgcontainer===undefined ? _nc.find('.tp-svg-innercontainer') : _.svgcontainer; + punchgs.TweenLite.set(_.svgcontainer,{ ... }); + }*/ + + //SET ROW BROKEN / TABLE FORMED + if (_._nctype==="row") { + if (_.columnbreak<=opt.curWinRange) { + _nc.addClass("rev_break_columns"); + } else { + _nc.removeClass("rev_break_columns"); + } + } + + // LOOP ANIMATION WIDTH/HEIGHT + if (_.loopanimation=="on") punchgs.TweenLite.set(_._lw,{minWidth:_.eow,minHeight:_.eoh}); + + // ELEMENT IN GROUPS WITH % WIDTH AND HEIGHT SHOULD EXTEND PARRENT SIZES + if (_._ingroup) { + if (_._groupw!==undefined && !jQuery.isNumeric(_._groupw) && _._groupw.indexOf("%")>0) + punchgs.TweenLite.set([_._lw,_._pw,_._mw],{minWidth:_._groupw}); + + if (_._grouph!==undefined && !jQuery.isNumeric(_._grouph) && _._grouph.indexOf("%")>0) + punchgs.TweenLite.set([_._lw,_._pw,_._mw],{minHeight:_._grouph}); + } + + }, + + + /******************************************** + BUILD THE TIMELINE STRUCTURES + ********************************************/ + createTimelineStructure : function(opt) { + + + // COLLECTION OF TIMELINES + opt.timelines = opt.timelines || new Object(); + + function addTimeLineWithLabel(layer,opt,parentobject,slideid) { + var timeline = new punchgs.TimelineLite({paused:true}), + c; + + + parentobject = parentobject || new Object(); + parentobject[layer.attr('id')] = parentobject[layer.attr('id')] || new Object(); + if (slideid==="staticlayers") { + parentobject[layer.attr('id')].firstslide = layer.data('startslide'); + parentobject[layer.attr('id')].lastslide = layer.data('endslide'); + } + + + layer.data('slideid',slideid); + parentobject[layer.attr('id')].defclasses=c=layer[0].className; + parentobject[layer.attr('id')].wrapper = c.indexOf("rev_layer_in_column")>=0 ? layer.closest('.rev_column_inner') : c.indexOf("rev_column_inner")>=0 ? layer.closest(".rev_row") : c.indexOf("rev_layer_in_group")>=0 ? layer.closest(".rev_group") : "none"; + parentobject[layer.attr('id')].timeline = timeline; + parentobject[layer.attr('id')].layer = layer; + parentobject[layer.attr('id')].triggerstate = layer.data('lasttriggerstate'); + parentobject[layer.attr('id')].dchildren = c.indexOf("rev_row")>=0 ? layer[0].getElementsByClassName('rev_column_inner') : c.indexOf("rev_column_inner")>=0 ? layer[0].getElementsByClassName('tp-caption') : c.indexOf("rev_group")>=0 ? layer[0].getElementsByClassName('rev_layer_in_group') : "none"; + layer.data('timeline',timeline); + + } + + + //GO THROUGH ALL LI + opt.c.find('.tp-revslider-slidesli, .tp-static-layers').each(function() { + var slide = jQuery(this), + index = slide.data('index'); + opt.timelines[index] = opt.timelines[index] || {}; + + opt.timelines[index].layers = opt.timelines[index].layers || new Object(); + + + // COLLECT LAYERS + slide.find('.tp-caption').each(function(i) { + addTimeLineWithLabel(jQuery(this),opt,opt.timelines[index].layers,index); + }); + + }); + + + + + }, + + + + /*************************************** + - BUILD CAPTION FULL TIMELINES - + ***************************************/ + buildFullTimeLine : function(obj) { + + //if (obj.recall) return; + + var _nc = obj.caption, + _ = _nc.data(), + opt = obj.opt, + $svg = {}, + _nc_tl_obj, + _nc_timeline, + $hover = newHoverAnimObject(), + timelineprog = 0; + + _nc_tl_obj = opt.timelines[_._slideid]["layers"][_._id]; + + + if (_nc_tl_obj.generated && obj.regenerate!==true) return; + _nc_timeline = _nc_tl_obj.timeline; + + _nc_tl_obj.generated = true; + + if (_.current_timeline!==undefined && obj.regenerate!==true) { + _.current_timeline_pause = _.current_timeline.paused(); + _.current_timeline_time = _.current_timeline.time(); + _.current_is_nc_timeline = _nc_timeline === _.current_timeline; + _.static_layer_timeline_time = _.current_timeline_time; + } else { + _.static_layer_timeline_time = _.current_timeline_time; + _.current_timeline_time = 0; + if (_.current_timeline) _.current_timeline.clear(); + } + + + + _nc_timeline.clear(); + + + // PRESET SVG STYLE + $svg.svg = _.svg_src!=undefined ? _nc.find('svg') : false; + if ($svg.svg) _.idlesvg = setSVGAnimObject(_.svg_idle,newSVGHoverAnimObject()); + + // HOVER ANIMATION + if (_.hoverframeindex!==-1 && _.hoverframeindex!==undefined) { + + if (!_nc.hasClass("rs-hover-ready")) { + + _nc.addClass("rs-hover-ready"); + _.hovertimelines = {}; + _.hoveranim = getAnimDatas($hover,_.frames[_.hoverframeindex].to); + _.hoveranim = convertHoverStyle(_.hoveranim,_.frames[_.hoverframeindex].style); + + if ($svg.svg) { + + var $svghover = setSVGAnimObject(_.svg_hover,newSVGHoverAnimObject()); + if (_.hoveranim.anim.color!=undefined) { + $svghover.anim.fill = _.hoveranim.anim.color; + _.idlesvg.anim.fill = $svg.svg.css("color"); + } + + + + _.hoversvg = $svghover; + } + _nc.hover(function(e) { + + var obj = {caption:jQuery(e.currentTarget), opt:opt, firstframe : "frame_0", lastframe:"frame_999"}, + tl = getTLInfos(obj), + nc = obj.caption, + _ = nc.data(), + frame = _.frames[_.hoverframeindex], + animended = true; + + _.forcehover = frame.force; + + if (animended) { + _.hovertimelines.item = punchgs.TweenLite.to(nc,frame.speed/1000,_.hoveranim.anim); + if (_.hoverzIndex || (_.hoveranim.anim && _.hoveranim.anim.zIndex)) { + _.basiczindex = _.basiczindex===undefined ? _.cssobj.zIndex : _.basiczindex; + _.hoverzIndex = _.hoverzIndex===undefined ? _.hoveranim.anim.zIndex : _.hoverzIndex; + _.inhoverinanimation = true; + if (frame.speed===0) _.inhoverinanimation= false; + _.hovertimelines.pwhoveranim = punchgs.TweenLite.to(_._pw,frame.speed/1000,{overwrite:"auto",zIndex:_.hoverzIndex}); + _.hovertimelines.pwhoveranim.eventCallback("onComplete",function(_) { + + _.inhoverinanimation=false;; + },[_]) + } + if ($svg.svg) + _.hovertimelines.svghoveranim = punchgs.TweenLite.to([$svg.svg, $svg.svg.find('path')],frame.speed/1000,_.hoversvg.anim); + _.hoveredstatus = true; + } + }, + function(e) { + + var obj = {caption:jQuery(e.currentTarget), opt:opt, firstframe : "frame_0", lastframe:"frame_999"}, + tl = getTLInfos(obj), + nc = obj.caption, + _ = nc.data(), + frame = _.frames[_.hoverframeindex], + animended = true; + + + if (animended) { + _.hoveredstatus = false; + _.inhoveroutanimation = true; + _.hovertimelines.item.pause(); + _.hovertimelines.item = punchgs.TweenLite.to(nc,frame.speed/1000,jQuery.extend(true,{},_._gsTransformTo)); + + if (frame.speed==0) _.inhoveroutanimation= false; + _.hovertimelines.item.eventCallback("onComplete",function(_) { + + _.inhoveroutanimation=false;; + },[_]) + if (_.hovertimelines.pwhoveranim!==undefined) _.hovertimelines.pwhoveranim = punchgs.TweenLite.to(_._pw,frame.speed/1000,{overwrite:"auto",zIndex:_.basiczindex}); + if ($svg.svg) punchgs.TweenLite.to([$svg.svg, $svg.svg.find('path')],frame.speed/1000,_.idlesvg.anim); + } + }); + } + } // END IF HOVER ANIMATION + + + // LOOP TROUGH THE FRAMES AND CREATE FRAME TWEENS AND TL'S ON THE MAIN TIMELINE + for (var frame_index=0; frame_index<_.frames.length;frame_index++) { + + if (frame_index !== _.hoverframeindex) { + + // Create a new Timeline for each Frame + var frame_name = frame_index === _.inframeindex ? "frame_0" : frame_index===_.outframeindex || _.frames[frame_index].frame==="frame_999" ? "frame_999" : "frame_"+frame_index; + _.frames[frame_index].framename = frame_name; + + _nc_tl_obj[frame_name] = {}; + _nc_tl_obj[frame_name].timeline = new punchgs.TimelineLite({align:"normal"}); + + + var $start = _.frames[frame_index].delay, + $start_status = _.triggered_startstatus, + mdelay = $start !== undefined ? jQuery.inArray($start,["slideenter","bytrigger","wait"])>=0 ? $start : parseInt($start,0)/1000 : "wait"; + + + // ADD STARTLABEL FOR STATIC LAYERS + if (_nc_tl_obj.firstslide!==undefined && frame_name==="frame_0") { + _nc_timeline.addLabel("slide_"+_nc_tl_obj.firstslide+"_pause",0); + _nc_timeline.addPause("slide_"+_nc_tl_obj.firstslide+"_pause"); + _nc_timeline.addLabel("slide_"+_nc_tl_obj.firstslide,"+=0.005"); + } + + // ADD ENDSLIDE LABEL FOR STATIC LAYERS + if (_nc_tl_obj.lastslide!==undefined && frame_name==="frame_999") { + _nc_timeline.addLabel("slide_"+_nc_tl_obj.lastslide+"_pause","+=0.01"); + _nc_timeline.addPause("slide_"+_nc_tl_obj.lastslide+"_pause"); + _nc_timeline.addLabel("slide_"+_nc_tl_obj.lastslide,"+=0.005"); + } + + if (!jQuery.isNumeric(mdelay)) { + _nc_timeline.addLabel("pause_"+frame_index,"+=0.01"); + _nc_timeline.addPause("pause_"+frame_index); + _nc_timeline.addLabel(frame_name,"+=0.01"); + } else { + _nc_timeline.addLabel(frame_name,"+="+mdelay); + } + + + _nc_timeline = _R.createFrameOnTimeline({caption:obj.caption, timeline : _nc_timeline, label:frame_name, frameindex : frame_index, opt:opt }); + + + + } // + } // END OF LOOP THROUGH FRAMES AND CREATING NEW TWEENS + //_nc_timeline.time(timelineprog); + + if (!obj.regenerate) { + if (_.current_is_nc_timeline) + _.current_timeline = _nc_timeline; + if (_.current_timeline_pause) + _nc_timeline.pause(_.current_timeline_time); + else + _nc_timeline.time(_.current_timeline_time); + } + + return; + }, + + ///////////////////////////////////// + // BUILD A FRAME ON THE TIMELINE // + ///////////////////////////////////// + createFrameOnTimeline : function(obj) { + var _nc = obj.caption, + _ = _nc.data(), + label = obj.label, + timeline = obj.timeline, + frame_index = obj.frameindex, + opt = obj.opt, + animobject = _nc, + tweens = {}, + _nc_tl_obj = opt.timelines[_._slideid]["layers"][_._id], + verylastframe = _.frames.length-1, + $split = _.frames[frame_index].split; + + + if (_.hoverframeindex!==-1 && _.hoverframeindex==verylastframe) verylastframe=verylastframe-1; + + tweens.content = new punchgs.TimelineLite({align:"normal"}); + tweens.mask = new punchgs.TimelineLite({align:"normal"}); + + + if (timeline.vars.id===undefined) + timeline.vars.id=Math.round(Math.random()*100000); + if (_._nctype==="column") { + timeline.add(punchgs.TweenLite.set(_._cbgc_man,{display:"block"}),label); + timeline.add(punchgs.TweenLite.set(_._cbgc_auto,{display:"none"}),label); + } + + if (_.mySplitText === undefined && _.splittext) { + var splittarget = _nc.find('a').length>0 ? _nc.find('a') : _nc; + _.mySplitText = new punchgs.SplitText(splittarget,{type:"chars,words,lines",charsClass:"tp-splitted tp-charsplit",wordsClass:"tp-splitted tp-wordsplit",linesClass:"tp-splitted tp-linesplit"}); + _nc.addClass("splitted"); + } + + if ( _.mySplitText !==undefined && $split && $split.match(/chars|words|lines/g)) animobject = _.mySplitText[$split]; + + + // ANIMATE THE FRAME + + var $to = frame_index!==_.outframeindex ? getAnimDatas(newAnimObject(),_.frames[frame_index].to) : _.frames[frame_index].to !==undefined && _.frames[frame_index].to.match(/auto:auto/g)===null ? getAnimDatas(newEndAnimObject(),_.frames[frame_index].to,opt.sdir==1) : getAnimDatas(newEndAnimObject(),_.frames[_.inframeindex].from,opt.sdir==0), + $from = _.frames[frame_index].from !==undefined ? getAnimDatas($to,_.frames[_.inframeindex].from,opt.sdir==1) : undefined, // ANIMATE FROM THE VERY FIRST SETTING, OR FROM PREVIOUS SETTING + $elemdelay = _.frames[frame_index].splitdelay, + $mask_from,$mask_to; + + + + if (frame_index===0 && !obj.fromcurrentstate) + $mask_from = getMaskDatas(_.frames[frame_index].mask); + else + $mask_to = getMaskDatas(_.frames[frame_index].mask); + + $to.anim.ease = _.frames[frame_index].ease===undefined ? punchgs.Power1.easeInOut : _.frames[frame_index].ease; + + if ($from!==undefined) { + $from.anim.ease = _.frames[frame_index].ease===undefined ? punchgs.Power1.easeInOut : _.frames[frame_index].ease; + $from.speed = _.frames[frame_index].speed === undefined ? $from.speed : _.frames[frame_index].speed; + $from.anim.x = $from.anim.x * opt.bw || getBorderDirections($from.anim.x,opt,_.eow,_.eoh,_.calcy,_.calcx, "horizontal" ); + $from.anim.y = $from.anim.y * opt.bw || getBorderDirections($from.anim.y,opt,_.eow,_.eoh,_.calcy,_.calcx, "vertical" ); + + } + + if ($to!==undefined) { + $to.anim.ease = _.frames[frame_index].ease===undefined ? punchgs.Power1.easeInOut : _.frames[frame_index].ease; + $to.speed = _.frames[frame_index].speed === undefined ? $to.speed : _.frames[frame_index].speed; + $to.anim.x = $to.anim.x * opt.bw || getBorderDirections($to.anim.x,opt,_.eow,_.eoh,_.calcy,_.calcx, "horizontal" ); + $to.anim.y = $to.anim.y * opt.bw || getBorderDirections($to.anim.y,opt,_.eow,_.eoh,_.calcy,_.calcx, "vertical" ); + + + } + + + + // FIX VISIBLE IFRAME BUG IN SAFARI + if (_nc.data('iframes')) timeline.add(punchgs.TweenLite.set(_nc.find('iframe'),{autoAlpha:1}),label+"+=0.001"); + + + + // IN CASE LAST FRAME REACHED, AND ANIMATION IS SET TO AUTO (REVERSE PLAYING) + if (frame_index===_.outframeindex) { + if (_.frames[frame_index].to && _.frames[frame_index].to.match(/auto:auto/g)) { + // + } + + $to.speed = _.frames[frame_index].speed === undefined || _.frames[frame_index].speed==="inherit" ? _.frames[_.inframeindex].speed : _.frames[frame_index].speed; + $to.anim.ease = _.frames[frame_index].ease === undefined || _.frames[frame_index].ease==="inherit" ? _.frames[_.inframeindex].ease : _.frames[frame_index].ease; + $to.anim.overwrite ="auto"; + } + + + // IN CASE FIRST FRAME REACHED + if (frame_index===0 && !obj.fromcurrentstate) { + + if (animobject != _nc) { + var old = jQuery.extend({},$to.anim,true); + timeline.add(punchgs.TweenLite.set(_nc, $to.anim),label); + $to = newAnimObject(); + $to.ease = old.ease; + if (old.filter!==undefined) $to.anim.filter = old.filter; + if (old["-webkit-filter"]!==undefined) $to.anim["-webkit-filter"] = old["-webkit-filter"]; + } + + + $from.anim.visibility = "hidden"; + $from.anim.immediateRender = true; + $to.anim.visibility = "visible"; + + + //_nc.data('speed',$from.speed); + //_nc.data('ease',$to.anim.ease); + } else + + if (frame_index===0 && obj.fromcurrentstate) { + $to.speed = $from.speed; + } + + if (obj.fromcurrentstate) { + $to.anim.immediateRender = true; + } + + + + + if (frame_index===0 && !obj.fromcurrentstate) { + timeline.add(tweens.content.staggerFromTo(animobject,$from.speed/1000,$from.anim,$to.anim,$elemdelay),label); + } else { + timeline.add(tweens.content.staggerTo(animobject,$to.speed/1000,$to.anim,$elemdelay),label); + } + + + + if ($mask_to!==undefined && $mask_to!==false && (frame_index!==0 || !obj.ignorefirstframe)) { + $mask_to.anim.ease = $mask_to.anim.ease === undefined || $mask_to.anim.ease==="inherit" ? _.frames[0].ease : $mask_to.anim.ease; + $mask_to.anim.overflow = "hidden"; + $mask_to.anim.x = $mask_to.anim.x * opt.bw || getBorderDirections($mask_to.anim.x,opt,_.eow,_.eoh,_.calcy,_.calcx,"horizontal"); + $mask_to.anim.y = $mask_to.anim.y * opt.bw || getBorderDirections($mask_to.anim.y,opt,_.eow,_.eoh,_.calcy,_.calcx,"vertical"); + } + + if ((frame_index===0 && $mask_from && $mask_from!==false && !obj.fromcurrentstate) || (frame_index===0 && obj.ignorefirstframe)) { + $mask_to = new Object(); + $mask_to.anim = new Object(); + $mask_to.anim.overwrite = "auto"; + $mask_to.anim.ease = $to.anim.ease; + $mask_to.anim.x = $mask_to.anim.y = 0; + if ($mask_from && $mask_from!==false) { + $mask_from.anim.x = $mask_from.anim.x * opt.bw || getBorderDirections($mask_from.anim.x,opt,_.eow,_.eoh,_.calcy,_.calcx,"horizontal"); + $mask_from.anim.y = $mask_from.anim.y * opt.bw || getBorderDirections($mask_from.anim.y,opt,_.eow,_.eoh,_.calcy,_.calcx,"vertical"); + $mask_from.anim.overflow ="hidden"; + } + } else + if (frame_index===0) + timeline.add(tweens.mask.set(_._mw,{overflow:"visible"}),label); + + + + + + if ($mask_from!==undefined && $mask_to!==undefined && $mask_from!==false && $mask_to!==false) + timeline.add(tweens.mask.fromTo(_._mw,$from.speed/1000,$mask_from.anim,$mask_to.anim,$elemdelay),label); + else + if ($mask_to!==undefined && $mask_to!==false) + timeline.add(tweens.mask.to(_._mw,$to.speed/1000,$mask_to.anim,$elemdelay),label); + + timeline.addLabel(label+"_end"); + + // Reset Hover Effect when Last Frame (Out Animation) ordered + if (_._gsTransformTo && frame_index===verylastframe && _.hoveredstatus) + _.hovertimelines.item = punchgs.TweenLite.to(_nc,0,_._gsTransformTo); + + _._gsTransformTo = false; + + + + // ON START + tweens.content.eventCallback("onStart",function(frame_index,ncobj,pw,_,tl,toanim,_nc,ust){ + + var data={}; + data.layer = _nc; + data.eventtype = frame_index===0 ? "enterstage" : frame_index===_.outframeindex ? "leavestage" : "framestarted"; + data.layertype = _nc.data('layertype'); + _.active = true; + //_nc.data('active',true); + + //_.idleanimadded = false; + data.frame_index = frame_index; + data.layersettings = _nc.data(); + opt.c.trigger("revolution.layeraction",[data]); + if (_.loopanimation=="on") callCaptionLoops(_._lw,opt.bw); + + if (data.eventtype==="enterstage") { + _.animdirection="in"; + _.visibleelement=true; + _R.toggleState(_.layertoggledby); + } + if (ncobj.dchildren!=="none" && ncobj.dchildren!==undefined && ncobj.dchildren.length>0) { + if (frame_index===0) + for (var q=0;q=nc.removeonslide) || (obj.currentslide0) + for (var q = 0; q1) { + var min = val.split(","), + max = parseFloat(min[1].split("}")[0]); + min = parseFloat(min[0].split("{")[1]); + val = Math.random()*(max-min) + min; + } + return val; +} + +var getBorderDirections = function (x,o,w,h,top,left,direction) { + + if (!jQuery.isNumeric(x) && x.match(/%]/g)) { + x = x.split("[")[1].split("]")[0]; + if (direction=="horizontal") + x = (w+2)*parseInt(x,0)/100; + else + if (direction=="vertical") + x = (h+2)*parseInt(x,0)/100; + } else { + + x = x === "layer_left" ? (0-w) : x === "layer_right" ? w : x; + x = x === "layer_top" ? (0-h) : x==="layer_bottom" ? h : x; + x = x === "left" || x==="stage_left" ? (0-w-left) : x === "right" || x==="stage_right" ? o.conw-left : x === "center" || x === "stage_center" ? (o.conw/2 - w/2)-left : x; + x = x === "top" || x==="stage_top" ? (0-h-top) : x==="bottom" || x==="stage_bottom" ? o.conh-top : x === "middle" || x === "stage_middle" ? (o.conh/2 - h/2)-top : x; + } + + + return x; +} + +/////////////////////////////////////////////////// +// ANALYSE AND READ OUT DATAS FROM HTML CAPTIONS // +/////////////////////////////////////////////////// +var getAnimDatas = function(frm,data,reversed) { + var o = new Object(); + o = jQuery.extend(true,{},o, frm); + if (data === undefined) + return o; + + + var customarray = data.split(';'), + tmpf=""; + + if (customarray) + jQuery.each(customarray,function(index,pa) { + var p = pa.split(":") + var w = p[0], + v = p[1]; + + + if (reversed && v!=undefined && v.length>0 && v.match(/\(R\)/)) { + v = v.replace("(R)",""); + v = v==="right" ? "left" : v==="left" ? "right" : v==="top" ? "bottom" : v==="bottom" ? "top" : v; + if (v[0]==="[" && v[1]==="-") v = v.replace("[-","["); + else + if (v[0]==="[" && v[1]!=="-") v = v.replace("[","[-"); + else + if (v[0]==="-") v = v.replace("-",""); + else + if (v[0].match(/[1-9]/)) v="-"+v; + } + + if (v!=undefined) { + v = v.replace(/\(R\)/,''); + if (w=="rotationX" || w=="rX") o.anim.rotationX = animDataTranslator(v,o.anim.rotationX)+"deg"; + if (w=="rotationY" || w=="rY") o.anim.rotationY = animDataTranslator(v,o.anim.rotationY)+"deg"; + if (w=="rotationZ" || w=="rZ") o.anim.rotation = animDataTranslator(v,o.anim.rotationZ)+"deg"; + if (w=="scaleX" || w=="sX") o.anim.scaleX = animDataTranslator(v,o.anim.scaleX); + if (w=="scaleY" || w=="sY") o.anim.scaleY = animDataTranslator(v,o.anim.scaleY); + if (w=="opacity" || w=="o") o.anim.opacity = animDataTranslator(v,o.anim.opacity); + if (w=="fb") tmpf = tmpf==="" ? 'blur('+parseInt(v,0)+'px)' : tmpf+" "+'blur('+parseInt(v,0)+'px)'; + if (w=="fg") tmpf = tmpf==="" ? 'grayscale('+parseInt(v,0)+'%)' : tmpf+" "+'grayscale('+parseInt(v,0)+'%)'; + + if (o.anim.opacity===0) o.anim.autoAlpha = 0; + + o.anim.opacity = o.anim.opacity == 0 ? 0.0001 : o.anim.opacity; + + if (w=="skewX" || w=="skX") o.anim.skewX = animDataTranslator(v,o.anim.skewX); + if (w=="skewY" || w=="skY") o.anim.skewY = animDataTranslator(v,o.anim.skewY); + if (w=="x") o.anim.x = animDataTranslator(v,o.anim.x); + if (w=="y") o.anim.y = animDataTranslator(v,o.anim.y); + if (w=="z") o.anim.z = animDataTranslator(v,o.anim.z); + if (w=="transformOrigin" || w=="tO") o.anim.transformOrigin = v.toString(); + if (w=="transformPerspective" || w=="tP") o.anim.transformPerspective=parseInt(v,0); + if (w=="speed" || w=="s") o.speed = parseFloat(v); + + //if (w=="ease" || w=="e") o.anim.ease = v; + } + + }) + if (tmpf!=="") { + o.anim['-webkit-filter'] = tmpf; + o.anim['filter'] = tmpf; + } + + + return o; +} + + + +///////////////////////////////// +// BUILD MASK ANIMATION OBJECT // +///////////////////////////////// +var getMaskDatas = function(d) { + if (d === undefined) + return false; + + var o = new Object(); + o.anim = new Object(); + var s = d.split(';') + if (s) + jQuery.each(s,function(index,param) { + param = param.split(":") + var w = param[0], + v = param[1]; + if (w=="x") o.anim.x = v; + if (w=="y") o.anim.y = v; + if (w=="s") o.speed = parseFloat(v); + if (w=="e" || w=="ease") o.anim.ease = v; + }); + + return o; +} + + + + +//////////////////////// +// SHOW THE CAPTION // +/////////////////////// + +var makeArray = function(obj,opt,show) { + + if (obj==undefined) obj = 0; + + if (!jQuery.isArray(obj) && jQuery.type(obj)==="string" && (obj.split(",").length>1 || obj.split("[").length>1)) { + obj = obj.replace("[",""); + obj = obj.replace("]",""); + var newobj = obj.match(/'/g) ? obj.split("',") : obj.split(","); + obj = new Array(); + if (newobj) + jQuery.each(newobj,function(index,element) { + element = element.replace("'",""); + element = element.replace("'",""); + obj.push(element); + }) + } else { + var tempw = obj; + if (!jQuery.isArray(obj) ) { + obj = new Array(); + obj.push(tempw); + } + } + + var tempw = obj[obj.length-1]; + + if (obj.length0) + t.anim[attr[0]] = attr[1]; + }) + return t; + +} + + +//////////////////////////////////////////////// +// - GET CSS ATTRIBUTES OF ELEMENT - // +//////////////////////////////////////////////// +var getcssParams = function(nc,level) { + + var obj = new Object(), + gp = false, + pc; + + + // CHECK IF CURRENT ELEMENT SHOULD RESPECT REKURSICVE RESIZES, AND SHOULD OWN THE SAME ATTRIBUTES FROM PARRENT ELEMENT + if (level=="rekursive") { + pc = nc.closest('.tp-caption'); + if (pc && nc.css("fontSize") === pc.css("fontSize")) + gp = true; + } + + obj.basealign = nc.data('basealign') || "grid"; + + + obj.fontSize = gp ? pc.data('fontsize')===undefined ? parseInt(pc.css('fontSize'),0) || 0 : pc.data('fontsize') : nc.data('fontsize')===undefined ? parseInt(nc.css('fontSize'),0) || 0 : nc.data('fontsize'); + + obj.fontWeight = gp ? pc.data('fontweight')===undefined ? parseInt(pc.css('fontWeight'),0) || 0 : pc.data('fontweight') : nc.data('fontweight')===undefined ? parseInt(nc.css('fontWeight'),0) || 0 : nc.data('fontweight'); + obj.whiteSpace = gp ? pc.data('whitespace')===undefined ? pc.css('whitespace') || "normal" : pc.data('whitespace') : nc.data('whitespace')===undefined ? nc.css('whitespace') || "normal" : nc.data('whitespace'); + obj.textAlign = gp ? pc.data('textalign')===undefined ? pc.css('textalign') || "inherit" : pc.data('textalign') : nc.data('textalign')===undefined ? nc.css('textalign') || "inherit" : nc.data('textalign'); + obj.zIndex = gp ? pc.data('zIndex')===undefined ? pc.css('zIndex') || "inherit" : pc.data('zIndex') : nc.data('zIndex')===undefined ? nc.css('zIndex') || "inherit" : nc.data('zIndex'); + + if (jQuery.inArray(nc.data('layertype'),["video","image","audio"])===-1 && !nc.is("img")) + obj.lineHeight = gp ? pc.data('lineheight')===undefined ? parseInt(pc.css('lineHeight'),0) || 0 : pc.data('lineheight') : nc.data('lineheight')===undefined ? parseInt(nc.css('lineHeight'),0) || 0 : nc.data('lineheight'); + else + obj.lineHeight = 0; + + obj.letterSpacing = gp ? pc.data('letterspacing')===undefined ? parseFloat(pc.css('letterSpacing'),0) || 0 : pc.data('letterspacing') : nc.data('letterspacing')===undefined ? parseFloat(nc.css('letterSpacing')) || 0 : nc.data('letterspacing'); + + obj.paddingTop = nc.data('paddingtop')===undefined ? parseInt(nc.css('paddingTop'),0) || 0 : nc.data('paddingtop'); + obj.paddingBottom = nc.data('paddingbottom')===undefined ? parseInt(nc.css('paddingBottom'),0) || 0 : nc.data('paddingbottom'); + obj.paddingLeft = nc.data('paddingleft')===undefined ? parseInt(nc.css('paddingLeft'),0) || 0 : nc.data('paddingleft'); + obj.paddingRight = nc.data('paddingright')===undefined ? parseInt(nc.css('paddingRight'),0) || 0 : nc.data('paddingright'); + + obj.marginTop = nc.data('margintop')===undefined ? parseInt(nc.css('marginTop'),0) || 0 : nc.data('margintop'); + obj.marginBottom = nc.data('marginbottom')===undefined ? parseInt(nc.css('marginBottom'),0) || 0 : nc.data('marginbottom'); + obj.marginLeft = nc.data('marginleft')===undefined ? parseInt(nc.css('marginLeft'),0) || 0 : nc.data('marginleft'); + obj.marginRight = nc.data('marginright')===undefined ? parseInt(nc.css('marginRight'),0) || 0 : nc.data('marginright'); + obj.borderTopWidth = nc.data('bordertopwidth')===undefined ? parseInt(nc.css('borderTopWidth'),0) || 0 : nc.data('bordertopwidth'); + obj.borderBottomWidth = nc.data('borderbottomwidth')===undefined ? parseInt(nc.css('borderBottomWidth'),0) || 0 : nc.data('borderbottomwidth'); + obj.borderLeftWidth = nc.data('borderleftwidth')===undefined ? parseInt(nc.css('borderLeftWidth'),0) || 0 : nc.data('borderleftwidth'); + obj.borderRightWidth = nc.data('borderrightwidth')===undefined ? parseInt(nc.css('borderRightWidth'),0) || 0 : nc.data('borderrightwidth'); + + if (level!="rekursive") { + obj.color = nc.data('color')===undefined ? "nopredefinedcolor" : nc.data('color'); + + obj.whiteSpace = gp ? pc.data('whitespace')===undefined ? pc.css('whiteSpace') || "nowrap" : pc.data('whitespace') : nc.data('whitespace')===undefined ? nc.css('whiteSpace') || "nowrap" : nc.data('whitespace'); + obj.textAlign = gp ? pc.data('textalign')===undefined ? pc.css('textalign') || "inherit" : pc.data('textalign') : nc.data('textalign')===undefined ? nc.css('textalign') || "inherit" : nc.data('textalign'); + + obj.minWidth = nc.data('width')===undefined ? parseInt(nc.css('minWidth'),0) || 0 : nc.data('width'); + obj.minHeight = nc.data('height')===undefined ? parseInt(nc.css('minHeight'),0) || 0 : nc.data('height'); + + if (nc.data('videowidth')!=undefined && nc.data('videoheight')!=undefined) { + var vwid = nc.data('videowidth'), + vhei = nc.data('videoheight'); + vwid = vwid==="100%" ? "none" : vwid; + vhei = vhei==="100%" ? "none" : vhei; + + nc.data('width',vwid); + nc.data('height',vhei); + } + + obj.maxWidth = nc.data('width')===undefined ? parseInt(nc.css('maxWidth'),0) || "none" : nc.data('width'); + obj.maxHeight = nc.data('height')===undefined ? parseInt(nc.css('maxHeight'),0) || "none" : nc.data('height'); + + obj.wan = nc.data('wan')===undefined ? parseInt(nc.css('-webkit-transition'),0) || "none" : nc.data('wan'); + obj.moan = nc.data('moan')===undefined ? parseInt(nc.css('-moz-animation-transition'),0) || "none" : nc.data('moan'); + obj.man = nc.data('man')===undefined ? parseInt(nc.css('-ms-animation-transition'),0) || "none" : nc.data('man'); + obj.ani = nc.data('ani')===undefined ? parseInt(nc.css('transition'),0) || "none" : nc.data('ani'); + } + + + obj.styleProps = { borderTopLeftRadius : nc[0].style.borderTopLeftRadius, + borderTopRightRadius : nc[0].style.borderTopRightRadius, + borderBottomRightRadius : nc[0].style.borderBottomRightRadius, + borderBottomLeftRadius : nc[0].style.borderBottomLeftRadius, + "background-color" : nc[0].style["background-color"], + "border-top-color" : nc[0].style["border-top-color"], + "border-bottom-color" : nc[0].style["border-bottom-color"], + "border-right-color" : nc[0].style["border-right-color"], + "border-left-color" : nc[0].style["border-left-color"], + "border-top-style" : nc[0].style["border-top-style"], + "border-bottom-style" : nc[0].style["border-bottom-style"], + "border-left-style" : nc[0].style["border-left-style"], + "border-right-style" : nc[0].style["border-right-style"], + "border-left-width" : nc[0].style["border-left-width"], + "border-right-width" : nc[0].style["border-right-width"], + "border-bottom-width" : nc[0].style["border-bottom-width"], + "border-top-width" : nc[0].style["border-top-width"], + "color" : nc[0].style["color"], + "text-decoration" : nc[0].style["text-decoration"], + "font-style" : nc[0].style["font-style"] + }; + + if (obj.styleProps.color=="") + obj.styleProps.color = nc.css("color"); + + return obj; +} + +// READ SINGLE OR ARRAY VALUES OF OBJ CSS ELEMENTS +var setResponsiveCSSValues = function(obj,opt) { + var newobj = new Object(); + if (obj) + jQuery.each(obj,function(key,val){ + var res_a = makeArray(val,opt)[opt.curWinRange]; + newobj[key] = res_a!==undefined ? res_a : obj[key]; + }); + return newobj; +} + +var minmaxconvert = function(a,m,r,fr) { + + a = jQuery.isNumeric(a) ? (a * m)+"px" : a; + a = a==="full" ? fr : a==="auto" || a==="none" ? r : a; + return a; + +} + +///////////////////////////////////////////////////////////////// +// - CALCULATE THE RESPONSIVE SIZES OF THE CAPTIONS - // +///////////////////////////////////////////////////////////////// +var calcCaptionResponsive = function(nc,opt,level,responsive) { + + var _=nc.data(); + + _ = _===undefined ? {} : _; + + try{ + if (nc[0].nodeName=="BR" || nc[0].tagName=="br" + /*|| nc[0].nodeName=="b" || nc[0].tagName=="b" || + nc[0].nodeName=="strong" || nc[0].tagName=="STRONG"*/ + ) + return false; + } catch(e) { + + } + + _.cssobj = _.cssobj===undefined ? getcssParams(nc,level) : _.cssobj; + + var obj = setResponsiveCSSValues(_.cssobj,opt), + bw=opt.bw, + bh=opt.bh; + + if (responsive==="off") { + bw=1; + bh=1; + } + + // IE8 FIX FOR AUTO LINEHEIGHT + if (obj.lineHeight=="auto") obj.lineHeight = obj.fontSize+4; + + + if (!nc.hasClass("tp-splitted")) { + + nc.css("-webkit-transition", "none"); + nc.css("-moz-transition", "none"); + nc.css("-ms-transition", "none"); + nc.css("transition", "none"); + + var hashover = nc.data('transform_hover')!==undefined || nc.data('style_hover')!==undefined; + if (hashover) punchgs.TweenLite.set(nc,obj.styleProps); + + + punchgs.TweenLite.set(nc,{ + + fontSize: Math.round((obj.fontSize * bw))+"px", + fontWeight: obj.fontWeight, + letterSpacing:Math.floor((obj.letterSpacing * bw))+"px", + paddingTop: Math.round((obj.paddingTop * bh)) + "px", + paddingBottom: Math.round((obj.paddingBottom * bh)) + "px", + paddingLeft: Math.round((obj.paddingLeft* bw)) + "px", + paddingRight: Math.round((obj.paddingRight * bw)) + "px", + marginTop: (obj.marginTop * bh) + "px", + marginBottom: (obj.marginBottom * bh) + "px", + marginLeft: (obj.marginLeft * bw) + "px", + marginRight: (obj.marginRight * bw) + "px", + borderTopWidth: Math.round(obj.borderTopWidth * bh) + "px", + borderBottomWidth: Math.round(obj.borderBottomWidth * bh) + "px", + borderLeftWidth: Math.round(obj.borderLeftWidth * bw) + "px", + borderRightWidth: Math.round(obj.borderRightWidth * bw) + "px", + lineHeight: Math.round(obj.lineHeight * bh) + "px", + textAlign:(obj.textAlign), + overwrite:"auto"}); + + + if (level!="rekursive") { + + + + var winw = obj.basealign =="slide" ? opt.ulw : opt.gridwidth[opt.curWinRange], + winh = obj.basealign =="slide" ? opt.ulh : opt.gridheight[opt.curWinRange], + maxw = minmaxconvert(obj.maxWidth,bw,"none",winw), + maxh = minmaxconvert(obj.maxHeight,bh,"none",winh), + minw = minmaxconvert(obj.minWidth,bw,"0px",winw), + minh = minmaxconvert(obj.minHeight,bh,"0px",winh); + + + + // TWEEN FIX ISSUES + minw=minw===undefined ? 0 : minw; + minh=minh===undefined ? 0 : minh; + maxw=maxw===undefined ? "none" : maxw; + maxh=maxh===undefined ? "none" : maxh; + + + + if (_._isgroup) { + + if (minw==="#1/1#") minw = maxw = winw; + if (minw==="#1/2#") minw = maxw = winw / 2; + if (minw==="#1/3#") minw = maxw = winw/3; + + if (minw==="#1/4#") minw = maxw = winw / 4; + if (minw==="#1/5#") minw = maxw = winw / 5; + if (minw==="#1/6#") minw = maxw = winw / 6; + + if (minw==="#2/3#") minw = maxw = (winw / 3) * 2; + if (minw==="#3/4#") minw = maxw = (winw / 4) * 3; + if (minw==="#2/5#") minw = maxw = (winw / 5) * 2; + if (minw==="#3/5#") minw = maxw = (winw / 5) * 3; + if (minw==="#4/5#") minw = maxw = (winw / 5) * 4; + + if (minw==="#3/6#") minw = maxw = (winw / 6) * 3; + if (minw==="#4/6#") minw = maxw = (winw / 6) * 4; + if (minw==="#5/6#") minw = maxw = (winw / 6) * 5; + + } + + if (_._ingroup) { + _._groupw = minw; + _._grouph = minh; + } + + punchgs.TweenLite.set(nc,{ + maxWidth:maxw, + maxHeight:maxh, + minWidth:minw, + minHeight:minh, + whiteSpace:obj.whiteSpace, + textAlign:(obj.textAlign), + overwrite:"auto" + }); + + if (obj.color!="nopredefinedcolor") + punchgs.TweenLite.set(nc,{color:obj.color,overwrite:"auto"}); + + if (_.svg_src!=undefined) { + var scolto = obj.color!="nopredefinedcolor" && obj.color!=undefined ? obj.color : obj.css!=undefined && obj.css.color!="nopredefinedcolor" && obj.css.color!=undefined ? obj.css.color : obj.styleProps.color!=undefined ? obj.styleProps.color : obj.styleProps.css!=undefined && obj.styleProps.css.color!=undefined ? obj.styleProps.css.color : false; + if (scolto!=false) { + punchgs.TweenLite.set(nc.find('svg'),{fill:scolto,overwrite:"auto"}); + punchgs.TweenLite.set(nc.find('svg path'),{fill:scolto,overwrite:"auto"}); + } + } + + } + + if (_._nctype==="column") { + if (_._column_bg_set===undefined) { + _._column_bg_set = nc.css('backgroundColor'); + _._column_bg_image = nc.css('backgroundImage'); + _._column_bg_image_repeat =nc.css('backgroundRepeat'); + _._column_bg_image_position =nc.css('backgroundPosition'); + _._column_bg_image_size =nc.css('backgroundSize'); + _._column_bg_opacity = nc.data('bgopacity'); + _._column_bg_opacity = _._column_bg_opacity===undefined ? 1 : _._column_bg_opacity; + + + punchgs.TweenLite.set(nc,{ + backgroundColor:"transparent", + backgroundImage:"" + }); + } + + setTimeout(function() { + setColumnBgDimension(nc,opt); + },1); + + // DYNAMIC HEIGHT AUTO CALCULATED BY BROWSER + if (_._cbgc_auto) { + _._cbgc_auto[0].style.backgroundSize = _._column_bg_image_size; + if (jQuery.isArray(obj.marginLeft)) { + punchgs.TweenLite.set(_._cbgc_auto,{ + borderTopWidth: (obj.marginTop[opt.curWinRange] * bh) + "px", + borderLeftWidth: (obj.marginLeft[opt.curWinRange] * bw) + "px", + borderRightWidth: (obj.marginRight[opt.curWinRange] * bw) + "px", + borderBottomWidth:(obj.marginBottom[opt.curWinRange] * bh) + "px", + backgroundColor:_._column_bg_set, + backgroundImage:_._column_bg_image, + backgroundRepeat:_._column_bg_image_repeat, + backgroundPosition:_._column_bg_image_position, + opacity:_._column_bg_opacity + + }); + } else { + punchgs.TweenLite.set(_._cbgc_auto,{ + borderTopWidth: (obj.marginTop * bh) + "px", + borderLeftWidth: (obj.marginLeft * bw) + "px", + borderRightWidth: (obj.marginRight * bw) + "px", + borderBottomWidth:(obj.marginBottom * bh) + "px", + backgroundColor:_._column_bg_set, + backgroundImage:_._column_bg_image, + backgroundRepeat:_._column_bg_image_repeat, + backgroundPosition:_._column_bg_image_position, + opacity:_._column_bg_opacity + + }); + } + + + } + } + + setTimeout(function() { + nc.css("-webkit-transition", nc.data('wan')); + nc.css("-moz-transition", nc.data('moan')); + nc.css("-ms-transition", nc.data('man')); + nc.css("transition", nc.data('ani')); + },30); + } +} + + +var setColumnBgDimension = function(nc,opt) { + // DYNAMIC HEIGHT BASED ON ROW HEIGHT + var _ = nc.data(); + if (_._cbgc_man) { + + + var _l,_t,_b,_r,_h,_o; + + if (!jQuery.isArray(_.cssobj.marginLeft)) { + _l = (_.cssobj.marginLeft * opt.bw); + _t = (_.cssobj.marginTop * opt.bh); + _b = (_.cssobj.marginBottom * opt.bh); + _r = (_.cssobj.marginRight * opt.bw); + } else { + _l = (_.cssobj.marginLeft[opt.curWinRange] * opt.bw); + _t = (_.cssobj.marginTop[opt.curWinRange] * opt.bh); + _b = (_.cssobj.marginBottom[opt.curWinRange] * opt.bh); + _r = (_.cssobj.marginRight[opt.curWinRange] * opt.bw); + } + _h = _._row.hasClass("rev_break_columns") ? "100%" : (_._row.outerHeight() - (_t+_b))+"px"; + + + + _._cbgc_man[0].style.backgroundSize = _._column_bg_image_size; + punchgs.TweenLite.set(_._cbgc_man,{ + width:"100%", + height:_h, + backgroundColor:_._column_bg_set, + backgroundImage:_._column_bg_image, + backgroundRepeat:_._column_bg_image_repeat, + backgroundPosition:_._column_bg_image_position, + overwrite:"auto", + opacity:_._column_bg_opacity + }); + + } +} + +////////////////////// +// CAPTION LOOPS // +////////////////////// +var callCaptionLoops = function(el,factor) { + var _ = el.data(); + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-pendulum")) { + if (_._loop_timeline==undefined) { + _._loop_timeline = new punchgs.TimelineLite; + var startdeg = el.data('startdeg')==undefined ? -20 : el.data('startdeg'), + enddeg = el.data('enddeg')==undefined ? 20 : el.data('enddeg'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + + startdeg = startdeg * factor; + enddeg = enddeg * factor; + + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing})); + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:enddeg,transformOrigin:origin},{rotation:startdeg,ease:easing,onComplete:function() { + _._loop_timeline.restart(); + }})); + } + + } + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-rotate")) { + if (_._loop_timeline==undefined) { + _._loop_timeline = new punchgs.TimelineLite; + var startdeg = el.data('startdeg')==undefined ? 0 : el.data('startdeg'), + enddeg = el.data('enddeg')==undefined ? 360 : el.data('enddeg'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + startdeg = startdeg * factor; + enddeg = enddeg * factor; + + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing,onComplete:function() { + _._loop_timeline.restart(); + }})); + } + + } + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-slideloop")) { + if (_._loop_timeline==undefined) { + _._loop_timeline = new punchgs.TimelineLite; + var xs = el.data('xs')==undefined ? 0 : el.data('xs'), + ys = el.data('ys')==undefined ? 0 : el.data('ys'), + xe = el.data('xe')==undefined ? 0 : el.data('xe'), + ye = el.data('ye')==undefined ? 0 : el.data('ye'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + xs = xs * factor; + ys = ys * factor; + xe = xe * factor; + ye = ye * factor; + + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xs,y:ys},{x:xe,y:ye,ease:easing})); + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xe,y:ye},{x:xs,y:ys,onComplete:function() { + _._loop_timeline.restart(); + }})); + } + } + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-pulse")) { + if (_._loop_timeline==undefined) { + _._loop_timeline = new punchgs.TimelineLite; + var zoomstart = el.data('zoomstart')==undefined ? 0 : el.data('zoomstart'), + zoomend = el.data('zoomend')==undefined ? 0 : el.data('zoomend'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomstart},{scale:zoomend,ease:easing})); + _._loop_timeline.append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomend},{scale:zoomstart,onComplete:function() { + _._loop_timeline.restart(); + }})); + } + } + + if (el.hasClass("rs-wave")) { + if (_._loop_timeline==undefined) { + _._loop_timeline = new punchgs.TimelineLite; + + var angle= el.data('angle')==undefined ? 10 : parseInt(el.data('angle'),0), + radius = el.data('radius')==undefined ? 10 : parseInt(el.data('radius'),0), + speed = el.data('speed')==undefined ? -20 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + ors = origin.split(" "), + oo = new Object(); + + if (ors.length>=1) { + oo.x = ors[0]; + oo.y = ors[1]; + } else { + oo.x = "50%"; + oo.y = "50%"; + } + + radius = radius * factor; + + var _ox = ((parseInt(oo.x,0)/100)-0.5) * el.width(), + _oy = ((parseInt(oo.y,0)/100)-0.5) * el.height(), + yo = (-1*radius) + _oy, + xo = 0 + _ox, + angobj= {a:0, ang : angle, element:el, unit:radius, xoffset:xo, yoffset:yo}, + ang = parseInt(angle,0), + waveanim = new punchgs.TweenLite.fromTo(angobj,speed,{ a:(0+ang) },{ a:(360+ang),force3D:"auto",ease:punchgs.Linear.easeNone}); + + waveanim.eventCallback("onUpdate",function(angobj) { + var rad = angobj.a * (Math.PI / 180), + yy = angobj.yoffset+(angobj.unit * (1 - Math.sin(rad))), + xx = angobj.xoffset+Math.cos(rad) * angobj.unit; + punchgs.TweenLite.to(angobj.element,0.1,{force3D:"auto",x:xx, y:yy}); + },[angobj]); + + waveanim.eventCallback("onComplete",function(_) { + _._loop_timeline.restart(); + },[_]); + + _._loop_timeline.append(waveanim); + } + } +} + +var killCaptionLoops = function(nextcaption) { + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.closest('.rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave').each(function() { + var _ = this; + if (_._loop_timeline!=undefined) { + _._loop_timeline.pause(); + _._loop_timeline = null; + } + }); +} + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.migration.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.migration.js new file mode 100644 index 0000000..f552d16 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.migration.js @@ -0,0 +1,260 @@ +/***************************************************************************************************** + * jquery.themepunch.revmigrate.js - jQuery Plugin for Revolution Slider Migration from 4.x to 5.0 + * @version: 1.0.2 (20.01.2016) + * @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=''; + 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=''; + 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 + }; + + } + + if (o.fallbacks==undefined) + 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); + + + + diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.navigation.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.navigation.js new file mode 100644 index 0000000..81153c1 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.navigation.js @@ -0,0 +1,1143 @@ +/******************************************** + * REVOLUTION 5.2 EXTENSION - NAVIGATION + * @version: 1.3.2 (25.10.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +(function($) { +"use strict"; +var _R = jQuery.fn.revolution, + _ISM = _R.is_mobile(), + extension = { alias:"Navigation Min JS", + name:"revolution.extensions.navigation.min.js", + min_core: "5.3", + version:"1.3.2" + }; + + +/////////////////////////////////////////// +// EXTENDED FUNCTIONS AVAILABLE GLOBAL // +/////////////////////////////////////////// +jQuery.extend(true,_R, { + + + hideUnHideNav : function(opt) { + var w = opt.c.width(), + a = opt.navigation.arrows, + b = opt.navigation.bullets, + c = opt.navigation.thumbnails, + d = opt.navigation.tabs; + + if (ckNO(a)) biggerNav(opt.c.find('.tparrows'),a.hide_under,w,a.hide_over); + if (ckNO(b)) biggerNav(opt.c.find('.tp-bullets'),b.hide_under,w,b.hide_over); + if (ckNO(c)) biggerNav(opt.c.parent().find('.tp-thumbs'),c.hide_under,w,c.hide_over); + if (ckNO(d)) biggerNav(opt.c.parent().find('.tp-tabs'),d.hide_under,w,d.hide_over); + + setONHeights(opt); + + }, + + resizeThumbsTabs : function(opt,force) { + + + if ((opt.navigation && opt.navigation.tabs.enable) || (opt.navigation && opt.navigation.thumbnails.enable)) { + var f = (jQuery(window).width()-480) / 500, + tws = new punchgs.TimelineLite(), + otab = opt.navigation.tabs, + othu = opt.navigation.thumbnails, + otbu = opt.navigation.bullets; + + tws.pause(); + f = f>1 ? 1 : f<0 ? 0 : f; + + if (ckNO(otab) && (force || otab.width>otab.min_width)) rtt(f,tws,opt.c,otab,opt.slideamount,'tab'); + if (ckNO(othu) && (force || othu.width>othu.min_width)) rtt(f,tws,opt.c,othu,opt.slideamount,'thumb'); + if (ckNO(otbu) && force) { + // SET BULLET SPACES AND POSITION + var bw = opt.c.find('.tp-bullets'); + + bw.find('.tp-bullet').each(function(i){ + var b = jQuery(this), + am = i+1, + w = b.outerWidth()+parseInt((otbu.space===undefined? 0:otbu.space),0), + h = b.outerHeight()+parseInt((otbu.space===undefined? 0:otbu.space),0); + + if (otbu.direction==="vertical") { + b.css({top:((am-1)*h)+"px", left:"0px"}); + bw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()}); + } + else { + b.css({left:((am-1)*w)+"px", top:"0px"}); + bw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()}); + } + }); + + } + + tws.play(); + + setONHeights(opt); + } + return true; + }, + + updateNavIndexes : function(opt) { + var _ = opt.c; + + function setNavIndex(a) { + if (_.find(a).lenght>0) { + _.find(a).each(function(i) { + jQuery(this).data('liindex',i); + }) + } + } + + setNavIndex('.tp-tab'); + setNavIndex('.tp-bullet'); + setNavIndex('.tp-thumb'); + _R.resizeThumbsTabs(opt,true); + _R.manageNavigation(opt); + }, + + + // PUT NAVIGATION IN POSITION AND MAKE SURE THUMBS AND TABS SHOWING TO THE RIGHT POSITION + manageNavigation : function(opt) { + + + + var lof = _R.getHorizontalOffset(opt.c.parent(),"left"), + rof = _R.getHorizontalOffset(opt.c.parent(),"right"); + + if (ckNO(opt.navigation.bullets)) { + if (opt.sliderLayout!="fullscreen" && opt.sliderLayout!="fullwidth") { + // OFFSET ADJUSTEMENT FOR LEFT ARROWS BASED ON THUMBNAILS AND TABS OUTTER + opt.navigation.bullets.h_offset_old = opt.navigation.bullets.h_offset_old === undefined ? opt.navigation.bullets.h_offset : opt.navigation.bullets.h_offset_old; + opt.navigation.bullets.h_offset = opt.navigation.bullets.h_align==="center" ? opt.navigation.bullets.h_offset_old+lof/2 -rof/2: opt.navigation.bullets.h_offset_old+lof-rof; + } + setNavElPositions(opt.c.find('.tp-bullets'),opt.navigation.bullets,opt); + } + + if (ckNO(opt.navigation.thumbnails)) + setNavElPositions(opt.c.parent().find('.tp-thumbs'),opt.navigation.thumbnails,opt); + + if (ckNO(opt.navigation.tabs)) + setNavElPositions(opt.c.parent().find('.tp-tabs'),opt.navigation.tabs,opt); + + if (ckNO(opt.navigation.arrows)) { + + if (opt.sliderLayout!="fullscreen" && opt.sliderLayout!="fullwidth") { + // OFFSET ADJUSTEMENT FOR LEFT ARROWS BASED ON THUMBNAILS AND TABS OUTTER + opt.navigation.arrows.left.h_offset_old = opt.navigation.arrows.left.h_offset_old === undefined ? opt.navigation.arrows.left.h_offset : opt.navigation.arrows.left.h_offset_old; + opt.navigation.arrows.left.h_offset = opt.navigation.arrows.left.h_align==="right" ? opt.navigation.arrows.left.h_offset_old+rof : opt.navigation.arrows.left.h_offset_old+lof; + + opt.navigation.arrows.right.h_offset_old = opt.navigation.arrows.right.h_offset_old === undefined ? opt.navigation.arrows.right.h_offset : opt.navigation.arrows.right.h_offset_old; + opt.navigation.arrows.right.h_offset = opt.navigation.arrows.right.h_align==="right" ? opt.navigation.arrows.right.h_offset_old+rof : opt.navigation.arrows.right.h_offset_old+lof; + } + setNavElPositions(opt.c.find('.tp-leftarrow.tparrows'),opt.navigation.arrows.left,opt); + setNavElPositions(opt.c.find('.tp-rightarrow.tparrows'),opt.navigation.arrows.right,opt); + } + + + if (ckNO(opt.navigation.thumbnails)) + moveThumbsInPosition(opt.c.parent().find('.tp-thumbs'),opt.navigation.thumbnails); + + if (ckNO(opt.navigation.tabs)) + moveThumbsInPosition(opt.c.parent().find('.tp-tabs'),opt.navigation.tabs); + }, + + + // MANAGE THE NAVIGATION + createNavigation : function(container,opt) { + if (_R.compare_version(extension).check==="stop") return false; + var cp = container.parent(), + _a = opt.navigation.arrows, _b = opt.navigation.bullets, _c = opt.navigation.thumbnails, _d = opt.navigation.tabs, + a = ckNO(_a), b = ckNO(_b), c = ckNO(_c), d = ckNO(_d); + + + // Initialise Keyboard Navigation if Option set so + initKeyboard(container,opt); + + // Initialise Mouse Scroll Navigation if Option set so + initMouseScroll(container,opt); + + //Draw the Arrows + if (a) initArrows(container,_a,opt); + + // BUILD BULLETS, THUMBS and TABS + opt.li.each(function(index) { + + var li_rtl = jQuery(opt.li[opt.li.length-1-index]); + var li = jQuery(this); + + if (b) + if (opt.navigation.bullets.rtl) + addBullet(container,_b,li_rtl,opt); + else + addBullet(container,_b,li,opt); + + if (c) + if (opt.navigation.thumbnails.rtl) + addThumb(container,_c,li_rtl,'tp-thumb',opt); + else + addThumb(container,_c,li,'tp-thumb',opt); + if (d) + if (opt.navigation.tabs.rtl) + addThumb(container,_d,li_rtl,'tp-tab',opt); + else + addThumb(container,_d,li,'tp-tab',opt); + }); + + // LISTEN TO SLIDE CHANGE - SET ACTIVE SLIDE BULLET + container.bind('revolution.slide.onafterswap revolution.nextslide.waiting',function() { + + //cp.find('.tp-bullet, .tp-thumb, .tp-tab').removeClass("selected"); + + var si = container.find(".next-revslide").length==0 ? container.find(".active-revslide").data("index") : container.find(".next-revslide").data("index"); + + container.find('.tp-bullet').each(function() { + var _t = jQuery(this); + if (_t.data('liref')===si) + _t.addClass("selected"); + else + _t.removeClass("selected"); + }); + + cp.find('.tp-thumb, .tp-tab').each(function() { + var _t = jQuery(this); + if (_t.data('liref')===si) { + _t.addClass("selected"); + if (_t.hasClass("tp-tab")) + moveThumbsInPosition(cp.find('.tp-tabs'),_d); + else + moveThumbsInPosition(cp.find('.tp-thumbs'),_c); + } else + _t.removeClass("selected"); + + }); + + var ai = 0, + f = false; + if (opt.thumbs) + jQuery.each(opt.thumbs,function(i,obj) { + ai = f === false ? i : ai; + f = obj.id === si || i === si ? true : f; + }); + + + var pi = ai>0 ? ai-1 : opt.slideamount-1, + ni = (ai+1)==opt.slideamount ? 0 : ai+1; + + + if (_a.enable === true) { + var inst = _a.tmp; + if (opt.thumbs[pi]!=undefined) { + jQuery.each(opt.thumbs[pi].params,function(i,obj) { + inst = inst.replace(obj.from,obj.to); + }); + } + _a.left.j.html(inst); + inst = _a.tmp; + if (ni>opt.slideamount) return; + jQuery.each(opt.thumbs[ni].params,function(i,obj) { + inst = inst.replace(obj.from,obj.to); + }); + _a.right.j.html(inst); + punchgs.TweenLite.set(_a.left.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[pi].src+")"}); + punchgs.TweenLite.set(_a.right.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[ni].src+")"}); + } + + + }); + + hdResets(_a); + hdResets(_b); + hdResets(_c); + hdResets(_d); + + + // HOVER OVER ELEMENTS SHOULD SHOW/HIDE NAVIGATION ELEMENTS + cp.on("mouseenter mousemove",function() { + + if (!cp.hasClass("tp-mouseover")) { + cp.addClass("tp-mouseover"); + + punchgs.TweenLite.killDelayedCallsTo(showHideNavElements); + + if (a && _a.hide_onleave) showHideNavElements(cp.find('.tparrows'),_a,"show"); + if (b && _b.hide_onleave) showHideNavElements(cp.find('.tp-bullets'),_b,"show"); + if (c && _c.hide_onleave) showHideNavElements(cp.find('.tp-thumbs'),_c,"show"); + if (d && _d.hide_onleave) showHideNavElements(cp.find('.tp-tabs'),_d,"show"); + + // ON MOBILE WE NEED TO HIDE ELEMENTS EVEN AFTER TOUCH + if (_ISM) { + cp.removeClass("tp-mouseover"); + callAllDelayedCalls(container,opt); + } + } + }); + + cp.on("mouseleave",function() { + cp.removeClass("tp-mouseover"); + callAllDelayedCalls(container,opt); + }); + + // FIRST RUN HIDE ALL ELEMENTS + if (a && _a.hide_onleave) showHideNavElements(cp.find('.tparrows'),_a,"hide",0); + if (b && _b.hide_onleave) showHideNavElements(cp.find('.tp-bullets'),_b,"hide",0); + if (c && _c.hide_onleave) showHideNavElements(cp.find('.tp-thumbs'),_c,"hide",0); + if (d && _d.hide_onleave) showHideNavElements(cp.find('.tp-tabs'),_d,"hide",0); + + // Initialise Swipe Navigation + if (c) swipeAction(cp.find('.tp-thumbs'),opt); + if (d) swipeAction(cp.find('.tp-tabs'),opt); + if (opt.sliderType==="carousel") swipeAction(container,opt,true); + if (opt.navigation.touch.touchenabled=="on") swipeAction(container,opt,"swipebased"); + } + +}); + + + + +///////////////////////////////// +// - INTERNAL FUNCTIONS - /// +///////////////////////////////// + + +var moveThumbsInPosition = function(container,opt) { + + var thumbs = container.hasClass("tp-thumbs") ? ".tp-thumbs" : ".tp-tabs", + thumbmask = container.hasClass("tp-thumbs") ? ".tp-thumb-mask" : ".tp-tab-mask", + thumbsiw = container.hasClass("tp-thumbs") ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper", + thumb = container.hasClass("tp-thumbs") ? ".tp-thumb" : ".tp-tab", + t=container.find(thumbmask), + el = t.find(thumbsiw), + thumbdir = opt.direction, + tw = thumbdir==="vertical" ? t.find(thumb).first().outerHeight(true)+opt.space : t.find(thumb).first().outerWidth(true)+opt.space, + tmw = thumbdir==="vertical" ? t.height() : t.width(), + ti = parseInt(t.find(thumb+'.selected').data('liindex'),0), + me = tmw/tw, + ts = thumbdir==="vertical" ? t.height() : t.width(), + tp = 0-(ti * tw), + els = thumbdir==="vertical" ? el.height() : el.width(), + curpos = tp < 0-(els-ts) ? 0-(els-ts) : curpos > 0 ? 0 : tp, + elp = el.data('offset'); + + + if (me>2) { + curpos = tp - (elp+tw) <= 0 ? tp - (elp+tw) < 0-tw ? elp : curpos + tw : curpos; + curpos = ( (tp-tw + elp + tmw)< tw && tp + (Math.round(me)-2)*tw < elp) ? tp + (Math.round(me)-2)*tw : curpos; + } + + curpos = curpos < 0-(els-ts) ? 0-(els-ts) : curpos > 0 ? 0 : curpos; + + if (thumbdir!=="vertical" && t.width()>=el.width()) curpos = 0; + if (thumbdir==="vertical" && t.height()>=el.height()) curpos = 0; + + + if (!container.hasClass("dragged")) { + if (thumbdir==="vertical") + el.data('tmmove',punchgs.TweenLite.to(el,0.5,{top:curpos+"px",ease:punchgs.Power3.easeInOut})); + else + el.data('tmmove',punchgs.TweenLite.to(el,0.5,{left:curpos+"px",ease:punchgs.Power3.easeInOut})); + el.data('offset',curpos); + } + }; + + +// RESIZE THE THUMBS BASED ON ORIGINAL SIZE AND CURRENT SIZE OF WINDOW +var rtt = function(f,tws,c,o,lis,wh) { + var h = c.parent().find('.tp-'+wh+'s'), + ins = h.find('.tp-'+wh+'s-inner-wrapper'), + mask = h.find('.tp-'+wh+'-mask'), + cw = o.width*f < o.min_width ? o.min_width : Math.round(o.width*f), + ch = Math.round((cw/o.width) * o.height), + iw = o.direction === "vertical" ? cw : (cw*lis) + ((o.space)*(lis-1)), + ih = o.direction === "vertical" ? (ch*lis) + ((o.space)*(lis-1)) : ch, + anm = o.direction === "vertical" ? {width:cw+"px"} : {height:ch+"px"}; + + + tws.add(punchgs.TweenLite.set(h,anm)); + tws.add(punchgs.TweenLite.set(ins,{width:iw+"px",height:ih+"px"})); + tws.add(punchgs.TweenLite.set(mask,{width:iw+"px",height:ih+"px"})); + var fin = ins.find('.tp-'+wh+''); + if (fin) + jQuery.each(fin,function(i,el) { + if (o.direction === "vertical") + tws.add(punchgs.TweenLite.set(el,{top:(i*(ch+parseInt((o.space===undefined? 0:o.space),0))),width:cw+"px",height:ch+"px"})); + else + if (o.direction === "horizontal") + tws.add(punchgs.TweenLite.set(el,{left:(i*(cw+parseInt((o.space===undefined? 0:o.space),0))),width:cw+"px",height:ch+"px"})); + }); + return tws; +}; + +// INTERNAL FUNCTIONS +var normalizeWheel = function( event) /*object*/ { + + var sX = 0, sY = 0, // spinX, spinY + pX = 0, pY = 0, // pixelX, pixelY + PIXEL_STEP = 1, + LINE_HEIGHT = 1, + PAGE_HEIGHT = 1; + + // Legacy + if ('detail' in event) { sY = event.detail; } + if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; } + if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; } + if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; } + + + //sY = navigator.userAgent.match(/mozilla/i) ? sY*10 : sY; + + + // side scrolling on FF with DOMMouseScroll + if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) { + sX = sY; + sY = 0; + } + + pX = sX * PIXEL_STEP; + pY = sY * PIXEL_STEP; + + if ('deltaY' in event) { pY = event.deltaY; } + if ('deltaX' in event) { pX = event.deltaX; } + + + + if ((pX || pY) && event.deltaMode) { + if (event.deltaMode == 1) { // delta in LINE units + pX *= LINE_HEIGHT; + pY *= LINE_HEIGHT; + } else { // delta in PAGE units + pX *= PAGE_HEIGHT; + pY *= PAGE_HEIGHT; + } + } + + // Fall-back if spin cannot be determined + if (pX && !sX) { sX = (pX < 1) ? -1 : 1; } + if (pY && !sY) { sY = (pY < 1) ? -1 : 1; } + + pY = navigator.userAgent.match(/mozilla/i) ? pY*10 : pY; + + if (pY>300 || pY<-300) pY = pY/10; + + return { spinX : sX, + spinY : sY, + pixelX : pX, + pixelY : pY }; + }; + +var initKeyboard = function(container,opt) { + if (opt.navigation.keyboardNavigation!=="on") return; + jQuery(document).keydown(function(e){ + if ((opt.navigation.keyboard_direction=="horizontal" && e.keyCode == 39) || (opt.navigation.keyboard_direction=="vertical" && e.keyCode==40)) { + opt.sc_indicator="arrow"; + opt.sc_indicator_dir = 0; + _R.callingNewSlide(container,1); + } + if ((opt.navigation.keyboard_direction=="horizontal" && e.keyCode == 37) || (opt.navigation.keyboard_direction=="vertical" && e.keyCode==38)) { + opt.sc_indicator="arrow"; + opt.sc_indicator_dir = 1; + _R.callingNewSlide(container,-1); + } + }); +}; + + + +var initMouseScroll = function(container,opt) { + + if (opt.navigation.mouseScrollNavigation!=="on" && opt.navigation.mouseScrollNavigation!=="carousel") return; + opt.isIEEleven = !!navigator.userAgent.match(/Trident.*rv\:11\./); + opt.isSafari = !!navigator.userAgent.match(/safari/i); + opt.ischrome = !!navigator.userAgent.match(/chrome/i); + + + var bl = opt.ischrome ? -49 : opt.isIEEleven || opt.isSafari ? -9 : navigator.userAgent.match(/mozilla/i) ? -29 : -49, + tl = opt.ischrome ? 49 : opt.isIEEleven || opt.isSafari ? 9 : navigator.userAgent.match(/mozilla/i) ? 29 : 49; + + + container.on('mousewheel DOMMouseScroll', function(e) { + + var res = normalizeWheel(e.originalEvent), + asi = container.find('.tp-revslider-slidesli.active-revslide').index(), + psi = container.find('.tp-revslider-slidesli.processing-revslide').index(), + fs = asi!=-1 && asi==0 || psi!=-1 && psi==0 ? true : false, + ls = asi!=-1 && asi==opt.slideamount-1 || psi!=1 && psi==opt.slideamount-1 ? true:false, + ret = true; + if (opt.navigation.mouseScrollNavigation=="carousel") + fs = ls = false; + + + if (psi==-1) { + + if(res.pixelYtl) { + if (!ls) { + opt.sc_indicator="arrow"; + if (opt.navigation.mouseScrollReverse!=="reverse") { + opt.sc_indicator_dir = 0; + _R.callingNewSlide(container,1); + } + ret = false; + } + if (!fs) { + opt.sc_indicator="arrow"; + if (opt.navigation.mouseScrollReverse==="reverse") { + opt.sc_indicator_dir = 1; + _R.callingNewSlide(container,-1); + } + ret = false; + } + } + + + } else { + ret = false; + } + + var tc = opt.c.offset().top-jQuery('body').scrollTop(), + bc = tc+opt.c.height(); + if (opt.navigation.mouseScrollNavigation!="carousel") { + if (opt.navigation.mouseScrollReverse!=="reverse") + if ((tc>0 && res.pixelY>0) || (bcjQuery(window).height() && res.pixelY>0)) + ret = true; + } else { + ret=false; + } + + + if (ret==false) { + e.preventDefault(e); + return false; + } else { + return; + } + }); +}; + +var isme = function (a,c,e) { + a = _ISM ? jQuery(e.target).closest('.'+a).length || jQuery(e.srcElement).closest('.'+a).length : jQuery(e.toElement).closest('.'+a).length || jQuery(e.originalTarget).closest('.'+a).length; + return a === true || a=== 1 ? 1 : 0; +}; + +// - SET THE SWIPE FUNCTION // + + +var swipeAction = function(container,opt,vertical) { + + //container[0].opt = opt; + + // TOUCH ENABLED SCROLL + var _ = opt.carousel; + jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"); + + + + _.Limit = "endless"; + var notonbody = _ISM || _R.get_browser()==="Firefox", + SwipeOn = container, //notonbody ? container : jQuery('body'), + pagescroll = opt.navigation.thumbnails.direction==="vertical" || opt.navigation.tabs.direction==="vertical"? "none" : "vertical", + swipe_wait_dir = opt.navigation.touch.swipe_direction || "horizontal"; + + pagescroll = vertical == "swipebased" && swipe_wait_dir=="vertical" ? "none" : vertical ? "vertical" : pagescroll; + + if (!jQuery.fn.swipetp) jQuery.fn.swipetp = jQuery.fn.swipe; + if (!jQuery.fn.swipetp.defaults || !jQuery.fn.swipetp.defaults.excludedElements) + if (!jQuery.fn.swipetp.defaults) + jQuery.fn.swipetp.defaults = new Object(); + + jQuery.fn.swipetp.defaults.excludedElements = "label, button, input, select, textarea, .noSwipe" + + + SwipeOn.swipetp({ + allowPageScroll:pagescroll, + triggerOnTouchLeave:true, + treshold:opt.navigation.touch.swipe_treshold, + fingers:opt.navigation.touch.swipe_min_touches, + + excludeElements:jQuery.fn.swipetp.defaults.excludedElements, + + swipeStatus:function(event,phase,direction,distance,duration,fingerCount,fingerData) { + + + var withinslider = isme('rev_slider_wrapper',container,event), + withinthumbs = isme('tp-thumbs',container,event), + withintabs = isme('tp-tabs',container,event), + starget = jQuery(this).attr('class'), + istt = starget.match(/tp-tabs|tp-thumb/gi) ? true : false; + + + + // SWIPE OVER SLIDER, TO SWIPE SLIDES IN CAROUSEL MODE + if (opt.sliderType==="carousel" && + (((phase==="move" || phase==="end" || phase=="cancel") && (opt.dragStartedOverSlider && !opt.dragStartedOverThumbs && !opt.dragStartedOverTabs)) + || (phase==="start" && withinslider>0 && withinthumbs===0 && withintabs===0))) { + + opt.dragStartedOverSlider = true; + distance = (direction && direction.match(/left|up/g)) ? Math.round(distance * -1) : distance = Math.round(distance * 1); + + switch (phase) { + case "start": + if (_.positionanim!==undefined) { + _.positionanim.kill(); + _.slide_globaloffset = _.infinity==="off" ? _.slide_offset : _R.simp(_.slide_offset, _.maxwidth); + } + _.overpull = "none"; + _.wrap.addClass("dragged"); + + break; + case "move": + + opt.c.find('.tp-withaction').addClass("tp-temporarydisabled"); + _.slide_offset = _.infinity==="off" ? _.slide_globaloffset + distance : _R.simp(_.slide_globaloffset + distance, _.maxwidth); + + if (_.infinity==="off") { + var bb = _.horizontal_align==="center" ? ((_.wrapwidth/2-_.slide_width/2) - _.slide_offset) / _.slide_width : (0 - _.slide_offset) / _.slide_width; + + if ((_.overpull ==="none" || _.overpull===0) && (bb<0 || bb>opt.slideamount-1)) + _.overpull = distance; + else + if (bb>=0 && bb<=opt.slideamount-1 && ((bb>=0 && distance>_.overpull) || (bb<=opt.slideamount-1 && distance<_.overpull))) + _.overpull = 0; + + _.slide_offset = bb<0 ? _.slide_offset+ (_.overpull-distance)/1.1 + Math.sqrt(Math.abs((_.overpull-distance)/1.1)) : + bb>opt.slideamount-1 ? _.slide_offset+ (_.overpull-distance)/1.1 - Math.sqrt(Math.abs((_.overpull-distance)/1.1)) : _.slide_offset ; + } + _R.organiseCarousel(opt,direction,true,true); + break; + + case "end": + case "cancel": + //duration !! + _.slide_globaloffset = _.slide_offset; + _.wrap.removeClass("dragged"); + _R.carouselToEvalPosition(opt,direction); + opt.dragStartedOverSlider = false; + opt.dragStartedOverThumbs = false; + opt.dragStartedOverTabs = false; + setTimeout(function() { + opt.c.find('.tp-withaction').removeClass("tp-temporarydisabled"); + },19); + break; + } + } else + + // SWIPE OVER THUMBS OR TABS + if (( + ((phase==="move" || phase==="end" || phase=="cancel") && (!opt.dragStartedOverSlider && (opt.dragStartedOverThumbs || opt.dragStartedOverTabs))) + || + (phase==="start" && (withinslider>0 && (withinthumbs>0 || withintabs>0))))) { + + + if (withinthumbs>0) opt.dragStartedOverThumbs = true; + if (withintabs>0) opt.dragStartedOverTabs = true; + + var thumbs = opt.dragStartedOverThumbs ? ".tp-thumbs" : ".tp-tabs", + thumbmask = opt.dragStartedOverThumbs ? ".tp-thumb-mask" : ".tp-tab-mask", + thumbsiw = opt.dragStartedOverThumbs ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper", + thumb = opt.dragStartedOverThumbs ? ".tp-thumb" : ".tp-tab", + _o = opt.dragStartedOverThumbs ? opt.navigation.thumbnails : opt.navigation.tabs; + + + distance = (direction && direction.match(/left|up/g)) ? Math.round(distance * -1) : distance = Math.round(distance * 1); + var t= container.parent().find(thumbmask), + el = t.find(thumbsiw), + tdir = _o.direction, + els = tdir==="vertical" ? el.height() : el.width(), + ts = tdir==="vertical" ? t.height() : t.width(), + tw = tdir==="vertical" ? t.find(thumb).first().outerHeight(true)+_o.space : t.find(thumb).first().outerWidth(true)+_o.space, + newpos = (el.data('offset') === undefined ? 0 : parseInt(el.data('offset'),0)), + curpos = 0; + + switch (phase) { + case "start": + container.parent().find(thumbs).addClass("dragged"); + newpos = tdir === "vertical" ? el.position().top : el.position().left; + el.data('offset',newpos); + if (el.data('tmmove')) el.data('tmmove').pause(); + + break; + case "move": + if (els<=ts) return false; + + curpos = newpos + distance; + curpos = curpos>0 ? tdir==="horizontal" ? curpos - (el.width() * (curpos/el.width() * curpos/el.width())) : curpos - (el.height() * (curpos/el.height() * curpos/el.height())) : curpos; + var dif = tdir==="vertical" ? 0-(el.height()-t.height()) : 0-(el.width()-t.width()); + curpos = curpos < dif ? tdir==="horizontal" ? curpos + (el.width() * (curpos-dif)/el.width() * (curpos-dif)/el.width()) : curpos + (el.height() * (curpos-dif)/el.height() * (curpos-dif)/el.height()) : curpos; + if (tdir==="vertical") + punchgs.TweenLite.set(el,{top:curpos+"px"}); + else + punchgs.TweenLite.set(el,{left:curpos+"px"}); + + + break; + + case "end": + case "cancel": + + if (istt) { + curpos = newpos + distance; + + curpos = tdir==="vertical" ? curpos < 0-(el.height()-t.height()) ? 0-(el.height()-t.height()) : curpos : curpos < 0-(el.width()-t.width()) ? 0-(el.width()-t.width()) : curpos; + curpos = curpos > 0 ? 0 : curpos; + + curpos = Math.abs(distance)>tw/10 ? distance<=0 ? Math.floor(curpos/tw)*tw : Math.ceil(curpos/tw)*tw : distance<0 ? Math.ceil(curpos/tw)*tw : Math.floor(curpos/tw)*tw; + + curpos = tdir==="vertical" ? curpos < 0-(el.height()-t.height()) ? 0-(el.height()-t.height()) : curpos : curpos < 0-(el.width()-t.width()) ? 0-(el.width()-t.width()) : curpos; + curpos = curpos > 0 ? 0 : curpos; + + if (tdir==="vertical") + punchgs.TweenLite.to(el,0.5,{top:curpos+"px",ease:punchgs.Power3.easeOut}); + else + punchgs.TweenLite.to(el,0.5,{left:curpos+"px",ease:punchgs.Power3.easeOut}); + + curpos = !curpos ? tdir==="vertical" ? el.position().top : el.position().left : curpos; + + el.data('offset',curpos); + el.data('distance',distance); + + setTimeout(function() { + opt.dragStartedOverSlider = false; + opt.dragStartedOverThumbs = false; + opt.dragStartedOverTabs = false; + },100); + container.parent().find(thumbs).removeClass("dragged"); + + return false; + } + break; + } + } + else { + if (phase=="end" && !istt) { + + opt.sc_indicator="arrow"; + + if ((swipe_wait_dir=="horizontal" && direction == "left") || (swipe_wait_dir=="vertical" && direction == "up")) { + opt.sc_indicator_dir = 0; + _R.callingNewSlide(opt.c,1); + return false; + } + if ((swipe_wait_dir=="horizontal" && direction == "right") || (swipe_wait_dir=="vertical" && direction == "down")) { + opt.sc_indicator_dir = 1; + _R.callingNewSlide(opt.c,-1); + return false; + } + + } + opt.dragStartedOverSlider = false; + opt.dragStartedOverThumbs = false; + opt.dragStartedOverTabs = false; + return true; + } + } + }); +}; + + +// NAVIGATION HELPER FUNCTIONS +var hdResets = function(o) { + o.hide_delay = !jQuery.isNumeric(parseInt(o.hide_delay,0)) ? 0.2 : o.hide_delay/1000; + o.hide_delay_mobile = !jQuery.isNumeric(parseInt(o.hide_delay_mobile,0)) ? 0.2 : o.hide_delay_mobile/1000; +}; + +var ckNO = function(opt) { + return opt && opt.enable; +}; + +var ckNOLO = function(opt) { + return opt && opt.enable && opt.hide_onleave===true && (opt.position===undefined ? true : !opt.position.match(/outer/g)); +}; + +var callAllDelayedCalls = function(container,opt) { + var cp = container.parent(); + + if (ckNOLO(opt.navigation.arrows)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.arrows.hide_delay_mobile : opt.navigation.arrows.hide_delay,showHideNavElements,[cp.find('.tparrows'),opt.navigation.arrows,"hide"]); + + if (ckNOLO(opt.navigation.bullets)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.bullets.hide_delay_mobile : opt.navigation.bullets.hide_delay,showHideNavElements,[cp.find('.tp-bullets'),opt.navigation.bullets,"hide"]); + + if (ckNOLO(opt.navigation.thumbnails)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.thumbnails.hide_delay_mobile : opt.navigation.thumbnails.hide_delay,showHideNavElements,[cp.find('.tp-thumbs'),opt.navigation.thumbnails,"hide"]); + + if (ckNOLO(opt.navigation.tabs)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.tabs.hide_delay_mobile : opt.navigation.tabs.hide_delay,showHideNavElements,[cp.find('.tp-tabs'),opt.navigation.tabs,"hide"]); +}; + +var showHideNavElements = function(container,opt,dir,speed) { + speed = speed===undefined ? 0.5 : speed; + switch (dir) { + case "show": + punchgs.TweenLite.to(container,speed, {autoAlpha:1,ease:punchgs.Power3.easeInOut,overwrite:"auto"}); + break; + case "hide": + punchgs.TweenLite.to(container,speed, {autoAlpha:0,ease:punchgs.Power3.easeInOu,overwrite:"auto"}); + break; + } + +}; + + +// ADD ARROWS +var initArrows = function(container,o,opt) { + + // SET oIONAL CLASSES + o.style = o.style === undefined ? "" : o.style; + o.left.style = o.left.style === undefined ? "" : o.left.style; + o.right.style = o.right.style === undefined ? "" : o.right.style; + + + // ADD LEFT AND RIGHT ARROWS + if (container.find('.tp-leftarrow.tparrows').length===0) + container.append('
    '+o.tmp+'
    '); + if (container.find('.tp-rightarrow.tparrows').length===0) + container.append('
    '+o.tmp+'
    '); + var la = container.find('.tp-leftarrow.tparrows'), + ra = container.find('.tp-rightarrow.tparrows'); + if (o.rtl) { + // CLICK HANDLINGS ON LEFT AND RIGHT ARROWS + la.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 0;container.revnext();}); + ra.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 1;container.revprev();}); + } else { + // CLICK HANDLINGS ON LEFT AND RIGHT ARROWS + ra.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 0;container.revnext();}); + la.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 1;container.revprev();}); + } + // SHORTCUTS + o.right.j = container.find('.tp-rightarrow.tparrows'); + o.left.j = container.find('.tp-leftarrow.tparrows') + + // OUTTUER PADDING DEFAULTS + o.padding_top = parseInt((opt.carousel.padding_top||0),0), + o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0); + + // POSITION OF ARROWS + setNavElPositions(la,o.left,opt); + setNavElPositions(ra,o.right,opt); + + o.left.opt = opt; + o.right.opt = opt; + + + if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true; +}; + + +// PUT ELEMENTS VERTICAL / HORIZONTAL IN THE RIGHT POSITION +var putVinPosition = function(el,o,opt) { + + var elh = el.outerHeight(true), + elw = el.outerWidth(true), + oh = o.opt== undefined ? 0 : opt.conh == 0 ? opt.height : opt.conh, + by = o.container=="layergrid" ? opt.sliderLayout=="fullscreen" ? opt.height/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2 : (opt.autoHeight=="on" || (opt.minHeight!=undefined && opt.minHeight>0)) ? oh/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2 : 0 : 0, + a = o.v_align === "top" ? {top:"0px",y:Math.round(o.v_offset+by)+"px"} : o.v_align === "center" ? {top:"50%",y:Math.round(((0-elh/2)+o.v_offset))+"px"} : {top:"100%",y:Math.round((0-(elh+o.v_offset+by)))+"px"}; + if (!el.hasClass("outer-bottom")) punchgs.TweenLite.set(el,a); + +}; + +var putHinPosition = function(el,o,opt) { + + var elh = el.outerHeight(true), + elw = el.outerWidth(true), + bx = o.container=="layergrid" ? opt.sliderType==="carousel" ? 0 : opt.width/2 - (opt.gridwidth[opt.curWinRange]*opt.bw)/2 : 0, + a = o.h_align === "left" ? {left:"0px",x:Math.round(o.h_offset+bx)+"px"} : o.h_align === "center" ? {left:"50%",x:Math.round(((0-elw/2)+o.h_offset))+"px"} : {left:"100%",x:Math.round((0-(elw+o.h_offset+bx)))+"px"}; + punchgs.TweenLite.set(el,a); +}; + +// SET POSITION OF ELEMENTS +var setNavElPositions = function(el,o,opt) { + + var wrapper = + el.closest('.tp-simpleresponsive').length>0 ? + el.closest('.tp-simpleresponsive') : + el.closest('.tp-revslider-mainul').length>0 ? + el.closest('.tp-revslider-mainul') : + el.closest('.rev_slider_wrapper').length>0 ? + el.closest('.rev_slider_wrapper'): + el.parent().find('.tp-revslider-mainul'), + ww = wrapper.width(), + wh = wrapper.height(); + + putVinPosition(el,o,opt); + putHinPosition(el,o,opt); + + if (o.position==="outer-left" && (o.sliderLayout=="fullwidth" || o.sliderLayout=="fullscreen")) + punchgs.TweenLite.set(el,{left:(0-el.outerWidth())+"px",x:o.h_offset+"px"}); + else + if (o.position==="outer-right" && (o.sliderLayout=="fullwidth" || o.sliderLayout=="fullscreen")) + punchgs.TweenLite.set(el,{right:(0-el.outerWidth())+"px",x:o.h_offset+"px"}); + + + // MAX WIDTH AND HEIGHT BASED ON THE SOURROUNDING CONTAINER + if (el.hasClass("tp-thumbs") || el.hasClass("tp-tabs")) { + + var wpad = el.data('wr_padding'), + maxw = el.data('maxw'), + maxh = el.data('maxh'), + mask = el.hasClass("tp-thumbs") ? el.find('.tp-thumb-mask') : el.find('.tp-tab-mask'), + cpt = parseInt((o.padding_top||0),0), + cpb = parseInt((o.padding_bottom||0),0); + + + // ARE THE CONTAINERS BIGGER THAN THE SLIDER WIDTH OR HEIGHT ? + if (maxw>ww && o.position!=="outer-left" && o.position!=="outer-right") { + punchgs.TweenLite.set(el,{left:"0px",x:0,maxWidth:(ww-2*wpad)+"px"}); + punchgs.TweenLite.set(mask,{maxWidth:(ww-2*wpad)+"px"}); + } else { + punchgs.TweenLite.set(el,{maxWidth:(maxw)+"px"}); + punchgs.TweenLite.set(mask,{maxWidth:(maxw)+"px"}); + } + + if (maxh+2*wpad>wh && o.position!=="outer-bottom" && o.position!=="outer-top") { + punchgs.TweenLite.set(el,{top:"0px",y:0,maxHeight:(cpt+cpb+(wh-2*wpad))+"px"}); + punchgs.TweenLite.set(mask,{maxHeight:(cpt+cpb+(wh-2*wpad))+"px"}); + } else { + punchgs.TweenLite.set(el,{maxHeight:(maxh)+"px"}); + punchgs.TweenLite.set(mask,{maxHeight:maxh+"px"}); + } + + if (o.position!=="outer-left" && o.position!=="outer-right") { + cpt = 0; + cpb = 0; + } + + // SPAN IS ENABLED + if (o.span===true && o.direction==="vertical") { + punchgs.TweenLite.set(el,{maxHeight:(cpt+cpb+(wh-2*wpad))+"px",height:(cpt+cpb+(wh-2*wpad))+"px",top:(0-cpt),y:0}); + putVinPosition(mask,o,opt); + } else + + if (o.span===true && o.direction==="horizontal") { + punchgs.TweenLite.set(el,{maxWidth:"100%",width:(ww-2*wpad)+"px",left:0,x:0}); + putHinPosition(mask,o,opt); + } + } +}; + + +// ADD A BULLET +var addBullet = function(container,o,li,opt) { + + // Check if Bullet exists already ? + if (container.find('.tp-bullets').length===0) { + o.style = o.style === undefined ? "" : o.style; + container.append('
    '); + } + + // Add Bullet Structure to the Bullet Container + var bw = container.find('.tp-bullets'), + linkto = li.data('index'), + inst = o.tmp; + + jQuery.each(opt.thumbs[li.index()].params,function(i,obj) { inst = inst.replace(obj.from,obj.to);}) + + + bw.append('
    '+inst+'
    '); + + // SET BULLET SPACES AND POSITION + var b = container.find('.justaddedbullet'), + am = container.find('.tp-bullet').length, + w = b.outerWidth()+parseInt((o.space===undefined? 0:o.space),0), + h = b.outerHeight()+parseInt((o.space===undefined? 0:o.space),0); + + //bgimage = li.data('thumb') !==undefined ? li.data('thumb') : li.find('.defaultimg').data('lazyload') !==undefined && li.find('.defaultimg').data('lazyload') !== 'undefined' ? li.find('.defaultimg').data('lazyload') : li.find('.defaultimg').data('src'); + + if (o.direction==="vertical") { + + b.css({top:((am-1)*h)+"px", left:"0px"}); + bw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()}); + } + else { + + b.css({left:((am-1)*w)+"px", top:"0px"}); + bw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()}); + } + + b.find('.tp-bullet-image').css({backgroundImage:'url('+opt.thumbs[li.index()].src+')'}); + // SET LINK TO AND LISTEN TO CLICK + b.data('liref',linkto); + b.click(function() { + opt.sc_indicator="bullet"; + container.revcallslidewithid(linkto); + container.find('.tp-bullet').removeClass("selected"); + jQuery(this).addClass("selected"); + + }); + // REMOVE HELP CLASS + b.removeClass("justaddedbullet"); + + // OUTTUER PADDING DEFAULTS + o.padding_top = parseInt((opt.carousel.padding_top||0),0), + o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0); + o.opt = opt; + if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true; + + bw.addClass("nav-pos-hor-"+o.h_align); + bw.addClass("nav-pos-ver-"+o.v_align); + bw.addClass("nav-dir-"+o.direction); + + // PUT ALL CONTAINER IN POSITION + setNavElPositions(bw,o,opt); +}; + + +var cHex = function(hex,o){ + o = parseFloat(o); + hex = hex.replace('#',''); + var r = parseInt(hex.substring(0,2), 16), + g = parseInt(hex.substring(2,4), 16), + b = parseInt(hex.substring(4,6), 16), + result = 'rgba('+r+','+g+','+b+','+o+')'; + return result; +}; + +// ADD THUMBNAILS +var addThumb = function(container,o,li,what,opt) { + var thumbs = what==="tp-thumb" ? ".tp-thumbs" : ".tp-tabs", + thumbmask = what==="tp-thumb" ? ".tp-thumb-mask" : ".tp-tab-mask", + thumbsiw = what==="tp-thumb" ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper", + thumb = what==="tp-thumb" ? ".tp-thumb" : ".tp-tab", + timg = what ==="tp-thumb" ? ".tp-thumb-image" : ".tp-tab-image"; + + o.visibleAmount = o.visibleAmount>opt.slideamount ? opt.slideamount : o.visibleAmount; + o.sliderLayout = opt.sliderLayout; + + // Check if THUNBS/TABS exists already ? + if (container.parent().find(thumbs).length===0) { + o.style = o.style === undefined ? "" : o.style; + + var spanw = o.span===true ? "tp-span-wrapper" : "", + addcontent = '
    '; + + if (o.position==="outer-top") + container.parent().prepend(addcontent) + else + if (o.position==="outer-bottom") + container.after(addcontent); + else + container.append(addcontent); + + // OUTTUER PADDING DEFAULTS + o.padding_top = parseInt((opt.carousel.padding_top||0),0), + o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0); + + if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true; + } + + + + // Add Thumb/TAB Structure to the THUMB/TAB Container + var linkto = li.data('index'), + t = container.parent().find(thumbs), + tm = t.find(thumbmask), + tw = tm.find(thumbsiw), + maxw = o.direction==="horizontal" ? (o.width * o.visibleAmount) + (o.space*(o.visibleAmount-1)) : o.width, + maxh = o.direction==="horizontal" ? o.height : (o.height * o.visibleAmount) + (o.space*(o.visibleAmount-1)), + inst = o.tmp; + jQuery.each(opt.thumbs[li.index()].params,function(i,obj) { + inst = inst.replace(obj.from,obj.to); + }) + + + tw.append('
    '+inst+'
    '); + + + // SET BULLET SPACES AND POSITION + var b = t.find('.justaddedthumb'), + am = t.find(thumb).length, + w = b.outerWidth()+parseInt((o.space===undefined? 0:o.space),0), + h = b.outerHeight()+parseInt((o.space===undefined? 0:o.space),0); + + // FILL CONTENT INTO THE TAB / THUMBNAIL + b.find(timg).css({backgroundImage:"url("+opt.thumbs[li.index()].src+")"}); + + + if (o.direction==="vertical") { + b.css({top:((am-1)*h)+"px", left:"0px"}); + tw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()}); + } + else { + b.css({left:((am-1)*w)+"px", top:"0px"}); + tw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()}); + } + + t.data('maxw',maxw); + t.data('maxh',maxh); + t.data('wr_padding',o.wrapper_padding); + var position = o.position === "outer-top" || o.position==="outer-bottom" ? "relative" : "absolute", + _margin = (o.position === "outer-top" || o.position==="outer-bottom") && (o.h_align==="center") ? "auto" : "0"; + + + tm.css({maxWidth:maxw+"px",maxHeight:maxh+"px",overflow:"hidden",position:"relative"}); + t.css({maxWidth:(maxw)+"px",/*margin:_margin, */maxHeight:maxh+"px",overflow:"visible",position:position,background:cHex(o.wrapper_color,o.wrapper_opacity),padding:o.wrapper_padding+"px",boxSizing:"contet-box"}); + + + + // SET LINK TO AND LISTEN TO CLICK + b.click(function() { + + opt.sc_indicator="bullet"; + var dis = container.parent().find(thumbsiw).data('distance'); + dis = dis === undefined ? 0 : dis; + if (Math.abs(dis)<10) { + container.revcallslidewithid(linkto); + container.parent().find(thumbs).removeClass("selected"); + jQuery(this).addClass("selected"); + } + }); + // REMOVE HELP CLASS + b.removeClass("justaddedthumb"); + + o.opt = opt; + + t.addClass("nav-pos-hor-"+o.h_align); + t.addClass("nav-pos-ver-"+o.v_align); + t.addClass("nav-dir-"+o.direction); + + // PUT ALL CONTAINER IN POSITION + setNavElPositions(t,o,opt); +}; + +var setONHeights = function(o) { + var ot = o.c.parent().find('.outer-top'), + ob = o.c.parent().find('.outer-bottom'); + o.top_outer = !ot.hasClass("tp-forcenotvisible") ? ot.outerHeight() || 0 : 0; + o.bottom_outer = !ob.hasClass("tp-forcenotvisible") ? ob.outerHeight() || 0 : 0; +}; + + +// HIDE NAVIGATION ON PURPOSE +var biggerNav = function(el,a,b,c) { + if (a>b || b>c) + el.addClass("tp-forcenotvisible") + else + el.removeClass("tp-forcenotvisible"); +}; + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.parallax.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.parallax.js new file mode 100644 index 0000000..4a1eefb --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.parallax.js @@ -0,0 +1,450 @@ +/******************************************** + * REVOLUTION 5.2.6 EXTENSION - PARALLAX + * @version: 2.2.0 (16.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +(function($) { +"use strict"; +var _R = jQuery.fn.revolution, + _ISM = _R.is_mobile(), + extension = { alias:"Parallax Min JS", + name:"revolution.extensions.parallax.min.js", + min_core: "5.3", + version:"2.2.0" + }; + +jQuery.extend(true,_R, { + + checkForParallax : function(container,opt) { + if (_R.compare_version(extension).check==="stop") return false; + var _ = opt.parallax; + + if (_.done) return; + _.done = true; + + 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('
    ') + 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}); + } + } + + function setDDDInContainer(li) { + if (_.type=="3D" || _.type=="3d") { + li.find('.slotholder').wrapAll('
    '); + li.find('.tp-parallax-wrap').wrapAll('
    '); + + // MOVE THE REMOVED 3D LAYERS OUT OF THE PARALLAX GROUP + li.find('.rs-parallaxlevel-tobggroup').closest('.tp-parallax-wrap').wrapAll('
    '); + + 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}); + } + } + + opt.li.each(function() { + setDDDInContainer(jQuery(this)); + }); + + if ((_.type=="3D" || _.type=="3d") && opt.c.find('.tp-static-layers').length>0) { + punchgs.TweenLite.set(opt.c.find('.tp-static-layers'),{top:0, left:0,width:"100%",height:"100%"}); + setDDDInContainer(opt.c.find('.tp-static-layers')); + } + _.pcontainers = new Array(); + _.pcontainer_depths = new Array(); + _.bgcontainers = new Array(); + _.bgcontainer_depths = new Array(); + + 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") { + _.bgcontainers.push(t); + _.bgcontainer_depths.push(opt.parallax.levels[parseInt(l,0)-1]/100); + } + }) + + + + 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"); + _.pcontainers.push(tpw); + _.pcontainer_depths.push(_.levels[i-1]); + }); + + + 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=="mouseleave") { + diffh = _.ddd_lasth || 0; + diffv = _.ddd_lastv || 0; + s = 1.5; + } + + + for (var i=0;i<_.pcontainers.length;i++) { + var pc = _.pcontainers[i], + bl = _.pcontainer_depths[i], + 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, .tp-static-layers .dddwrapper-layer'; + if (opt.sliderType==="carousel") sctor = ".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer, .tp-static-layers .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,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, .tp-static-layers .dddwrapper-layer'; + if (opt.sliderType==="carousel") sctor = ".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer, .tp-static-layers .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, ease:punchgs.Power3.easeOut,overwrite:"all"}); + + if (event.type=="mouseleave") + punchgs.TweenLite.to(jQuery(this),3.8,{z:0, ease:punchgs.Power3.easeOut}); + }); + } + } + } + + // COLLECT ALL ELEMENTS WHICH NEED FADE IN/OUT ON PARALLAX SCROLL + var _s = opt.scrolleffect; + _s.bgs = new Array(); + + if (_s.on) { + if (_s.on_slidebg==="on") + for (var i=0;iopt.lastwindowheight ? b.top / b.height : b.bottom>opt.lastwindowheight ? (b.bottom-opt.lastwindowheight) / b.height : 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 && _.disable_onmobile=="on") return false; + + if (_.type!="3d" && _.type!="3D") { + if (_.type=="scroll" || _.type=="scroll+mouse" || _.type=="mouse+scroll") + if (_.pcontainers) + for (var i=0;i<_.pcontainers.length;i++) { + if (_.pcontainers[i].length>0) { + var pc = _.pcontainers[i], + pl = _.pcontainer_depths[i]/100, + offsv = Math.round((proc * -(pl*opt.conh)*10))/10 || 0; + pc.data('parallaxoffset',offsv); + punchgs.TweenLite.set(pc,{overwrite:"auto",force3D:"auto",y:offsv}) + } + } + if (_.bgcontainers) + for (var i=0;i<_.bgcontainers.length;i++) { + var t = _.bgcontainers[i], + l = _.bgcontainer_depths[i], + offsv = proc * -(l*opt.conh) || 0; + punchgs.TweenLite.set(t,{position:"absolute",top:"0px",left:"0px",backfaceVisibility:"hidden",force3D:"true",y:offsv+"px"}); + } + } + + // SCROLL BASED BLUR,FADE,GRAYSCALE EFFECT + var _s = opt.scrolleffect; + if (_s.on && (_s.disable_on_mobile!=="on" || !_ISM)) { + + var _fproc = Math.abs(proc)-(_s.tilt/100); + _fproc = _fproc<0 ? 0 : _fproc; + if (_s.layers!==false) { + var fadelevel = 1 - (_fproc *_s.multiplicator_layers), + seo = { backfaceVisibility:"hidden",force3D:"true"}; + if (_s.direction=="top" && proc>=0) fadelevel=1; + if (_s.direction=="bottom" && proc<=0) fadelevel=1; + fadelevel = fadelevel>1 ? 1 : fadelevel < 0 ? 0 : fadelevel; + + + if (_s.fade==="on") + seo.opacity = fadelevel; + + if (_s.blur==="on") { + var blurlevel = (1-fadelevel) * _s.maxblur; + seo['-webkit-filter'] = 'blur('+blurlevel+'px)'; + seo['filter'] = 'blur('+blurlevel+'px)'; + } + + + if (_s.grayscale==="on") { + var graylevel = (1-fadelevel) * 100, + gf = 'grayscale('+graylevel+'%)'; + seo['-webkit-filter'] = seo['-webkit-filter']===undefined ? gf : seo['-webkit-filter']+' '+gf; + seo['filter'] = seo['filter']===undefined ? gf: seo['filter']+' '+gf; + } + punchgs.TweenLite.set(_s.layers,seo); + } + + if (_s.bgs!==false) { + var fadelevel = 1 - (_fproc *_s.multiplicator), + seo = { backfaceVisibility:"hidden",force3D:"true"}; + if (_s.direction=="top" && proc>=0) fadelevel=1; + if (_s.direction=="bottom" && proc<=0) fadelevel=1; + fadelevel = fadelevel>1 ? 1 : fadelevel < 0 ? 0 : fadelevel; + + if (_s.fade==="on") + seo.opacity = fadelevel; + + if (_s.blur==="on") { + var blurlevel = (1-fadelevel) * _s.maxblur; + seo['-webkit-filter'] = 'blur('+blurlevel+'px)'; + seo['filter'] = 'blur('+blurlevel+'px)'; + } + + + if (_s.grayscale==="on") { + var graylevel = (1-fadelevel) * 100, + gf = 'grayscale('+graylevel+'%)'; + seo['-webkit-filter'] = seo['-webkit-filter']===undefined ? gf : seo['-webkit-filter']+' '+gf; + seo['filter'] = seo['filter']===undefined ? gf: seo['filter']+' '+gf; + } + + punchgs.TweenLite.set(_s.bgs,seo); + } + } + + if (_R.callBackHandling) + _R.callBackHandling(opt,"parallax","end"); + + } + +}); + +function saveLastScroll(opt,st) { opt.lastscrolltop = st;} + + +//// END OF PARALLAX EFFECT +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.slideanims.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.slideanims.js new file mode 100644 index 0000000..a9a52f4 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.slideanims.js @@ -0,0 +1,1413 @@ +/************************************************ + * REVOLUTION 5.3 EXTENSION - SLIDE ANIMATIONS + * @version: 1.6 (17.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +************************************************/ +(function($) { +"use strict"; +var _R = jQuery.fn.revolution, + extension = { alias:"SlideAnimations Min JS", + name:"revolution.extensions.slideanims.min.js", + min_core: "5.0", + version:"1.6" + }; + + /////////////////////////////////////////// + // EXTENDED FUNCTIONS AVAILABLE GLOBAL // + /////////////////////////////////////////// + jQuery.extend(true,_R, { + + animateSlide : function(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl) { + if (_R.compare_version(extension).check==="stop") return mtl; + return animateSlideIntern(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl) + } + + }); + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// SLIDE TRANSITION MODULES //////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////// +// +// * Revolution Slider - TRANSITION PREDEFINITION MODULES +// * @version: 5.0.0 (13.02.2015) +// * @author ThemePunch +// +////////////////////////////////////////////////////// + + + /////////////////////// + // PREPARE THE SLIDE // + ////////////////////// + var prepareOneSlide = function(slotholder,opt,visible,vorh) { + + var sh=slotholder, + img = sh.find('.defaultimg'), + mediafilter = img.data('mediafilter'), + scalestart = sh.data('zoomstart'), + rotatestart = sh.data('rotationstart'); + + if (img.data('currotate')!=undefined) + rotatestart = img.data('currotate'); + if (img.data('curscale')!=undefined && vorh=="box") + scalestart = img.data('curscale')*100; + else + if (img.data('curscale')!=undefined) + scalestart = img.data('curscale'); + + _R.slotSize(img,opt); + + + var src = img.attr('src'), + bgcolor=img.css('backgroundColor'), + w = opt.width, + h = opt.height, + fulloff = img.data("fxof"), + fullyoff=0; + + if (opt.autoHeight=="on") h = opt.c.height(); + if (fulloff==undefined) fulloff=0; + + var off=0, + bgfit = img.data('bgfit'), + bgrepeat = img.data('bgrepeat'), + bgposition = img.data('bgposition'); + + if (bgfit==undefined) bgfit="cover"; + if (bgrepeat==undefined) bgrepeat="no-repeat"; + if (bgposition==undefined) bgposition="center center"; + + + switch (vorh) { + // BOX ANIMATION PREPARING + case "box": + // SET THE MINIMAL SIZE OF A BOX + //var basicsize = 0, + var x = 0, + y = 0; + + /*if (opt.sloth>opt.slotw) + basicsize=opt.sloth + else + basicsize=opt.slotw; + + opt.slotw = basicsize; + opt.sloth = basicsize;*/ + + + for (var j=0;j'+ + + '
    '+ + + '
    '+ + '
    '); + y=y+opt.sloth; + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + } + x=x+opt.slotw; + } + break; + + // SLOT ANIMATION PREPARING + case "vertical": + case "horizontal": + + if (vorh == "horizontal") { + + if (!visible) var off=0-opt.slotw; + for (var i=0;i'+ + '
    '+ + '
    '+ + '
    '); + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + + } + } else { + if (!visible) var off=0-opt.sloth; + for (var i=0;i'+ + + '
    '+ + '
    '+ + + '
    '); + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + + } + } + break; + } + } + + + +var getSliderTransitionParameters = function(container,comingtransition,nextsh,slidedirection) { + + + /* Transition Name , + Transition Code, + Transition Sub Code, + Max Slots, + MasterSpeed Delays, + Preparing Slots (box,slideh, slidev), + Call on nextsh (null = no, true/false for visibility first preparing), + Call on actsh (null = no, true/false for visibility first preparing), + Index of Animation + easeIn, + easeOut, + speed, + slots, + */ + + + var opt=container[0].opt, + p1i = punchgs.Power1.easeIn, + p1o = punchgs.Power1.easeOut, + p1io = punchgs.Power1.easeInOut, + p2i = punchgs.Power2.easeIn, + p2o = punchgs.Power2.easeOut, + p2io = punchgs.Power2.easeInOut, + p3i = punchgs.Power3.easeIn, + p3o = punchgs.Power3.easeOut, + p3io = punchgs.Power3.easeInOut, + flatTransitions = [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], + premiumTransitions = [16,17,18,19,20,21,22,23,24,25,27], + nexttrans =0, + specials = 1, + STAindex = 0, + indexcounter =0, + STA = new Array, + transitionsArray = [ ['boxslide' , 0, 1, 10, 0,'box',false,null,0,p1o,p1o,500,6], + ['boxfade', 1, 0, 10, 0,'box',false,null,1,p1io,p1io,700,5], + ['slotslide-horizontal', 2, 0, 0, 200,'horizontal',true,false,2,p2io,p2io,700,3], + ['slotslide-vertical', 3, 0,0,200,'vertical',true,false,3,p2io,p2io,700,3], + ['curtain-1', 4, 3,0,0,'horizontal',true,true,4,p1o,p1o,300,5], + ['curtain-2', 5, 3,0,0,'horizontal',true,true,5,p1o,p1o,300,5], + ['curtain-3', 6, 3,25,0,'horizontal',true,true,6,p1o,p1o,300,5], + ['slotzoom-horizontal', 7, 0,0,400,'horizontal',true,true,7,p1o,p1o,300,7], + ['slotzoom-vertical', 8, 0,0,0,'vertical',true,true,8,p2o,p2o,500,8], + ['slotfade-horizontal', 9, 0,0,1000,'horizontal',true,null,9,p2o,p2o,2000,10], + ['slotfade-vertical', 10, 0,0 ,1000,'vertical',true,null,10,p2o,p2o,2000,10], + ['fade', 11, 0, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['crossfade', 11, 1, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['fadethroughdark', 11, 2, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['fadethroughlight', 11, 3, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['fadethroughtransparent', 11, 4, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['slideleft', 12, 0,1,0,'horizontal',true,true,12,p3io,p3io,1000,1], + ['slideup', 13, 0,1,0,'horizontal',true,true,13,p3io,p3io,1000,1], + ['slidedown', 14, 0,1,0,'horizontal',true,true,14,p3io,p3io,1000,1], + ['slideright', 15, 0,1,0,'horizontal',true,true,15,p3io,p3io,1000,1], + ['slideoverleft', 12, 7,1,0,'horizontal',true,true,12,p3io,p3io,1000,1], + ['slideoverup', 13, 7,1,0,'horizontal',true,true,13,p3io,p3io,1000,1], + ['slideoverdown', 14, 7,1,0,'horizontal',true,true,14,p3io,p3io,1000,1], + ['slideoverright', 15, 7,1,0,'horizontal',true,true,15,p3io,p3io,1000,1], + ['slideremoveleft', 12, 8,1,0,'horizontal',true,true,12,p3io,p3io,1000,1], + ['slideremoveup', 13, 8,1,0,'horizontal',true,true,13,p3io,p3io,1000,1], + ['slideremovedown', 14, 8,1,0,'horizontal',true,true,14,p3io,p3io,1000,1], + ['slideremoveright', 15, 8,1,0,'horizontal',true,true,15,p3io,p3io,1000,1], + ['papercut', 16, 0,0,600,'',null,null,16,p3io,p3io,1000,2], + ['3dcurtain-horizontal', 17, 0,20,100,'vertical',false,true,17,p1io,p1io,500,7], + ['3dcurtain-vertical', 18, 0,10,100,'horizontal',false,true,18,p1io,p1io,500,5], + ['cubic', 19, 0,20,600,'horizontal',false,true,19,p3io,p3io,500,1], + ['cube',19,0,20,600,'horizontal',false,true,20,p3io,p3io,500,1], + ['flyin', 20, 0,4,600,'vertical',false,true,21,p3o,p3io,500,1], + ['turnoff', 21, 0,1,500,'horizontal',false,true,22,p3io,p3io,500,1], + ['incube', 22, 0,20,200,'horizontal',false,true,23,p2io,p2io,500,1], + ['cubic-horizontal', 23, 0,20,500,'vertical',false,true,24,p2o,p2o,500,1], + ['cube-horizontal', 23, 0,20,500,'vertical',false,true,25,p2o,p2o,500,1], + ['incube-horizontal', 24, 0,20,500,'vertical',false,true,26,p2io,p2io,500,1], + ['turnoff-vertical', 25, 0,1,200,'horizontal',false,true,27,p2io,p2io,500,1], + ['fadefromright', 14, 1,1,0,'horizontal',true,true,28,p2io,p2io,1000,1], + ['fadefromleft', 15, 1,1,0,'horizontal',true,true,29,p2io,p2io,1000,1], + ['fadefromtop', 14, 1,1,0,'horizontal',true,true,30,p2io,p2io,1000,1], + ['fadefrombottom', 13, 1,1,0,'horizontal',true,true,31,p2io,p2io,1000,1], + ['fadetoleftfadefromright', 12, 2,1,0,'horizontal',true,true,32,p2io,p2io,1000,1], + ['fadetorightfadefromleft', 15, 2,1,0,'horizontal',true,true,33,p2io,p2io,1000,1], + ['fadetobottomfadefromtop', 14, 2,1,0,'horizontal',true,true,34,p2io,p2io,1000,1], + ['fadetotopfadefrombottom', 13, 2,1,0,'horizontal',true,true,35,p2io,p2io,1000,1], + ['parallaxtoright', 15, 3,1,0,'horizontal',true,true,36,p2io,p2i,1500,1], + ['parallaxtoleft', 12, 3,1,0,'horizontal',true,true,37,p2io,p2i,1500,1], + ['parallaxtotop', 14, 3,1,0,'horizontal',true,true,38,p2io,p1i,1500,1], + ['parallaxtobottom', 13, 3,1,0,'horizontal',true,true,39,p2io,p1i,1500,1], + ['scaledownfromright', 12, 4,1,0,'horizontal',true,true,40,p2io,p2i,1000,1], + ['scaledownfromleft', 15, 4,1,0,'horizontal',true,true,41,p2io,p2i,1000,1], + ['scaledownfromtop', 14, 4,1,0,'horizontal',true,true,42,p2io,p2i,1000,1], + ['scaledownfrombottom', 13, 4,1,0,'horizontal',true,true,43,p2io,p2i,1000,1], + ['zoomout', 13, 5,1,0,'horizontal',true,true,44,p2io,p2i,1000,1], + ['zoomin', 13, 6,1,0,'horizontal',true,true,45,p2io,p2i,1000,1], + ['slidingoverlayup', 27, 0,1,0,'horizontal',true,true,47,p1io,p1o,2000,1], + ['slidingoverlaydown', 28, 0,1,0,'horizontal',true,true,48,p1io,p1o,2000,1], + ['slidingoverlayright', 30, 0,1,0,'horizontal',true,true,49,p1io,p1o,2000,1], + ['slidingoverlayleft', 29, 0,1,0,'horizontal',true,true,50,p1io,p1o,2000,1], + ['parallaxcirclesup', 31, 0,1,0,'horizontal',true,true,51,p2io,p1i,1500,1], + ['parallaxcirclesdown', 32, 0,1,0,'horizontal',true,true,52,p2io,p1i,1500,1], + ['parallaxcirclesright', 33, 0,1,0,'horizontal',true,true,53,p2io,p1i,1500,1], + ['parallaxcirclesleft', 34, 0,1,0,'horizontal',true,true,54,p2io,p1i,1500,1], + ['notransition',26,0,1,0,'horizontal',true,null,46,p2io,p2i,1000,1], + ['parallaxright', 15, 3,1,0,'horizontal',true,true,55,p2io,p2i,1500,1], + ['parallaxleft', 12, 3,1,0,'horizontal',true,true,56,p2io,p2i,1500,1], + ['parallaxup', 14, 3,1,0,'horizontal',true,true,57,p2io,p1i,1500,1], + ['parallaxdown', 13, 3,1,0,'horizontal',true,true,58,p2io,p1i,1500,1], + ]; + + opt.duringslidechange = true; + + // INTERNAL TEST FOR TRANSITIONS + opt.testanims = false; + if (opt.testanims==true) { + opt.nexttesttransform = opt.nexttesttransform === undefined ? 34 : opt.nexttesttransform + 1; + opt.nexttesttransform = opt.nexttesttransform>70 ? 0 : opt.nexttesttransform; + comingtransition = transitionsArray[opt.nexttesttransform][0]; + console.log(comingtransition+" "+opt.nexttesttransform+" "+transitionsArray[opt.nexttesttransform][1]+" "+transitionsArray[opt.nexttesttransform][2]); + } + + + // CHECK AUTO DIRECTION FOR TRANSITION ARTS + jQuery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax","parralaxto"],function(i,b) { + + if (comingtransition==b+"horizontal") comingtransition = slidedirection!=1 ? b+"left" : b+"right"; + if (comingtransition==b+"vertical") comingtransition = slidedirection!=1 ? b+"up" : b+"down"; + }); + + + + // RANDOM TRANSITIONS + if (comingtransition == "random") { + comingtransition = Math.round(Math.random()*transitionsArray.length-1); + if (comingtransition>transitionsArray.length-1) comingtransition=transitionsArray.length-1; + } + + // RANDOM FLAT TRANSITIONS + if (comingtransition == "random-static") { + comingtransition = Math.round(Math.random()*flatTransitions.length-1); + if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1; + comingtransition = flatTransitions[comingtransition]; + } + + // RANDOM PREMIUM TRANSITIONS + if (comingtransition == "random-premium") { + comingtransition = Math.round(Math.random()*premiumTransitions.length-1); + if (comingtransition>premiumTransitions.length-1) comingtransition=premiumTransitions.length-1; + comingtransition = premiumTransitions[comingtransition]; + } + + //joomla only change: avoid problematic transitions that don't compatible with mootools + var problematicTransitions = [12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]; + if(opt.isJoomla == true && window.MooTools != undefined && problematicTransitions.indexOf(comingtransition) != -1){ + + var newTransIndex = Math.round(Math.random() * (premiumTransitions.length-2) ) + 1; + + //some limits fix + if (newTransIndex > premiumTransitions.length-1) + newTransIndex = premiumTransitions.length-1; + + if(newTransIndex == 0) + newTransIndex = 1; + + comingtransition = premiumTransitions[newTransIndex]; + } + + + + function findTransition() { + // FIND THE RIGHT TRANSITION PARAMETERS HERE + jQuery.each(transitionsArray,function(inde,trans) { + if (trans[0] == comingtransition || trans[8] == comingtransition) { + nexttrans = trans[1]; + specials = trans[2]; + STAindex = indexcounter; + } + indexcounter = indexcounter+1; + }) + } + + findTransition(); + + + + if (nexttrans>30) nexttrans = 30; + if (nexttrans<0) nexttrans = 0; + + + + var obj = new Object(); + obj.nexttrans = nexttrans; + obj.STA = transitionsArray[STAindex]; // PREPARED DEFAULT SETTINGS PER TRANSITION + obj.specials = specials; + return obj; + + +} + + +/************************************* + - ANIMATE THE SLIDE - +*************************************/ + +var gSlideTransA = function(a,i) { + if (i==undefined || jQuery.isNumeric(a)) return a; + if (a==undefined) return a; + return a.split(",")[i]; +} + +var animateSlideIntern = function(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl) { + + // GET THE TRANSITION + + var opt = container[0].opt, + ai = actli.index(), + ni = nextli.index(), + slidedirection = ni opt.delay ? opt.delay : masterspeed; + + // ADJUST MASTERSPEED + masterspeed = masterspeed + STA[4]; + + + /////////////////////// + // ADJUST SLOTS // + /////////////////////// + opt.slots = gSlideTransA(nextli.data('slotamount'),ctid); + opt.slots = opt.slots==undefined || opt.slots=="default" ? STA[12] : opt.slots=="random" ? Math.round(Math.random()*12+4) : opt.slots; + opt.slots = opt.slots < 1 ? comingtransition=="boxslide" ? Math.round(Math.random()*6+3) : comingtransition=="flyin" ? Math.round(Math.random()*4+1) : opt.slots : opt.slots; + opt.slots = (nexttrans==4 || nexttrans==5 || nexttrans==6) && opt.slots<3 ? 3 : opt.slots; + opt.slots = STA[3] != 0 ? Math.min(opt.slots,STA[3]) : opt.slots; + opt.slots = nexttrans==9 ? opt.width/opt.slots : nexttrans==10 ? opt.height/opt.slots : opt.slots; + + + ///////////////////////////////////////////// + // SET THE ACTUAL AMOUNT OF SLIDES !! // + // SET A RANDOM AMOUNT OF SLOTS // + /////////////////////////////////////////// + opt.rotate = gSlideTransA(nextli.data('rotate'),ctid); + opt.rotate = opt.rotate==undefined || opt.rotate=="default" ? 0 : opt.rotate==999 || opt.rotate=="random" ? Math.round(Math.random()*360) : opt.rotate; + opt.rotate = (!jQuery.support.transition || opt.ie || opt.ie9) ? 0 : opt.rotate; + + + + + + // prepareOneSlide + if (nexttrans!=11) { + if (STA[7] !=null) prepareOneSlide(actsh,opt,STA[7],STA[5]); + if (STA[6] !=null) prepareOneSlide(nextsh,opt,STA[6],STA[5]); + } + + // DEFAULT SETTINGS FOR NEXT AND ACT SH + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultvid'),{y:0,x:0,top:0,left:0,scale:1}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('.defaultvid'),{y:0,x:0,top:0,left:0,scale:1}),0); + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultvid'),{y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('.defaultvid'),{y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(nextsh,{autoAlpha:1,y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(actsh,{autoAlpha:1,y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(nextsh.parent(),{backgroundColor:"transparent"}),0); + mtl.add(punchgs.TweenLite.set(actsh.parent(),{backgroundColor:"transparent"}),0); + + + + var ei= gSlideTransA(nextli.data('easein'),ctid), + eo =gSlideTransA(nextli.data('easeout'),ctid); + + ei = ei==="default" ? STA[9] || punchgs.Power2.easeInOut : ei || STA[9] || punchgs.Power2.easeInOut; + eo = eo==="default" ? STA[10] || punchgs.Power2.easeInOut : eo || STA[10] || punchgs.Power2.easeInOut; + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==0) { // BOXSLIDE + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var maxz = Math.ceil(opt.height/opt.sloth); + var curz = 0; + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + curz=curz+1; + if (curz==maxz) curz=0; + + mtl.add(punchgs.TweenLite.from(ss,(masterspeed)/600, + {opacity:0,top:(0-opt.sloth),left:(0-opt.slotw),rotation:opt.rotate,force3D:"auto",ease:ei}),((j*15) + ((curz)*30))/1500); + }); + } + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==1) { + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var maxtime, + maxj = 0; + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + rand=Math.random()*masterspeed+300, + rand2=Math.random()*500+200; + if (rand+rand2>maxtime) { + maxtime = rand2+rand2; + maxj = j; + } + mtl.add(punchgs.TweenLite.from(ss,rand/1000, + {autoAlpha:0, force3D:"auto",rotation:opt.rotate,ease:ei}),rand2/1000); + }); + } + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==2) { + + var subtl = new punchgs.TimelineLite(); + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{left:opt.slotw,ease:ei, force3D:"auto",rotation:(0-opt.rotate)}),0); + mtl.add(subtl,0); + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{left:0-opt.slotw,ease:ei, force3D:"auto",rotation:opt.rotate}),0); + mtl.add(subtl,0); + }); + } + + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==3) { + var subtl = new punchgs.TimelineLite(); + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{top:opt.sloth,ease:ei,rotation:opt.rotate,force3D:"auto",transformPerspective:600}),0); + mtl.add(subtl,0); + + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{top:0-opt.sloth,rotation:opt.rotate,ease:eo,force3D:"auto",transformPerspective:600}),0); + mtl.add(subtl,0); + }); + } + + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==4 || nexttrans==5) { + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var cspeed = (masterspeed)/1000, + ticker = cspeed, + subtl = new punchgs.TimelineLite(); + + actsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + var del = (i*cspeed)/opt.slots; + if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; + subtl.add(punchgs.TweenLite.to(ss,cspeed*3,{transformPerspective:600,force3D:"auto",top:0+opt.height,opacity:0.5,rotation:opt.rotate,ease:ei,delay:del}),0); + mtl.add(subtl,0); + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + var del = (i*cspeed)/opt.slots; + if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; + subtl.add(punchgs.TweenLite.from(ss,cspeed*3, + {top:(0-opt.height),opacity:0.5,rotation:opt.rotate,force3D:"auto",ease:punchgs.eo,delay:del}),0); + mtl.add(subtl,0); + + }); + + + } + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==6) { + + + if (opt.slots<2) opt.slots=2; + if (opt.slots % 2) opt.slots = opt.slots+1; + + var subtl = new punchgs.TimelineLite(); + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + actsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + if (i+1opt.delay) masterspeed=opt.delay; + var subtl = new punchgs.TimelineLite(); + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this).find('div'); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{ + left:(0-opt.slotw/2)+'px', + top:(0-opt.height/2)+'px', + width:(opt.slotw*2)+"px", + height:(opt.height*2)+"px", + opacity:0, + rotation:opt.rotate, + force3D:"auto", + ease:ei}),0); + mtl.add(subtl,0); + + }); + + ////////////////////////////////////////////////////////////// + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // + /////////////////////////////////////////////////////////////// + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this).find('div'); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,top:0,opacity:0,transformPerspective:600}, + {left:(0-i*opt.slotw)+'px', + ease:eo, + force3D:"auto", + top:(0)+'px', + width:opt.width, + height:opt.height, + opacity:1,rotation:0, + delay:0.1}),0); + mtl.add(subtl,0); + }); + } + + + + + //////////////////////////////////// + // THE SLOTSZOOM - TRANSITION II. // + //////////////////////////////////// + if (nexttrans==8) { + + masterspeed = masterspeed * 3; + if (masterspeed>opt.delay) masterspeed=opt.delay; + var subtl = new punchgs.TimelineLite(); + + + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this).find('div'); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000, + {left:(0-opt.width/2)+'px', + top:(0-opt.sloth/2)+'px', + width:(opt.width*2)+"px", + height:(opt.sloth*2)+"px", + force3D:"auto", + ease:ei, + opacity:0,rotation:opt.rotate}),0); + mtl.add(subtl,0); + + }); + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // + /////////////////////////////////////////////////////////////// + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this).find('div'); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0, top:0,opacity:0,force3D:"auto"}, + {'left':(0)+'px', + 'top':(0-i*opt.sloth)+'px', + 'width':(nextsh.find('.defaultimg').data('neww'))+"px", + 'height':(nextsh.find('.defaultimg').data('newh'))+"px", + opacity:1, + ease:eo,rotation:0, + }),0); + mtl.add(subtl,0); + }); + } + + + //////////////////////////////////////// + // THE SLOTSFADE - TRANSITION III. // + ////////////////////////////////////// + if (nexttrans==9 || nexttrans==10) { + var ssamount=0; + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + ssamount++; + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/2000,{autoAlpha:0,force3D:"auto",transformPerspective:600}, + {autoAlpha:1,ease:ei,delay:(i*opt.slots/100)/2000}),0); + + }); + } + + + ////////////////////// + // SLIDING OVERLAYS // + ////////////////////// + + if (nexttrans==27||nexttrans==28||nexttrans==29||nexttrans==30) { + + var slot = nextsh.find('.slot'), + nd = nexttrans==27 || nexttrans==28 ? 1 : 2, + mhp = nexttrans==27 || nexttrans==29 ? "-100%" : "+100%", + php = nexttrans==27 || nexttrans==29 ? "+100%" : "-100%", + mep = nexttrans==27 || nexttrans==29 ? "-80%" : "80%", + pep = nexttrans==27 || nexttrans==29 ? "+80%" : "-80%", + ptp = nexttrans==27 || nexttrans==29 ? "+10%" : "-10%", + + fa = {overwrite:"all"}, + ta = {autoAlpha:0,zIndex:1,force3D:"auto",ease:ei}, + + fb = {position:"inherit",autoAlpha:0,overwrite:"all",zIndex:1}, + tb = {autoAlpha:1,force3D:"auto",ease:eo}, + + fc = {overwrite:"all",zIndex:2,opacity:1,autoAlpha:1}, + tc = {autoAlpha:1,force3D:"auto",overwrite:"all",ease:ei}, + + fd = {overwrite:"all",zIndex:2,autoAlpha:1}, + td = {autoAlpha:1,force3D:"auto",ease:ei}, + at = nd==1 ? "y" : "x"; + + fa[at] = "0px"; + ta[at] = mhp; + fb[at] = ptp; + tb[at] = "0%"; + fc[at] = php; + tc[at] = mhp; + fd[at] = mep; + td[at] = pep; + + + slot.append(''); + + mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,fa,ta),0); + mtl.add(punchgs.TweenLite.fromTo(nextsh.find('.defaultimg'),masterspeed/2000,fb,tb),masterspeed/2000); + mtl.add(punchgs.TweenLite.fromTo(slot,masterspeed/1000,fc,tc),0); + mtl.add(punchgs.TweenLite.fromTo(slot.find('.slotslide div'),masterspeed/1000,fd,td),0); + } + + + //////////////////////////////// + // PARALLAX CIRCLE TRANSITION // + //////////////////////////////// + + //nexttrans = 34; + if (nexttrans==31||nexttrans==32||nexttrans==33||nexttrans==34) { // up , down, right ,left + + masterspeed = 6000; + ei = punchgs.Power3.easeInOut; + + var ms = masterspeed / 1000; + mas = ms - ms/5, + _nt = nexttrans, + fy = _nt == 31 ? "+100%" : _nt == 32 ? "-100%" : "0%", + fx = _nt == 33 ? "+100%" : _nt == 34 ? "-100%" : "0%", + ty = _nt == 31 ? "-100%" : _nt == 32 ? "+100%" : "0%", + tx = _nt == 33 ? "-100%" : _nt == 34 ? "+100%" : "0%", + + + mtl.add(punchgs.TweenLite.fromTo(actsh,ms-(ms*0.2),{y:0,x:0},{y:ty,x:tx,ease:eo}),ms*0.2); + mtl.add(punchgs.TweenLite.fromTo(nextsh,ms,{y:fy, x:fx},{y:"0%",x:"0%",ease:ei}),0); + //mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:0}),0);border:1px solid #fff + + function moveCircles(cont,ms,_nt,dir,ei) { + var slot = cont.find('.slot'), + pieces = 6, + sizearray = [2,1.2,0.9,0.7,0.55,0.42], + sw = cont.width(), + sh = cont.height(), + di = sh>sw ? (sw*2) / pieces : (sh*2) / pieces; + slot.wrap('
    '); + + for (var i=0; ish ? sizearray[i]*sw : sizearray[i]*sh, + nw = nh, + + nl = 0 + (nw/2 - sw/2), + nt = 0 + (nh/2 - sh/2), + br = i!=0 ? "50%" : "0", + + ftop = _nt == 31 ? sh/2 - nh/2 : _nt == 32 ? sh/2 - nh/2 : sh/2 - nh/2, + fleft = _nt == 33 ? sw/2 - nw/2 : _nt == 34 ? sw - nw : sw/2 - nw/2, + fa = {scale:1,transformOrigo:"50% 50%",width:nw+"px",height:nh+"px",top:ftop+"px",left:fleft+"px",borderRadius:br}, + ta = {scale:1,top:sh/2 - nh/2,left:sw/2 - nw/2,ease:ei}, + + fftop = _nt == 31 ? nt : _nt == 32 ? nt : nt, + ffleft = _nt == 33 ? nl : _nt == 34 ? nl+(sw/2) : nl, + fb = {width:sw,height:sh,autoAlpha:1,top:fftop+"px",position:"absolute",left:ffleft+"px"}, + tb = {top:nt+"px",left:nl+"px",ease:ei}, + + speed = ms, + delay = 0; + + + + + mtl.add(punchgs.TweenLite.fromTo(t,speed,fa,ta),delay); + mtl.add(punchgs.TweenLite.fromTo(s,speed,fb,tb),delay); + mtl.add(punchgs.TweenLite.fromTo(t,0.001,{autoAlpha:0},{autoAlpha:1}),0); + } + }) + } + + nextsh.find('.slot').remove(); + nextsh.find('.defaultimg').clone().appendTo(nextsh).addClass("slot"); + moveCircles(nextsh, ms,_nt,"in",ei); + // moveCircles(actsh, mas,_nt,"out",eo); + + + + + + + + } + + ///////////////////////////// + // SIMPLE FADE ANIMATIONS // + //////////////////////////// + if (nexttrans==11) { + + if (specials>4) specials = 0; + + var ssamount=0, + bgcol = specials == 2 ? "#000" : specials == 3 ? "#fff" : "transparent"; + + switch (specials) { + case 0: //FADE + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0); + break; + + case 1: // CROSSFADE + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,{autoAlpha:1},{autoAlpha:0,force3D:"auto",ease:ei}),0); + break; + + case 2: + case 3: + case 4: + mtl.add(punchgs.TweenLite.set(actsh.parent(),{backgroundColor:bgcol,force3D:"auto"}),0); + mtl.add(punchgs.TweenLite.set(nextsh.parent(),{backgroundColor:"transparent",force3D:"auto"}),0); + mtl.add(punchgs.TweenLite.to(actsh,masterspeed/2000,{autoAlpha:0,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/2000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),masterspeed/2000); + break; + + } + + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('defaultimg'),{autoAlpha:1}),0); + + + } + + if (nexttrans==26) { + var ssamount=0; + masterspeed=0; + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.to(actsh,masterspeed/1000,{autoAlpha:0,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('defaultimg'),{autoAlpha:1}),0); + } + + + + if (nexttrans==12 || nexttrans==13 || nexttrans==14 || nexttrans==15) { + masterspeed = masterspeed; + if (masterspeed>opt.delay) masterspeed=opt.delay; + //masterspeed = 1000; + + setTimeout(function() { + punchgs.TweenLite.set(actsh.find('.defaultimg'),{autoAlpha:0}); + + },100); + + var oow = opt.width, + ooh = opt.height, + ssn=nextsh.find('.slotslide, .defaultvid'), + twx = 0, + twy = 0, + op = 1, + scal = 1, + fromscale = 1, + speedy = masterspeed/1000, + speedy2 = speedy; + + + if (opt.sliderLayout=="fullwidth" || opt.sliderLayout=="fullscreen") { + oow=ssn.width(); + ooh=ssn.height(); + } + + + + if (nexttrans==12) + twx = oow; + else + if (nexttrans==15) + twx = 0-oow; + else + if (nexttrans==13) + twy = ooh; + else + if (nexttrans==14) + twy = 0-ooh; + + + // DEPENDING ON EXTENDED SPECIALS, DIFFERENT SCALE AND OPACITY FUNCTIONS NEED TO BE ADDED + if (specials == 1) op = 0; + if (specials == 2) op = 0; + if (specials == 3) speedy = masterspeed / 1300; + + if (specials==4 || specials==5) + scal=0.6; + if (specials==6 ) + scal=1.4; + + + if (specials==5 || specials==6) { + fromscale=1.4; + op=0; + oow=0; + ooh=0;twx=0;twy=0; + } + if (specials==6) fromscale=0.6; + var dd = 0; + + if (specials==7) { + oow = 0; + ooh = 0; + } + + var inc = nextsh.find('.slotslide'), + outc = actsh.find('.slotslide, .defaultvid'); + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:15}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0); + + if (specials==8) { + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:15}),0); + mtl.add(punchgs.TweenLite.set(inc,{left:0, top:0, scale:1, opacity:1,rotation:0,ease:ei,force3D:"auto"}),0); + } else { + + mtl.add(punchgs.TweenLite.from(inc,speedy,{left:twx, top:twy, scale:fromscale, opacity:op,rotation:opt.rotate,ease:ei,force3D:"auto"}),0); + } + + if (specials==4 || specials==5) { + oow = 0; ooh=0; + } + + if (specials!=1) + switch (nexttrans) { + case 12: + + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'left':(0-oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + case 15: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'left':(oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + case 13: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'top':(0-ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + case 14: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'top':(ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + } + } + + ////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVI. // + ////////////////////////////////////// + if (nexttrans==16) { // PAPERCUT + + + var subtl = new punchgs.TimelineLite(); + mtl.add(punchgs.TweenLite.set(actli,{'position':'absolute','z-index':20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':15}),0); + + + // PREPARE THE CUTS + actli.wrapInner('
    '); + + actli.find('.tp-half-one').clone(true).appendTo(actli).addClass("tp-half-two"); + actli.find('.tp-half-two').removeClass('tp-half-one'); + + var oow = opt.width, + ooh = opt.height; + if (opt.autoHeight=="on") + ooh = container.height(); + + + actli.find('.tp-half-one .defaultimg').wrap('
    ') + actli.find('.tp-half-two .defaultimg').wrap('
    ') + actli.find('.tp-half-two .defaultimg').css({position:'absolute',top:'-50%'}); + actli.find('.tp-half-two .tp-caption').wrapAll('
    '); + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-two'), + {width:oow,height:ooh,overflow:'hidden',zIndex:15,position:'absolute',top:ooh/2,left:'0px',transformPerspective:600,transformOrigin:"center bottom"}),0); + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'), + {width:oow,height:ooh/2,overflow:'visible',zIndex:10,position:'absolute',top:'0px',left:'0px',transformPerspective:600,transformOrigin:"center top"}),0); + + // ANIMATE THE CUTS + var img=actli.find('.defaultimg'), + ro1=Math.round(Math.random()*20-10), + ro2=Math.round(Math.random()*20-10), + ro3=Math.round(Math.random()*20-10), + xof = Math.random()*0.4-0.2, + yof = Math.random()*0.4-0.2, + sc1=Math.random()*1+1, + sc2=Math.random()*1+1, + sc3=Math.random()*0.3+0.3; + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'),{overflow:'hidden'}),0); + mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-one'),masterspeed/800, + {width:oow,height:ooh/2,position:'absolute',top:'0px',left:'0px',force3D:"auto",transformOrigin:"center top"}, + {scale:sc1,rotation:ro1,y:(0-ooh-ooh/4),autoAlpha:0,ease:ei}),0); + mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-two'),masterspeed/800, + {width:oow,height:ooh,overflow:'hidden',position:'absolute',top:ooh/2,left:'0px',force3D:"auto",transformOrigin:"center bottom"}, + {scale:sc2,rotation:ro2,y:ooh+ooh/4,ease:ei,autoAlpha:0,onComplete:function() { + // CLEAN UP + punchgs.TweenLite.set(actli,{'position':'absolute','z-index':15}); + punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':20}); + if (actli.find('.tp-half-one').length>0) { + actli.find('.tp-half-one .defaultimg').unwrap(); + actli.find('.tp-half-one .slotholder').unwrap(); + } + actli.find('.tp-half-two').remove(); + }}),0); + + subtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + + if (actli.html()!=null) + mtl.add(punchgs.TweenLite.fromTo(nextli,(masterspeed-200)/1000, + {scale:sc3,x:(opt.width/4)*xof, y:(ooh/4)*yof,rotation:ro3,force3D:"auto",transformOrigin:"center center",ease:eo}, + {autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0); + + mtl.add(subtl,0); + + + } + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVII. // + /////////////////////////////////////// + if (nexttrans==17) { // 3D CURTAIN HORIZONTAL + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/800, + {opacity:0,rotationY:0,scale:0.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, + {opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:ei,delay:j*0.06}),0); + + }); + } + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVIII. // + /////////////////////////////////////// + if (nexttrans==18) { // 3D CURTAIN VERTICAL + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/500, + {autoAlpha:0,rotationY:110,scale:0.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, + {autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:ei,delay:j*0.06}),0); + }); + + + + } + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XIX. // + /////////////////////////////////////// + if (nexttrans==19 || nexttrans==22) { // IN CUBE + + var subtl = new punchgs.TimelineLite(); + //SET DEFAULT IMG UNVISIBLE + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0); + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var rot = 90, + op = 1, + torig ="center center "; + + if (slidedirection==1) rot = -90; + + if (nexttrans==19) { + torig = torig+"-"+opt.height/2; + op=0; + + } else { + torig = torig+opt.height/2; + } + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + punchgs.TweenLite.set(container,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}); + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:opt.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationX:rot}, + {left:0,rotationY:0,top:0,z:0, scale:1,force3D:"auto",rotationX:0, delay:(j*50)/1000,ease:ei}),0); + subtl.add(punchgs.TweenLite.to(ss,0.1,{autoAlpha:1,delay:(j*50)/1000}),0); + mtl.add(subtl); + }); + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + var rot = -90; + if (slidedirection==1) rot = 90; + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationX:0}, + {autoAlpha:1,rotationY:opt.rotate,top:0,z:10, scale:1,rotationX:rot, delay:(j*50)/1000,force3D:"auto",ease:eo}),0); + + mtl.add(subtl); + }); + mtl.add(punchgs.TweenLite.set(actli,{zIndex:18}),0); + } + + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==20 ) { // FLYIN + + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + if (slidedirection==1) { + var ofx = -opt.width + var rot =80; + var torig = "20% 70% -"+opt.height/2; + } else { + var ofx = opt.width; + var rot = -80; + var torig = "80% 70% -"+opt.height/2; + } + + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + d = (j*50)/1000; + + + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:ofx,rotationX:40,z:-600, opacity:op,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,transformStyle:"flat",rotationY:rot}, + {left:0,rotationX:0,opacity:1,top:0,z:0, scale:1,rotationY:0, delay:d,ease:ei}),0); + + + }); + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + d = (j*50)/1000; + d = j>0 ? d + masterspeed/9000 : 0; + + if (slidedirection!=1) { + var ofx = -opt.width/2 + var rot =30; + var torig = "20% 70% -"+opt.height/2; + } else { + var ofx = opt.width/2; + var rot = -30; + var torig = "80% 70% -"+opt.height/2; + } + eo=punchgs.Power2.easeInOut; + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {opacity:1,rotationX:0,top:0,z:0,scale:1,left:0, force3D:"auto",transformPerspective:600,transformOrigin:torig, transformStyle:"flat",rotationY:0}, + {opacity:1,rotationX:20,top:0, z:-600, left:ofx, force3D:"auto",rotationY:rot, delay:d,ease:eo}),0); + + + }); + } + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==21 || nexttrans==25) { // TURNOFF + + + //SET DEFAULT IMG UNVISIBLE + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var rot = 90, + ofx = -opt.width, + rot2 = -rot; + + if (slidedirection==1) { + if (nexttrans==25) { + var torig = "center top 0"; + rot = opt.rotate; + } else { + var torig = "left center 0"; + rot2 = opt.rotate; + } + + } else { + ofx = opt.width; + rot = -90; + if (nexttrans==25) { + var torig = "center bottom 0" + rot2 = -rot; + rot = opt.rotate; + } else { + var torig = "right center 0"; + rot2 = opt.rotate; + } + } + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + ms2 = ((masterspeed/1.5)/3); + + + mtl.add(punchgs.TweenLite.fromTo(ss,(ms2*2)/1000, + {left:0,transformStyle:"flat",rotationX:rot2,z:0, autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:torig,rotationY:rot}, + {left:0,rotationX:0,top:0,z:0, autoAlpha:1,scale:1,rotationY:0,force3D:"auto",delay:ms2/1000, ease:ei}),0); + }); + + + if (slidedirection!=1) { + ofx = -opt.width + rot = 90; + + if (nexttrans==25) { + torig = "center top 0" + rot2 = -rot; + rot = opt.rotate; + } else { + torig = "left center 0"; + rot2 = opt.rotate; + } + + } else { + ofx = opt.width; + rot = -90; + if (nexttrans==25) { + torig = "center bottom 0" + rot2 = -rot; + rot = opt.rotate; + } else { + torig = "right center 0"; + rot2 = opt.rotate; + } + } + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,transformStyle:"flat",rotationX:0,z:0, autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:torig,rotationY:0}, + {left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto", scale:1,rotationY:rot,ease:eo}),0); + }); + } + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==23 || nexttrans == 24) { // cube-horizontal - inboxhorizontal + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var rot = -90, + op = 1, + opx=0; + + if (slidedirection==1) rot = 90; + if (nexttrans==23) { + var torig = "center center -"+opt.width/2; + op=0; + } else + var torig = "center center "+opt.width/2; + + punchgs.TweenLite.set(container,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}); + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:opx,rotationX:opt.rotate,force3D:"auto",opacity:op,top:0,scale:1,transformPerspective:1200,transformOrigin:torig,rotationY:rot}, + {left:0,rotationX:0,autoAlpha:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/500,ease:ei}),0); + }); + + rot = 90; + if (slidedirection==1) rot = -90; + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformStyle:"flat",transformPerspective:1200,transformOrigin:torig, rotationY:0}, + {left:opx,rotationX:opt.rotate,top:0, scale:1,rotationY:rot, delay:(j*50)/500,ease:eo}),0); + if (nexttrans==23) mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/2000,{autoAlpha:1},{autoAlpha:0,delay:(j*50)/500 + masterspeed/3000,ease:eo}),0); + + }); + } + + + return mtl; +} + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.video.js b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.video.js new file mode 100644 index 0000000..efa44ce --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/extensions/source/revolution.extension.video.js @@ -0,0 +1,1268 @@ +/******************************************** + * REVOLUTION 5.2.5.1 EXTENSION - VIDEO FUNCTIONS + * @version: 2.0.2 (25.11.2016) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +*********************************************/ +(function($) { + "use strict"; +var _R = jQuery.fn.revolution, + _ISM = _R.is_mobile(), + extension = { alias:"Video Min JS", + name:"revolution.extensions.video.min.js", + min_core: "5.3", + version:"2.0.2" + }; + + + +/////////////////////////////////////////// +// EXTENDED FUNCTIONS AVAILABLE GLOBAL // +/////////////////////////////////////////// +jQuery.extend(true,_R, { + + + preLoadAudio : function(li,opt) { + if (_R.compare_version(extension).check==="stop") return false; + li.find('.tp-audiolayer').each(function() { + + var element = jQuery(this), + obj = {}; + if (element.find('audio').length===0) { + obj.src = element.data('videomp4') !=undefined ? element.data('videomp4') : '', + obj.pre = element.data('videopreload') || ''; + if (element.attr('id')===undefined) element.attr('audio-layer-'+Math.round(Math.random()*199999)); + obj.id = element.attr('id'); + obj.status = "prepared"; + obj.start = jQuery.now(); + obj.waittime = element.data('videopreloadwait')*1000 || 5000; + + + if (obj.pre=="auto" || obj.pre=="canplaythrough" || obj.pre=="canplay" || obj.pre=="progress") { + if (opt.audioqueue===undefined) opt.audioqueue = []; + opt.audioqueue.push(obj); + _R.manageVideoLayer(element,opt); + } + } + }); + }, + + preLoadAudioDone : function(nc,opt,event) { + + if (opt.audioqueue && opt.audioqueue.length>0) + jQuery.each(opt.audioqueue,function(i,obj) { + if (nc.data('videomp4') === obj.src && (obj.pre === event || obj.pre==="auto")) { + obj.status = "loaded"; + } + }); + }, + + resetVideo : function(_nc,opt,preset) { + var _ = _nc.data(); + switch (_.videotype) { + case "youtube": + + var player=_.player; + try{ + if (_.forcerewind=="on") { //Removed Force Rewind Protection for Handy here !!! + var s = getStartSec(_nc.data('videostartat')), + wasdead = s==-1 ? true : false, + forceseek = _.bgvideo===1 || _nc.find('.tp-videoposter').length>0 ? true : false; + s= s==-1 ? 0 : s; + if (_.player!=undefined) { + if ((s!==0 && !wasdead) || forceseek) { + _.player.seekTo(s); + _.player.pauseVideo(); + } + } + } + } catch(e) {} + if (_nc.find('.tp-videoposter').length==0 && _.bgvideo!==1 && preset!==true) + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + + break; + + case "vimeo": + var f = $f(_nc.find('iframe').attr("id")); + try{ + if (_.forcerewind=="on") { //Removed Force Rewind Protection for Handy here !!! + var s = getStartSec(_.videostartat), + ct = 0, + wasdead = s==-1 ? true : false, + forceseek = _.bgvideo===1 || _nc.find('.tp-videoposter').length>0 ? true : false; + s= s==-1 ? 0 : s; + if ((s!==0 && !wasdead) || forceseek) { + f.api("seekTo",s); + f.api("pause"); + } + } + } catch(e) {} + if (_nc.find('.tp-videoposter').length==0 && _.bgvideo!==1 && preset!==true) + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + break; + + case "html5": + if (_ISM && _.disablevideoonmobile==1) return false; + + var tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0]; + + + punchgs.TweenLite.to(jvideo,0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + + if (_.forcerewind=="on" && !_nc.hasClass("videoisplaying")) { + try{ + + var s = getStartSec(_.videostartat); + video.currentTime = s == -1 ? 0 : s; + } catch(e) {} + } + + if (_.volume=="mute" || _R.lastToggleState(_nc.videomutetoggledby) || opt.globalmute===true) + video.muted = true; + break; + } + }, + + + isVideoMuted : function(_nc,opt) { + var muted = false, + _ = _nc.data(); + switch (_.videotype) { + case "youtube": + try{ + var player=_.player; + muted = player.isMuted(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + if (_.volume=="mute") + muted = true; + + } catch(e) {} + break; + case "html5": + var tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0]; + + if (video.muted) + muted = true; + break; + } + return muted; + }, + + muteVideo : function(_nc,opt) { + var _ = _nc.data(); + switch (_.videotype) { + case "youtube": + try{ + var player=_.player; + + player.mute(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + _nc.data('volume',"mute"); + f.api('setVolume',0); + } catch(e) {} + break; + case "html5": + var tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0]; + video.muted = true; + break; + } + }, + + unMuteVideo : function(_nc,opt) { + if (opt.globalmute===true) return; + var _ = _nc.data(); + switch (_.videotype) { + case "youtube": + try{ + var player=_.player; + player.unMute(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + _nc.data('volume',"1"); + f.api('setVolume',1); + } catch(e) {} + break; + case "html5": + var tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0]; + video.muted = false; + break; + } + }, + + + + + + stopVideo : function(_nc,opt) { + var _ = _nc.data(); + if (!opt.leaveViewPortBasedStop) + opt.lastplayedvideos = []; + + opt.leaveViewPortBasedStop = false; + + switch (_.videotype) { + case "youtube": + + //if (_ISM) return; + try{ + + var player=_.player; + + if (player.getPlayerState()===2 || player.getPlayerState()===5) return; + player.pauseVideo(); + _.youtubepausecalled = true; + setTimeout(function() { + _.youtubepausecalled=false; + },80); + } catch(e) { + console.log("Issue at YouTube Video Pause:"); + console.log(e); + } + break; + case "vimeo": + + try{ + var f = $f(_nc.find('iframe').attr("id")); + f.api("pause"); + _.vimeopausecalled = true; + setTimeout(function() { + _.vimeopausecalled=false; + },80); + + } catch(e) { + console.log("Issue at Vimeo Video Pause:"); + console.log(e); + } + break; + case "html5": + var tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0]; + if (jvideo!=undefined && video!=undefined) { + + video.pause(); + } + break; + } + }, + + playVideo : function(_nc,opt) { + + clearTimeout(_nc.data('videoplaywait')); + var _ = _nc.data(); + switch (_.videotype) { + case "youtube": + + if (_nc.find('iframe').length==0) { + _nc.append(_nc.data('videomarkup')); + addVideoListener(_nc,opt,true); + } else { + if (_.player.playVideo !=undefined) { + + var s = getStartSec(_nc.data('videostartat')), + ct = _.player.getCurrentTime(); + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) _.player.seekTo(s); + if (_.youtubepausecalled!==true) + _.player.playVideo(); + } else { + _nc.data('videoplaywait',setTimeout(function() { + if (_.youtubepausecalled!==true) _R.playVideo(_nc,opt); + },50)); + } + } + break; + case "vimeo": + + if (_nc.find('iframe').length==0) { + _nc.append(_nc.data('videomarkup')); + addVideoListener(_nc,opt,true); + + } else { + if (_nc.hasClass("rs-apiready")) { + var id = _nc.find('iframe').attr("id"), + f = $f(id); + if (f.api("play")==undefined) { + _nc.data('videoplaywait',setTimeout(function() { + if (_.vimeopausecalled!==true) + _R.playVideo(_nc,opt); + },50)); + } else { + setTimeout(function() { + + f.api("play"); + var s = getStartSec(_nc.data('videostartat')), + ct = _nc.data('currenttime'); + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) f.api("seekTo",s); + },510); + } + } else { + _nc.data('videoplaywait',setTimeout(function() { + if (_.vimeopausecalled!==true) + _R.playVideo(_nc,opt); + },50)); + } + } + break; + case "html5": + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + + + var tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0], + html5vid = jvideo.parent(); + + if (html5vid.data('metaloaded') != 1) { + addEvent(video,'loadedmetadata',function(_nc) { + _R.resetVideo(_nc,opt); + video.play(); + var s = getStartSec(_nc.data('videostartat')), + ct = video.currentTime; + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) video.currentTime = s; + }(_nc)); + } else { + video.play(); + var s = getStartSec(_nc.data('videostartat')), + ct = video.currentTime; + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) video.currentTime = s; + } + break; + } + }, + + isVideoPlaying : function(_nc,opt) { + + var ret = false; + if (opt.playingvideos != undefined) { + jQuery.each(opt.playingvideos,function(i,nc) { + if (_nc.attr('id') == nc.attr('id')) + ret = true; + }); + } + return ret; + }, + + removeMediaFromList : function(_nc,opt) { + remVidfromList(_nc,opt); + }, + + prepareCoveredVideo : function(asprat,opt,nextcaption) { + var ifr = nextcaption.find('iframe, video'), + wa = asprat.split(':')[0], + ha = asprat.split(':')[1], + li = nextcaption.closest('.tp-revslider-slidesli'), + od = li.width()/li.height(), + vd = wa/ha, + nvh = (od/vd)*100, + nvw = (vd/od)*100; + + if (od>vd) + punchgs.TweenLite.to(ifr,0.001,{height:nvh+"%", width:"100%", top:-(nvh-100)/2+"%",left:"0px",position:"absolute"}); + else + punchgs.TweenLite.to(ifr,0.001,{width:nvw+"%", height:"100%", left:-(nvw-100)/2+"%",top:"0px",position:"absolute"}); + + if (!ifr.hasClass("resizelistener")) { + ifr.addClass("resizelistener"); + jQuery(window).resize(function() { + clearTimeout(ifr.data('resizelistener')); + ifr.data('resizelistener',setTimeout(function() { + _R.prepareCoveredVideo(asprat,opt,nextcaption); + },30)); + }) + } + }, + + checkVideoApis : function(_nc,opt,addedApis) { + var httpprefix = location.protocol === 'https:' ? "https" : "http"; + + if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0)) opt.youtubeapineeded = true; + if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0) && addedApis.addedyt==0) { + opt.youtubestarttime = jQuery.now(); + addedApis.addedyt=1; + var s = document.createElement("script"); + s.src = "https://www.youtube.com/iframe_api"; /* Load Player API*/ + var before = document.getElementsByTagName("script")[0], + loadit = true; + jQuery('head').find('*').each(function(){ + if (jQuery(this).attr('src') == "https://www.youtube.com/iframe_api") + loadit = false; + }); + if (loadit) before.parentNode.insertBefore(s, before); + + } + + + + if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0)) opt.vimeoapineeded = true; + if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0) && addedApis.addedvim==0) { + opt.vimeostarttime = jQuery.now(); + addedApis.addedvim=1; + var f = document.createElement("script"), + before = document.getElementsByTagName("script")[0], + loadit = true; + f.src = "https://secure-a.vimeocdn.com/js/froogaloop2.min.js"; /* Load Player API*/ + + jQuery('head').find('*').each(function(){ + if (jQuery(this).attr('src') == "https://secure-a.vimeocdn.com/js/froogaloop2.min.js") + loadit = false; + }); + if (loadit) + before.parentNode.insertBefore(f, before); + } + return addedApis; + }, + + manageVideoLayer : function(_nc,opt,recalled,internrecalled) { + if (_R.compare_version(extension).check==="stop") return false; + // YOUTUBE AND VIMEO LISTENRES INITIALISATION + var _ = _nc.data(), + vida = _.videoattributes, + vidytid = _.ytid, + vimeoid = _.vimeoid, + videopreload = _.videopreload === "auto" || _.videopreload === "canplay" || _.videopreload === "canplaythrough" || _.videopreload === "progress" ? "auto" : _.videopreload, + videomp = _.videomp4, + videowebm = _.videowebm, + videoogv = _.videoogv, + videoafs = _.allowfullscreenvideo, + videocontrols = _.videocontrols, + httpprefix = "http", + videoloop = _.videoloop=="loop" ? "loop" : _.videoloop=="loopandnoslidestop" ? "loop" : "", + videotype = (videomp!=undefined || videowebm!=undefined) ? "html5" : + (vidytid!=undefined && String(vidytid).length>1) ? "youtube" : + (vimeoid!=undefined && String(vimeoid).length>1) ? "vimeo" : "none", + tag = _.audio=="html5" ? "audio" : "video", + newvideotype = (videotype=="html5" && _nc.find(tag).length==0) ? "html5" : + (videotype=="youtube" && _nc.find('iframe').length==0) ? "youtube" : + (videotype=="vimeo" && _nc.find('iframe').length==0) ? "vimeo" : "none"; + + // VideLoop reset if Next Slide at End is set ! + videoloop = _.nextslideatend === true ? "" : videoloop; + + + _.videotype = videotype; + // ADD HTML5 VIDEO IF NEEDED + switch (newvideotype) { + case "html5": + + if (videocontrols!="controls") videocontrols=""; + var tag = "video" + + //_nc.data('audio',"html5"); + if (_.audio=="html5") { + tag = "audio"; + _nc.addClass("tp-audio-html5"); + } + + var apptxt = '<'+tag+' style="object-fit:cover;background-size:cover;visible:hidden;width:100%; height:100%" '+videoloop+' preload="'+videopreload+'">'; + + if (videopreload=="auto") opt.mediapreload = true; + //if (_.videoposter!=undefined) apptxt = apptxt + 'poster="'+_nc.data('videoposter')+'">'; + if (videowebm!=undefined && _R.get_browser().toLowerCase()=="firefox") apptxt = apptxt + ''; + if (videomp!=undefined) apptxt = apptxt + ''; + if (videoogv!=undefined) apptxt = apptxt + ''; + apptxt = apptxt + ''; + var hfm =""; + if (videoafs==="true" || videoafs===true) + hfm = '
    '; + + if (videocontrols=="controls") + apptxt = apptxt + ('
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + hfm+ + '
    '); + + _nc.data('videomarkup',apptxt) + _nc.append(apptxt); + + // START OF HTML5 VIDEOS + if ((_ISM && _nc.data('disablevideoonmobile')==1) ||_R.isIE(8)) _nc.find(tag).remove(); + + // ADD HTML5 VIDEO CONTAINER + _nc.find(tag).each(function(i) { + var video = this, + jvideo = jQuery(this); + + if (!jvideo.parent().hasClass("html5vid")) + jvideo.wrap('
    '); + + var html5vid = jvideo.parent(); + if (html5vid.data('metaloaded') != 1) { + addEvent(video,'loadedmetadata',function(_nc) { + htmlvideoevents(_nc,opt); + _R.resetVideo(_nc,opt); + }(_nc)); + } + }); + break; + case "youtube": + httpprefix = "https"; + /* if (location.protocol === 'https:') + httpprefix = "https"; */ + if (videocontrols=="none") { + vida = vida.replace("controls=1","controls=0"); + if (vida.toLowerCase().indexOf('controls')==-1) + vida = vida+"&controls=0"; + } + if (_.videoinline===true || _.videoinline==="true" || _.videoinline===1) + vida = vida + "&playsinline=1"; + var s = getStartSec(_nc.data('videostartat')), + e = getStartSec(_nc.data('videoendat')); + + if (s!=-1) vida=vida+"&start="+s; + if (e!=-1) vida=vida+"&end="+e; + + // CHECK VIDEO ORIGIN, AND EXTEND WITH WWW IN CASE IT IS MISSING ! + var orig = vida.split('origin='+httpprefix+'://'), + vida_new = ""; + + if (orig.length>1) { + vida_new = orig[0]+'origin='+httpprefix+'://'; + if (self.location.href.match(/www/gi) && !orig[1].match(/www/gi)) + vida_new=vida_new+"www." + vida_new=vida_new+orig[1]; + } else { + vida_new = vida; + } + + var yafv = videoafs==="true" || videoafs===true ? "allowfullscreen" : ""; + _nc.data('videomarkup',''); + break; + + case "vimeo": + // if (location.protocol === 'https:') + httpprefix = "https"; + _nc.data('videomarkup',''); + + break; + } + + //if (videotype=="vimeo" || videotype=="youtube") { + + // IF VIDEOPOSTER EXISTING + var noposteronmobile = _ISM && _nc.data('noposteronmobile')=="on"; + + if (_.videoposter!=undefined && _.videoposter.length>2 && !noposteronmobile) { + if (_nc.find('.tp-videoposter').length==0) + _nc.append('
    '); + if (_nc.find('iframe').length==0) + _nc.find('.tp-videoposter').click(function() { + _R.playVideo(_nc,opt); + if (_ISM) { + if (_nc.data('disablevideoonmobile')==1) return false; + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + } + }) + } else { + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + if (_nc.find('iframe').length==0 && (videotype=="youtube" || videotype=="vimeo")) { + _nc.append(_nc.data('videomarkup')); + addVideoListener(_nc,opt,false); + } + } + + // ADD DOTTED OVERLAY IF NEEDED + if (_nc.data('dottedoverlay')!="none" && _nc.data('dottedoverlay')!=undefined && _nc.find('.tp-dottedoverlay').length!=1) + _nc.append('
    '); + + _nc.addClass("HasListener"); + + if (_nc.data('bgvideo')==1) { + punchgs.TweenLite.set(_nc.find('video, iframe'),{autoAlpha:0}); + } + } + +}); + + + + + +////////////////////////////////////////////////////// +// * Revolution Slider - VIDEO / API FUNCTIONS // +// * @version: 1.0 (30.10.2014) // +// * @author ThemePunch // +////////////////////////////////////////////////////// + +function getStartSec(st) { + return st == undefined ? -1 :jQuery.isNumeric(st) ? st : st.split(":").length>1 ? parseInt(st.split(":")[0],0)*60 + parseInt(st.split(":")[1],0) : st; +}; + +// - VIMEO ADD EVENT ///// +var addEvent = function(element, eventName, callback) { + if (element.addEventListener) + element.addEventListener(eventName, callback, {capture:false,passive:true}); + else + element.attachEvent(eventName, callback, {capture:false,passive:true}); +}; + +var getVideoDatas = function(p,t,d) { + var a = {}; + a.video = p; + a.videotype = t; + a.settings = d; + return a; +} + + +var addVideoListener = function(_nc,opt,startnow) { + + var _=_nc.data(), + ifr = _nc.find('iframe'), + frameID = "iframe"+Math.round(Math.random()*100000+1), + loop = _.videoloop, + pforv = loop != "loopandnoslidestop"; + + + loop = loop =="loop" || loop =="loopandnoslidestop"; + + + // CARE ABOUT ASPECT RATIO + + if (_nc.data('forcecover')==1) { + _nc.removeClass("fullscreenvideo").addClass("coverscreenvideo"); + var asprat = _nc.data('aspectratio'); + if (asprat!=undefined && asprat.split(":").length>1) + _R.prepareCoveredVideo(asprat,opt,_nc); + } + + if (_nc.data('bgvideo')==1) { + var asprat = _nc.data('aspectratio'); + if (asprat!=undefined && asprat.split(":").length>1) + _R.prepareCoveredVideo(asprat,opt,_nc); + } + + + + // IF LISTENER DOES NOT EXIST YET + ifr.attr('id',frameID); + + if (startnow) _nc.data('startvideonow',true); + + if (_nc.data('videolistenerexist')!==1) { + switch (_.videotype) { + // YOUTUBE LISTENER + case "youtube": + var player = new YT.Player(frameID, { + events: { + "onStateChange": function(event) { + + var container = _nc.closest('.tp-simpleresponsive'), + videorate = _.videorate, + videostart = _nc.data('videostart'), + fsmode = checkfullscreenEnabled(); + + if (event.data == YT.PlayerState.PLAYING) { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + if (_nc.data('volume')=="mute" || _R.lastToggleState(_nc.data('videomutetoggledby')) || opt.globalmute===true) { + player.mute(); + } else { + player.unMute(); + player.setVolume(parseInt(_nc.data('volume'),0) || 75); + } + + opt.videoplaying=true; + addVidtoList(_nc,opt); + if (pforv) + opt.c.trigger('stoptimer'); + else + opt.videoplaying=false; + + opt.c.trigger('revolution.slide.onvideoplay',getVideoDatas(player,"youtube",_nc.data())); + _R.toggleState(_.videotoggledby); + } else { + if (event.data==0 && loop) { + //player.playVideo(); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) player.seekTo(s); + player.playVideo(); + _R.toggleState(_.videotoggledby); + } + + if (!fsmode && (event.data==0 || event.data==2) && _nc.data('showcoveronpause')=="on" && _nc.find('.tp-videoposter').length>0) { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut}); + } + if ((event.data!=-1 && event.data!=3)) { + + opt.videoplaying=false; + opt.tonpause = false; + + remVidfromList(_nc,opt); + container.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(player,"youtube",_nc.data())); + + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_.videotoggledby); + + } + + if (event.data==0 && _nc.data('nextslideatend')==true) { + exitFullscreen(); + _nc.data('nextslideatend-triggered',1); + opt.c.revnext(); + remVidfromList(_nc,opt); + } else { + remVidfromList(_nc,opt); + opt.videoplaying=false; + container.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(player,"youtube",_nc.data())); + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_.videotoggledby); + } + } + }, + 'onReady': function(event) { + + + var videorate = _.videorate, + videostart = _nc.data('videostart'); + + _nc.addClass("rs-apiready"); + if (videorate!=undefined) + event.target.setPlaybackRate(parseFloat(videorate)); + + // PLAY VIDEO IF THUMBNAIL HAS BEEN CLICKED + _nc.find('.tp-videoposter').unbind("click"); + _nc.find('.tp-videoposter').click(function() { + if (!_ISM) { + player.playVideo(); + } + }) + + if (_nc.data('startvideonow')) { + + _.player.playVideo(); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) _.player.seekTo(s); + //_nc.find('.tp-videoposter').click(); + } + _nc.data('videolistenerexist',1); + } + } + }); + _nc.data('player',player); + break; + + // VIMEO LISTENER + case "vimeo": + var isrc = ifr.attr('src'), + queryParameters = {}, queryString = isrc, + re = /([^&=]+)=([^&]*)/g, m; + // Creates a map with the query string parameters + while (m = re.exec(queryString)) { + queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); + } + if (queryParameters['player_id']!=undefined) + isrc = isrc.replace(queryParameters['player_id'],frameID); + else + isrc=isrc+"&player_id="+frameID; + try{ isrc = isrc.replace('api=0','api=1'); } catch(e) {} + isrc=isrc+"&api=1"; + ifr.attr('src',isrc); + + + var player = _nc.find('iframe')[0], + vimcont = jQuery('#'+frameID), + f = $f(frameID); + + f.addEvent('ready', function(){ + + _nc.addClass("rs-apiready"); + f.addEvent('play', function(data) { + _nc.data('nextslidecalled',0); + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + opt.c.trigger('revolution.slide.onvideoplay',getVideoDatas(f,"vimeo",_nc.data())); + opt.videoplaying=true; + + addVidtoList(_nc,opt); + if (pforv) + opt.c.trigger('stoptimer'); + else + opt.videoplaying=false; + if (_nc.data('volume')=="mute" || _R.lastToggleState(_nc.data('videomutetoggledby')) || opt.globalmute===true) + f.api('setVolume',"0") + else + f.api('setVolume',(parseInt(_nc.data('volume'),0)/100 || 0.75)); + _R.toggleState(_.videotoggledby); + }); + + f.addEvent('playProgress',function(data) { + var et = getStartSec(_nc.data('videoendat')) + + _nc.data('currenttime',data.seconds); + if (et!=0 && (Math.abs(et-data.seconds) <0.3 && et>data.seconds) && _nc.data('nextslidecalled') != 1) { + if (loop) { + + f.api("play"); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) f.api("seekTo",s); + } else { + if (_nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + _nc.data('nextslidecalled',1); + opt.c.revnext(); + } + f.api("pause"); + } + } + }); + + f.addEvent('finish', function(data) { + remVidfromList(_nc,opt); + opt.videoplaying=false; + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(f,"vimeo",_nc.data())); + if (_nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + opt.c.revnext(); + } + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_.videotoggledby); + + }); + + f.addEvent('pause', function(data) { + + if (_nc.find('.tp-videoposter').length>0 && _nc.data('showcoveronpause')=="on") { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut}); + } + opt.videoplaying=false; + opt.tonpause = false; + + remVidfromList(_nc,opt); + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(f,"vimeo",_nc.data())); + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_.videotoggledby); + }); + + + + _nc.find('.tp-videoposter').unbind("click"); + _nc.find('.tp-videoposter').click(function() { + if (!_ISM) { + + f.api("play"); + return false; + } + }) + if (_nc.data('startvideonow')) { + + f.api("play"); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) f.api("seekTo",s); + } + _nc.data('videolistenerexist',1); + }); + break; + } + } else { + var s = getStartSec(_nc.data('videostartat')); + switch (_.videotype) { + // YOUTUBE LISTENER + case "youtube": + if (startnow) { + _.player.playVideo(); + if (s!=-1) _.player.seekTo() + } + break; + case "vimeo": + if (startnow) { + + var f = $f(_nc.find('iframe').attr("id")); + f.api("play"); + if (s!=-1) f.api("seekTo",s); + } + break; + } + } +} + + +var exitFullscreen = function() { + if(document.exitFullscreen) { + document.exitFullscreen(); + } else if(document.mozCancelFullScreen) { + document.mozCancelFullScreen(); + } else if(document.webkitExitFullscreen) { + document.webkitExitFullscreen(); + } +} + + +var checkfullscreenEnabled = function() { + try{ + // FF provides nice flag, maybe others will add support for this later on? + if(window['fullScreen'] !== undefined) { + return window.fullScreen; + } + // 5px height margin, just in case (needed by e.g. IE) + var heightMargin = 5; + if(jQuery.browser.webkit && /Apple Computer/.test(navigator.vendor)) { + // Safari in full screen mode shows the navigation bar, + // which is 40px + heightMargin = 42; + } + return screen.width == window.innerWidth && + Math.abs(screen.height - window.innerHeight) < heightMargin; + } catch(e) { + + } + } +///////////////////////////////////////// HTML5 VIDEOS /////////////////////////////////////////// + +var htmlvideoevents = function(_nc,opt,startnow) { + + + + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + var _ = _nc.data(), + tag = _.audio=="html5" ? "audio" : "video", + jvideo = _nc.find(tag), + video = jvideo[0], + html5vid = jvideo.parent(), + loop = _.videoloop, + pforv = loop != "loopandnoslidestop"; + + loop = loop =="loop" || loop =="loopandnoslidestop"; + + html5vid.data('metaloaded',1); + // FIRST TIME LOADED THE HTML5 VIDEO + + if (_nc.data('bgvideo')==1 && (_.videoloop==="none" || _.videoloop===false)) + pforv = false; + + + + + //PLAY, STOP VIDEO ON CLICK OF PLAY, POSTER ELEMENTS + if (jvideo.attr('control') == undefined ) { + if (_nc.find('.tp-video-play-button').length==0 && !_ISM) + _nc.append('
     
    '); + _nc.find('video, .tp-poster, .tp-video-play-button').click(function() { + if (_nc.hasClass("videoisplaying")) + video.pause(); + else + video.play(); + }) + } + + // PRESET FULLCOVER VIDEOS ON DEMAND + if (_nc.data('forcecover')==1 || _nc.hasClass('fullscreenvideo') || _nc.data('bgvideo')==1) { + if (_nc.data('forcecover')==1 || _nc.data('bgvideo')==1) { + html5vid.addClass("fullcoveredvideo"); + var asprat = _nc.data('aspectratio') || "4:3"; + _R.prepareCoveredVideo(asprat,opt,_nc); + } + else + html5vid.addClass("fullscreenvideo"); + } + + + // FIND CONTROL BUTTONS IN VIDEO, AND ADD EVENT LISTENERS ON THEM + var playButton = _nc.find('.tp-vid-play-pause')[0], + muteButton = _nc.find('.tp-vid-mute')[0], + fullScreenButton = _nc.find('.tp-vid-full-screen')[0], + seekBar = _nc.find('.tp-seek-bar')[0], + volumeBar = _nc.find('.tp-volume-bar')[0]; + + if (playButton!=undefined) { + // Event listener for the play/pause button + addEvent(playButton,"click", function() { + if (video.paused == true) + video.play(); + else + video.pause(); + }); + } + + if (muteButton!=undefined) { + + // Event listener for the mute button + addEvent(muteButton,"click", function() { + if (video.muted == false) { + video.muted = true; + muteButton.innerHTML = "Unmute"; + } else { + video.muted = false; + muteButton.innerHTML = "Mute"; + } + }); + } + + if (fullScreenButton!=undefined) { + + // Event listener for the full-screen button + if (fullScreenButton) + addEvent(fullScreenButton,"click", function() { + if (video.requestFullscreen) { + video.requestFullscreen(); + } else if (video.mozRequestFullScreen) { + video.mozRequestFullScreen(); // Firefox + } else if (video.webkitRequestFullscreen) { + video.webkitRequestFullscreen(); // Chrome and Safari + } + }); + + } + + if (seekBar !=undefined) { + + // Event listener for the seek bar + addEvent(seekBar,"change", function() { + var time = video.duration * (seekBar.value / 100); + video.currentTime = time; + + }); + + // Pause the video when the seek handle is being dragged + addEvent(seekBar,"mousedown", function() { + _nc.addClass("seekbardragged"); + video.pause(); + + }); + + // Play the video when the seek handle is dropped + addEvent(seekBar,"mouseup", function() { + _nc.removeClass("seekbardragged"); + video.play(); + + }); + } + + addEvent(video,"canplaythrough", function() { + _R.preLoadAudioDone(_nc,opt,"canplaythrough"); + }); + + addEvent(video,"canplay", function() { + _R.preLoadAudioDone(_nc,opt,"canplay"); + }); + + addEvent(video,"progress", function() { + _R.preLoadAudioDone(_nc,opt,"progress"); + }); + + // Update the seek bar as the video plays + addEvent(video,"timeupdate", function() { + + var value = (100 / video.duration) * video.currentTime, + et = getStartSec(_nc.data('videoendat')), + cs =video.currentTime; + if (seekBar != undefined) + seekBar.value = value; + + if (et!=0 && et!=-1 && (Math.abs(et-cs) <=0.3 && et>cs) && _nc.data('nextslidecalled') != 1) { + if (loop) { + video.play(); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) video.currentTime = s; + } else { + + + if (_nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + _nc.data('nextslidecalled',1); + opt.just_called_nextslide_at_htmltimer = true; + opt.c.revnext(); + setTimeout(function() { + opt.just_called_nextslide_at_htmltimer = false; + },1000); + } + video.pause(); + } + } + }); + + + if (volumeBar != undefined) { + + // Event listener for the volume bar + addEvent(volumeBar,"change", function() { + // Update the video volume + video.volume = volumeBar.value; + }); + } + + + // VIDEO EVENT LISTENER FOR "PLAY" + addEvent(video,"play",function() { + + + _nc.data('nextslidecalled',0); + + var vol = _nc.data('volume'); + vol = vol!=undefined && vol!="mute" ?parseFloat(vol)/100 : vol; + + if (opt.globalmute===true) + video.muted = true; + else + video.muted = false; + + if (vol>1) vol = vol/100; + if (vol=="mute") + video.muted=true; + else + if (vol!=undefined) + video.volume = vol; + + + + _nc.addClass("videoisplaying"); + + var tag = _.audio=="html5" ? "audio" : "video"; + + addVidtoList(_nc,opt); + + if (!pforv || tag=="audio") { + opt.videoplaying=false; + if (tag!="audio") opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(video,"html5",_)); + } else { + opt.videoplaying=true; + opt.c.trigger('stoptimer'); + opt.c.trigger('revolution.slide.onvideoplay',getVideoDatas(video,"html5",_)); + } + + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find(tag),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + + var playButton = _nc.find('.tp-vid-play-pause')[0], + muteButton = _nc.find('.tp-vid-mute')[0]; + if (playButton!=undefined) + playButton.innerHTML = "Pause"; + if (muteButton!=undefined && video.muted) + muteButton.innerHTML = "Unmute"; + + _R.toggleState(_.videotoggledby); + }); + + // VIDEO EVENT LISTENER FOR "PAUSE" + addEvent(video,"pause",function() { + + var tag = _.audio=="html5" ? "audio" : "video", + fsmode = checkfullscreenEnabled(); + + + if (!fsmode && _nc.find('.tp-videoposter').length>0 && _nc.data('showcoveronpause')=="on" && !_nc.hasClass("seekbardragged")) { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find(tag),0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut}); + } + + _nc.removeClass("videoisplaying"); + opt.videoplaying=false; + remVidfromList(_nc,opt); + if (tag!="audio") opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(video,"html5",_nc.data())); + var playButton = _nc.find('.tp-vid-play-pause')[0]; + if (playButton!=undefined) + playButton.innerHTML = "Play"; + + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_.videotoggledby); + }); + + // VIDEO EVENT LISTENER FOR "END" + + + addEvent(video,"ended",function() { + exitFullscreen(); + + remVidfromList(_nc,opt); + opt.videoplaying=false; + remVidfromList(_nc,opt); + if (tag!="audio") opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(video,"html5",_nc.data())); + + + if (_nc.data('nextslideatend')===true && video.currentTime>0) { + + if (!opt.just_called_nextslide_at_htmltimer==true) { + _nc.data('nextslideatend-triggered',1); + opt.c.revnext(); + opt.just_called_nextslide_at_htmltimer = true; + } + setTimeout(function() { + opt.just_called_nextslide_at_htmltimer = false; + },1500) + } + _nc.removeClass("videoisplaying"); + + + }); +} + + + +var addVidtoList = function(_nc,opt) { + + if (opt.playingvideos == undefined) opt.playingvideos = new Array(); + + // STOP OTHER VIDEOS + if (_nc.data('stopallvideos')) { + if (opt.playingvideos != undefined && opt.playingvideos.length>0) { + opt.lastplayedvideos = jQuery.extend(true,[],opt.playingvideos); + jQuery.each(opt.playingvideos,function(i,_nc) { + _R.stopVideo(_nc,opt); + }); + } + } + opt.playingvideos.push(_nc); + opt.currentLayerVideoIsPlaying = _nc; + +} + + +var remVidfromList = function(_nc,opt) { + if (opt.playingvideos != undefined && jQuery.inArray(_nc,opt.playingvideos)>=0) + opt.playingvideos.splice(jQuery.inArray(_nc,opt.playingvideos),1); +} + + + + + + + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/index.php b/public/assets/plugins/rs-plugin-5.3.1/js/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/jquery.themepunch.enablelog.js b/public/assets/plugins/rs-plugin-5.3.1/js/jquery.themepunch.enablelog.js new file mode 100644 index 0000000..3b73f58 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/jquery.themepunch.enablelog.js @@ -0,0 +1 @@ +window.tplogs = true; \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/jquery.themepunch.revolution.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/jquery.themepunch.revolution.min.js new file mode 100644 index 0000000..deeb768 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/jquery.themepunch.revolution.min.js @@ -0,0 +1,8 @@ +/************************************************************************** + * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider + * @version: 5.3.1.4 (30.11.2016) + * @requires jQuery v1.7 or later (tested on 1.9) + * @author ThemePunch +**************************************************************************/ +!function(jQuery,undefined){"use strict";var version={core:"5.3.1.4","revolution.extensions.actions.min.js":"2.0.4","revolution.extensions.carousel.min.js":"1.2.1","revolution.extensions.kenburn.min.js":"1.2.0","revolution.extensions.layeranimation.min.js":"3.4.4","revolution.extensions.navigation.min.js":"1.3.2","revolution.extensions.parallax.min.js":"2.2.0","revolution.extensions.slideanims.min.js":"1.6","revolution.extensions.video.min.js":"2.0.2"};jQuery.fn.extend({revolution:function(a){var b={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%",presize:!1},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:"off",simplifyAll:"on",nextSlideOnWindowFocus:"off",disableFocusListener:!0,ignoreHeightChanges:"off",ignoreHeightChangesSize: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:"off",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"},scrolleffect:{fade:"off",blur:"off",grayscale:"off",maxblur:10,on_layers:"off",on_slidebg:"off",on_static_layers:"off",on_parallax_layers:"off",on_parallax_static_layers:"off",direction:"both",multiplicator:1.35,multiplicator_layers:.5,tilt:30,disable_on_mobile:"on"},carousel:{easing:punchgs.Power3.easeInOut,speed:800,showLayersAllTime:"off",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:"off",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:"",rtl:!1,left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0,container:"slider"},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0,container:"slider"}},bullets:{container:"slider",rtl:!1,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:''},thumbnails:{container:"slider",rtl:!1,style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'',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:{container:"slider",rtl:!1,style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'',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=jQuery.extend(!0,{},b,a),this.each(function(){var b=jQuery(this);a.minHeight=a.minHeight!=undefined?parseInt(a.minHeight,0):a.minHeight,a.scrolleffect.on="on"===a.scrolleffect.fade||"on"===a.scrolleffect.blur||"on"===a.scrolleffect.grayscale,"hero"==a.sliderType&&b.find(">ul>li").each(function(a){a>0&&jQuery(this).remove()}),a.jsFileLocation=a.jsFileLocation||getScriptLocation("themepunch.revolution.min.js"),a.jsFileLocation=a.jsFileLocation+a.extensions,a.scriptsneeded=getNeededScripts(a,b),a.curWinRange=0,a.rtl=!0,a.navigation!=undefined&&a.navigation.touch!=undefined&&(a.navigation.touch.swipe_min_touches=a.navigation.touch.swipe_min_touches>5?1:a.navigation.touch.swipe_min_touches),jQuery(this).on("scriptsloaded",function(){return a.modulesfailing?(b.html('
    !! Error at loading Slider Revolution 5.0 Extrensions.'+a.errorm+"
    ").show(),!1):(_R.migration!=undefined&&(a=_R.migration(b,a)),punchgs.force3D=!0,"on"!==a.simplifyAll&&punchgs.TweenLite.lagSmoothing(1e3,16),prepareOptions(b,a),void initSlider(b,a))}),b[0].opt=a,waitForScripts(b,a)})},revremoveslide:function(a){return this.each(function(){var b=jQuery(this),c=b[0].opt;if(!(a<0||a>c.slideamount)&&b!=undefined&&b.length>0&&jQuery("body").find("#"+b.attr("id")).length>0&&c&&c.li.length>0&&(a>0||a<=c.li.length)){var d=jQuery(c.li[a]),e=d.data("index"),f=!1;c.slideamount=c.slideamount-1,c.realslideamount=c.realslideamount-1,removeNavWithLiref(".tp-bullet",e,c),removeNavWithLiref(".tp-tab",e,c),removeNavWithLiref(".tp-thumb",e,c),d.hasClass("active-revslide")&&(f=!0),d.remove(),c.li=removeArray(c.li,a),c.carousel&&c.carousel.slides&&(c.carousel.slides=removeArray(c.carousel.slides,a)),c.thumbs=removeArray(c.thumbs,a),_R.updateNavIndexes&&_R.updateNavIndexes(c),f&&b.revnext(),punchgs.TweenLite.set(c.li,{minWidth:"99%"}),punchgs.TweenLite.set(c.li,{minWidth:"100%"})}})},revaddcallback:function(a){return this.each(function(){this.opt&&(this.opt.callBackArray===undefined&&(this.opt.callBackArray=new Array),this.opt.callBackArray.push(a))})},revgetparallaxproc:function(){return jQuery(this)[0].opt.scrollproc},revdebugmode:function(){return this.each(function(){var a=jQuery(this);a[0].opt.debugMode=!0,containerResized(a,a[0].opt)})},revscroll:function(a){return this.each(function(){var b=jQuery(this);jQuery("body,html").animate({scrollTop:b.offset().top+b.height()-a+"px"},{duration:400})})},revredraw:function(a){return this.each(function(){var a=jQuery(this);containerResized(a,a[0].opt)})},revkill:function(a){var b=this,c=jQuery(this);if(punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements),c!=undefined&&c.length>0&&jQuery("body").find("#"+c.attr("id")).length>0){c.data("conthover",1),c.data("conthover-changed",1),c.trigger("revolution.slide.onpause");var d=c.parent().find(".tp-bannertimer"),e=c[0].opt;e.tonpause=!0,c.trigger("stoptimer"),punchgs.TweenLite.killTweensOf(c.find("*"),!1),punchgs.TweenLite.killTweensOf(c,!1),c.unbind("hover, mouseover, mouseenter,mouseleave, resize");var f="resize.revslider-"+c.attr("id");jQuery(window).off(f),c.find("*").each(function(){var a=jQuery(this);a.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),a.off("on, hover, mouseenter,mouseleave,mouseover, resize"),a.data("mySplitText",null),a.data("ctl",null),a.data("tween")!=undefined&&a.data("tween").kill(),a.data("kenburn")!=undefined&&a.data("kenburn").kill(),a.data("timeline_out")!=undefined&&a.data("timeline_out").kill(),a.data("timeline")!=undefined&&a.data("timeline").kill(),a.remove(),a.empty(),a=null}),punchgs.TweenLite.killTweensOf(c.find("*"),!1),punchgs.TweenLite.killTweensOf(c,!1),d.remove();try{c.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(a){}try{c.closest(".rev_slider_wrapper").remove()}catch(a){}try{c.remove()}catch(a){}return c.empty(),c.html(),c=null,e=null,delete b.c,delete b.opt,!0}return!1},revpause:function(){return this.each(function(){var a=jQuery(this);a!=undefined&&a.length>0&&jQuery("body").find("#"+a.attr("id")).length>0&&(a.data("conthover",1),a.data("conthover-changed",1),a.trigger("revolution.slide.onpause"),a[0].opt.tonpause=!0,a.trigger("stoptimer"))})},revresume:function(){return this.each(function(){var a=jQuery(this);a!=undefined&&a.length>0&&jQuery("body").find("#"+a.attr("id")).length>0&&(a.data("conthover",0),a.data("conthover-changed",1),a.trigger("revolution.slide.onresume"),a[0].opt.tonpause=!1,a.trigger("starttimer"))})},revstart:function(){var a=jQuery(this);if(a!=undefined&&a.length>0&&jQuery("body").find("#"+a.attr("id")).length>0&&a[0].opt!==undefined)return a[0].opt.sliderisrunning?(console.log("Slider Is Running Already"),!1):(runSlider(a,a[0].opt),!0)},revnext:function(){return this.each(function(){var a=jQuery(this);a!=undefined&&a.length>0&&jQuery("body").find("#"+a.attr("id")).length>0&&_R.callingNewSlide(a,1)})},revprev:function(){return this.each(function(){var a=jQuery(this);a!=undefined&&a.length>0&&jQuery("body").find("#"+a.attr("id")).length>0&&_R.callingNewSlide(a,-1)})},revmaxslide:function(){return jQuery(this).find(".tp-revslider-mainul >li").length},revcurrentslide:function(){var a=jQuery(this);if(a!=undefined&&a.length>0&&jQuery("body").find("#"+a.attr("id")).length>0)return parseInt(a[0].opt.act,0)+1},revlastslide:function(){return jQuery(this).find(".tp-revslider-mainul >li").length},revshowslide:function(a){return this.each(function(){var b=jQuery(this);b!=undefined&&b.length>0&&jQuery("body").find("#"+b.attr("id")).length>0&&_R.callingNewSlide(b,"to"+(a-1))})},revcallslidewithid:function(a){return this.each(function(){var b=jQuery(this);b!=undefined&&b.length>0&&jQuery("body").find("#"+b.attr("id")).length>0&&_R.callingNewSlide(b,a)})}});var _R=jQuery.fn.revolution;jQuery.extend(!0,_R,{getversion:function(){return version},compare_version:function(a){return"stop"!=a.check&&(_R.getversion().core').appendTo(jQuery("body"));c.html("");var d=c.find("a").length;return c.remove(),d},is_mobile:function(){var a=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],b=!1;for(var c in a)navigator.userAgent.split(a[c]).length>1&&(b=!0);return b},callBackHandling:function(a,b,c){try{a.callBackArray&&jQuery.each(a.callBackArray,function(a,d){d&&d.inmodule&&d.inmodule===b&&d.atposition&&d.atposition===c&&d.callback&&d.callback.call()})}catch(a){console.log("Call Back Failed")}},get_browser:function(){var c,a=navigator.appName,b=navigator.userAgent,d=b.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return d&&null!=(c=b.match(/version\/([\.\d]+)/i))&&(d[2]=c[1]),d=d?[d[1],d[2]]:[a,navigator.appVersion,"-?"],d[0]},get_browser_version:function(){var c,a=navigator.appName,b=navigator.userAgent,d=b.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return d&&null!=(c=b.match(/version\/([\.\d]+)/i))&&(d[2]=c[1]),d=d?[d[1],d[2]]:[a,navigator.appVersion,"-?"],d[1]},getHorizontalOffset:function(a,b){var c=gWiderOut(a,".outer-left"),d=gWiderOut(a,".outer-right");switch(b){case"left":return c;case"right":return d;case"both":return c+d}},callingNewSlide:function(a,b){var c=a.find(".next-revslide").length>0?a.find(".next-revslide").index():a.find(".processing-revslide").length>0?a.find(".processing-revslide").index():a.find(".active-revslide").index(),d=0,e=a[0].opt;a.find(".next-revslide").removeClass("next-revslide"),a.find(".active-revslide").hasClass("tp-invisible-slide")&&(c=e.last_shown_slide),b&&jQuery.isNumeric(b)||b.match(/to/g)?(1===b||b===-1?(d=c+b,d=d<0?e.slideamount-1:d>=e.slideamount?0:d):(b=jQuery.isNumeric(b)?b:parseInt(b.split("to")[1],0),d=b<0?0:b>e.slideamount-1?e.slideamount-1:b),a.find(".tp-revslider-slidesli:eq("+d+")").addClass("next-revslide")):b&&a.find(".tp-revslider-slidesli").each(function(){var a=jQuery(this);a.data("index")===b&&a.addClass("next-revslide")}),d=a.find(".next-revslide").index(),a.trigger("revolution.nextslide.waiting"),c===d&&c===e.last_shown_slide||d!==c&&d!=-1?swapSlide(a):a.find(".next-revslide").removeClass("next-revslide")},slotSize:function(a,b){b.slotw=Math.ceil(b.width/b.slots),"fullscreen"==b.sliderLayout?b.sloth=Math.ceil(jQuery(window).height()/b.slots):b.sloth=Math.ceil(b.height/b.slots),"on"==b.autoHeight&&a!==undefined&&""!==a&&(b.sloth=Math.ceil(a.height()/b.slots))},setSize:function(a){var b=(a.top_outer||0)+(a.bottom_outer||0),c=parseInt(a.carousel.padding_top||0,0),d=parseInt(a.carousel.padding_bottom||0,0),e=a.gridheight[a.curWinRange],f=0,g=a.nextSlide===-1||a.nextSlide===undefined?0:a.nextSlide;if(a.paddings=a.paddings===undefined?{top:parseInt(a.c.parent().css("paddingTop"),0)||0,bottom:parseInt(a.c.parent().css("paddingBottom"),0)||0}:a.paddings,a.rowzones&&a.rowzones.length>0)for(var h=0;ha.gridheight[a.curWinRange]&&"on"!=a.autoHeight&&(a.height=a.gridheight[a.curWinRange]),"fullscreen"==a.sliderLayout||a.infullscreenmode){a.height=a.bw*a.gridheight[a.curWinRange];var j=(a.c.parent().width(),jQuery(window).height());if(a.fullScreenOffsetContainer!=undefined){try{var k=a.fullScreenOffsetContainer.split(",");k&&jQuery.each(k,function(a,b){j=jQuery(b).length>0?j-jQuery(b).outerHeight(!0):j})}catch(a){}try{a.fullScreenOffset.split("%").length>1&&a.fullScreenOffset!=undefined&&a.fullScreenOffset.length>0?j-=jQuery(window).height()*parseInt(a.fullScreenOffset,0)/100:a.fullScreenOffset!=undefined&&a.fullScreenOffset.length>0&&(j-=parseInt(a.fullScreenOffset,0))}catch(a){}}j=jparseInt(a.height,0)?f:a.height}else a.minHeight!=undefined&&a.heightparseInt(a.height,0)?f:a.height,a.c.height(a.height);var l={height:c+d+b+a.height+a.paddings.top+a.paddings.bottom};a.c.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css(l),a.c.closest(".rev_slider_wrapper").css(l),setScale(a)},enterInViewPort:function(a){a.waitForCountDown&&(countDown(a.c,a),a.waitForCountDown=!1),a.waitForFirstSlide&&(swapSlide(a.c),a.waitForFirstSlide=!1,setTimeout(function(){a.c.removeClass("tp-waitforfirststart")},500)),"playing"!=a.sliderlaststatus&&a.sliderlaststatus!=undefined||a.c.trigger("starttimer"),a.lastplayedvideos!=undefined&&a.lastplayedvideos.length>0&&jQuery.each(a.lastplayedvideos,function(b,c){_R.playVideo(c,a)})},leaveViewPort:function(a){a.sliderlaststatus=a.sliderstatus,a.c.trigger("stoptimer"),a.playingvideos!=undefined&&a.playingvideos.length>0&&(a.lastplayedvideos=jQuery.extend(!0,[],a.playingvideos),a.playingvideos&&jQuery.each(a.playingvideos,function(b,c){a.leaveViewPortBasedStop=!0,_R.stopVideo&&_R.stopVideo(c,a)}))},unToggleState:function(a){a!=undefined&&a.length>0&&jQuery.each(a,function(a,b){b.removeClass("rs-toggle-content-active")})},toggleState:function(a){a!=undefined&&a.length>0&&jQuery.each(a,function(a,b){b.addClass("rs-toggle-content-active")})},swaptoggleState:function(a){a!=undefined&&a.length>0&&jQuery.each(a,function(a,b){jQuery(b).hasClass("rs-toggle-content-active")?jQuery(b).removeClass("rs-toggle-content-active"):jQuery(b).addClass("rs-toggle-content-active")})},lastToggleState:function(a){var b=0;return a!=undefined&&a.length>0&&jQuery.each(a,function(a,c){b=c.hasClass("rs-toggle-content-active")}),b}});var _ISM=_R.is_mobile(),checkIDS=function(a,b){a.anyid=a.anyid===undefined?[]:a.anyid;var c=jQuery.inArray(b.attr("id"),a.anyid);if(c!=-1){var d=b.attr("id")+"_"+Math.round(9999*Math.random());b.attr("id",d)}a.anyid.push(b.attr("id"))},removeArray=function(a,b){var c=[];return jQuery.each(a,function(a,d){a!=b&&c.push(d)}),c},removeNavWithLiref=function(a,b,c){c.c.find(a).each(function(){var a=jQuery(this);a.data("liref")===b&&a.remove()})},lAjax=function(a,b){return!jQuery("body").data(a)&&(b.filesystem?(b.errorm===undefined&&(b.errorm="
    Local Filesystem Detected !
    Put this to your header:"),console.warn("Local Filesystem detected !"),b.errorm=b.errorm+'
    <script type="text/javascript" src="'+b.jsFileLocation+a+b.extensions_suffix+'"></script>',console.warn(b.jsFileLocation+a+b.extensions_suffix+" could not be loaded !"),console.warn("Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document."),console.log(" "),b.modulesfailing=!0,!1):(jQuery.ajax({url:b.jsFileLocation+a+b.extensions_suffix+"?version="+version.core,dataType:"script",cache:!0,error:function(c){console.warn("Slider Revolution 5.0 Error !"),console.error("Failure at Loading:"+a+b.extensions_suffix+" on Path:"+b.jsFileLocation),console.info(c)}}),void jQuery("body").data(a,!0)))},getNeededScripts=function(a,b){var c=new Object,d=a.navigation;return c.kenburns=!1,c.parallax=!1,c.carousel=!1,c.navigation=!1,c.videos=!1,c.actions=!1,c.layeranim=!1,c.migration=!1,b.data("version")&&b.data("version").toString().match(/5./gi)?(b.find("img").each(function(){"on"==jQuery(this).data("kenburns")&&(c.kenburns=!0)}),("carousel"==a.sliderType||"on"==d.keyboardNavigation||"on"==d.mouseScrollNavigation||"on"==d.touch.touchenabled||d.arrows.enable||d.bullets.enable||d.thumbnails.enable||d.tabs.enable)&&(c.navigation=!0),b.find(".tp-caption, .tp-static-layer, .rs-background-video-layer").each(function(){var a=jQuery(this);(a.data("ytid")!=undefined||a.find("iframe").length>0&&a.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&(c.videos=!0),(a.data("vimeoid")!=undefined||a.find("iframe").length>0&&a.find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&(c.videos=!0),a.data("actions")!==undefined&&(c.actions=!0),c.layeranim=!0}),b.find("li").each(function(){jQuery(this).data("link")&&jQuery(this).data("link")!=undefined&&(c.layeranim=!0,c.actions=!0)}),!c.videos&&(b.find(".rs-background-video-layer").length>0||b.find(".tp-videolayer").length>0||b.find(".tp-audiolayer").length>0||b.find("iframe").length>0||b.find("video").length>0)&&(c.videos=!0),"carousel"==a.sliderType&&(c.carousel=!0),("off"!==a.parallax.type||a.viewPort.enable||"true"==a.viewPort.enable||"true"===a.scrolleffect.on||a.scrolleffect.on)&&(c.parallax=!0)):(c.kenburns=!0,c.parallax=!0,c.carousel=!1,c.navigation=!0,c.videos=!0,c.actions=!0,c.layeranim=!0,c.migration=!0),"hero"==a.sliderType&&(c.carousel=!1,c.navigation=!1),window.location.href.match(/file:/gi)&&(c.filesystem=!0,a.filesystem=!0),c.videos&&"undefined"==typeof _R.isVideoPlaying&&lAjax("revolution.extension.video",a),c.carousel&&"undefined"==typeof _R.prepareCarousel&&lAjax("revolution.extension.carousel",a),c.carousel||"undefined"!=typeof _R.animateSlide||lAjax("revolution.extension.slideanims",a),c.actions&&"undefined"==typeof _R.checkActions&&lAjax("revolution.extension.actions",a),c.layeranim&&"undefined"==typeof _R.handleStaticLayers&&lAjax("revolution.extension.layeranimation",a),c.kenburns&&"undefined"==typeof _R.stopKenBurn&&lAjax("revolution.extension.kenburn",a),c.navigation&&"undefined"==typeof _R.createNavigation&&lAjax("revolution.extension.navigation",a),c.migration&&"undefined"==typeof _R.migration&&lAjax("revolution.extension.migration",a),c.parallax&&"undefined"==typeof _R.checkForParallax&&lAjax("revolution.extension.parallax",a),a.addons!=undefined&&a.addons.length>0&&jQuery.each(a.addons,function(b,c){"object"==typeof c&&c.fileprefix!=undefined&&lAjax(c.fileprefix,a)}),c},waitForScripts=function(a,b){var c=!0,d=b.scriptsneeded;b.addons!=undefined&&b.addons.length>0&&jQuery.each(b.addons,function(a,b){"object"==typeof b&&b.init!=undefined&&_R[b.init]===undefined&&(c=!1)}),d.filesystem||"undefined"!=typeof punchgs&&c&&(!d.kenburns||d.kenburns&&"undefined"!=typeof _R.stopKenBurn)&&(!d.navigation||d.navigation&&"undefined"!=typeof _R.createNavigation)&&(!d.carousel||d.carousel&&"undefined"!=typeof _R.prepareCarousel)&&(!d.videos||d.videos&&"undefined"!=typeof _R.resetVideo)&&(!d.actions||d.actions&&"undefined"!=typeof _R.checkActions)&&(!d.layeranim||d.layeranim&&"undefined"!=typeof _R.handleStaticLayers)&&(!d.migration||d.migration&&"undefined"!=typeof _R.migration)&&(!d.parallax||d.parallax&&"undefined"!=typeof _R.checkForParallax)&&(d.carousel||!d.carousel&&"undefined"!=typeof _R.animateSlide)?a.trigger("scriptsloaded"):setTimeout(function(){waitForScripts(a,b)},50)},getScriptLocation=function(a){var b=new RegExp("themepunch.revolution.min.js","gi"),c="";return jQuery("script").each(function(){var a=jQuery(this).attr("src");a&&a.match(b)&&(c=a)}),c=c.replace("jquery.themepunch.revolution.min.js",""),c=c.replace("jquery.themepunch.revolution.js",""),c=c.split("?")[0]},setCurWinRange=function(a,b){var d=9999,e=0,f=0,g=0,h=jQuery(window).width(),i=b&&9999==a.responsiveLevels?a.visibilityLevels:a.responsiveLevels;i&&i.length&&jQuery.each(i,function(a,b){hb)&&(d=b,g=a,e=b),h>b&&e'),container.find(">ul").addClass("tp-revslider-mainul"),opt.c=container,opt.ul=container.find(".tp-revslider-mainul"),opt.ul.find(">li").each(function(a){var b=jQuery(this);"on"==b.data("hideslideonmobile")&&_ISM&&b.remove(),(b.data("invisible")||b.data("invisible")===!0)&&(b.addClass("tp-invisible-slide"),b.appendTo(opt.ul))}),opt.addons!=undefined&&opt.addons.length>0&&jQuery.each(opt.addons,function(i,obj){"object"==typeof obj&&obj.init!=undefined&&_R[obj.init](eval(obj.params))}),opt.cid=container.attr("id"),opt.ul.css({visibility:"visible"}),opt.slideamount=opt.ul.find(">li").not(".tp-invisible-slide").length,opt.realslideamount=opt.ul.find(">li").length,opt.slayers=container.find(".tp-static-layers"),opt.slayers.data("index","staticlayers"),void(1!=opt.waitForInit&&(container[0].opt=opt,runSlider(container,opt))))},onFullScreenChange=function(){jQuery("body").data("rs-fullScreenMode",!jQuery("body").data("rs-fullScreenMode")),jQuery("body").data("rs-fullScreenMode")&&setTimeout(function(){jQuery(window).trigger("resize")},200)},runSlider=function(a,b){if(b.sliderisrunning=!0,b.ul.find(">li").each(function(a){jQuery(this).data("originalindex",a)}),"on"==b.shuffle){var c=new Object,d=b.ul.find(">li:first-child");c.fstransition=d.data("fstransition"),c.fsmasterspeed=d.data("fsmasterspeed"),c.fsslotamount=d.data("fsslotamount");for(var e=0;eli:eq("+f+")").prependTo(b.ul)}var g=b.ul.find(">li:first-child");g.data("fstransition",c.fstransition),g.data("fsmasterspeed",c.fsmasterspeed),g.data("fsslotamount",c.fsslotamount),b.li=b.ul.find(">li").not(".tp-invisible-slide")}if(b.allli=b.ul.find(">li"),b.li=b.ul.find(">li").not(".tp-invisible-slide"),b.inli=b.ul.find(">li.tp-invisible-slide"),b.thumbs=new Array,b.slots=4,b.act=-1,b.firststart=1,b.loadqueue=new Array,b.syncload=0,b.conw=a.width(),b.conh=a.height(),b.responsiveLevels.length>1?b.responsiveLevels[0]=9999:b.responsiveLevels=9999,jQuery.each(b.allli,function(a,c){var c=jQuery(c),d=c.find(".rev-slidebg")||c.find("img").first(),e=0;c.addClass("tp-revslider-slidesli"),c.data("index")===undefined&&c.data("index","rs-"+Math.round(999999*Math.random()));var f=new Object;f.params=new Array,f.id=c.data("index"),f.src=c.data("thumb")!==undefined?c.data("thumb"):d.data("lazyload")!==undefined?d.data("lazyload"):d.attr("src"),c.data("title")!==undefined&&f.params.push({from:RegExp("\\{\\{title\\}\\}","g"),to:c.data("title")}),c.data("description")!==undefined&&f.params.push({from:RegExp("\\{\\{description\\}\\}","g"),to:c.data("description")});for(var e=1;e<=10;e++)c.data("param"+e)!==undefined&&f.params.push({from:RegExp("\\{\\{param"+e+"\\}\\}","g"),to:c.data("param"+e)});if(b.thumbs.push(f),c.data("origindex",c.index()),c.data("link")!=undefined){var g=c.data("link"),h=c.data("target")||"_self",i="back"===c.data("slideindex")?0:60,j=c.data("linktoslide"),k=j;j!=undefined&&"next"!=j&&"prev"!=j&&b.allli.each(function(){var a=jQuery(this);a.data("origindex")+1==k&&(j=a.data("index"))}),"slide"!=g&&(j="no");var l='
    ",Y=q(b.wordsClass,E),Z=q(b.charsClass,E),$=-1!==(b.linesClass||"").indexOf("++"),_=b.linesClass,aa=-1!==D.indexOf("<"),ba=!0,ca=[],da=[],ea=[];for(!b.reduceWhiteSpace!=!1&&(D=D.replace(l,"")),$&&(_=_.split("++").join("")),aa&&(D=D.split("<").join("{{LT}}")),j=D.length,p=Y(),r=0;j>r;r++)if(v=D.charAt(r),")"===v&&D.substr(r,20)===m)p+=(ba?X:"")+"
    ",ba=!1,r!==j-20&&D.substr(r+20,20)!==m&&(p+=" "+Y(),ba=!0),r+=19;else if(v===K&&D.charAt(r-1)!==K&&r!==j-1&&D.substr(r-20,20)!==m){for(p+=ba?X:"",ba=!1;D.charAt(r+1)===K;)p+=L,r++;(")"!==D.charAt(r+1)||D.substr(r+1,20)!==m)&&(p+=L+Y(),ba=!0)}else"{"===v&&"{{LT}}"===D.substr(r,6)?(p+=I?Z()+"{{LT}}":"{{LT}}",r+=5):p+=I&&" "!==v?Z()+v+"":v;for(a.innerHTML=p+(ba?X:""),aa&&s(a,"{{LT}}","<"),u=a.getElementsByTagName("*"),j=u.length,w=[],r=0;j>r;r++)w[r]=u[r];if(G||J)for(r=0;j>r;r++)x=w[r],o=x.parentNode===a,(o||J||I&&!H)&&(y=x.offsetTop,G&&o&&Math.abs(y-M)>U&&"BR"!==x.nodeName&&(k=[],G.push(k),M=y),J&&(x._x=x.offsetLeft,x._y=y,x._w=x.offsetWidth,x._h=x.offsetHeight),G&&(H!==o&&I||(k.push(x),x._x-=O),o&&r&&(w[r-1]._wordEnd=!0),"BR"===x.nodeName&&x.nextSibling&&"BR"===x.nextSibling.nodeName&&G.push([])));for(r=0;j>r;r++)x=w[r],o=x.parentNode===a,"BR"!==x.nodeName?(J&&(A=x.style,H||o||(x._x+=x.parentNode._x,x._y+=x.parentNode._y),A.left=x._x+"px",A.top=x._y+"px",A.position="absolute",A.display="block",A.width=x._w+1+"px",A.height=x._h+"px"),H?o&&""!==x.innerHTML?da.push(x):I&&ca.push(x):o?(a.removeChild(x),w.splice(r--,1),j--):!o&&I&&(y=!G&&!J&&x.nextSibling,a.appendChild(x),y||a.appendChild(f.createTextNode(" ")),ca.push(x))):G||J?(a.removeChild(x),w.splice(r--,1),j--):H||a.appendChild(x);if(G){for(J&&(z=f.createElement(E),a.appendChild(z),B=z.offsetWidth+"px",y=z.offsetParent===a?0:a.offsetLeft,a.removeChild(z)),A=a.style.cssText,a.style.cssText="display:none;";a.firstChild;)a.removeChild(a.firstChild);for(C=" "===K&&(!J||!H&&!I),r=0;ru;u++)"BR"!==k[u].nodeName&&(x=k[u],z.appendChild(x),C&&(x._wordEnd||H)&&z.appendChild(f.createTextNode(" ")),J&&(0===u&&(z.style.top=x._y+"px",z.style.left=O+y+"px"),x.style.top="0px",y&&(x.style.left=x._x-y+"px")));0===j&&(z.innerHTML=" "),H||I||(z.innerHTML=e(z).split(String.fromCharCode(160)).join(" ")),J&&(z.style.width=B,z.style.height=x._h+"px"),a.appendChild(z)}a.style.cssText=A}J&&(V>a.clientHeight&&(a.style.height=V-R+"px",a.clientHeighta.clientWidth&&(a.style.width=W-S+"px",a.clientWidth-1;)this._originals[b]=this.elements[b].innerHTML,u(this.elements[b],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},v.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var a=this._originals.length;--a>-1;)this.elements[a].innerHTML=this._originals[a];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},r.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(r.selector=c,c(b)):"undefined"==typeof document?b:document.querySelectorAll?document.querySelectorAll(b):document.getElementById("#"===b.charAt(0)?b.substr(1):b)},r.version="0.4.0"}(_gsScope),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define([],b):"undefined"!=typeof module&&module.exports&&(module.exports=b())}("SplitText"); + +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) diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/source/index.php b/public/assets/plugins/rs-plugin-5.3.1/js/source/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.enablelog.js b/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.enablelog.js new file mode 100644 index 0000000..3b73f58 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.enablelog.js @@ -0,0 +1 @@ +window.tplogs = true; \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.revolution.js b/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.revolution.js new file mode 100644 index 0000000..de42686 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.revolution.js @@ -0,0 +1,3149 @@ +/************************************************************************** + * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider + * @version: 5.3.1.4 (30.11.2016) + * @requires jQuery v1.7 or later (tested on 1.9) + * @author ThemePunch +**************************************************************************/ +(function(jQuery,undefined){ +"use strict"; + + var version = { + core : "5.3.1.4", + "revolution.extensions.actions.min.js":"2.0.4", + "revolution.extensions.carousel.min.js":"1.2.1", + "revolution.extensions.kenburn.min.js":"1.2.0", + "revolution.extensions.layeranimation.min.js":"3.4.4", + "revolution.extensions.navigation.min.js":"1.3.2", + "revolution.extensions.parallax.min.js":"2.2.0", + "revolution.extensions.slideanims.min.js":"1.6", + "revolution.extensions.video.min.js":"2.0.2" + } + + jQuery.fn.extend({ + + revolution: function(options) { + + // SET DEFAULT VALUES OF ITEM // + var defaults = { + delay:9000, + responsiveLevels:4064, // Single or Array for Responsive Levels i.e.: 4064 or i.e. [2048, 1024, 768, 480] + visibilityLevels:[2048,1024,778,480], // Single or Array for Responsive Visibility Levels i.e.: 4064 or i.e. [2048, 1024, 768, 480] + gridwidth:960, // Single or Array i.e. 960 or [960, 840,760,460] + gridheight:500, // Single or Array i.e. 500 or [500, 450,400,350] + minHeight:0, + autoHeight:"off", + sliderType : "standard", // standard, carousel, hero + sliderLayout : "auto", // auto, fullwidth, fullscreen + + fullScreenAutoWidth:"off", // Turns the FullScreen Slider to be a FullHeight but auto Width Slider + fullScreenAlignForce:"off", + fullScreenOffsetContainer:"", // Size for FullScreen Slider minimising Calculated on the Container sizes + fullScreenOffset:"0", // Size for FullScreen Slider minimising + + hideCaptionAtLimit:0, // It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser) + hideAllCaptionAtLimit:0, // Hide all The Captions if Width of Browser is less then this value + hideSliderAtLimit:0, // Hide the whole slider, and stop also functions if Width of Browser is less than this value + disableProgressBar:"off", // Hides Progress Bar if is set to "on" + stopAtSlide:-1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case. + stopAfterLoops:-1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic + shadow:0, //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !) + dottedOverlay:"none", //twoxtwo, threexthree, twoxtwowhite, threexthreewhite + startDelay:0, // Delay before the first Animation starts. + lazyType : "smart", //full, smart, single + spinner:"spinner0", + shuffle:"off", // Random Order of Slides, + + + viewPort:{ + enable:false, // if enabled, slider wait with start or wait at first slide. + outof:"wait", // wait,pause + visible_area:"60%", // Start Animation when 60% of Slider is visible + presize:false // Presize the Height of the Slider Container for Internal Link Positions + }, + + fallbacks:{ + isJoomla:false, + panZoomDisableOnMobile:"off", + simplifyAll:"on", + nextSlideOnWindowFocus:"off", + disableFocusListener:true, + ignoreHeightChanges:"off", // off, mobile, always + ignoreHeightChangesSize:0 + + }, + + parallax : { + type : "off", // off, mouse, scroll, mouse+scroll + levels: [10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], + origo:"enterpoint", // slidercenter or enterpoint + speed:400, + bgparallax : "off", + 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" + }, + + scrolleffect: { + fade:"off", + blur:"off", + grayscale:"off", + maxblur:10, + on_layers:"off", + on_slidebg:"off", + on_static_layers:"off", + on_parallax_layers:"off", + on_parallax_static_layers:"off", + direction:"both", + multiplicator:1.35, + multiplicator_layers:0.5, + tilt:30, + disable_on_mobile:"on" + }, + + carousel : { + easing:punchgs.Power3.easeInOut, + speed:800, + showLayersAllTime : "off", + 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:"off", + keyboard_direction:"horizontal", // horizontal - left/right arrows, vertical - top/bottom arrows + mouseScrollNavigation:"off", // on, off, carousel + onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off + + touch:{ + touchenabled:"off", // Enable Swipe Function : on/off + swipe_treshold : 75, // The number of pixels that the user must move their finger by before it is considered a swipe. + swipe_min_touches : 1, // Min Finger (touch) used for swipe + drag_block_vertical:false, // Prevent Vertical Scroll during Swipe + swipe_direction:"horizontal" + }, + arrows: { + style:"", + enable:false, + hide_onmobile:false, + hide_onleave:true, + hide_delay:200, + hide_delay_mobile:1200, + hide_under:0, + hide_over:9999, + tmp:'', + rtl:false, + left : { + h_align:"left", + v_align:"center", + h_offset:20, + v_offset:0, + container:"slider", + }, + right : { + h_align:"right", + v_align:"center", + h_offset:20, + v_offset:0, + container:"slider", + } + }, + bullets: { + container:"slider", + rtl:false, + style:"", + enable:false, + hide_onmobile:false, + hide_onleave:true, + 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:'' + }, + thumbnails: { + container:"slider", + rtl:false, + style:"", + enable:false, + width:100, + height:50, + min_width:100, + wrapper_padding:2, + wrapper_color:"#f5f5f5", + wrapper_opacity:1, + tmp:'', + visibleAmount:5, + hide_onmobile:false, + hide_onleave:true, + hide_delay:200, + hide_delay_mobile:1200, + hide_under:0, + hide_over:9999, + direction:"horizontal", + span:false, + position:"inner", + space:2, + h_align:"left", + v_align:"center", + h_offset:20, + v_offset:0 + }, + tabs: { + container:"slider", + rtl:false, + style:"", + enable:false, + width:100, + min_width:100, + height:50, + wrapper_padding:10, + wrapper_color:"#f5f5f5", + wrapper_opacity:1, + tmp:'', + visibleAmount:5, + hide_onmobile:false, + hide_onleave:true, + hide_delay:200, + hide_delay_mobile:1200, + hide_under:0, + hide_over:9999, + direction:"horizontal", + span:false, + space:0, + position:"inner", + h_align:"left", + v_align:"center", + h_offset:20, + v_offset:0 + } + }, + extensions:"extensions/", //example extensions/ or extensions/source/ + extensions_suffix:".min.js", + //addons:[{fileprefix:"revolution.addon.whiteboard",init:"initWhiteBoard",params:"opt",handel:"whiteboard"}], + debugMode:false + }; + + // Merge of Defaults + options = jQuery.extend(true,{},defaults, options); + + return this.each(function() { + + + var c = jQuery(this); + + // Prepare maxHeight + options.minHeight = options.minHeight!=undefined ? parseInt(options.minHeight,0) : options.minHeight; + options.scrolleffect.on = options.scrolleffect.fade==="on" || options.scrolleffect.blur==="on" || options.scrolleffect.grayscale==="on"; + + + + //REMOVE SLIDES IF SLIDER IS HERO + if (options.sliderType=="hero") { + c.find('>ul>li').each(function(i) { + if (i>0) jQuery(this).remove(); + }) + } + options.jsFileLocation = options.jsFileLocation || getScriptLocation("themepunch.revolution.min.js"); + options.jsFileLocation = options.jsFileLocation + options.extensions; + options.scriptsneeded = getNeededScripts(options,c); + options.curWinRange = 0; + + options.rtl = true; //jQuery('body').hasClass("rtl"); + + if (options.navigation!=undefined && options.navigation.touch!=undefined) + options.navigation.touch.swipe_min_touches = options.navigation.touch.swipe_min_touches >5 ? 1 : options.navigation.touch.swipe_min_touches; + + + + jQuery(this).on("scriptsloaded",function() { + if (options.modulesfailing ) { + c.html('
    !! Error at loading Slider Revolution 5.0 Extrensions.'+options.errorm+'
    ').show(); + return false; + } + + // CHECK FOR MIGRATION + if (_R.migration!=undefined) options = _R.migration(c,options); + + punchgs.force3D = true; + if (options.simplifyAll!=="on") punchgs.TweenLite.lagSmoothing(1000,16); + prepareOptions(c,options); + initSlider(c,options); + }); + + c[0].opt = options; + waitForScripts(c,options); + }) + }, + + + // Remove a Slide from the Slider + revremoveslide : function(sindex) { + + return this.each(function() { + + var container=jQuery(this), + opt = container[0].opt; + + if (sindex<0 || sindex>opt.slideamount) return; + + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + + if (opt && opt.li.length>0) { + if (sindex>0 || sindex<=opt.li.length) { + + var li = jQuery(opt.li[sindex]), + ref = li.data("index"), + nextslideafter = false; + + opt.slideamount = opt.slideamount-1; + opt.realslideamount = opt.realslideamount-1; + removeNavWithLiref('.tp-bullet',ref,opt); + removeNavWithLiref('.tp-tab',ref,opt); + removeNavWithLiref('.tp-thumb',ref,opt); + if (li.hasClass('active-revslide')) + nextslideafter = true; + li.remove(); + opt.li = removeArray(opt.li,sindex); + if (opt.carousel && opt.carousel.slides) + opt.carousel.slides = removeArray(opt.carousel.slides,sindex) + opt.thumbs = removeArray(opt.thumbs,sindex); + if (_R.updateNavIndexes) _R.updateNavIndexes(opt); + if (nextslideafter) container.revnext(); + punchgs.TweenLite.set(opt.li,{minWidth:"99%"}); + punchgs.TweenLite.set(opt.li,{minWidth:"100%"}); + } + } + } + }); + + }, + + // Add a New Call Back to some Module + revaddcallback: function(callback) { + return this.each(function() { + if (this.opt) { + if (this.opt.callBackArray === undefined) + this.opt.callBackArray = new Array(); + this.opt.callBackArray.push(callback); + } + }) + }, + + // Get Current Parallax Proc + revgetparallaxproc : function() { + return jQuery(this)[0].opt.scrollproc; + }, + + // ENABLE DEBUG MODE + revdebugmode: function() { + return this.each(function() { + var c=jQuery(this); + c[0].opt.debugMode = true; + containerResized(c,c[0].opt); + + }) + }, + + // METHODE SCROLL + revscroll: function(oy) { + return this.each(function() { + var c=jQuery(this); + jQuery('body,html').animate({scrollTop:(c.offset().top+(c.height())-oy)+"px"},{duration:400}); + }); + }, + + // METHODE PAUSE + revredraw: function(oy) { + return this.each(function() { + var c=jQuery(this); + containerResized(c,c[0].opt); + }) + }, + // METHODE PAUSE + revkill: function(oy) { + + var self = this, + container=jQuery(this); + + punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements); + + + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + + container.data('conthover',1); + container.data('conthover-changed',1); + container.trigger('revolution.slide.onpause'); + + var bt = container.parent().find('.tp-bannertimer'), + opt = container[0].opt; + opt.tonpause = true; + container.trigger('stoptimer'); + + punchgs.TweenLite.killTweensOf(container.find('*'),false); + punchgs.TweenLite.killTweensOf(container,false); + container.unbind('hover, mouseover, mouseenter,mouseleave, resize'); + var resizid = "resize.revslider-"+container.attr('id'); + jQuery(window).off(resizid); + container.find('*').each(function() { + var el = jQuery(this); + + el.unbind('on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer'); + el.off('on, hover, mouseenter,mouseleave,mouseover, resize'); + el.data('mySplitText',null); + el.data('ctl',null); + if (el.data('tween')!=undefined) + el.data('tween').kill(); + if (el.data('kenburn')!=undefined) + el.data('kenburn').kill(); + if (el.data('timeline_out')!=undefined) + el.data('timeline_out').kill(); + if (el.data('timeline')!=undefined) + el.data('timeline').kill(); + + el.remove(); + el.empty(); + el=null; + }) + + + punchgs.TweenLite.killTweensOf(container.find('*'),false); + punchgs.TweenLite.killTweensOf(container,false); + bt.remove(); + try{container.closest('.forcefullwidth_wrapper_tp_banner').remove();} catch(e) {} + try{container.closest('.rev_slider_wrapper').remove()} catch(e) {} + try{container.remove();} catch(e) {} + container.empty(); + container.html(); + container = null; + + opt = null; + delete(self.c); + delete(self.opt); + + return true; + } else { + return false; + } + }, + + // METHODE PAUSE + revpause: function() { + return this.each(function() { + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + c.data('conthover',1); + c.data('conthover-changed',1); + c.trigger('revolution.slide.onpause'); + c[0].opt.tonpause = true; + c.trigger('stoptimer'); + } + }) + }, + + // METHODE RESUME + revresume: function() { + return this.each(function() { + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + c.data('conthover',0); + c.data('conthover-changed',1); + c.trigger('revolution.slide.onresume'); + c[0].opt.tonpause = false; + c.trigger('starttimer'); + } + }) + }, + + revstart: function() { + //return this.each(function() { + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0 && c[0].opt!==undefined) { + if (!c[0].opt.sliderisrunning) { + runSlider(c,c[0].opt); + return true; + } + else { + console.log("Slider Is Running Already"); + return false; + } + + } + //}) + + }, + + // METHODE NEXT + revnext: function() { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + _R.callingNewSlide(c,1); + } + }) + }, + + // METHODE RESUME + revprev: function() { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + _R.callingNewSlide(c,-1); + } + }) + }, + + // METHODE LENGTH + revmaxslide: function() { + // CATCH THE CONTAINER + return jQuery(this).find('.tp-revslider-mainul >li').length; + }, + + + // METHODE CURRENT + revcurrentslide: function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + return parseInt(c[0].opt.act,0)+1; + } + }, + + // METHODE CURRENT + revlastslide: function() { + // CATCH THE CONTAINER + return jQuery(this).find('.tp-revslider-mainul >li').length; + }, + + + // METHODE JUMP TO SLIDE + revshowslide: function(slide) { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + _R.callingNewSlide(c,"to"+(slide-1)); + } + }) + }, + revcallslidewithid: function(slide) { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + _R.callingNewSlide(c,slide); + } + }) + } +}); + + + +////////////////////////////////////////////////////////////// +// - REVOLUTION FUNCTION EXTENSIONS FOR GLOBAL USAGE - // +////////////////////////////////////////////////////////////// +var _R = jQuery.fn.revolution; + +jQuery.extend(true, _R, { + + getversion : function() { + return version; + }, + + compare_version : function(extension) { + if (extension.check!="stop") { + // CHECK FOR CORRECT CORE AND EXTENSION VERSION + if (_R.getversion().core').appendTo(jQuery('body')); + $div.html(''); + var ieTest = $div.find('a').length; + $div.remove(); + return ieTest; + }, + + // - IS MOBILE ?? + is_mobile : function() { + var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry','Android', 'webos', ,'iPod', 'iPhone', 'iPad', 'Blackberry', 'BlackBerry']; + var ismobile=false; + for(var i in agents) { + + if (navigator.userAgent.split(agents[i]).length>1) { + ismobile = true; + + } + } + return ismobile; + }, + + // - CALL BACK HANDLINGS - // + callBackHandling : function(opt,type,position) { + try{ + if (opt.callBackArray) + jQuery.each(opt.callBackArray,function(i,c) { + if (c) { + if (c.inmodule && c.inmodule === type) + if (c.atposition && c.atposition === position) + if (c.callback) + c.callback.call(); + } + }); + } catch(e) { + console.log("Call Back Failed"); + } + }, + + get_browser : function(){ + var N=navigator.appName, ua=navigator.userAgent, tem; + var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; + M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; + return M[0]; + }, + + get_browser_version : function(){ + var N=navigator.appName, ua=navigator.userAgent, tem; + var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; + M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; + return M[1]; + }, + + // GET THE HORIZONTAL OFFSET OF SLIDER BASED ON THE THU`MBNAIL AND TABS LEFT AND RIGHT SIDE + getHorizontalOffset : function(container,side) { + var thumbloff = gWiderOut(container,'.outer-left'), + thumbroff = gWiderOut(container,'.outer-right'); + + switch (side) { + case "left": + return thumbloff; + break; + case "right": + return thumbroff; + break; + case "both": + return thumbloff+thumbroff; + break; + } + }, + + + // - CALLING THE NEW SLIDE - // + callingNewSlide : function(container,direction) { + + var aindex = container.find('.next-revslide').length>0 ? container.find('.next-revslide').index() : container.find('.processing-revslide').length>0 ? container.find('.processing-revslide').index() : container.find('.active-revslide').index(), + nindex = 0, + opt = container[0].opt; + + container.find('.next-revslide').removeClass("next-revslide"); + + // IF WE ARE ON AN INVISIBLE SLIDE CURRENTLY + if (container.find('.active-revslide').hasClass("tp-invisible-slide")) + aindex = opt.last_shown_slide; + + // SET NEXT DIRECTION + if (direction && jQuery.isNumeric(direction) || direction.match(/to/g)) { + if (direction===1 || direction === -1) { + + nindex = aindex + direction; + nindex = nindex<0 ? opt.slideamount-1 : nindex>=opt.slideamount ? 0 : nindex; + } else { + + direction=jQuery.isNumeric(direction) ? direction : parseInt(direction.split("to")[1],0); + nindex = direction<0 ? 0 : direction>opt.slideamount-1 ? opt.slideamount-1 : direction; + } + container.find('.tp-revslider-slidesli:eq('+nindex+')').addClass("next-revslide"); + } else + if (direction) { + + container.find('.tp-revslider-slidesli').each(function() { + var li=jQuery(this); + if (li.data('index')===direction) li.addClass("next-revslide"); + }) + } + + + nindex = container.find('.next-revslide').index(); + container.trigger("revolution.nextslide.waiting"); + + + if ((aindex===nindex && aindex === opt.last_shown_slide) || (nindex !== aindex && nindex!=-1)) + swapSlide(container); + else + container.find('.next-revslide').removeClass("next-revslide"); + }, + + slotSize : function(img,opt) { + opt.slotw=Math.ceil(opt.width/opt.slots); + + if (opt.sliderLayout=="fullscreen") + opt.sloth=Math.ceil(jQuery(window).height()/opt.slots); + else + opt.sloth=Math.ceil(opt.height/opt.slots); + + if (opt.autoHeight=="on" && img!==undefined && img!=="") + opt.sloth=Math.ceil(img.height()/opt.slots); + + + }, + + setSize : function(opt) { + + var ofh = (opt.top_outer || 0) + (opt.bottom_outer || 0), + cpt = parseInt((opt.carousel.padding_top||0),0), + cpb = parseInt((opt.carousel.padding_bottom||0),0), + maxhei = opt.gridheight[opt.curWinRange], + __mh = 0, + _actli = opt.nextSlide === -1 || opt.nextSlide===undefined ? 0 : opt.nextSlide; + opt.paddings = opt.paddings === undefined ? {top:(parseInt(opt.c.parent().css("paddingTop"),0) || 0), bottom:(parseInt(opt.c.parent().css("paddingBottom"),0) || 0)} : opt.paddings; + + if (opt.rowzones && opt.rowzones.length>0) + for (var a=0;aopt.gridheight[opt.curWinRange] && opt.autoHeight!="on") opt.height=opt.gridheight[opt.curWinRange]; + + if (opt.sliderLayout=="fullscreen" || opt.infullscreenmode) { + opt.height = opt.bw * opt.gridheight[opt.curWinRange]; + var cow = opt.c.parent().width(); + var coh = jQuery(window).height(); + + if (opt.fullScreenOffsetContainer!=undefined) { + try{ + var offcontainers = opt.fullScreenOffsetContainer.split(","); + if (offcontainers) + jQuery.each(offcontainers,function(index,searchedcont) { + coh = jQuery(searchedcont).length>0 ? coh - jQuery(searchedcont).outerHeight(true) : coh; + }); + } catch(e) {} + try{ + if (opt.fullScreenOffset.split("%").length>1 && opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) + coh = coh - (jQuery(window).height()* parseInt(opt.fullScreenOffset,0)/100); + else + if (opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) + coh = coh - parseInt(opt.fullScreenOffset,0); + } catch(e) {} + } + + coh = cohparseInt(opt.height,0) ? __mh : opt.height; + + } else { + if (opt.minHeight!=undefined && opt.heightparseInt(opt.height,0) ? __mh : opt.height; + opt.c.height(opt.height); + } + var si = { height:(cpt+cpb+ofh+opt.height+opt.paddings.top+opt.paddings.bottom)}; + + opt.c.closest('.forcefullwidth_wrapper_tp_banner').find('.tp-fullwidth-forcer').css(si); + opt.c.closest('.rev_slider_wrapper').css(si); + setScale(opt); + }, + + enterInViewPort : function(opt) { + + // START COUNTER IF VP ENTERED, AND COUNTDOWN WAS NOT ON YET + if (opt.waitForCountDown) { + + countDown(opt.c,opt); + opt.waitForCountDown=false; + } + // START FIRST SLIDE IF NOT YET STARTED AND VP ENTERED + if (opt.waitForFirstSlide) { + swapSlide(opt.c); + opt.waitForFirstSlide=false; + setTimeout(function() { + opt.c.removeClass("tp-waitforfirststart"); + },500); + } + + if (opt.sliderlaststatus == "playing" || opt.sliderlaststatus==undefined) { + opt.c.trigger("starttimer"); + } + + + if (opt.lastplayedvideos != undefined && opt.lastplayedvideos.length>0) { + + jQuery.each(opt.lastplayedvideos,function(i,_nc) { + + _R.playVideo(_nc,opt); + }); + } + }, + + leaveViewPort : function(opt) { + opt.sliderlaststatus = opt.sliderstatus; + opt.c.trigger("stoptimer"); + if (opt.playingvideos != undefined && opt.playingvideos.length>0) { + opt.lastplayedvideos = jQuery.extend(true,[],opt.playingvideos); + if (opt.playingvideos) + jQuery.each(opt.playingvideos,function(i,_nc) { + opt.leaveViewPortBasedStop = true; + if (_R.stopVideo) _R.stopVideo(_nc,opt); + }); + } + }, + + unToggleState : function(a) { + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + layer.removeClass("rs-toggle-content-active"); + }); + }, + + toggleState : function(a) { + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + layer.addClass("rs-toggle-content-active"); + }); + }, + swaptoggleState : function(a) { + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + if (jQuery(layer).hasClass("rs-toggle-content-active")) + jQuery(layer).removeClass("rs-toggle-content-active"); + else + jQuery(layer).addClass("rs-toggle-content-active"); + }); + }, + lastToggleState : function(a) { + var state = 0; + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + state = layer.hasClass("rs-toggle-content-active"); + }); + return state; + } + +}); + + +var _ISM = _R.is_mobile(); + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + +var checkIDS = function(opt,item) { + opt.anyid = opt.anyid === undefined ? [] : opt.anyid; + var ind = jQuery.inArray(item.attr('id'),opt.anyid); + if (ind!=-1) { + var newid = item.attr('id')+"_"+Math.round(Math.random()*9999); + item.attr('id',newid); + } + + opt.anyid.push(item.attr('id')); +} +var removeArray = function(arr,i) { + var newarr = []; + jQuery.each(arr,function(a,b) { + if (a!=i) newarr.push(b); + }) + return newarr; + } + +var removeNavWithLiref = function(a,ref,opt) { + opt.c.find(a).each(function() { + var a = jQuery(this); + if (a.data('liref')===ref) + a.remove(); + }) +} + + +var lAjax = function(s,o) { + if (jQuery('body').data(s)) return false; + if (o.filesystem) { + if (o.errorm===undefined) + o.errorm = "
    Local Filesystem Detected !
    Put this to your header:"; + console.warn('Local Filesystem detected !'); + o.errorm = o.errorm+'
    <script type="text/javascript" src="'+o.jsFileLocation+s+o.extensions_suffix+'"></script>'; + console.warn(o.jsFileLocation+s+o.extensions_suffix+' could not be loaded !'); + console.warn('Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document.'); + console.log(" "); + o.modulesfailing = true; + return false; + } + jQuery.ajax({ + url:o.jsFileLocation+s+o.extensions_suffix+'?version='+version.core, + 'dataType':'script', + 'cache':true, + "error":function(e) { + console.warn("Slider Revolution 5.0 Error !") + console.error("Failure at Loading:"+s+o.extensions_suffix+" on Path:"+o.jsFileLocation) + console.info(e); + } + }); + jQuery('body').data(s,true); +} + + + +var getNeededScripts = function(o,c) { + var n = new Object(), + _n = o.navigation; + + n.kenburns = false; + n.parallax = false; + n.carousel = false; + n.navigation = false; + n.videos = false; + n.actions = false; + n.layeranim = false; + n.migration = false; + + + + + // MIGRATION EXTENSION + if (!c.data('version') || !c.data('version').toString().match(/5./gi)) { + n.kenburns = true; + n.parallax = true; + n.carousel = false; + n.navigation = true; + n.videos = true; + n.actions = true; + n.layeranim = true; + n.migration = true; + } + else { + // KEN BURN MODUL + c.find('img').each(function(){ + if (jQuery(this).data('kenburns')=="on") n.kenburns = true; + }); + + // NAVIGATION EXTENSTION + if (o.sliderType =="carousel" || _n.keyboardNavigation=="on" || _n.mouseScrollNavigation=="on" || _n.touch.touchenabled=="on" || _n.arrows.enable || _n.bullets.enable || _n.thumbnails.enable || _n.tabs.enable ) + n.navigation = true; + + // LAYERANIM, VIDEOS, ACTIONS EXTENSIONS + c.find('.tp-caption, .tp-static-layer, .rs-background-video-layer').each(function(){ + var _nc = jQuery(this); + if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0)) + n.videos = true; + if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0)) + n.videos = true; + if (_nc.data('actions')!==undefined) + n.actions = true; + n.layeranim = true; + }); + + + c.find('li').each(function() { + if (jQuery(this).data('link') && jQuery(this).data('link')!=undefined) { + n.layeranim = true; + n.actions = true; + } + }) + + // VIDEO EXTENSION + if (!n.videos && (c.find('.rs-background-video-layer').length>0 || c.find(".tp-videolayer").length>0 || c.find(".tp-audiolayer").length>0 || c.find('iframe').length>0 || c.find('video').length>0)) + n.videos = true; + + + // VIDEO EXTENSION + if (o.sliderType =="carousel") + n.carousel = true; + + + + if (o.parallax.type!=="off" || o.viewPort.enable || o.viewPort.enable=="true" || o.scrolleffect.on==="true" || o.scrolleffect.on) + n.parallax = true; + } + + if (o.sliderType=="hero") { + n.carousel = false; + n.navigation = false; + } + + if (window.location.href.match(/file:/gi)) { + n.filesystem = true; + o.filesystem = true; + } + + + // LOAD THE NEEDED LIBRARIES + if (n.videos && typeof _R.isVideoPlaying=='undefined') lAjax('revolution.extension.video',o); + if (n.carousel && typeof _R.prepareCarousel=='undefined') lAjax('revolution.extension.carousel',o); + if (!n.carousel && typeof _R.animateSlide=='undefined') lAjax('revolution.extension.slideanims',o); + if (n.actions && typeof _R.checkActions=='undefined') lAjax('revolution.extension.actions',o); + if (n.layeranim && typeof _R.handleStaticLayers=='undefined') lAjax('revolution.extension.layeranimation',o); + if (n.kenburns && typeof _R.stopKenBurn=='undefined') lAjax('revolution.extension.kenburn',o); + if (n.navigation && typeof _R.createNavigation=='undefined') lAjax('revolution.extension.navigation',o); + if (n.migration && typeof _R.migration=='undefined') lAjax('revolution.extension.migration',o); + if (n.parallax && typeof _R.checkForParallax=='undefined') lAjax('revolution.extension.parallax',o); + + if (o.addons!=undefined && o.addons.length>0) { + jQuery.each(o.addons, function(i,obj) { + if (typeof obj === "object" && obj.fileprefix!=undefined) + lAjax(obj.fileprefix,o); + }) + } + + + return n; +} + +/////////////////////////////////// +// - WAIT FOR SCRIPT LOADS - // +/////////////////////////////////// +var waitForScripts = function(c,o) { + // CHECK KEN BURN DEPENDENCIES + var addonsloaded = true, + n = o.scriptsneeded; + + // CHECK FOR ADDONS + if (o.addons!=undefined && o.addons.length>0) { + jQuery.each(o.addons, function(i,obj) { + if (typeof obj === "object" && obj.init!=undefined) { + if (_R[obj.init]===undefined) addonsloaded = false; + } + }) + } + + if (n.filesystem || + (typeof punchgs !== 'undefined' && + (addonsloaded) && + (!n.kenburns || (n.kenburns && typeof _R.stopKenBurn !== 'undefined')) && + (!n.navigation || (n.navigation && typeof _R.createNavigation !== 'undefined')) && + (!n.carousel || (n.carousel && typeof _R.prepareCarousel !== 'undefined')) && + (!n.videos || (n.videos && typeof _R.resetVideo !== 'undefined')) && + (!n.actions || (n.actions && typeof _R.checkActions !== 'undefined')) && + (!n.layeranim || (n.layeranim && typeof _R.handleStaticLayers !== 'undefined')) && + (!n.migration || (n.migration && typeof _R.migration !== 'undefined')) && + (!n.parallax || (n.parallax && typeof _R.checkForParallax !== 'undefined')) && + (n.carousel || (!n.carousel && typeof _R.animateSlide !== 'undefined')) + )) + c.trigger("scriptsloaded"); + else + setTimeout(function() { + waitForScripts(c,o); + },50); + +} + +////////////////////////////////// +// - GET SCRIPT LOCATION - // +////////////////////////////////// +var getScriptLocation = function(a) { + + var srcexp = new RegExp("themepunch.revolution.min.js","gi"), + ret = ""; + jQuery("script").each(function() { + var src = jQuery(this).attr("src"); + if (src && src.match(srcexp)) + ret = src; + }); + + ret = ret.replace('jquery.themepunch.revolution.min.js', ''); + ret = ret.replace('jquery.themepunch.revolution.js', ''); + ret = ret.split("?")[0]; + return ret; +} + +////////////////////////////////////////// +// - ADVANCED RESPONSIVE LEVELS - // +////////////////////////////////////////// +var setCurWinRange = function(opt,vis) { + var curlevel = 0, + curwidth = 9999, + lastmaxlevel = 0, + lastmaxid = 0, + curid = 0, + winw = jQuery(window).width(), + l = vis && opt.responsiveLevels==9999 ? opt.visibilityLevels : opt.responsiveLevels; + + if (l && l.length) + jQuery.each(l,function(index,level) { + if (winwlevel) { + curwidth = level; + curid = index; + lastmaxlevel = level; + } + } + + if (winw>level && lastmaxlevel'); + + // PREPRARE SOME CLASSES AND VARIABLES + container.find('>ul').addClass("tp-revslider-mainul"); + + + // CREATE SOME DEFAULT OPTIONS FOR LATER + opt.c=container; + opt.ul = container.find('.tp-revslider-mainul'); + + // Remove Not Needed Slides for Mobile Devices + opt.ul.find('>li').each(function(i) { + var li = jQuery(this); + if (li.data('hideslideonmobile')=="on" && _ISM) li.remove(); + if (li.data('invisible') || li.data('invisible')===true) { + li.addClass("tp-invisible-slide"); + li.appendTo(opt.ul); + } + }); + + + if (opt.addons!=undefined && opt.addons.length>0) { + jQuery.each(opt.addons, function(i,obj) { + if (typeof obj === "object" && obj.init!=undefined) { + _R[obj.init](eval(obj.params)); + } + }) + } + + + + opt.cid = container.attr('id'); + opt.ul.css({visibility:"visible"}); + opt.slideamount = opt.ul.find('>li').not('.tp-invisible-slide').length; + opt.realslideamount = opt.ul.find('>li').length; + opt.slayers = container.find('.tp-static-layers'); + opt.slayers.data('index','staticlayers'); + + if (opt.waitForInit == true) + return; + else { + container[0].opt = opt; + runSlider(container,opt); + } + + } + + var onFullScreenChange = function() { + jQuery("body").data('rs-fullScreenMode',!jQuery("body").data('rs-fullScreenMode')); + if (jQuery("body").data('rs-fullScreenMode')) { + setTimeout(function() { + jQuery(window).trigger("resize"); + },200); + } + } + + var runSlider = function(container,opt) { + + + opt.sliderisrunning = true; + // Save Original Index of Slides + opt.ul.find('>li').each(function(i) { + jQuery(this).data('originalindex',i); + }); + + + + + // RANDOMIZE THE SLIDER SHUFFLE MODE + if (opt.shuffle=="on") { + var fsa = new Object, + fli = opt.ul.find('>li:first-child'); + fsa.fstransition = fli.data('fstransition'); + fsa.fsmasterspeed = fli.data('fsmasterspeed'); + fsa.fsslotamount = fli.data('fsslotamount'); + + for (var u=0;uli:eq('+it+')').prependTo(opt.ul); + } + + var newfli = opt.ul.find('>li:first-child'); + newfli.data('fstransition',fsa.fstransition); + newfli.data('fsmasterspeed',fsa.fsmasterspeed); + newfli.data('fsslotamount',fsa.fsslotamount); + + // COLLECT ALL LI INTO AN ARRAY + opt.li = opt.ul.find('>li').not('.tp-invisible-slide'); + } + + opt.allli = opt.ul.find('>li'); + opt.li = opt.ul.find('>li').not('.tp-invisible-slide'); + opt.inli = opt.ul.find('>li.tp-invisible-slide'); + + + opt.thumbs = new Array(); + + opt.slots=4; + opt.act=-1; + opt.firststart=1; + opt.loadqueue = new Array(); + opt.syncload = 0; + opt.conw = container.width(); + opt.conh = container.height(); + + if (opt.responsiveLevels.length>1) + opt.responsiveLevels[0] = 9999; + else + opt.responsiveLevels = 9999; + + // RECORD THUMBS AND SET INDEXES + jQuery.each(opt.allli,function(index,li) { + var li = jQuery(li), + img = li.find('.rev-slidebg') || li.find('img').first(), + i = 0; + + + li.addClass("tp-revslider-slidesli"); + if (li.data('index')===undefined) li.data('index','rs-'+Math.round(Math.random()*999999)); + + var obj = new Object; + obj.params = new Array(); + + obj.id = li.data('index'); + obj.src = li.data('thumb')!==undefined ? li.data('thumb') : img.data('lazyload') !== undefined ? img.data('lazyload') : img.attr('src'); + if (li.data('title') !== undefined) obj.params.push({from:RegExp("\\{\\{title\\}\\}","g"), to:li.data("title")}) + if (li.data('description') !== undefined) obj.params.push({from:RegExp("\\{\\{description\\}\\}","g"), to:li.data("description")}) + for (var i=1;i<=10;i++) { + if (li.data("param"+i)!==undefined) + obj.params.push({from:RegExp("\\{\\{param"+i+"\\}\\}","g"), to:li.data("param"+i)}) + } + opt.thumbs.push(obj); + + li.data('origindex',li.index()); + + // IF LINK ON SLIDE EXISTS, NEED TO CREATE A PROPER LAYER FOR IT. + if (li.data('link')!=undefined) { + var link = li.data('link'), + target= li.data('target') || "_self", + zindex= li.data('slideindex')==="back" ? 0 : 60, + linktoslide=li.data('linktoslide'), + checksl = linktoslide; + + if (linktoslide != undefined) + if (linktoslide!="next" && linktoslide!="prev") + opt.allli.each(function() { + var t = jQuery(this); + if (t.data('origindex')+1==checksl) linktoslide = t.data('index'); + }); + + + if (link!="slide") linktoslide="no"; + + var apptxt = '
    '; + li.append(apptxt); + } + }); + + + // CREATE GRID WIDTH AND HEIGHT ARRAYS + opt.rle = opt.responsiveLevels.length || 1; + opt.gridwidth = cArray(opt.gridwidth,opt.rle); + opt.gridheight = cArray(opt.gridheight,opt.rle); + // END OF VERSION 5.0 INIT MODIFICATION + + + + // SIMPLIFY ANIMATIONS ON OLD IOS AND IE8 IF NEEDED + if (opt.simplifyAll=="on" && (_R.isIE(8) || _R.iOSVersion())) { + container.find('.tp-caption').each(function() { + var tc = jQuery(this); + tc.removeClass("customin customout").addClass("fadein fadeout"); + tc.data('splitin',""); + tc.data('speed',400); + }) + opt.allli.each(function() { + var li= jQuery(this); + li.data('transition',"fade"); + li.data('masterspeed',500); + li.data('slotamount',1); + var img = li.find('.rev-slidebg') || li.find('>img').first(); + img.data('kenburns',"off"); + }); + } + + opt.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); + + // SOME OPTIONS WHICH SHOULD CLOSE OUT SOME OTHER SETTINGS + opt.autoHeight = opt.sliderLayout=="fullscreen" ? "on" : opt.autoHeight; + + if (opt.sliderLayout=="fullwidth" && opt.autoHeight=="off") container.css({maxHeight:opt.gridheight[opt.curWinRange]+"px"}); + + // BUILD A FORCE FULLWIDTH CONTAINER, TO SPAN THE FULL SLIDER TO THE FULL WIDTH OF BROWSER + if (opt.sliderLayout!="auto" && container.closest('.forcefullwidth_wrapper_tp_banner').length==0) { + if (opt.sliderLayout!=="fullscreen" || opt.fullScreenAutoWidth!="on") { + var cp = container.parent(), + mb = cp.css('marginBottom'), + mt = cp.css('marginTop'), + cid = container.attr('id')+"_forcefullwidth"; + mb = mb===undefined ? 0 : mb; + mt = mt===undefined ? 0 : mt; + + cp.wrap('
    '); + container.closest('.forcefullwidth_wrapper_tp_banner').append('
    '); + container.parent().css({marginTop:"0px",marginBottom:"0px"}); + //container.css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); + container.parent().css({position:'absolute'}); + } + } + + + + // SHADOW ADD ONS + if (opt.shadow!==undefined && opt.shadow>0) { + container.parent().addClass('tp-shadow'+opt.shadow); + container.parent().append('
    '); + container.parent().find('.tp-shadowcover').css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); + } + + // ESTIMATE THE CURRENT WINDOWS RANGE INDEX + setCurWinRange(opt); + setCurWinRange(opt,true); + + // IF THE CONTAINER IS NOT YET INITIALISED, LETS GO FOR IT + if (!container.hasClass("revslider-initialised")) { + // MARK THAT THE CONTAINER IS INITIALISED WITH SLIDER REVOLUTION ALREADY + container.addClass("revslider-initialised"); + + // FOR BETTER SELECTION, ADD SOME BASIC CLASS + container.addClass("tp-simpleresponsive"); + // WE DONT HAVE ANY ID YET ? WE NEED ONE ! LETS GIVE ONE RANDOMLY FOR RUNTIME + if (container.attr('id')==undefined) { + container.attr('id',"revslider-"+Math.round(Math.random()*1000+5)); + } + checkIDS(opt,container); + + // CHECK IF FIREFOX 13 IS ON WAY.. IT HAS A STRANGE BUG, CSS ANIMATE SHOULD NOT BE USED + opt.firefox13 = false; + opt.ie = !jQuery.support.opacity; + opt.ie9 = (document.documentMode == 9); + + opt.origcd=opt.delay; + + + + // CHECK THE jQUERY VERSION + var version = jQuery.fn.jquery.split('.'), + versionTop = parseFloat(version[0]), + versionMinor = parseFloat(version[1]), + versionIncrement = parseFloat(version[2] || '0'); + if (versionTop==1 && versionMinor < 7) + container.html('
    The Current Version of jQuery:'+version+'
    Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
    '); + if (versionTop>1) opt.ie=false; + + + + // PREPARE VIDEO PLAYERS + var addedApis = new Object(); + addedApis.addedyt=0; + addedApis.addedvim=0; + addedApis.addedvid=0; + + //PREPARING FADE IN/OUT PARALLAX + if (opt.scrolleffect.on) + opt.scrolleffect.layers = new Array(); + + container.find('.tp-caption, .rs-background-video-layer').each(function(i) { + var _nc = jQuery(this), + _ = _nc.data(), + an = _.autoplayonlyfirsttime, + ap = _.autoplay, + al = _nc.hasClass("tp-audiolayer"), + loop = _.videoloop, + addtofadeout = true, + addToStaticFadeout = false; + + _.startclasses = _nc.attr('class'); + + + _.isparallaxlayer = _.startclasses.indexOf("rs-parallax")>=0; + + + + if (_nc.hasClass("tp-static-layer") && _R.handleStaticLayers) { + _R.handleStaticLayers(_nc,opt); + if (opt.scrolleffect.on) + if ((opt.scrolleffect.on_parallax_static_layers==="on" && _.isparallaxlayer) || (opt.scrolleffect.on_static_layers==="on" && !_.isparallaxlayer)) addToStaticFadeout = true; + addtofadeout=false; + } + + var pom = _nc.data('noposteronmobile') || _nc.data('noPosterOnMobile') || _nc.data('posteronmobile') || _nc.data('posterOnMobile') || _nc.data('posterOnMObile'); + _nc.data('noposteronmobile',pom); + + // FIX VISIBLE IFRAME BUG IN SAFARI + var iff = 0; + _nc.find('iframe').each(function() { + punchgs.TweenLite.set(jQuery(this),{autoAlpha:0}); + iff++; + }) + if (iff>0) + _nc.data('iframes',true) + + if (_nc.hasClass("tp-caption")) { + // PREPARE LAYERS AND WRAP THEM WITH PARALLAX, LOOP, MASK HELP CONTAINERS + var ec = _nc.hasClass("slidelink") ? "width:100% !important;height:100% !important;" : "", + _ndata = _nc.data(), + nctype = _ndata.type, + _pos = nctype==="row" || nctype==="column" ? "relative" : "absolute", + preclas = ""; + + if (nctype==="row") { + _nc.addClass("rev_row").removeClass("tp-resizeme"); + preclas="rev_row_wrap"; + } else + if (nctype==="column") { + preclas = "rev_column"; + _nc.addClass("rev_column_inner").removeClass("tp-resizeme");; + _nc.data('width','auto'); + punchgs.TweenLite.set(_nc,{width:'auto'}); + } else + if (nctype==="group") { + _nc.removeClass("tp-resizeme") + } + var dmode = "", + preid = ""; + + + if (nctype!=="row" && nctype!=="group" && nctype!=="column"){ + dmode = "display:"+_nc.css('display')+";"; + if (_nc.closest('.rev_column').length>0) { + _nc.addClass("rev_layer_in_column"); + addtofadeout=false; + } else + if (_nc.closest('.rev_group').length>0) { + _nc.addClass("rev_layer_in_group"); + addtofadeout=false; + } + + + } else + if (nctype==="column") addtofadeout = false; + + + if (_ndata.wrapper_class!==undefined) preclas = preclas+" "+_ndata.wrapper_class; + if (_ndata.wrapper_id!==undefined) preid ='id="'+_ndata.wrapper_id+'"'; + + _nc.wrap(''); + + + // ONLY ADD LAYERS TO FADEOUT DYNAMIC LIST WHC + if (addtofadeout && opt.scrolleffect.on) + if ((opt.scrolleffect.on_parallax_layers==="on" && _.isparallaxlayer) || (opt.scrolleffect.on_layers==="on" && !_.isparallaxlayer)) + opt.scrolleffect.layers.push(_nc.parent()); + if (addToStaticFadeout) opt.scrolleffect.layers.push(_nc.parent()); + + + // Add BG for Columns + if (nctype==="column") { + _nc.append(''); + _nc.closest('.tp-parallax-wrap').append('
    '); + } + + var lar = ['pendulum', 'rotate','slideloop','pulse','wave'], + _lc = _nc.closest('.tp-loop-wrap'); + + jQuery.each(lar,function(i,k) { + var lw = _nc.find('.rs-'+k), + f = lw.data() || ""; + if (f!="") { + _lc.data(f); + _lc.addClass("rs-"+k); + lw.children(0).unwrap(); + _nc.data('loopanimation',"on"); + } + }); + if (_nc.attr('id')===undefined) + _nc.attr('id','layer-'+Math.round(Math.random()*999999999)); + checkIDS(opt,_nc); + punchgs.TweenLite.set(_nc,{visibility:"hidden"}); + } + + var as = _nc.data('actions'); + if (as!==undefined) _R.checkActions(_nc,opt,as); + + checkHoverDependencies(_nc,opt); + + if (_R.checkVideoApis) + addedApis = _R.checkVideoApis(_nc,opt,addedApis); + + // REMOVE VIDEO AUTOPLAYS FOR MOBILE DEVICES + if (_ISM) { + if (an == true || an=="true") { + _.autoplayonlyfirsttime=false; + an=false; + } + if (ap==true || ap=="true" || ap=="on" || ap=="1sttime") { + _.autoplay="off"; + ap="off"; + } + } + + //loop = loop=="none" && _nc.hasClass('rs-background-video-layer') ? "loopandnoslidestop" : loop; + + + + + // PREPARE TIMER BEHAVIOUR BASED ON AUTO PLAYED VIDEOS IN SLIDES + if (!al && (an == true || an=="true" || ap == "1sttime") && loop !="loopandnoslidestop") + _nc.closest('li.tp-revslider-slidesli').addClass("rs-pause-timer-once"); + + + if (!al && (ap==true || ap=="true" || ap == "on" || ap == "no1sttime") && loop !="loopandnoslidestop") + _nc.closest('li.tp-revslider-slidesli').addClass("rs-pause-timer-always"); + + + + + }); + + container[0].addEventListener('mouseenter',function() { + container.trigger('tp-mouseenter'); + opt.overcontainer=true; + },{passive:true}); + + container[0].addEventListener('mouseover',function() { + container.trigger('tp-mouseover'); + opt.overcontainer=true; + },{passive:true}); + + container[0].addEventListener('mouseleave',function() { + container.trigger('tp-mouseleft'); + opt.overcontainer=false; + },{passive:true}); + + // REMOVE ANY VIDEO JS SETTINGS OF THE VIDEO IF NEEDED (OLD FALL BACK, AND HELP FOR 3THD PARTY PLUGIN CONFLICTS) + container.find('.tp-caption video').each(function(i) { + var v = jQuery(this); + v.removeClass("video-js vjs-default-skin"); + v.attr("preload",""); + v.css({display:"none"}); + }); + + //PREPARE LOADINGS ALL IN SEQUENCE + if (opt.sliderType!=="standard") opt.lazyType = "all"; + + + // PRELOAD STATIC LAYERS + loadImages(container.find('.tp-static-layers'),opt,0,true); + + waitForCurrentImages(container.find('.tp-static-layers'),opt,function() { + container.find('.tp-static-layers img').each(function() { + var e = jQuery(this), + src = e.data('lazyload') != undefined ? e.data('lazyload') : e.attr('src'), + loadobj = getLoadObj(opt,src); + e.attr('src',loadobj.src) + }) + }); + + opt.rowzones = []; + + // SET ALL LI AN INDEX AND INIT LAZY LOADING + opt.allli.each(function(i) { + var li = jQuery(this); + opt.rowzones[i] = []; + li.find('.rev_row_zone').each(function() { + opt.rowzones[i].push(jQuery(this)); + }) + + if (opt.lazyType=="all" || (opt.lazyType=="smart" && (i==0 || i == 1 || i == opt.slideamount || i == opt.slideamount-1))) { + loadImages(li,opt,i); + waitForCurrentImages(li,opt,function() { + //if (opt.sliderType=="carousel") + //punchgs.TweenLite.to(li,1,{autoAlpha:1,ease:punchgs.Power3.easeInOut}); + }); + } + + }); + + + + // IF DEEPLINK HAS BEEN SET + var deeplink = getUrlVars("#")[0]; + if (deeplink.length<9) { + if (deeplink.split('slide').length>1) { + var dslide=parseInt(deeplink.split('slide')[1],0); + if (dslide<1) dslide=1; + if (dslide>opt.slideamount) dslide=opt.slideamount; + opt.startWithSlide=dslide-1; + } + } + + // PREPARE THE SPINNER + container.append( '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '); + opt.loader = container.find('.tp-loader'); + + // RESET THE TIMER + if (container.find('.tp-bannertimer').length===0) container.append(''); + container.find('.tp-bannertimer').css({'width':'0%'}); + + + + // PREPARE THE SLIDES + opt.ul.css({'display':'block'}); + prepareSlides(container,opt); + if ((opt.parallax.type!=="off" || opt.scrolleffect.on) && _R.checkForParallax) _R.checkForParallax(container,opt); + + + // PREPARE SLIDER SIZE + _R.setSize(opt); + + + // Call the Navigation Builder + if (opt.sliderType!=="hero" && _R.createNavigation) _R.createNavigation(container,opt); + if (_R.resizeThumbsTabs && _R.resizeThumbsTabs) _R.resizeThumbsTabs(opt); + contWidthManager(opt); + var _v = opt.viewPort; + opt.inviewport = false; + + if (_v !=undefined && _v.enable) { + if (!jQuery.isNumeric(_v.visible_area)) + if (_v.visible_area.indexOf('%')!==-1) + _v.visible_area = parseInt(_v.visible_area)/100; + + if (_R.scrollTicker) _R.scrollTicker(opt,container); + } + // MAKE SURE CAROUSEL IS NOT YET VISIBE BEFORE IT COMES INTO GAME + if (opt.sliderType==="carousel" && _R.prepareCarousel) { + punchgs.TweenLite.set(opt.ul,{opacity:0}); + _R.prepareCarousel(opt,new punchgs.TimelineLite,undefined,0); + opt.onlyPreparedSlide = true; + } + + + + // START THE SLIDER + setTimeout(function() { + + if (!_v.enable || (_v.enable && opt.inviewport) || (_v.enable && !opt.inviewport && !_v.outof=="wait")) + swapSlide(container); + else { + opt.c.addClass("tp-waitforfirststart"); + opt.waitForFirstSlide = true; + if (_v.presize) { + var nextli = jQuery(opt.li[0]); + // PRELOAD STATIC LAYERS + loadImages(nextli,opt,0,true); + waitForCurrentImages(nextli.find('.tp-layers'),opt,function() { + _R.animateTheCaptions({slide:nextli,opt:opt, preset:true}); + }) + } + + + } + + if (_R.manageNavigation) _R.manageNavigation(opt); + + + // START COUNTDOWN + if (opt.slideamount>1) { + if (!_v.enable || (_v.enable && opt.inviewport)) + countDown(container,opt); + else + opt.waitForCountDown = true; + } + setTimeout(function() { + container.trigger('revolution.slide.onloaded'); + },100); + },opt.startDelay); + opt.startDelay=0; + + + + /****************************** + - FULLSCREEN CHANGE - + ********************************/ + // FULLSCREEN MODE TESTING + jQuery("body").data('rs-fullScreenMode',false); + + + window.addEventListener('fullscreenchange',onFullScreenChange,{passive:true}); + window.addEventListener('mozfullscreenchange',onFullScreenChange,{passive:true}); + window.addEventListener('webkitfullscreenchange',onFullScreenChange,{passive:true}); + + + + var resizid = "resize.revslider-"+container.attr('id'); + + // IF RESIZED, NEED TO STOP ACTUAL TRANSITION AND RESIZE ACTUAL IMAGES + jQuery(window).on(resizid,function() { + + if (container==undefined) return false; + + if (jQuery('body').find(container)!=0) + contWidthManager(opt); + + var hchange = false; + + if (opt.sliderLayout=="fullscreen") { + var jwh = jQuery(window).height(); + if ((opt.fallbacks.ignoreHeightChanges=="mobile" && _ISM) || opt.fallbacks.ignoreHeightChanges=="always") { + opt.fallbacks.ignoreHeightChangesSize = opt.fallbacks.ignoreHeightChangesSize == undefined ? 0 : opt.fallbacks.ignoreHeightChangesSize; + hchange = (jwh!=opt.lastwindowheight) && (Math.abs(jwh-opt.lastwindowheight) > opt.fallbacks.ignoreHeightChangesSize) + } else { + hchange = (jwh!=opt.lastwindowheight) + } + } + + + if (container.outerWidth(true)!=opt.width || container.is(":hidden") || (hchange)) { + opt.lastwindowheight = jQuery(window).height(); + containerResized(container,opt); + } + + + }); + + hideSliderUnder(container,opt); + contWidthManager(opt); + if (!opt.fallbacks.disableFocusListener && opt.fallbacks.disableFocusListener != "true" && opt.fallbacks.disableFocusListener !== true) tabBlurringCheck(container,opt); + } +} + +/************************************* + - CREATE SIMPLE ARRAYS - +**************************************/ +var cArray = function(b,l) { + if (!jQuery.isArray(b)) { + var t = b; + b = new Array(); + b.push(t); + } + if (b.length0 && (cli.hasClass("active-revslide")) || cli.hasClass("processing-revslide")) || (stl.length>0)) { + tnc.data('animdirection',"in"); + + if (_R.playAnimationFrame) + _R.playAnimationFrame({caption:tnc,opt:opt,frame:"frame_0", triggerdirection:"in", triggerframein:"frame_0", triggerframeout:"frame_999"}); + tnc.data('triggerstate',"on"); + } + }); + }); + opt.c.on('tp-mouseleft',function() { + if (opt.layersonhover) + jQuery.each(opt.layersonhover,function(i,tnc) { + tnc.data('animdirection',"out"); + tnc.data('triggered',true); + tnc.data('triggerstate',"off"); + if (_R.stopVideo) _R.stopVideo(tnc,opt); + if (_R.playAnimationFrame) _R.playAnimationFrame({caption:tnc,opt:opt,frame:"frame_999", triggerdirection:"out", triggerframein:"frame_0", triggerframeout:"frame_999"}); + }); + }); + opt.layersonhover = new Array; + } + opt.layersonhover.push(_nc); + } +} + + + +var contWidthManager = function(opt) { + + var rl = _R.getHorizontalOffset(opt.c,"left"); + + if (opt.sliderLayout!="auto" && (opt.sliderLayout!=="fullscreen" || opt.fullScreenAutoWidth!="on")) { + var loff = Math.ceil(opt.c.closest('.forcefullwidth_wrapper_tp_banner').offset().left - rl); + punchgs.TweenLite.set(opt.c.parent(),{'left':(0-loff)+"px",'width':jQuery(window).width()-_R.getHorizontalOffset(opt.c,"both")}); + } else { + if (opt.sliderLayout=="fullscreen" && opt.fullScreenAutoWidth=="on") + punchgs.TweenLite.set(opt.ul,{left:0,width:opt.c.width()}); + else + punchgs.TweenLite.set(opt.ul,{left:rl,width:opt.c.width()-_R.getHorizontalOffset(opt.c,"both")}); + } + + + // put Static Layer Wrapper in Position + if (opt.slayers && (opt.sliderLayout!="fullwidth" && opt.sliderLayout!="fullscreen")) + punchgs.TweenLite.set(opt.slayers,{left:rl}); +} + + +var cv = function(a,d) { + return a===undefined ? d : a; +} + + +var hideSliderUnder = function(container,opt,resized) { + // FIRST TIME STOP/START HIDE / SHOW SLIDER + //REMOVE AND SHOW SLIDER ON DEMAND + var contpar= container.parent(); + if (jQuery(window).width()0) _R.animateTheCaptions({slide:c.find('.active-revslide'), opt:opt,recall:true}); + + if (nextsh.data('kenburns')=="on") + _R.startKenBurn(nextsh,opt,nextsh.data('kbtl').progress()); + + if (actsh.data('kenburns')=="on") + _R.startKenBurn(actsh,opt,actsh.data('kbtl').progress()); + + // DOUBLE CALL FOR SOME FUNCTION TO AVOID PORTRAIT/LANDSCAPE ISSUES, AND TO AVOID FULLSCREEN/NORMAL SWAP ISSUES + if (_R.animateTheCaptions && c.find('.processing-revslide').length>0) _R.animateTheCaptions({slide:c.find('.processing-revslide'), opt:opt,recall:true}); + if (_R.manageNavigation) _R.manageNavigation(opt); + + } + c.trigger('revolution.slide.afterdraw'); +} + + + + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// PREPARING / REMOVING //////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +var setScale = function(opt) { + opt.bw = (opt.width / opt.gridwidth[opt.curWinRange]); + opt.bh = (opt.height / opt.gridheight[opt.curWinRange]); + + if (opt.bh>opt.bw) + opt.bh=opt.bw + else + opt.bw = opt.bh; + + if (opt.bh>1 || opt.bw>1) { opt.bw=1; opt.bh=1; } +} + + + + + +///////////////////////////////////////// +// - PREPARE THE SLIDES / SLOTS - // +/////////////////////////////////////// +var prepareSlides = function(container,opt) { + + container.find('.tp-caption').each(function() { + var c = jQuery(this); + if (c.data('transition')!==undefined) c.addClass(c.data('transition')); + }); + + // PREPARE THE UL CONTAINER TO HAVEING MAX HEIGHT AND HEIGHT FOR ANY SITUATION + opt.ul.css({overflow:'hidden',width:'100%',height:'100%',maxHeight:container.parent().css('maxHeight')}) + if (opt.autoHeight=="on") { + opt.ul.css({overflow:'hidden',width:'100%',height:'100%',maxHeight:"none"}); + container.css({'maxHeight':'none'}); + container.parent().css({'maxHeight':'none'}); + } + //_R.setSize("",opt); + opt.allli.each(function(j) { + var li=jQuery(this), + originalIndex = li.data('originalindex'); + + //START WITH CORRECT SLIDE + if ((opt.startWithSlide !=undefined && originalIndex==opt.startWithSlide) || opt.startWithSlide ===undefined && j==0) + li.addClass("next-revslide"); + + + // MAKE LI OVERFLOW HIDDEN FOR FURTHER ISSUES + li.css({'width':'100%','height':'100%','overflow':'hidden'}); + + }); + + if (opt.sliderType === "carousel") { + //SET CAROUSEL + opt.ul.css({overflow:"visible"}).wrap(''); + var apt = '
    '; + opt.c.parent().prepend(apt); + opt.c.parent().append(apt); + _R.prepareCarousel(opt); + } + + // RESOLVE OVERFLOW HIDDEN OF MAIN CONTAINER + container.parent().css({'overflow':'visible'}); + + opt.allli.find('>img').each(function(j) { + + var img=jQuery(this), + cli = img.closest('li'), + bgvid = cli.find('.rs-background-video-layer'); + + bgvid.addClass("defaultvid").css({zIndex:30}); + + img.addClass('defaultimg'); + + // TURN OF KEN BURNS IF WE ARE ON MOBILE AND IT IS WISHED SO + if (opt.fallbacks.panZoomDisableOnMobile == "on" && _ISM) { + img.data('kenburns',"off"); + img.data('bgfit',"cover"); + } + + var mediafilter = cli.data('mediafilter'); + mediafilter = mediafilter==="none" || mediafilter===undefined ? "" : mediafilter; + img.wrap('
    '); + bgvid.appendTo(cli.find('.slotholder')); + var dts = img.data(); + img.closest('.slotholder').data(dts); + + if (bgvid.length>0 && dts.bgparallax!=undefined) + bgvid.data('bgparallax',dts.bgparallax); + + if (opt.dottedOverlay!="none" && opt.dottedOverlay!=undefined) + img.closest('.slotholder').append('
    '); + + var src=img.attr('src'); + dts.src = src; + dts.bgfit = dts.bgfit || "cover"; + dts.bgrepeat = dts.bgrepeat || "no-repeat", + dts.bgposition = dts.bgposition || "center center"; + + var pari = img.closest('.slotholder'); + img.parent().append('
    '); + img.data('mediafilter',mediafilter) + var comment = document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - " + img.get(0).outerHTML); + img.replaceWith(comment); + img = pari.find('.tp-bgimg'); + img.data(dts); + img.attr("src",src); + + if (opt.sliderType === "standard" || opt.sliderType==="undefined") + img.css({'opacity':0}); + + }) + + if (opt.scrolleffect.on && opt.scrolleffect.on_slidebg==="on") { + opt.allslotholder = new Array(); + opt.allli.find('.slotholder').each(function() { + jQuery(this).wrap('
    ') + }); + opt.allslotholder = opt.c.find('.slotholder_fadeoutwrap'); + } +} + + +// REMOVE SLOTS // +var removeSlots = function(container,opt,where,addon) { + opt.removePrepare = opt.removePrepare + addon; + where.find('.slot, .slot-circle-wrapper').each(function() { + jQuery(this).remove(); + }); + opt.transition = 0; + opt.removePrepare = 0; +} + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// SLIDE SWAPS //////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + +// THE IMAGE IS LOADED, WIDTH, HEIGHT CAN BE SAVED +var cutParams = function(a) { + var b = a; + if (a!=undefined && a.length>0) + b = a.split("?")[0]; + return b; +} + +var relativeRedir = function(redir){ + return location.pathname.replace(/(.*)\/[^/]*/, "$1/"+redir); +} + +var abstorel = function (base, relative) { + var stack = base.split("/"), + parts = relative.split("/"); + stack.pop(); // remove current file name (or empty string) + // (omit if "base" is the current folder without trailing slash) + for (var i=0; i0) + h = w; + + element.data('ww',w); + element.data('hh',h); + + } + } else + + if (loadobj.type=="svg" && loadobj.progress=="loaded") { + + element.append('
    '); + element.find('.tp-svg-innercontainer').append(loadobj.innerHTML); + } + // ELEMENT IS NOW FULLY LOADED + element.data('loaded',true); + } + + + if (loadobj && loadobj.progress && loadobj.progress.match(/inprogress|inload|prepared/g)) + if (!loadobj.error && jQuery.now()-element.data('start-to-load')<5000) + waitforload = true; + else { + loadobj.progress="failed"; + if (!loadobj.reported_img) { + loadobj.reported_img = true; + console.warn(src+" Could not be loaded !"); + } + } + + // WAIT FOR VIDEO API'S + if (opt.youtubeapineeded == true && (!window['YT'] || YT.Player==undefined)) { + waitforload = true; + if (jQuery.now()-opt.youtubestarttime>5000 && opt.youtubewarning!=true) { + opt.youtubewarning = true; + var txt = "YouTube Api Could not be loaded !"; + if (location.protocol === 'https:') txt = txt + " Please Check and Renew SSL Certificate !"; + console.error(txt); + opt.c.append('
    '+txt+'
    ') + } + } + + if (opt.vimeoapineeded == true && !window['Froogaloop']) { + waitforload = true; + if (jQuery.now()-opt.vimeostarttime>5000 && opt.vimeowarning!=true) { + opt.vimeowarning= true; + var txt = "Vimeo Froogaloop Api Could not be loaded !"; + if (location.protocol === 'https:') txt = txt + " Please Check and Renew SSL Certificate !"; + console.error(txt); + opt.c.append('
    '+txt+'
    ') + } + } + + }); + + if (!_ISM && opt.audioqueue && opt.audioqueue.length>0) { + jQuery.each(opt.audioqueue,function(i,obj) { + if (obj.status && obj.status==="prepared") + if (jQuery.now() - obj.start0) { + opt.waitWithSwapSlide = setTimeout(function() { + swapSlide(container); + + },150); + return false; + } + + + var actli = container.find('.active-revslide'), + nextli = container.find('.next-revslide'), + defimg= nextli.find('.defaultimg'); + + + if (opt.sliderType==="carousel" && !opt.carousel.fadein) { + punchgs.TweenLite.to(opt.ul,1,{opacity:1}); + opt.carousel.fadein=true; + } + + if (nextli.index() === actli.index() && opt.onlyPreparedSlide!==true) { + nextli.removeClass("next-revslide"); + return false; + } + + if (opt.onlyPreparedSlide===true) { + opt.onlyPreparedSlide=false; + jQuery(opt.li[0]).addClass("processing-revslide"); + } + + nextli.removeClass("next-revslide").addClass("processing-revslide"); + + if (nextli.index()===-1 && opt.sliderType==="carousel") nextli = jQuery(opt.li[0]); + nextli.data('slide_on_focus_amount',(nextli.data('slide_on_focus_amount')+1) || 1); + // CHECK IF WE ARE ALREADY AT LAST ITEM TO PLAY IN REAL LOOP SESSION + if (opt.stopLoop=="on" && nextli.index()==opt.lastslidetoshow-1) { + container.find('.tp-bannertimer').css({'visibility':'hidden'}); + container.trigger('revolution.slide.onstop'); + opt.noloopanymore = 1; + } + + // INCREASE LOOP AMOUNTS + if (nextli.index()===opt.slideamount-1) { + opt.looptogo=opt.looptogo-1; + if (opt.looptogo<=0) + opt.stopLoop="on"; + } + + opt.tonpause = true; + container.trigger('stoptimer'); + opt.cd=0; + if (opt.spinner==="off") + if (opt.loader!==undefined) opt.loader.css({display:"none"}); + else + opt.loadertimer = setTimeout(function() {if (opt.loader!==undefined) opt.loader.css({display:"block"});},50); + + + loadImages(nextli,opt,1); + if (_R.preLoadAudio) _R.preLoadAudio(nextli,opt,1); + + + // WAIT FOR SWAP SLIDE PROGRESS + + + waitForCurrentImages(nextli,opt,function() { + + + // MANAGE BG VIDEOS + nextli.find('.rs-background-video-layer').each(function() { + var _nc = jQuery(this); + if (!_nc.hasClass("HasListener")) { + _nc.data('bgvideo',1); + if (_R.manageVideoLayer) _R.manageVideoLayer(_nc,opt); + } + if (_nc.find('.rs-fullvideo-cover').length==0) + _nc.append('
    ') + }); + swapSlideProgress(defimg,container) + }); + +} + +////////////////////////////////////// +// - PROGRESS SWAP THE SLIDES - // +///////////////////////////////////// +var swapSlideProgress = function(defimg,container) { + + var actli = container.find('.active-revslide'), + nextli = container.find('.processing-revslide'), + actsh = actli.find('.slotholder'), + nextsh = nextli.find('.slotholder'), + opt = container[0].opt; + + opt.tonpause=false; + + opt.cd=0; + + + clearTimeout(opt.loadertimer); + if (opt.loader!==undefined) opt.loader.css({display:"none"}); + // if ( opt.sliderType =="carousel") _R.prepareCarousel(opt); + _R.setSize(opt); + _R.slotSize(defimg,opt); + + if (_R.manageNavigation) _R.manageNavigation(opt); + var data={}; + data.nextslide=nextli; + data.currentslide=actli; + container.trigger('revolution.slide.onbeforeswap',data); + + opt.transition = 1; + opt.videoplaying = false; + + // IF DELAY HAS BEEN SET VIA THE SLIDE, WE TAKE THE NEW VALUE, OTHER WAY THE OLD ONE... + if (nextli.data('delay')!=undefined) { + opt.cd=0; + opt.delay=nextli.data('delay'); + } else + opt.delay=opt.origcd; + + + if (nextli.data('ssop')=="true" || nextli.data('ssop')===true) + opt.ssop = true + else + opt.ssop = false; + + + + container.trigger('nulltimer'); + + var ai = actli.index(), + ni = nextli.index(); + opt.sdir = niopt.rowzones.length ? opt.rowzones.length : _actli; + + if (opt.rowzones!=undefined && opt.rowzones.length>0 && opt.rowzones[_actli]!=undefined && _actli>=0 && _actli<=opt.rowzones.length && opt.rowzones[_actli].length>0) _R.setSize(opt); + //if (_R.callStaticDDDParallax) _R.callStaticDDDParallax(container,opt,nextli); + +} + + + + + +/////////////////////////// +// REMOVE THE LISTENERS // +/////////////////////////// +var removeAllListeners = function(container,opt) { + container.children().each(function() { + try{ jQuery(this).die('click'); } catch(e) {} + try{ jQuery(this).die('mouseenter');} catch(e) {} + try{ jQuery(this).die('mouseleave');} catch(e) {} + try{ jQuery(this).unbind('hover');} catch(e) {} + }) + try{ container.die('click','mouseenter','mouseleave');} catch(e) {} + clearInterval(opt.cdint); + container=null; +} + +/////////////////////////// +// - countDown - // +///////////////////////// +var countDown = function(container,opt) { + opt.cd=0; + opt.loop=0; + if (opt.stopAfterLoops!=undefined && opt.stopAfterLoops>-1) + opt.looptogo=opt.stopAfterLoops; + else + opt.looptogo=9999999; + + if (opt.stopAtSlide!=undefined && opt.stopAtSlide>-1) + opt.lastslidetoshow=opt.stopAtSlide; + else + opt.lastslidetoshow=999; + + opt.stopLoop="off"; + + if (opt.looptogo==0) opt.stopLoop="on"; + + + var bt=container.find('.tp-bannertimer'); + + // LISTENERS //container.trigger('stoptimer'); + container.on('stoptimer',function() { + + var bt = jQuery(this).find('.tp-bannertimer'); + bt[0].tween.pause(); + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + opt.sliderstatus = "paused"; + _R.unToggleState(opt.slidertoggledby); + }); + + + container.on('starttimer',function() { + if (opt.forcepause_viatoggle) return; + if (opt.conthover!=1 && opt.videoplaying!=true && opt.width>opt.hideSliderAtLimit && opt.tonpause != true && opt.overnav !=true && opt.ssop!=true) + if (opt.noloopanymore !== 1 && (!opt.viewPort.enable || opt.inviewport)) { + + bt.css({visibility:"visible"}); + bt[0].tween.resume(); + opt.sliderstatus = "playing"; + } + + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + _R.toggleState(opt.slidertoggledby); + }); + + + container.on('restarttimer',function() { + if (opt.forcepause_viatoggle) return; + var bt = jQuery(this).find('.tp-bannertimer'); + if (opt.mouseoncontainer && opt.navigation.onHoverStop=="on" && (!_ISM)) return false; + if (opt.noloopanymore !== 1 && (!opt.viewPort.enable || opt.inviewport) && opt.ssop!=true) { + bt.css({visibility:"visible"}); + bt[0].tween.kill(); + + bt[0].tween=punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1}); + opt.sliderstatus = "playing"; + } + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + _R.toggleState(opt.slidertoggledby); + }); + + container.on('nulltimer',function() { + bt[0].tween.kill(); + bt[0].tween=punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1}); + bt[0].tween.pause(0); + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + opt.sliderstatus = "paused"; + }); + + var countDownNext = function() { + if (jQuery('body').find(container).length==0) { + removeAllListeners(container,opt); + clearInterval(opt.cdint); + } + + container.trigger("revolution.slide.slideatend"); + + //STATE OF API CHANGED -> MOVE TO AIP BETTER + if (container.data('conthover-changed') == 1) { + opt.conthover= container.data('conthover'); + container.data('conthover-changed',0); + } + + _R.callingNewSlide(container,1); + } + + bt[0].tween=punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1}); + + + if (opt.slideamount >1 && !(opt.stopAfterLoops==0 && opt.stopAtSlide==1)) { + container.trigger("starttimer"); + } + else { + opt.noloopanymore = 1; + + container.trigger("nulltimer"); + } + + container.on('tp-mouseenter',function() { + opt.mouseoncontainer = true; + if (opt.navigation.onHoverStop=="on" && (!_ISM)) { + container.trigger('stoptimer'); + container.trigger('revolution.slide.onpause'); + } + }); + container.on('tp-mouseleft',function() { + opt.mouseoncontainer = false; + if (container.data('conthover')!=1 && opt.navigation.onHoverStop=="on" && ((opt.viewPort.enable==true && opt.inviewport) || opt.viewPort.enable==false)) { + container.trigger('revolution.slide.onresume'); + container.trigger('starttimer'); + } + }); + +} + + + + +////////////////////////////////////////////////////// +// * Revolution Slider - NEEDFULL FUNCTIONS +// * @version: 1.0 (30.10.2014) +// * @author ThemePunch +////////////////////////////////////////////////////// + + + +// - BLUR / FOXUS FUNCTIONS ON BROWSER + +var vis = (function(){ + var stateKey, + eventKey, + keys = { + hidden: "visibilitychange", + webkitHidden: "webkitvisibilitychange", + mozHidden: "mozvisibilitychange", + msHidden: "msvisibilitychange" + }; + for (stateKey in keys) { + if (stateKey in document) { + eventKey = keys[stateKey]; + break; + } + } + return function(c) { + if (c) document.addEventListener(eventKey, c,{pasive:true}); + return !document[stateKey]; + } + })(); + +var restartOnFocus = function(opt) { + if (opt==undefined || opt.c==undefined) return false; + if (opt.windowfocused!=true) { + opt.windowfocused = true; + punchgs.TweenLite.delayedCall(0.3,function(){ + // TAB IS ACTIVE, WE CAN START ANY PART OF THE SLIDER + if (opt.fallbacks.nextSlideOnWindowFocus=="on") opt.c.revnext(); + opt.c.revredraw(); + if (opt.lastsliderstatus=="playing") + opt.c.revresume(); + }); + } +} + +var lastStatBlur = function(opt) { + opt.windowfocused = false; + opt.lastsliderstatus = opt.sliderstatus; + opt.c.revpause(); + var actsh = opt.c.find('.active-revslide .slotholder'), + nextsh = opt.c.find('.processing-revslide .slotholder'); + + if (nextsh.data('kenburns')=="on") + _R.stopKenBurn(nextsh,opt); + + if (actsh.data('kenburns')=="on") + _R.stopKenBurn(actsh,opt); + + +} + +var tabBlurringCheck = function(container,opt) { + var notIE = (document.documentMode === undefined), + isChromium = window.chrome; + + if (notIE && !isChromium) { + // checks for Firefox and other NON IE Chrome versions + jQuery(window).on("focusin", function () { + restartOnFocus(opt); + }).on("focusout", function () { + lastStatBlur(opt); + }); + } else { + // checks for IE and Chromium versions + if (window.addEventListener) { + // bind focus event + window.addEventListener("focus", function (event) { + restartOnFocus(opt); + }, {capture:false,passive:true}); + // bind blur event + window.addEventListener("blur", function (event) { + lastStatBlur(opt); + }, {capture:false,passive:true}); + + } else { + // bind focus event + window.attachEvent("focus", function (event) { + restartOnFocus(opt); + }); + // bind focus event + window.attachEvent("blur", function (event) { + lastStatBlur(opt); + }); + } + } +} + + +// - GET THE URL PARAMETER // + +var getUrlVars = function (hashdivider){ + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf(hashdivider) + 1).split('_'); + for(var i = 0; i < hashes.length; i++) + { + hashes[i] = hashes[i].replace('%3D',"="); + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; +} +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.tools.min.js b/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.tools.min.js new file mode 100644 index 0000000..34f1982 --- /dev/null +++ b/public/assets/plugins/rs-plugin-5.3.1/js/source/jquery.themepunch.tools.min.js @@ -0,0 +1,8710 @@ +/******************************************** + - THEMEPUNCH TOOLS Ver. 1.0 - + Last Update of Tools 27.02.2015 +*********************************************/ + + +/* +* @fileOverview TouchSwipe - jQuery Plugin +* @version 1.6.12 +* +* @author Matt Bryson http://www.github.com/mattbryson +* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin +* @see http://labs.rampinteractive.co.uk/touchSwipe/ +* @see http://plugins.jquery.com/project/touchSwipe +* +* Copyright (c) 2010-2015 Matt Bryson +* Dual licensed under the MIT or GPL Version 2 licenses. +* +*/ + +/* +* +* Changelog +* $Date: 2010-12-12 (Wed, 12 Dec 2010) $ +* $version: 1.0.0 +* $version: 1.0.1 - removed multibyte comments +* +* $Date: 2011-21-02 (Mon, 21 Feb 2011) $ +* $version: 1.1.0 - added allowPageScroll property to allow swiping and scrolling of page +* - changed handler signatures so one handler can be used for multiple events +* $Date: 2011-23-02 (Wed, 23 Feb 2011) $ +* $version: 1.2.0 - added click handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler. +* - If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object. +* $version: 1.2.1 - removed console log! +* +* $version: 1.2.2 - Fixed bug where scope was not preserved in callback methods. +* +* $Date: 2011-28-04 (Thurs, 28 April 2011) $ +* $version: 1.2.4 - Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring. +* +* $Date: 2011-27-09 (Tues, 27 September 2011) $ +* $version: 1.2.5 - Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy) +* +* $Date: 2012-14-05 (Mon, 14 May 2012) $ +* $version: 1.2.6 - Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected +* +* $Date: 2012-05-06 (Tues, 05 June 2012) $ +* $version: 1.2.7 - Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled. +* +* $Date: 2012-05-06 (Tues, 05 June 2012) $ +* $version: 1.2.8 - Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event. +* +* $Date: 2012-06-06 (Wed, 06 June 2012) $ +* $version: 1.3.0 - Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added 'enable', 'disable', and 'destroy' methods +* +* $Date: 2012-05-06 (Fri, 05 June 2012) $ +* $version: 1.3.1 - Bug fixes - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly. +* +* $Date: 2012-29-07 (Sun, 29 July 2012) $ +* $version: 1.3.2 - Added fallbackToMouseEvents option to NOT capture mouse events on non touch devices. +* - Added "all" fingers value to the fingers property, so any combination of fingers triggers the swipe, allowing event handlers to check the finger count +* +* $Date: 2012-09-08 (Thurs, 9 Aug 2012) $ +* $version: 1.3.3 - Code tidy prep for minefied version +* +* $Date: 2012-04-10 (wed, 4 Oct 2012) $ +* $version: 1.4.0 - Added pinch support, pinchIn and pinchOut +* +* $Date: 2012-11-10 (Thurs, 11 Oct 2012) $ +* $version: 1.5.0 - Added excludedElements, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements. +* +* $Date: 2012-22-10 (Mon, 22 Oct 2012) $ +* $version: 1.5.1 - Fixed bug with jQuery 1.8 and trailing comma in excludedElements +* - Fixed bug with IE and eventPreventDefault() +* $Date: 2013-01-12 (Fri, 12 Jan 2013) $ +* $version: 1.6.0 - Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture. +* - made the demo site all static local HTML pages so they can be run locally by a developer +* - added jsDoc comments and added documentation for the plugin +* - code tidy +* - added triggerOnTouchLeave property that will end the event when the user swipes off the element. +* $Date: 2013-03-23 (Sat, 23 Mar 2013) $ +* $version: 1.6.1 - Added support for ie8 touch events +* $version: 1.6.2 - Added support for events binding with on / off / bind in jQ for all callback names. +* - Deprecated the 'click' handler in favour of tap. +* - added cancelThreshold property +* - added option method to update init options at runtime +* $version 1.6.3 - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property +* +* $Date: 2013-04-04 (Thurs, 04 April 2013) $ +* $version 1.6.4 - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back. +* +* $Date: 2013-08-24 (Sat, 24 Aug 2013) $ +* $version 1.6.5 - Merged a few pull requests fixing various bugs, added AMD support. +* +* $Date: 2014-06-04 (Wed, 04 June 2014) $ +* $version 1.6.6 - Merge of pull requests. +* - IE10 touch support +* - Only prevent default event handling on valid swipe +* - Separate license/changelog comment +* - Detect if the swipe is valid at the end of the touch event. +* - Pass fingerdata to event handlers. +* - Add 'hold' gesture +* - Be more tolerant about the tap distance +* - Typos and minor fixes +* +* $Date: 2015-22-01 (Thurs, 22 Jan 2015) $ +* $version 1.6.7 - Added patch from https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/206 to fix memory leak +* +* $Date: 2015-2-2 (Mon, 2 Feb 2015) $ +* $version 1.6.8 - Added preventDefaultEvents option to proxy events regardless. +* - Fixed issue with swipe and pinch not triggering at the same time +* +* $Date: 2015-9-6 (Tues, 9 June 2015) $ +* $version 1.6.9 - Added PR from jdalton/hybrid to fix pointer events +* - Added scrolling demo +* - Added version property to plugin +* +* $Date: 2015-1-10 (Wed, 1 October 2015) $ +* $version 1.6.10 - Added PR from beatspace to fix tap events +* $version 1.6.11 - Added PRs from indri-indri ( Doc tidyup), kkirsche ( Bower tidy up ), UziTech (preventDefaultEvents fixes ) +* - Allowed setting multiple options via .swipe("options", options_hash) and more simply .swipe(options_hash) or exisitng instances +* $version 1.6.12 - Fixed bug with multi finger releases above 2 not triggering events +*/ + +/** + * See (http://jquery.com/). + * @name $ + * @class + * See the jQuery Library (http://jquery.com/) for full details. This just + * documents the function and classes that are added to jQuery by this plug-in. + */ + +/** + * See (http://jquery.com/) + * @name fn + * @class + * See the jQuery Library (http://jquery.com/) for full details. This just + * documents the function and classes that are added to jQuery by this plug-in. + * @memberOf $ + */ + + + +(function (factory) { + if (typeof define === 'function' && define.amd && define.amd.jQuery) { + // AMD. Register as anonymous module. + define(['jquery'], factory); + } else { + // Browser globals. + factory(jQuery); + } +}(function ($) { + "use strict"; + + //Constants + var VERSION = "1.6.12", + LEFT = "left", + RIGHT = "right", + UP = "up", + DOWN = "down", + IN = "in", + OUT = "out", + + NONE = "none", + AUTO = "auto", + + SWIPE = "swipe", + PINCH = "pinch", + TAP = "tap", + DOUBLE_TAP = "doubletap", + LONG_TAP = "longtap", + HOLD = "hold", + + HORIZONTAL = "horizontal", + VERTICAL = "vertical", + + ALL_FINGERS = "all", + + DOUBLE_TAP_THRESHOLD = 10, + + PHASE_START = "start", + PHASE_MOVE = "move", + PHASE_END = "end", + PHASE_CANCEL = "cancel", + + SUPPORTS_TOUCH = 'ontouchstart' in window, + + SUPPORTS_POINTER_IE10 = window.navigator.msPointerEnabled && !window.navigator.pointerEnabled, + + SUPPORTS_POINTER = window.navigator.pointerEnabled || window.navigator.msPointerEnabled, + + PLUGIN_NS = 'TouchSwipe'; + + + + /** + * The default configuration, and available options to configure touch swipe with. + * You can set the default values by updating any of the properties prior to instantiation. + * @name $.fn.swipe.defaults + * @namespace + * @property {int} [fingers=1] The number of fingers to detect in a swipe. Any swipes that do not meet this requirement will NOT trigger swipe handlers. + * @property {int} [threshold=75] The number of pixels that the user must move their finger by before it is considered a swipe. + * @property {int} [cancelThreshold=null] The number of pixels that the user must move their finger back from the original swipe direction to cancel the gesture. + * @property {int} [pinchThreshold=20] The number of pixels that the user must pinch their finger by before it is considered a pinch. + * @property {int} [maxTimeThreshold=null] Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe. + * @property {int} [fingerReleaseThreshold=250] Time in milliseconds between releasing multiple fingers. If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release. + * @property {int} [longTapThreshold=500] Time in milliseconds between tap and release for a long tap + * @property {int} [doubleTapThreshold=200] Time in milliseconds between 2 taps to count as a double tap + * @property {function} [swipe=null] A handler to catch all swipes. See {@link $.fn.swipe#event:swipe} + * @property {function} [swipeLeft=null] A handler that is triggered for "left" swipes. See {@link $.fn.swipe#event:swipeLeft} + * @property {function} [swipeRight=null] A handler that is triggered for "right" swipes. See {@link $.fn.swipe#event:swipeRight} + * @property {function} [swipeUp=null] A handler that is triggered for "up" swipes. See {@link $.fn.swipe#event:swipeUp} + * @property {function} [swipeDown=null] A handler that is triggered for "down" swipes. See {@link $.fn.swipe#event:swipeDown} + * @property {function} [swipeStatus=null] A handler triggered for every phase of the swipe. See {@link $.fn.swipe#event:swipeStatus} + * @property {function} [pinchIn=null] A handler triggered for pinch in events. See {@link $.fn.swipe#event:pinchIn} + * @property {function} [pinchOut=null] A handler triggered for pinch out events. See {@link $.fn.swipe#event:pinchOut} + * @property {function} [pinchStatus=null] A handler triggered for every phase of a pinch. See {@link $.fn.swipe#event:pinchStatus} + * @property {function} [tap=null] A handler triggered when a user just taps on the item, rather than swipes it. If they do not move, tap is triggered, if they do move, it is not. + * @property {function} [doubleTap=null] A handler triggered when a user double taps on the item. The delay between taps can be set with the doubleTapThreshold property. See {@link $.fn.swipe.defaults#doubleTapThreshold} + * @property {function} [longTap=null] A handler triggered when a user long taps on the item. The delay between start and end can be set with the longTapThreshold property. See {@link $.fn.swipe.defaults#longTapThreshold} + * @property (function) [hold=null] A handler triggered when a user reaches longTapThreshold on the item. See {@link $.fn.swipe.defaults#longTapThreshold} + * @property {boolean} [triggerOnTouchEnd=true] If true, the swipe events are triggered when the touch end event is received (user releases finger). If false, it will be triggered on reaching the threshold, and then cancel the touch event automatically. + * @property {boolean} [triggerOnTouchLeave=false] If true, then when the user leaves the swipe object, the swipe will end and trigger appropriate handlers. + * @property {string|undefined} [allowPageScroll='auto'] How the browser handles page scrolls when the user is swiping on a touchSwipe object. See {@link $.fn.swipe.pageScroll}.

    + "auto" : all undefined swipes will cause the page to scroll in that direction.
    + "none" : the page will not scroll when user swipes.
    + "horizontal" : will force page to scroll on horizontal swipes.
    + "vertical" : will force page to scroll on vertical swipes.
    + * @property {boolean} [fallbackToMouseEvents=true] If true mouse events are used when run on a non touch device, false will stop swipes being triggered by mouse events on non tocuh devices. + * @property {string} [excludedElements="button, input, select, textarea, a, .noSwipe"] A jquery selector that specifies child elements that do NOT trigger swipes. By default this excludes all form, input, select, button, anchor and .noSwipe elements. + * @property {boolean} [preventDefaultEvents=true] by default default events are cancelled, so the page doesn't move. You can dissable this so both native events fire as well as your handlers. + + */ + var defaults = { + 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, //Deprecated since 1.6.2 + 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 + }; + + + + /** + * Applies TouchSwipe behaviour to one or more jQuery objects. + * The TouchSwipe plugin can be instantiated via this method, or methods within + * TouchSwipe can be executed via this method as per jQuery plugin architecture. + * An existing plugin can have its options changed simply by re calling .swipe(options) + * @see TouchSwipe + * @class + * @param {Mixed} method If the current DOMNode is a TouchSwipe object, and method is a TouchSwipe method, then + * the method is executed, and any following arguments are passed to the TouchSwipe method. + * If method is an object, then the TouchSwipe class is instantiated on the current DOMNode, passing the + * configuration properties defined in the object. See TouchSwipe + * + */ + $.fn.swipe = function (method) { + var $this = $(this), + plugin = $this.data(PLUGIN_NS); + + //Check if we are already instantiated and trying to execute a method + if (plugin && typeof method === 'string') { + if (plugin[method]) { + return plugin[method].apply(this, Array.prototype.slice.call(arguments, 1)); + } else { + $.error('Method ' + method + ' does not exist on jQuery.swipe'); + } + } + + //Else update existing plugin with new options hash + else if (plugin && typeof method === 'object') { + plugin['option'].apply(this, arguments); + } + + //Else not instantiated and trying to pass init object (or nothing) + else if (!plugin && (typeof method === 'object' || !method)) { + return init.apply(this, arguments); + } + + return $this; + }; + + /** + * The version of the plugin + * @readonly + */ + $.fn.swipe.version = VERSION; + + + + //Expose our defaults so a user could override the plugin defaults + $.fn.swipe.defaults = defaults; + + /** + * The phases that a touch event goes through. The phase is passed to the event handlers. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @property {string} PHASE_START Constant indicating the start phase of the touch event. Value is "start". + * @property {string} PHASE_MOVE Constant indicating the move phase of the touch event. Value is "move". + * @property {string} PHASE_END Constant indicating the end phase of the touch event. Value is "end". + * @property {string} PHASE_CANCEL Constant indicating the cancel phase of the touch event. Value is "cancel". + */ + $.fn.swipe.phases = { + PHASE_START: PHASE_START, + PHASE_MOVE: PHASE_MOVE, + PHASE_END: PHASE_END, + PHASE_CANCEL: PHASE_CANCEL + }; + + /** + * The direction constants that are passed to the event handlers. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @property {string} LEFT Constant indicating the left direction. Value is "left". + * @property {string} RIGHT Constant indicating the right direction. Value is "right". + * @property {string} UP Constant indicating the up direction. Value is "up". + * @property {string} DOWN Constant indicating the down direction. Value is "cancel". + * @property {string} IN Constant indicating the in direction. Value is "in". + * @property {string} OUT Constant indicating the out direction. Value is "out". + */ + $.fn.swipe.directions = { + LEFT: LEFT, + RIGHT: RIGHT, + UP: UP, + DOWN: DOWN, + IN : IN, + OUT: OUT + }; + + /** + * The page scroll constants that can be used to set the value of allowPageScroll option + * These properties are read only + * @namespace + * @readonly + * @see $.fn.swipe.defaults#allowPageScroll + * @property {string} NONE Constant indicating no page scrolling is allowed. Value is "none". + * @property {string} HORIZONTAL Constant indicating horizontal page scrolling is allowed. Value is "horizontal". + * @property {string} VERTICAL Constant indicating vertical page scrolling is allowed. Value is "vertical". + * @property {string} AUTO Constant indicating either horizontal or vertical will be allowed, depending on the swipe handlers registered. Value is "auto". + */ + $.fn.swipe.pageScroll = { + NONE: NONE, + HORIZONTAL: HORIZONTAL, + VERTICAL: VERTICAL, + AUTO: AUTO + }; + + /** + * Constants representing the number of fingers used in a swipe. These are used to set both the value of fingers in the + * options object, as well as the value of the fingers event property. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @see $.fn.swipe.defaults#fingers + * @property {string} ONE Constant indicating 1 finger is to be detected / was detected. Value is 1. + * @property {string} TWO Constant indicating 2 fingers are to be detected / were detected. Value is 2. + * @property {string} THREE Constant indicating 3 finger are to be detected / were detected. Value is 3. + * @property {string} FOUR Constant indicating 4 finger are to be detected / were detected. Not all devices support this. Value is 4. + * @property {string} FIVE Constant indicating 5 finger are to be detected / were detected. Not all devices support this. Value is 5. + * @property {string} ALL Constant indicating any combination of finger are to be detected. Value is "all". + */ + $.fn.swipe.fingers = { + ONE: 1, + TWO: 2, + THREE: 3, + FOUR: 4, + FIVE: 5, + ALL: ALL_FINGERS + }; + + /** + * Initialise the plugin for each DOM element matched + * This creates a new instance of the main TouchSwipe class for each DOM element, and then + * saves a reference to that instance in the elements data property. + * @internal + */ + function init(options) { + //Prep and extend the options + if (options && (options.allowPageScroll === undefined && (options.swipe !== undefined || options.swipeStatus !== undefined))) { + options.allowPageScroll = NONE; + } + + //Check for deprecated options + //Ensure that any old click handlers are assigned to the new tap, unless we have a tap + if(options.click!==undefined && options.tap===undefined) { + options.tap = options.click; + } + + if (!options) { + options = {}; + } + + //pass empty object so we dont modify the defaults + options = $.extend({}, $.fn.swipe.defaults, options); + + //For each element instantiate the plugin + return this.each(function () { + var $this = $(this); + + //Check we havent already initialised the plugin + var plugin = $this.data(PLUGIN_NS); + + if (!plugin) { + plugin = new TouchSwipe(this, options); + $this.data(PLUGIN_NS, plugin); + } + }); + } + + /** + * Main TouchSwipe Plugin Class. + * Do not use this to construct your TouchSwipe object, use the jQuery plugin method $.fn.swipe(); {@link $.fn.swipe} + * @private + * @name TouchSwipe + * @param {DOMNode} element The HTML DOM object to apply to plugin to + * @param {Object} options The options to configure the plugin with. @link {$.fn.swipe.defaults} + * @see $.fh.swipe.defaults + * @see $.fh.swipe + * @class + */ + function TouchSwipe(element, options) { + + //take a local/instacne level copy of the options - should make it this.options really... + var options = $.extend({}, options); + + var useTouchEvents = (SUPPORTS_TOUCH || SUPPORTS_POINTER || !options.fallbackToMouseEvents), + START_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerDown' : 'pointerdown') : 'touchstart') : 'mousedown', + MOVE_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerMove' : 'pointermove') : 'touchmove') : 'mousemove', + END_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerUp' : 'pointerup') : 'touchend') : 'mouseup', + LEAVE_EV = useTouchEvents ? null : 'mouseleave', //we manually detect leave on touch devices, so null event here + CANCEL_EV = (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerCancel' : 'pointercancel') : 'touchcancel'); + + + + //touch properties + var distance = 0, + direction = null, + duration = 0, + startTouchesDistance = 0, + endTouchesDistance = 0, + pinchZoom = 1, + pinchDistance = 0, + pinchDirection = 0, + maximumsMap=null; + + + + //jQuery wrapped element for this instance + var $element = $(element); + + //Current phase of th touch cycle + var phase = "start"; + + // the current number of fingers being used. + var fingerCount = 0; + + //track mouse points / delta + var fingerData = {}; + + //track times + var startTime = 0, + endTime = 0, + previousTouchEndTime=0, + fingerCountAtRelease=0, + doubleTapStartTime=0; + + //Timeouts + var singleTapTimeout=null, + holdTimeout=null; + + // Add gestures to all swipable areas if supported + try { + $element.bind(START_EV, touchStart); + $element.bind(CANCEL_EV, touchCancel); + } + catch (e) { + $.error('events not supported ' + START_EV + ',' + CANCEL_EV + ' on jQuery.swipe'); + } + + // + //Public methods + // + + /** + * re-enables the swipe plugin with the previous configuration + * @function + * @name $.fn.swipe#enable + * @return {DOMNode} The Dom element that was registered with TouchSwipe + * @example $("#element").swipe("enable"); + */ + this.enable = function () { + $element.bind(START_EV, touchStart); + $element.bind(CANCEL_EV, touchCancel); + return $element; + }; + + /** + * disables the swipe plugin + * @function + * @name $.fn.swipe#disable + * @return {DOMNode} The Dom element that is now registered with TouchSwipe + * @example $("#element").swipe("disable"); + */ + this.disable = function () { + removeListeners(); + return $element; + }; + + /** + * Destroy the swipe plugin completely. To use any swipe methods, you must re initialise the plugin. + * @function + * @name $.fn.swipe#destroy + * @example $("#element").swipe("destroy"); + */ + this.destroy = function () { + removeListeners(); + $element.data(PLUGIN_NS, null); + $element = null; + }; + + + /** + * Allows run time updating of the swipe configuration options. + * @function + * @name $.fn.swipe#option + * @param {String} property The option property to get or set, or a has of multiple options to set + * @param {Object} [value] The value to set the property to + * @return {Object} If only a property name is passed, then that property value is returned. If nothing is passed the current options hash is returned. + * @example $("#element").swipe("option", "threshold"); // return the threshold + * @example $("#element").swipe("option", "threshold", 100); // set the threshold after init + * @example $("#element").swipe("option", {threshold:100, fingers:3} ); // set multiple properties after init + * @example $("#element").swipe({threshold:100, fingers:3} ); // set multiple properties after init - the "option" method is optional! + * @example $("#element").swipe("option"); // Return the current options hash + * @see $.fn.swipe.defaults + * + */ + this.option = function (property, value) { + + if(typeof property === 'object') { + options = $.extend(options, property); + } else if(options[property]!==undefined) { + if(value===undefined) { + return options[property]; + } else { + options[property] = value; + } + } else if (!property) { + return options; + } else { + $.error('Option ' + property + ' does not exist on jQuery.swipe.options'); + } + + return null; + } + + + + // + // Private methods + // + + // + // EVENTS + // + /** + * Event handler for a touch start event. + * Stops the default click event from triggering and stores where we touched + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchStart(jqEvent) { + + //If we already in a touch event (a finger already in use) then ignore subsequent ones.. + if( getTouchInProgress() ) + return; + + //Check if this element matches any in the excluded elements selectors, or its parent is excluded, if so, DON'T swipe + if( $(jqEvent.target).closest( options.excludedElements, $element ).length>0 ) + return; + + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + var ret, + touches = event.touches, + evt = touches ? touches[0] : event; + + phase = PHASE_START; + + //If we support touches, get the finger count + if (touches) { + // get the total number of fingers touching the screen + fingerCount = touches.length; + } + //Else this is the desktop, so stop the browser from dragging content + else if(options.preventDefaultEvents !== false) { + jqEvent.preventDefault(); //call this on jq event so we are cross browser + } + + //clear vars.. + distance = 0; + direction = null; + pinchDirection=null; + duration = 0; + startTouchesDistance=0; + endTouchesDistance=0; + pinchZoom = 1; + pinchDistance = 0; + maximumsMap=createMaximumsData(); + cancelMultiFingerRelease(); + + //Create the default finger data + createFingerData( 0, evt ); + + // check the number of fingers is what we are looking for, or we are capturing pinches + if (!touches || (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || hasPinches()) { + // get the coordinates of the touch + startTime = getTimeStamp(); + + if(fingerCount==2) { + //Keep track of the initial pinch distance, so we can calculate the diff later + //Store second finger data as start + createFingerData( 1, touches[1] ); + startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start); + } + + if (options.swipeStatus || options.pinchStatus) { + ret = triggerHandler(event, phase); + } + } + else { + //A touch with more or less than the fingers we are looking for, so cancel + ret = false; + } + + //If we have a return value from the users handler, then return and cancel + if (ret === false) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + return ret; + } + else { + if (options.hold) { + holdTimeout = setTimeout($.proxy(function() { + //Trigger the event + $element.trigger('hold', [event.target]); + //Fire the callback + if(options.hold) { + ret = options.hold.call($element, event, event.target); + } + }, this), options.longTapThreshold ); + } + + setTouchInProgress(true); + } + + return null; + }; + + + + /** + * Event handler for a touch move event. + * If we change fingers during move, then cancel the event + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchMove(jqEvent) { + + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + //If we are ending, cancelling, or within the threshold of 2 fingers being released, don't track anything.. + if (phase === PHASE_END || phase === PHASE_CANCEL || inMultiFingerRelease()) + return; + + var ret, + touches = event.touches, + evt = touches ? touches[0] : event; + + + //Update the finger data + var currentFinger = updateFingerData(evt); + endTime = getTimeStamp(); + + if (touches) { + fingerCount = touches.length; + } + + if (options.hold) + clearTimeout(holdTimeout); + + phase = PHASE_MOVE; + + //If we have 2 fingers get Touches distance as well + if(fingerCount==2) { + + //Keep track of the initial pinch distance, so we can calculate the diff later + //We do this here as well as the start event, in case they start with 1 finger, and the press 2 fingers + if(startTouchesDistance==0) { + //Create second finger if this is the first time... + createFingerData( 1, touches[1] ); + + startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start); + } else { + //Else just update the second finger + updateFingerData(touches[1]); + + endTouchesDistance = calculateTouchesDistance(fingerData[0].end, fingerData[1].end); + pinchDirection = calculatePinchDirection(fingerData[0].end, fingerData[1].end); + } + + + pinchZoom = calculatePinchZoom(startTouchesDistance, endTouchesDistance); + pinchDistance = Math.abs(startTouchesDistance - endTouchesDistance); + } + + + + + if ( (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !touches || hasPinches() ) { + + direction = calculateDirection(currentFinger.start, currentFinger.end); + + //Check if we need to prevent default event (page scroll / pinch zoom) or not + validateDefaultEvent(jqEvent, direction); + + //Distance and duration are all off the main finger + distance = calculateDistance(currentFinger.start, currentFinger.end); + duration = calculateDuration(); + + //Cache the maximum distance we made in this direction + setMaxDistance(direction, distance); + + + if (options.swipeStatus || options.pinchStatus) { + ret = triggerHandler(event, phase); + } + + + //If we trigger end events when threshold are met, or trigger events when touch leaves element + if(!options.triggerOnTouchEnd || options.triggerOnTouchLeave) { + + var inBounds = true; + + //If checking if we leave the element, run the bounds check (we can use touchleave as its not supported on webkit) + if(options.triggerOnTouchLeave) { + var bounds = getbounds( this ); + inBounds = isInBounds( currentFinger.end, bounds ); + } + + //Trigger end handles as we swipe if thresholds met or if we have left the element if the user has asked to check these.. + if(!options.triggerOnTouchEnd && inBounds) { + phase = getNextPhase( PHASE_MOVE ); + } + //We end if out of bounds here, so set current phase to END, and check if its modified + else if(options.triggerOnTouchLeave && !inBounds ) { + phase = getNextPhase( PHASE_END ); + } + + if(phase==PHASE_CANCEL || phase==PHASE_END) { + triggerHandler(event, phase); + } + } + } + else { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + + if (ret === false) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + } + + + + + /** + * Event handler for a touch end event. + * Calculate the direction and trigger events + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchEnd(jqEvent) { + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent, + touches = event.touches; + + //If we are still in a touch with the device wait a fraction and see if the other finger comes up + //if it does within the threshold, then we treat it as a multi release, not a single release and end the touch / swipe + if (touches) { + if(touches.length && !inMultiFingerRelease()) { + startMultiFingerRelease(); + return true; + } else if (touches.length && inMultiFingerRelease()) { + return true; + } + } + + //If a previous finger has been released, check how long ago, if within the threshold, then assume it was a multifinger release. + //This is used to allow 2 fingers to release fractionally after each other, whilst maintainig the event as containg 2 fingers, not 1 + if(inMultiFingerRelease()) { + fingerCount=fingerCountAtRelease; + } + + //Set end of swipe + endTime = getTimeStamp(); + + //Get duration incase move was never fired + duration = calculateDuration(); + + //If we trigger handlers at end of swipe OR, we trigger during, but they didnt trigger and we are still in the move phase + if(didSwipeBackToCancel() || !validateSwipeDistance()) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } else if (options.triggerOnTouchEnd || (options.triggerOnTouchEnd == false && phase === PHASE_MOVE)) { + //call this on jq event so we are cross browser + if(options.preventDefaultEvents !== false) { + jqEvent.preventDefault(); + } + phase = PHASE_END; + triggerHandler(event, phase); + } + //Special cases - A tap should always fire on touch end regardless, + //So here we manually trigger the tap end handler by itself + //We dont run trigger handler as it will re-trigger events that may have fired already + else if (!options.triggerOnTouchEnd && hasTap()) { + //Trigger the pinch events... + phase = PHASE_END; + triggerHandlerForGesture(event, phase, TAP); + } + else if (phase === PHASE_MOVE) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + + setTouchInProgress(false); + + return null; + } + + + + /** + * Event handler for a touch cancel event. + * Clears current vars + * @inner + */ + function touchCancel() { + // reset the variables back to default values + fingerCount = 0; + endTime = 0; + startTime = 0; + startTouchesDistance=0; + endTouchesDistance=0; + pinchZoom=1; + + //If we were in progress of tracking a possible multi touch end, then re set it. + cancelMultiFingerRelease(); + + setTouchInProgress(false); + } + + + /** + * Event handler for a touch leave event. + * This is only triggered on desktops, in touch we work this out manually + * as the touchleave event is not supported in webkit + * @inner + */ + function touchLeave(jqEvent) { + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + //If we have the trigger on leave property set.... + if(options.triggerOnTouchLeave) { + phase = getNextPhase( PHASE_END ); + triggerHandler(event, phase); + } + } + + /** + * Removes all listeners that were associated with the plugin + * @inner + */ + function removeListeners() { + $element.unbind(START_EV, touchStart); + $element.unbind(CANCEL_EV, touchCancel); + $element.unbind(MOVE_EV, touchMove); + $element.unbind(END_EV, touchEnd); + + //we only have leave events on desktop, we manually calculate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.unbind(LEAVE_EV, touchLeave); + } + + setTouchInProgress(false); + } + + + /** + * Checks if the time and distance thresholds have been met, and if so then the appropriate handlers are fired. + */ + function getNextPhase(currentPhase) { + + var nextPhase = currentPhase; + + // Ensure we have valid swipe (under time and over distance and check if we are out of bound...) + var validTime = validateSwipeTime(); + var validDistance = validateSwipeDistance(); + var didCancel = didSwipeBackToCancel(); + + //If we have exceeded our time, then cancel + if(!validTime || didCancel) { + nextPhase = PHASE_CANCEL; + } + //Else if we are moving, and have reached distance then end + else if (validDistance && currentPhase == PHASE_MOVE && (!options.triggerOnTouchEnd || options.triggerOnTouchLeave) ) { + nextPhase = PHASE_END; + } + //Else if we have ended by leaving and didn't reach distance, then cancel + else if (!validDistance && currentPhase==PHASE_END && options.triggerOnTouchLeave) { + nextPhase = PHASE_CANCEL; + } + + return nextPhase; + } + + + /** + * Trigger the relevant event handler + * The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down" + * @param {object} event the original event object + * @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases} + * @inner + */ + function triggerHandler(event, phase) { + + var ret, + touches = event.touches; + + //Swipes and pinches are not mutually exclusive - can happend at same time, so need to trigger 2 events potentially + if( (didSwipe() && hasSwipes()) || (didPinch() && hasPinches()) ) { + // SWIPE GESTURES + if(didSwipe() && hasSwipes()) { //hasSwipes as status needs to fire even if swipe is invalid + //Trigger the swipe events... + ret = triggerHandlerForGesture(event, phase, SWIPE); + } + + // PINCH GESTURES (if the above didn't cancel) + if((didPinch() && hasPinches()) && ret!==false) { + //Trigger the pinch events... + ret = triggerHandlerForGesture(event, phase, PINCH); + } + } + else { + + // CLICK / TAP (if the above didn't cancel) + if(didDoubleTap() && ret!==false) { + //Trigger the tap events... + ret = triggerHandlerForGesture(event, phase, DOUBLE_TAP); + } + + // CLICK / TAP (if the above didn't cancel) + else if(didLongTap() && ret!==false) { + //Trigger the tap events... + ret = triggerHandlerForGesture(event, phase, LONG_TAP); + } + + // CLICK / TAP (if the above didn't cancel) + else if(didTap() && ret!==false) { + //Trigger the tap event.. + ret = triggerHandlerForGesture(event, phase, TAP); + } + } + + // If we are cancelling the gesture, then manually trigger the reset handler + if (phase === PHASE_CANCEL) { + if(hasSwipes() ) { + ret = triggerHandlerForGesture(event, phase, SWIPE); + } + + if(hasPinches()) { + ret = triggerHandlerForGesture(event, phase, PINCH); + } + touchCancel(event); + } + + // If we are ending the gesture, then manually trigger the reset handler IF all fingers are off + if(phase === PHASE_END) { + //If we support touch, then check that all fingers are off before we cancel + if (touches) { + if(!touches.length) { + touchCancel(event); + } + } + else { + touchCancel(event); + } + } + + return ret; + } + + + + /** + * Trigger the relevant event handler + * The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down" + * @param {object} event the original event object + * @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases} + * @param {string} gesture the gesture to trigger a handler for : PINCH or SWIPE {@link $.fn.swipe.gestures} + * @return Boolean False, to indicate that the event should stop propagation, or void. + * @inner + */ + function triggerHandlerForGesture(event, phase, gesture) { + + var ret; + + //SWIPES.... + if(gesture==SWIPE) { + //Trigger status every time.. + + //Trigger the event... + $element.trigger('swipeStatus', [phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeStatus) { + ret = options.swipeStatus.call($element, event, phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + + + + if (phase == PHASE_END && validateSwipe()) { + //Fire the catch all event + $element.trigger('swipe', [direction, distance, duration, fingerCount, fingerData]); + + //Fire catch all callback + if (options.swipe) { + ret = options.swipe.call($element, event, direction, distance, duration, fingerCount, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + //trigger direction specific event handlers + switch (direction) { + case LEFT: + //Trigger the event + $element.trigger('swipeLeft', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeLeft) { + ret = options.swipeLeft.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case RIGHT: + //Trigger the event + $element.trigger('swipeRight', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeRight) { + ret = options.swipeRight.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case UP: + //Trigger the event + $element.trigger('swipeUp', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeUp) { + ret = options.swipeUp.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case DOWN: + //Trigger the event + $element.trigger('swipeDown', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeDown) { + ret = options.swipeDown.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + } + } + } + + + //PINCHES.... + if(gesture==PINCH) { + //Trigger the event + $element.trigger('pinchStatus', [phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchStatus) { + ret = options.pinchStatus.call($element, event, phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + if(phase==PHASE_END && validatePinch()) { + + switch (pinchDirection) { + case IN: + //Trigger the event + $element.trigger('pinchIn', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchIn) { + ret = options.pinchIn.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + } + break; + + case OUT: + //Trigger the event + $element.trigger('pinchOut', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchOut) { + ret = options.pinchOut.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + } + break; + } + } + } + + + + + + if(gesture==TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + + + //Cancel any existing double tap + clearTimeout(singleTapTimeout); + //Cancel hold timeout + clearTimeout(holdTimeout); + + //If we are also looking for doubelTaps, wait incase this is one... + if(hasDoubleTap() && !inDoubleTap()) { + //Cache the time of this tap + doubleTapStartTime = getTimeStamp(); + + //Now wait for the double tap timeout, and trigger this single tap + //if its not cancelled by a double tap + singleTapTimeout = setTimeout($.proxy(function() { + doubleTapStartTime=null; + //Trigger the event + $element.trigger('tap', [event.target]); + + + //Fire the callback + if(options.tap) { + ret = options.tap.call($element, event, event.target); + } + }, this), options.doubleTapThreshold ); + + } else { + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('tap', [event.target]); + + + //Fire the callback + if(options.tap) { + ret = options.tap.call($element, event, event.target); + } + } + } + } + + else if (gesture==DOUBLE_TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + //Cancel any pending singletap + clearTimeout(singleTapTimeout); + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('doubletap', [event.target]); + + //Fire the callback + if(options.doubleTap) { + ret = options.doubleTap.call($element, event, event.target); + } + } + } + + else if (gesture==LONG_TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + //Cancel any pending singletap (shouldnt be one) + clearTimeout(singleTapTimeout); + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('longtap', [event.target]); + + //Fire the callback + if(options.longTap) { + ret = options.longTap.call($element, event, event.target); + } + } + } + + return ret; + } + + + + + // + // GESTURE VALIDATION + // + + /** + * Checks the user has swipe far enough + * @return Boolean if threshold has been set, return true if the threshold was met, else false. + * If no threshold was set, then we return true. + * @inner + */ + function validateSwipeDistance() { + var valid = true; + //If we made it past the min swipe distance.. + if (options.threshold !== null) { + valid = distance >= options.threshold; + } + + return valid; + } + + /** + * Checks the user has swiped back to cancel. + * @return Boolean if cancelThreshold has been set, return true if the cancelThreshold was met, else false. + * If no cancelThreshold was set, then we return true. + * @inner + */ + function didSwipeBackToCancel() { + var cancelled = false; + if(options.cancelThreshold !== null && direction !==null) { + cancelled = (getMaxDistance( direction ) - distance) >= options.cancelThreshold; + } + + return cancelled; + } + + /** + * Checks the user has pinched far enough + * @return Boolean if pinchThreshold has been set, return true if the threshold was met, else false. + * If no threshold was set, then we return true. + * @inner + */ + function validatePinchDistance() { + if (options.pinchThreshold !== null) { + return pinchDistance >= options.pinchThreshold; + } + return true; + } + + /** + * Checks that the time taken to swipe meets the minimum / maximum requirements + * @return Boolean + * @inner + */ + function validateSwipeTime() { + var result; + //If no time set, then return true + + if (options.maxTimeThreshold) { + if (duration >= options.maxTimeThreshold) { + result = false; + } else { + result = true; + } + } + else { + result = true; + } + + return result; + } + + + + /** + * Checks direction of the swipe and the value allowPageScroll to see if we should allow or prevent the default behaviour from occurring. + * This will essentially allow page scrolling or not when the user is swiping on a touchSwipe object. + * @param {object} jqEvent The normalised jQuery representation of the event object. + * @param {string} direction The direction of the event. See {@link $.fn.swipe.directions} + * @see $.fn.swipe.directions + * @inner + */ + function validateDefaultEvent(jqEvent, direction) { + + //If we have no pinches, then do this + //If we have a pinch, and we we have 2 fingers or more down, then dont allow page scroll. + + //If the option is set, allways allow the event to bubble up (let user handle wiredness) + if( options.preventDefaultEvents === false) { + return; + } + + if (options.allowPageScroll === NONE) { + jqEvent.preventDefault(); + } else { + var auto = options.allowPageScroll === AUTO; + + switch (direction) { + case LEFT: + if ((options.swipeLeft && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) { + jqEvent.preventDefault(); + } + break; + + case RIGHT: + if ((options.swipeRight && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) { + jqEvent.preventDefault(); + } + break; + + case UP: + if ((options.swipeUp && auto) || (!auto && options.allowPageScroll != VERTICAL)) { + jqEvent.preventDefault(); + } + break; + + case DOWN: + if ((options.swipeDown && auto) || (!auto && options.allowPageScroll != VERTICAL)) { + jqEvent.preventDefault(); + } + break; + } + } + + } + + + // PINCHES + /** + * Returns true of the current pinch meets the thresholds + * @return Boolean + * @inner + */ + function validatePinch() { + var hasCorrectFingerCount = validateFingers(); + var hasEndPoint = validateEndPoint(); + var hasCorrectDistance = validatePinchDistance(); + return hasCorrectFingerCount && hasEndPoint && hasCorrectDistance; + + } + + /** + * Returns true if any Pinch events have been registered + * @return Boolean + * @inner + */ + function hasPinches() { + //Enure we dont return 0 or null for false values + return !!(options.pinchStatus || options.pinchIn || options.pinchOut); + } + + /** + * Returns true if we are detecting pinches, and have one + * @return Boolean + * @inner + */ + function didPinch() { + //Enure we dont return 0 or null for false values + return !!(validatePinch() && hasPinches()); + } + + + + + // SWIPES + /** + * Returns true if the current swipe meets the thresholds + * @return Boolean + * @inner + */ + function validateSwipe() { + //Check validity of swipe + var hasValidTime = validateSwipeTime(); + var hasValidDistance = validateSwipeDistance(); + var hasCorrectFingerCount = validateFingers(); + var hasEndPoint = validateEndPoint(); + var didCancel = didSwipeBackToCancel(); + + // if the user swiped more than the minimum length, perform the appropriate action + // hasValidDistance is null when no distance is set + var valid = !didCancel && hasEndPoint && hasCorrectFingerCount && hasValidDistance && hasValidTime; + + return valid; + } + + /** + * Returns true if any Swipe events have been registered + * @return Boolean + * @inner + */ + function hasSwipes() { + //Enure we dont return 0 or null for false values + return !!(options.swipe || options.swipeStatus || options.swipeLeft || options.swipeRight || options.swipeUp || options.swipeDown); + } + + + /** + * Returns true if we are detecting swipes and have one + * @return Boolean + * @inner + */ + function didSwipe() { + //Enure we dont return 0 or null for false values + return !!(validateSwipe() && hasSwipes()); + } + + /** + * Returns true if we have matched the number of fingers we are looking for + * @return Boolean + * @inner + */ + function validateFingers() { + //The number of fingers we want were matched, or on desktop we ignore + return ((fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !SUPPORTS_TOUCH); + } + + /** + * Returns true if we have an end point for the swipe + * @return Boolean + * @inner + */ + function validateEndPoint() { + //We have an end value for the finger + return fingerData[0].end.x !== 0; + } + + // TAP / CLICK + /** + * Returns true if a click / tap events have been registered + * @return Boolean + * @inner + */ + function hasTap() { + //Enure we dont return 0 or null for false values + return !!(options.tap) ; + } + + /** + * Returns true if a double tap events have been registered + * @return Boolean + * @inner + */ + function hasDoubleTap() { + //Enure we dont return 0 or null for false values + return !!(options.doubleTap) ; + } + + /** + * Returns true if any long tap events have been registered + * @return Boolean + * @inner + */ + function hasLongTap() { + //Enure we dont return 0 or null for false values + return !!(options.longTap) ; + } + + /** + * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past. + * @return Boolean + * @inner + */ + function validateDoubleTap() { + if(doubleTapStartTime==null){ + return false; + } + var now = getTimeStamp(); + return (hasDoubleTap() && ((now-doubleTapStartTime) <= options.doubleTapThreshold)); + } + + /** + * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past. + * @return Boolean + * @inner + */ + function inDoubleTap() { + return validateDoubleTap(); + } + + + /** + * Returns true if we have a valid tap + * @return Boolean + * @inner + */ + function validateTap() { + return ((fingerCount === 1 || !SUPPORTS_TOUCH) && (isNaN(distance) || distance < options.threshold)); + } + + /** + * Returns true if we have a valid long tap + * @return Boolean + * @inner + */ + function validateLongTap() { + //slight threshold on moving finger + return ((duration > options.longTapThreshold) && (distance < DOUBLE_TAP_THRESHOLD)); + } + + /** + * Returns true if we are detecting taps and have one + * @return Boolean + * @inner + */ + function didTap() { + //Enure we dont return 0 or null for false values + return !!(validateTap() && hasTap()); + } + + + /** + * Returns true if we are detecting double taps and have one + * @return Boolean + * @inner + */ + function didDoubleTap() { + //Enure we dont return 0 or null for false values + return !!(validateDoubleTap() && hasDoubleTap()); + } + + /** + * Returns true if we are detecting long taps and have one + * @return Boolean + * @inner + */ + function didLongTap() { + //Enure we dont return 0 or null for false values + return !!(validateLongTap() && hasLongTap()); + } + + + + + // MULTI FINGER TOUCH + /** + * Starts tracking the time between 2 finger releases, and keeps track of how many fingers we initially had up + * @inner + */ + function startMultiFingerRelease() { + previousTouchEndTime = getTimeStamp(); + fingerCountAtRelease = event.touches.length+1; + } + + /** + * Cancels the tracking of time between 2 finger releases, and resets counters + * @inner + */ + function cancelMultiFingerRelease() { + previousTouchEndTime = 0; + fingerCountAtRelease = 0; + } + + /** + * Checks if we are in the threshold between 2 fingers being released + * @return Boolean + * @inner + */ + function inMultiFingerRelease() { + + var withinThreshold = false; + + if(previousTouchEndTime) { + var diff = getTimeStamp() - previousTouchEndTime + if( diff<=options.fingerReleaseThreshold ) { + withinThreshold = true; + } + } + + return withinThreshold; + } + + + /** + * gets a data flag to indicate that a touch is in progress + * @return Boolean + * @inner + */ + function getTouchInProgress() { + //strict equality to ensure only true and false are returned + return !!($element.data(PLUGIN_NS+'_intouch') === true); + } + + /** + * Sets a data flag to indicate that a touch is in progress + * @param {boolean} val The value to set the property to + * @inner + */ + function setTouchInProgress(val) { + + //Add or remove event listeners depending on touch status + if(val===true) { + $element.bind(MOVE_EV, touchMove); + $element.bind(END_EV, touchEnd); + + //we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.bind(LEAVE_EV, touchLeave); + } + } else { + + $element.unbind(MOVE_EV, touchMove, false); + $element.unbind(END_EV, touchEnd, false); + + //we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.unbind(LEAVE_EV, touchLeave, false); + } + } + + + //strict equality to ensure only true and false can update the value + $element.data(PLUGIN_NS+'_intouch', val === true); + } + + + /** + * Creates the finger data for the touch/finger in the event object. + * @param {int} id The id to store the finger data under (usually the order the fingers were pressed) + * @param {object} evt The event object containing finger data + * @return finger data object + * @inner + */ + function createFingerData(id, evt) { + var f = { + start:{ x: 0, y: 0 }, + end:{ x: 0, y: 0 } + }; + f.start.x = f.end.x = evt.pageX||evt.clientX; + f.start.y = f.end.y = evt.pageY||evt.clientY; + fingerData[id] = f; + return f; + } + + /** + * Updates the finger data for a particular event object + * @param {object} evt The event object containing the touch/finger data to upadte + * @return a finger data object. + * @inner + */ + function updateFingerData(evt) { + var id = evt.identifier!==undefined ? evt.identifier : 0; + var f = getFingerData( id ); + + if (f === null) { + f = createFingerData(id, evt); + } + + f.end.x = evt.pageX||evt.clientX; + f.end.y = evt.pageY||evt.clientY; + + return f; + } + + /** + * Returns a finger data object by its event ID. + * Each touch event has an identifier property, which is used + * to track repeat touches + * @param {int} id The unique id of the finger in the sequence of touch events. + * @return a finger data object. + * @inner + */ + function getFingerData(id) { + return fingerData[id] || null; + } + + + /** + * Sets the maximum distance swiped in the given direction. + * If the new value is lower than the current value, the max value is not changed. + * @param {string} direction The direction of the swipe + * @param {int} distance The distance of the swipe + * @inner + */ + function setMaxDistance(direction, distance) { + distance = Math.max(distance, getMaxDistance(direction) ); + maximumsMap[direction].distance = distance; + } + + /** + * gets the maximum distance swiped in the given direction. + * @param {string} direction The direction of the swipe + * @return int The distance of the swipe + * @inner + */ + function getMaxDistance(direction) { + if (maximumsMap[direction]) return maximumsMap[direction].distance; + return undefined; + } + + /** + * Creats a map of directions to maximum swiped values. + * @return Object A dictionary of maximum values, indexed by direction. + * @inner + */ + function createMaximumsData() { + var maxData={}; + maxData[LEFT]=createMaximumVO(LEFT); + maxData[RIGHT]=createMaximumVO(RIGHT); + maxData[UP]=createMaximumVO(UP); + maxData[DOWN]=createMaximumVO(DOWN); + + return maxData; + } + + /** + * Creates a map maximum swiped values for a given swipe direction + * @param {string} The direction that these values will be associated with + * @return Object Maximum values + * @inner + */ + function createMaximumVO(dir) { + return { + direction:dir, + distance:0 + } + } + + + // + // MATHS / UTILS + // + + /** + * Calculate the duration of the swipe + * @return int + * @inner + */ + function calculateDuration() { + return endTime - startTime; + } + + /** + * Calculate the distance between 2 touches (pinch) + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return int; + * @inner + */ + function calculateTouchesDistance(startPoint, endPoint) { + var diffX = Math.abs(startPoint.x - endPoint.x); + var diffY = Math.abs(startPoint.y - endPoint.y); + + return Math.round(Math.sqrt(diffX*diffX+diffY*diffY)); + } + + /** + * Calculate the zoom factor between the start and end distances + * @param {int} startDistance Distance (between 2 fingers) the user started pinching at + * @param {int} endDistance Distance (between 2 fingers) the user ended pinching at + * @return float The zoom value from 0 to 1. + * @inner + */ + function calculatePinchZoom(startDistance, endDistance) { + var percent = (endDistance/startDistance) * 1; + return percent.toFixed(2); + } + + + /** + * Returns the pinch direction, either IN or OUT for the given points + * @return string Either {@link $.fn.swipe.directions.IN} or {@link $.fn.swipe.directions.OUT} + * @see $.fn.swipe.directions + * @inner + */ + function calculatePinchDirection() { + if(pinchZoom<1) { + return OUT; + } + else { + return IN; + } + } + + + /** + * Calculate the length / distance of the swipe + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return int + * @inner + */ + function calculateDistance(startPoint, endPoint) { + return Math.round(Math.sqrt(Math.pow(endPoint.x - startPoint.x, 2) + Math.pow(endPoint.y - startPoint.y, 2))); + } + + /** + * Calculate the angle of the swipe + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return int + * @inner + */ + function calculateAngle(startPoint, endPoint) { + var x = startPoint.x - endPoint.x; + var y = endPoint.y - startPoint.y; + var r = Math.atan2(y, x); //radians + var angle = Math.round(r * 180 / Math.PI); //degrees + + //ensure value is positive + if (angle < 0) { + angle = 360 - Math.abs(angle); + } + + return angle; + } + + /** + * Calculate the direction of the swipe + * This will also call calculateAngle to get the latest angle of swipe + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return string Either {@link $.fn.swipe.directions.LEFT} / {@link $.fn.swipe.directions.RIGHT} / {@link $.fn.swipe.directions.DOWN} / {@link $.fn.swipe.directions.UP} + * @see $.fn.swipe.directions + * @inner + */ + function calculateDirection(startPoint, endPoint ) { + var angle = calculateAngle(startPoint, endPoint); + + if ((angle <= 45) && (angle >= 0)) { + return LEFT; + } else if ((angle <= 360) && (angle >= 315)) { + return LEFT; + } else if ((angle >= 135) && (angle <= 225)) { + return RIGHT; + } else if ((angle > 45) && (angle < 135)) { + return DOWN; + } else { + return UP; + } + } + + + /** + * Returns a MS time stamp of the current time + * @return int + * @inner + */ + function getTimeStamp() { + var now = new Date(); + return now.getTime(); + } + + + + /** + * Returns a bounds object with left, right, top and bottom properties for the element specified. + * @param {DomNode} The DOM node to get the bounds for. + */ + function getbounds( el ) { + el = $(el); + var offset = el.offset(); + + var bounds = { + left:offset.left, + right:offset.left+el.outerWidth(), + top:offset.top, + bottom:offset.top+el.outerHeight() + } + + return bounds; + } + + + /** + * Checks if the point object is in the bounds object. + * @param {object} point A point object. + * @param {int} point.x The x value of the point. + * @param {int} point.y The x value of the point. + * @param {object} bounds The bounds object to test + * @param {int} bounds.left The leftmost value + * @param {int} bounds.right The righttmost value + * @param {int} bounds.top The topmost value + * @param {int} bounds.bottom The bottommost value + */ + function isInBounds(point, bounds) { + return (point.x > bounds.left && point.x < bounds.right && point.y > bounds.top && point.y < bounds.bottom); + }; + + + } + + + + +/** + * A catch all handler that is triggered for all swipe directions. + * @name $.fn.swipe#swipe + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + + + + +/** + * A handler that is triggered for "left" swipes. + * @name $.fn.swipe#swipeLeft + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "right" swipes. + * @name $.fn.swipe#swipeRight + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "up" swipes. + * @name $.fn.swipe#swipeUp + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "down" swipes. + * @name $.fn.swipe#swipeDown + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for every phase of the swipe. This handler is constantly fired for the duration of the pinch. + * This is triggered regardless of swipe thresholds. + * @name $.fn.swipe#swipeStatus + * @event + * @default null + * @param {EventObject} event The original event object + * @param {string} phase The phase of the swipe event. See {@link $.fn.swipe.phases} + * @param {string} direction The direction the user swiped in. This is null if the user has yet to move. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped. This is 0 if the user has yet to move. + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for pinch in events. + * @name $.fn.swipe#pinchIn + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for pinch out events. + * @name $.fn.swipe#pinchOut + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for all pinch events. This handler is constantly fired for the duration of the pinch. This is triggered regardless of thresholds. + * @name $.fn.swipe#pinchStatus + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A click handler triggered when a user simply clicks, rather than swipes on an element. + * This is deprecated since version 1.6.2, any assignment to click will be assigned to the tap handler. + * You cannot use on to bind to this event as the default jQ click event will be triggered. + * Use the tap event instead. + * @name $.fn.swipe#click + * @event + * @deprecated since version 1.6.2, please use {@link $.fn.swipe#tap} instead + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A click / tap handler triggered when a user simply clicks or taps, rather than swipes on an element. + * @name $.fn.swipe#tap + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + +/** + * A double tap handler triggered when a user double clicks or taps on an element. + * You can set the time delay for a double tap with the {@link $.fn.swipe.defaults#doubleTapThreshold} property. + * Note: If you set both doubleTap and tap handlers, the tap event will be delayed by the doubleTapThreshold + * as the script needs to check if its a double tap. + * @name $.fn.swipe#doubleTap + * @see $.fn.swipe.defaults#doubleTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A long tap handler triggered once a tap has been release if the tap was longer than the longTapThreshold. + * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. + * @name $.fn.swipe#longTap + * @see $.fn.swipe.defaults#longTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A hold tap handler triggered as soon as the longTapThreshold is reached + * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. + * @name $.fn.swipe#hold + * @see $.fn.swipe.defaults#longTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + +})); + + +// THEMEPUNCH INTERNAL HANDLINGS +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() {}; +} + +// THEMEPUNCH LOGS +if (window.tplogs==true) + try { + console.groupCollapsed("ThemePunch GreenSocks Logs"); + } catch(e) { } + +// SANDBOX GREENSOCK +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.15.5 + * DATE: 2016-07-08 + * UPDATES AND DOCS AT: http://greensock.com + * + * @license Copyright (c) 2008-2016, 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 = (typeof(module) !== "undefined" && module.exports && typeof(global) !== "undefined") ? global : this || window; //helps ensure compatibility with AMD/RequireJS and CommonJS/Node +(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push( function() { + + "use strict"; + + _gsScope._gsDefine("easing.Back", ["easing.Ease"], function(Ease) { + + var w = (_gsScope.GreenSockGlobals || _gsScope), + gs = w.com.greensock, + _2PI = Math.PI * 2, + _HALF_PI = Math.PI / 2, + _class = gs._class, + _create = function(n, f) { + var C = _class("easing." + n, function(){}, true), + p = C.prototype = new Ease(); + p.constructor = C; + p.getRatio = f; + return C; + }, + _easeReg = Ease.register || function(){}, //put an empty function in place just as a safety measure in case someone loads an OLD version of TweenLite.js where Ease.register doesn't exist. + _wrap = function(name, EaseOut, EaseIn, EaseInOut, aliases) { + var C = _class("easing."+name, { + easeOut:new EaseOut(), + easeIn:new EaseIn(), + easeInOut:new EaseInOut() + }, true); + _easeReg(C, name); + return C; + }, + EasePoint = function(time, value, next) { + this.t = time; + this.v = value; + if (next) { + this.next = next; + next.prev = this; + this.c = next.v - value; + this.gap = next.t - time; + } + }, + + //Back + _createBack = function(n, f) { + var C = _class("easing." + n, function(overshoot) { + this._p1 = (overshoot || overshoot === 0) ? overshoot : 1.70158; + this._p2 = this._p1 * 1.525; + }, true), + p = C.prototype = new Ease(); + p.constructor = C; + p.getRatio = f; + p.config = function(overshoot) { + return new C(overshoot); + }; + return C; + }, + + Back = _wrap("Back", + _createBack("BackOut", function(p) { + return ((p = p - 1) * p * ((this._p1 + 1) * p + this._p1) + 1); + }), + _createBack("BackIn", function(p) { + return p * p * ((this._p1 + 1) * p - this._p1); + }), + _createBack("BackInOut", function(p) { + return ((p *= 2) < 1) ? 0.5 * p * p * ((this._p2 + 1) * p - this._p2) : 0.5 * ((p -= 2) * p * ((this._p2 + 1) * p + this._p2) + 2); + }) + ), + + + //SlowMo + SlowMo = _class("easing.SlowMo", function(linearRatio, power, yoyoMode) { + power = (power || power === 0) ? power : 0.7; + if (linearRatio == null) { + linearRatio = 0.7; + } else if (linearRatio > 1) { + linearRatio = 1; + } + this._p = (linearRatio !== 1) ? power : 0; + this._p1 = (1 - linearRatio) / 2; + this._p2 = linearRatio; + this._p3 = this._p1 + this._p2; + this._calcEnd = (yoyoMode === true); + }, true), + p = SlowMo.prototype = new Ease(), + SteppedEase, RoughEase, _createElastic; + + p.constructor = SlowMo; + p.getRatio = function(p) { + var r = p + (0.5 - p) * this._p; + if (p < this._p1) { + return this._calcEnd ? 1 - ((p = 1 - (p / this._p1)) * p) : r - ((p = 1 - (p / this._p1)) * p * p * p * r); + } else if (p > this._p3) { + return this._calcEnd ? 1 - (p = (p - this._p3) / this._p1) * p : r + ((p - r) * (p = (p - this._p3) / this._p1) * p * p * p); + } + return this._calcEnd ? 1 : r; + }; + SlowMo.ease = new SlowMo(0.7, 0.7); + + p.config = SlowMo.config = function(linearRatio, power, yoyoMode) { + return new SlowMo(linearRatio, power, yoyoMode); + }; + + + //SteppedEase + SteppedEase = _class("easing.SteppedEase", function(steps) { + steps = steps || 1; + this._p1 = 1 / steps; + this._p2 = steps + 1; + }, true); + p = SteppedEase.prototype = new Ease(); + p.constructor = SteppedEase; + p.getRatio = function(p) { + if (p < 0) { + p = 0; + } else if (p >= 1) { + p = 0.999999999; + } + return ((this._p2 * p) >> 0) * this._p1; + }; + p.config = SteppedEase.config = function(steps) { + return new SteppedEase(steps); + }; + + + //RoughEase + RoughEase = _class("easing.RoughEase", function(vars) { + vars = vars || {}; + var taper = vars.taper || "none", + a = [], + cnt = 0, + points = (vars.points || 20) | 0, + i = points, + randomize = (vars.randomize !== false), + clamp = (vars.clamp === true), + template = (vars.template instanceof Ease) ? vars.template : null, + strength = (typeof(vars.strength) === "number") ? vars.strength * 0.4 : 0.4, + x, y, bump, invX, obj, pnt; + while (--i > -1) { + x = randomize ? Math.random() : (1 / points) * i; + y = template ? template.getRatio(x) : x; + if (taper === "none") { + bump = strength; + } else if (taper === "out") { + invX = 1 - x; + bump = invX * invX * strength; + } else if (taper === "in") { + bump = x * x * strength; + } else if (x < 0.5) { //"both" (start) + invX = x * 2; + bump = invX * invX * 0.5 * strength; + } else { //"both" (end) + invX = (1 - x) * 2; + bump = invX * invX * 0.5 * strength; + } + if (randomize) { + y += (Math.random() * bump) - (bump * 0.5); + } else if (i % 2) { + y += bump * 0.5; + } else { + y -= bump * 0.5; + } + if (clamp) { + if (y > 1) { + y = 1; + } else if (y < 0) { + y = 0; + } + } + a[cnt++] = {x:x, y:y}; + } + a.sort(function(a, b) { + return a.x - b.x; + }); + + pnt = new EasePoint(1, 1, null); + i = points; + while (--i > -1) { + obj = a[i]; + pnt = new EasePoint(obj.x, obj.y, pnt); + } + + this._prev = new EasePoint(0, 0, (pnt.t !== 0) ? pnt : pnt.next); + }, true); + p = RoughEase.prototype = new Ease(); + p.constructor = RoughEase; + p.getRatio = function(p) { + var pnt = this._prev; + if (p > pnt.t) { + while (pnt.next && p >= pnt.t) { + pnt = pnt.next; + } + pnt = pnt.prev; + } else { + while (pnt.prev && p <= pnt.t) { + pnt = pnt.prev; + } + } + this._prev = pnt; + return (pnt.v + ((p - pnt.t) / pnt.gap) * pnt.c); + }; + p.config = function(vars) { + return new RoughEase(vars); + }; + RoughEase.ease = new RoughEase(); + + + //Bounce + _wrap("Bounce", + _create("BounceOut", function(p) { + if (p < 1 / 2.75) { + return 7.5625 * p * p; + } else if (p < 2 / 2.75) { + return 7.5625 * (p -= 1.5 / 2.75) * p + 0.75; + } else if (p < 2.5 / 2.75) { + return 7.5625 * (p -= 2.25 / 2.75) * p + 0.9375; + } + return 7.5625 * (p -= 2.625 / 2.75) * p + 0.984375; + }), + _create("BounceIn", function(p) { + if ((p = 1 - p) < 1 / 2.75) { + return 1 - (7.5625 * p * p); + } else if (p < 2 / 2.75) { + return 1 - (7.5625 * (p -= 1.5 / 2.75) * p + 0.75); + } else if (p < 2.5 / 2.75) { + return 1 - (7.5625 * (p -= 2.25 / 2.75) * p + 0.9375); + } + return 1 - (7.5625 * (p -= 2.625 / 2.75) * p + 0.984375); + }), + _create("BounceInOut", function(p) { + var invert = (p < 0.5); + if (invert) { + p = 1 - (p * 2); + } else { + p = (p * 2) - 1; + } + if (p < 1 / 2.75) { + p = 7.5625 * p * p; + } else if (p < 2 / 2.75) { + p = 7.5625 * (p -= 1.5 / 2.75) * p + 0.75; + } else if (p < 2.5 / 2.75) { + p = 7.5625 * (p -= 2.25 / 2.75) * p + 0.9375; + } else { + p = 7.5625 * (p -= 2.625 / 2.75) * p + 0.984375; + } + return invert ? (1 - p) * 0.5 : p * 0.5 + 0.5; + }) + ); + + + //CIRC + _wrap("Circ", + _create("CircOut", function(p) { + return Math.sqrt(1 - (p = p - 1) * p); + }), + _create("CircIn", function(p) { + return -(Math.sqrt(1 - (p * p)) - 1); + }), + _create("CircInOut", function(p) { + return ((p*=2) < 1) ? -0.5 * (Math.sqrt(1 - p * p) - 1) : 0.5 * (Math.sqrt(1 - (p -= 2) * p) + 1); + }) + ); + + + //Elastic + _createElastic = function(n, f, def) { + var C = _class("easing." + n, function(amplitude, period) { + this._p1 = (amplitude >= 1) ? amplitude : 1; //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1. + this._p2 = (period || def) / (amplitude < 1 ? amplitude : 1); + this._p3 = this._p2 / _2PI * (Math.asin(1 / this._p1) || 0); + this._p2 = _2PI / this._p2; //precalculate to optimize + }, true), + p = C.prototype = new Ease(); + p.constructor = C; + p.getRatio = f; + p.config = function(amplitude, period) { + return new C(amplitude, period); + }; + return C; + }; + _wrap("Elastic", + _createElastic("ElasticOut", function(p) { + return this._p1 * Math.pow(2, -10 * p) * Math.sin( (p - this._p3) * this._p2 ) + 1; + }, 0.3), + _createElastic("ElasticIn", function(p) { + return -(this._p1 * Math.pow(2, 10 * (p -= 1)) * Math.sin( (p - this._p3) * this._p2 )); + }, 0.3), + _createElastic("ElasticInOut", function(p) { + return ((p *= 2) < 1) ? -0.5 * (this._p1 * Math.pow(2, 10 * (p -= 1)) * Math.sin( (p - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 *(p -= 1)) * Math.sin( (p - this._p3) * this._p2 ) * 0.5 + 1; + }, 0.45) + ); + + + //Expo + _wrap("Expo", + _create("ExpoOut", function(p) { + return 1 - Math.pow(2, -10 * p); + }), + _create("ExpoIn", function(p) { + return Math.pow(2, 10 * (p - 1)) - 0.001; + }), + _create("ExpoInOut", function(p) { + return ((p *= 2) < 1) ? 0.5 * Math.pow(2, 10 * (p - 1)) : 0.5 * (2 - Math.pow(2, -10 * (p - 1))); + }) + ); + + + //Sine + _wrap("Sine", + _create("SineOut", function(p) { + return Math.sin(p * _HALF_PI); + }), + _create("SineIn", function(p) { + return -Math.cos(p * _HALF_PI) + 1; + }), + _create("SineInOut", function(p) { + return -0.5 * (Math.cos(Math.PI * p) - 1); + }) + ); + + _class("easing.EaseLookup", { + find:function(s) { + return Ease.map[s]; + } + }, true); + + //register the non-standard eases + _easeReg(w.SlowMo, "SlowMo", "ease,"); + _easeReg(RoughEase, "RoughEase", "ease,"); + _easeReg(SteppedEase, "SteppedEase", "ease,"); + + return Back; + + }, true); + +}); if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } + +//export to AMD/RequireJS and CommonJS/Node (precursor to full modular build system coming at a later date) +(function() { + "use strict"; + var getGlobal = function() { + return (_gsScope.GreenSockGlobals || _gsScope); + }; + if (typeof(define) === "function" && define.amd) { //AMD + define(["TweenLite"], getGlobal); + } else if (typeof(module) !== "undefined" && module.exports) { //node + require("../TweenLite.js"); + module.exports = getGlobal(); + } +}()); + + +/*! + * VERSION: 1.18.6 + * DATE: 2016-07-08 + * UPDATES AND DOCS AT: http://greensock.com + * + * @license Copyright (c) 2008-2016, 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 = (typeof(module) !== "undefined" && module.exports && typeof(global) !== "undefined") ? global : this || window; //helps ensure compatibility with AMD/RequireJS and CommonJS/Node +(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push( function() { + + "use strict"; + + _gsScope._gsDefine("TimelineLite", ["core.Animation","core.SimpleTimeline","TweenLite"], function(Animation, SimpleTimeline, TweenLite) { + + var TimelineLite = function(vars) { + SimpleTimeline.call(this, vars); + this._labels = {}; + this.autoRemoveChildren = (this.vars.autoRemoveChildren === true); + this.smoothChildTiming = (this.vars.smoothChildTiming === true); + this._sortChildren = true; + this._onUpdate = this.vars.onUpdate; + var v = this.vars, + val, p; + for (p in v) { + val = v[p]; + if (_isArray(val)) if (val.join("").indexOf("{self}") !== -1) { + v[p] = this._swapSelfInParams(val); + } + } + if (_isArray(v.tweens)) { + this.add(v.tweens, 0, v.align, v.stagger); + } + }, + _tinyNum = 0.0000000001, + TweenLiteInternals = TweenLite._internals, + _internals = TimelineLite._internals = {}, + _isSelector = TweenLiteInternals.isSelector, + _isArray = TweenLiteInternals.isArray, + _lazyTweens = TweenLiteInternals.lazyTweens, + _lazyRender = TweenLiteInternals.lazyRender, + _globals = _gsScope._gsDefine.globals, + _copy = function(vars) { + var copy = {}, p; + for (p in vars) { + copy[p] = vars[p]; + } + return copy; + }, + _applyCycle = function(vars, targets, i) { + var alt = vars.cycle, + p, val; + for (p in alt) { + val = alt[p]; + vars[p] = (typeof(val) === "function") ? val(i, targets[i]) : val[i % val.length]; + } + delete vars.cycle; + }, + _pauseCallback = _internals.pauseCallback = function() {}, + _slice = function(a) { //don't use [].slice because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll() + var b = [], + l = a.length, + i; + for (i = 0; i !== l; b.push(a[i++])); + return b; + }, + p = TimelineLite.prototype = new SimpleTimeline(); + + TimelineLite.version = "1.19.0"; + p.constructor = TimelineLite; + p.kill()._gc = p._forcingPlayhead = p._hasPause = false; + + /* might use later... + //translates a local time inside an animation to the corresponding time on the root/global timeline, factoring in all nesting and timeScales. + function localToGlobal(time, animation) { + while (animation) { + time = (time / animation._timeScale) + animation._startTime; + animation = animation.timeline; + } + return time; + } + + //translates the supplied time on the root/global timeline into the corresponding local time inside a particular animation, factoring in all nesting and timeScales + function globalToLocal(time, animation) { + var scale = 1; + time -= localToGlobal(0, animation); + while (animation) { + scale *= animation._timeScale; + animation = animation.timeline; + } + return time * scale; + } + */ + + p.to = function(target, duration, vars, position) { + var Engine = (vars.repeat && _globals.TweenMax) || TweenLite; + return duration ? this.add( new Engine(target, duration, vars), position) : this.set(target, vars, position); + }; + + p.from = function(target, duration, vars, position) { + return this.add( ((vars.repeat && _globals.TweenMax) || TweenLite).from(target, duration, vars), position); + }; + + p.fromTo = function(target, duration, fromVars, toVars, position) { + var Engine = (toVars.repeat && _globals.TweenMax) || TweenLite; + return duration ? this.add( Engine.fromTo(target, duration, fromVars, toVars), position) : this.set(target, toVars, position); + }; + + p.staggerTo = function(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) { + var tl = new TimelineLite({onComplete:onCompleteAll, onCompleteParams:onCompleteAllParams, callbackScope:onCompleteAllScope, smoothChildTiming:this.smoothChildTiming}), + cycle = vars.cycle, + copy, i; + if (typeof(targets) === "string") { + targets = TweenLite.selector(targets) || targets; + } + targets = targets || []; + if (_isSelector(targets)) { //senses if the targets object is a selector. If it is, we should translate it into an array. + targets = _slice(targets); + } + stagger = stagger || 0; + if (stagger < 0) { + targets = _slice(targets); + targets.reverse(); + stagger *= -1; + } + for (i = 0; i < targets.length; i++) { + copy = _copy(vars); + if (copy.startAt) { + copy.startAt = _copy(copy.startAt); + if (copy.startAt.cycle) { + _applyCycle(copy.startAt, targets, i); + } + } + if (cycle) { + _applyCycle(copy, targets, i); + if (copy.duration != null) { + duration = copy.duration; + delete copy.duration; + } + } + tl.to(targets[i], duration, copy, i * stagger); + } + return this.add(tl, position); + }; + + p.staggerFrom = function(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) { + vars.immediateRender = (vars.immediateRender != false); + vars.runBackwards = true; + return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope); + }; + + p.staggerFromTo = function(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) { + toVars.startAt = fromVars; + toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false); + return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope); + }; + + p.call = function(callback, params, scope, position) { + return this.add( TweenLite.delayedCall(0, callback, params, scope), position); + }; + + p.set = function(target, vars, position) { + position = this._parseTimeOrLabel(position, 0, true); + if (vars.immediateRender == null) { + vars.immediateRender = (position === this._time && !this._paused); + } + return this.add( new TweenLite(target, 0, vars), position); + }; + + TimelineLite.exportRoot = function(vars, ignoreDelayedCalls) { + vars = vars || {}; + if (vars.smoothChildTiming == null) { + vars.smoothChildTiming = true; + } + var tl = new TimelineLite(vars), + root = tl._timeline, + tween, next; + if (ignoreDelayedCalls == null) { + ignoreDelayedCalls = true; + } + root._remove(tl, true); + tl._startTime = 0; + tl._rawPrevTime = tl._time = tl._totalTime = root._time; + tween = root._first; + while (tween) { + next = tween._next; + if (!ignoreDelayedCalls || !(tween instanceof TweenLite && tween.target === tween.vars.onComplete)) { + tl.add(tween, tween._startTime - tween._delay); + } + tween = next; + } + root.add(tl, 0); + return tl; + }; + + p.add = function(value, position, align, stagger) { + var curTime, l, i, child, tl, beforeRawTime; + if (typeof(position) !== "number") { + position = this._parseTimeOrLabel(position, 0, true, value); + } + if (!(value instanceof Animation)) { + if ((value instanceof Array) || (value && value.push && _isArray(value))) { + align = align || "normal"; + stagger = stagger || 0; + curTime = position; + l = value.length; + for (i = 0; i < l; i++) { + if (_isArray(child = value[i])) { + child = new TimelineLite({tweens:child}); + } + this.add(child, curTime); + if (typeof(child) !== "string" && typeof(child) !== "function") { + if (align === "sequence") { + curTime = child._startTime + (child.totalDuration() / child._timeScale); + } else if (align === "start") { + child._startTime -= child.delay(); + } + } + curTime += stagger; + } + return this._uncache(true); + } else if (typeof(value) === "string") { + return this.addLabel(value, position); + } else if (typeof(value) === "function") { + value = TweenLite.delayedCall(0, value); + } else { + throw("Cannot add " + value + " into the timeline; it is not a tween, timeline, function, or string."); + } + } + + SimpleTimeline.prototype.add.call(this, value, position); + + //if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate. + if (this._gc || this._time === this._duration) if (!this._paused) if (this._duration < this.duration()) { + //in case any of the ancestors had completed but should now be enabled... + tl = this; + beforeRawTime = (tl.rawTime() > value._startTime); //if the tween is placed on the timeline so that it starts BEFORE the current rawTime, we should align the playhead (move the timeline). This is because sometimes users will create a timeline, let it finish, and much later append a tween and expect it to run instead of jumping to its end state. While technically one could argue that it should jump to its end state, that's not what users intuitively expect. + while (tl._timeline) { + if (beforeRawTime && tl._timeline.smoothChildTiming) { + tl.totalTime(tl._totalTime, true); //moves the timeline (shifts its startTime) if necessary, and also enables it. + } else if (tl._gc) { + tl._enabled(true, false); + } + tl = tl._timeline; + } + } + + return this; + }; + + p.remove = function(value) { + if (value instanceof Animation) { + this._remove(value, false); + var tl = value._timeline = value.vars.useFrames ? Animation._rootFramesTimeline : Animation._rootTimeline; //now that it's removed, default it to the root timeline so that if it gets played again, it doesn't jump back into this timeline. + value._startTime = (value._paused ? value._pauseTime : tl._time) - ((!value._reversed ? value._totalTime : value.totalDuration() - value._totalTime) / value._timeScale); //ensure that if it gets played again, the timing is correct. + return this; + } else if (value instanceof Array || (value && value.push && _isArray(value))) { + var i = value.length; + while (--i > -1) { + this.remove(value[i]); + } + return this; + } else if (typeof(value) === "string") { + return this.removeLabel(value); + } + return this.kill(null, value); + }; + + p._remove = function(tween, skipDisable) { + SimpleTimeline.prototype._remove.call(this, tween, skipDisable); + var last = this._last; + if (!last) { + this._time = this._totalTime = this._duration = this._totalDuration = 0; + } else if (this._time > last._startTime + last._totalDuration / last._timeScale) { + this._time = this.duration(); + this._totalTime = this._totalDuration; + } + return this; + }; + + p.append = function(value, offsetOrLabel) { + return this.add(value, this._parseTimeOrLabel(null, offsetOrLabel, true, value)); + }; + + p.insert = p.insertMultiple = function(value, position, align, stagger) { + return this.add(value, position || 0, align, stagger); + }; + + p.appendMultiple = function(tweens, offsetOrLabel, align, stagger) { + return this.add(tweens, this._parseTimeOrLabel(null, offsetOrLabel, true, tweens), align, stagger); + }; + + p.addLabel = function(label, position) { + this._labels[label] = this._parseTimeOrLabel(position); + return this; + }; + + p.addPause = function(position, callback, params, scope) { + var t = TweenLite.delayedCall(0, _pauseCallback, params, scope || this); + t.vars.onComplete = t.vars.onReverseComplete = callback; + t.data = "isPause"; + this._hasPause = true; + return this.add(t, position); + }; + + p.removeLabel = function(label) { + delete this._labels[label]; + return this; + }; + + p.getLabelTime = function(label) { + return (this._labels[label] != null) ? this._labels[label] : -1; + }; + + p._parseTimeOrLabel = function(timeOrLabel, offsetOrLabel, appendIfAbsent, ignore) { + var i; + //if we're about to add a tween/timeline (or an array of them) that's already a child of this timeline, we should remove it first so that it doesn't contaminate the duration(). + if (ignore instanceof Animation && ignore.timeline === this) { + this.remove(ignore); + } else if (ignore && ((ignore instanceof Array) || (ignore.push && _isArray(ignore)))) { + i = ignore.length; + while (--i > -1) { + if (ignore[i] instanceof Animation && ignore[i].timeline === this) { + this.remove(ignore[i]); + } + } + } + if (typeof(offsetOrLabel) === "string") { + return this._parseTimeOrLabel(offsetOrLabel, (appendIfAbsent && typeof(timeOrLabel) === "number" && this._labels[offsetOrLabel] == null) ? timeOrLabel - this.duration() : 0, appendIfAbsent); + } + offsetOrLabel = offsetOrLabel || 0; + if (typeof(timeOrLabel) === "string" && (isNaN(timeOrLabel) || this._labels[timeOrLabel] != null)) { //if the string is a number like "1", check to see if there's a label with that name, otherwise interpret it as a number (absolute value). + i = timeOrLabel.indexOf("="); + if (i === -1) { + if (this._labels[timeOrLabel] == null) { + return appendIfAbsent ? (this._labels[timeOrLabel] = this.duration() + offsetOrLabel) : offsetOrLabel; + } + return this._labels[timeOrLabel] + offsetOrLabel; + } + offsetOrLabel = parseInt(timeOrLabel.charAt(i-1) + "1", 10) * Number(timeOrLabel.substr(i+1)); + timeOrLabel = (i > 1) ? this._parseTimeOrLabel(timeOrLabel.substr(0, i-1), 0, appendIfAbsent) : this.duration(); + } else if (timeOrLabel == null) { + timeOrLabel = this.duration(); + } + return Number(timeOrLabel) + offsetOrLabel; + }; + + p.seek = function(position, suppressEvents) { + return this.totalTime((typeof(position) === "number") ? position : this._parseTimeOrLabel(position), (suppressEvents !== false)); + }; + + p.stop = function() { + return this.paused(true); + }; + + p.gotoAndPlay = function(position, suppressEvents) { + return this.play(position, suppressEvents); + }; + + p.gotoAndStop = function(position, suppressEvents) { + return this.pause(position, suppressEvents); + }; + + p.render = function(time, suppressEvents, force) { + if (this._gc) { + this._enabled(true, false); + } + var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(), + prevTime = this._time, + prevStart = this._startTime, + prevTimeScale = this._timeScale, + prevPaused = this._paused, + tween, isComplete, next, callback, internalForce, pauseTween, curTime; + if (time >= totalDur - 0.0000001) { //to work around occasional floating point math artifacts. + this._totalTime = this._time = totalDur; + if (!this._reversed) if (!this._hasPausedChild()) { + isComplete = true; + callback = "onComplete"; + internalForce = !!this._timeline.autoRemoveChildren; //otherwise, if the animation is unpaused/activated after it's already finished, it doesn't get removed from the parent timeline. + if (this._duration === 0) if ((time <= 0 && time >= -0.0000001) || this._rawPrevTime < 0 || this._rawPrevTime === _tinyNum) if (this._rawPrevTime !== time && this._first) { + internalForce = true; + if (this._rawPrevTime > _tinyNum) { + callback = "onReverseComplete"; + } + } + } + this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient. + time = totalDur + 0.0001; //to avoid occasional floating point rounding errors - sometimes child tweens/timelines were not being fully completed (their progress might be 0.999999999999998 instead of 1 because when _time - tween._startTime is performed, floating point errors would return a value that was SLIGHTLY off). Try (999999999999.7 - 999999999999) * 1 = 0.699951171875 instead of 0.7. + + } else if (time < 0.0000001) { //to work around occasional floating point math artifacts, round super small values to 0. + this._totalTime = this._time = 0; + if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime !== _tinyNum && (this._rawPrevTime > 0 || (time < 0 && this._rawPrevTime >= 0)))) { + callback = "onReverseComplete"; + isComplete = this._reversed; + } + if (time < 0) { + this._active = false; + if (this._timeline.autoRemoveChildren && this._reversed) { //ensures proper GC if a timeline is resumed after it's finished reversing. + internalForce = isComplete = true; + callback = "onReverseComplete"; + } else if (this._rawPrevTime >= 0 && this._first) { //when going back beyond the start, force a render so that zero-duration tweens that sit at the very beginning render their start values properly. Otherwise, if the parent timeline's playhead lands exactly at this timeline's startTime, and then moves backwards, the zero-duration tweens at the beginning would still be at their end state. + internalForce = true; + } + this._rawPrevTime = time; + } else { + this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient. + if (time === 0 && isComplete) { //if there's a zero-duration tween at the very beginning of a timeline and the playhead lands EXACTLY at time 0, that tween will correctly render its end values, but we need to keep the timeline alive for one more render so that the beginning values render properly as the parent's playhead keeps moving beyond the begining. Imagine obj.x starts at 0 and then we do tl.set(obj, {x:100}).to(obj, 1, {x:200}) and then later we tl.reverse()...the goal is to have obj.x revert to 0. If the playhead happens to land on exactly 0, without this chunk of code, it'd complete the timeline and remove it from the rendering queue (not good). + tween = this._first; + while (tween && tween._startTime === 0) { + if (!tween._duration) { + isComplete = false; + } + tween = tween._next; + } + } + time = 0; //to avoid occasional floating point rounding errors (could cause problems especially with zero-duration tweens at the very beginning of the timeline) + if (!this._initted) { + internalForce = true; + } + } + + } else { + + if (this._hasPause && !this._forcingPlayhead && !suppressEvents) { + if (time >= prevTime) { + tween = this._first; + while (tween && tween._startTime <= time && !pauseTween) { + if (!tween._duration) if (tween.data === "isPause" && !tween.ratio && !(tween._startTime === 0 && this._rawPrevTime === 0)) { + pauseTween = tween; + } + tween = tween._next; + } + } else { + tween = this._last; + while (tween && tween._startTime >= time && !pauseTween) { + if (!tween._duration) if (tween.data === "isPause" && tween._rawPrevTime > 0) { + pauseTween = tween; + } + tween = tween._prev; + } + } + if (pauseTween) { + this._time = time = pauseTween._startTime; + this._totalTime = time + (this._cycle * (this._totalDuration + this._repeatDelay)); + } + } + + this._totalTime = this._time = this._rawPrevTime = time; + } + if ((this._time === prevTime || !this._first) && !force && !internalForce && !pauseTween) { + return; + } else if (!this._initted) { + this._initted = true; + } + + if (!this._active) if (!this._paused && this._time !== prevTime && time > 0) { + this._active = true; //so that if the user renders the timeline (as opposed to the parent timeline rendering it), it is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the timeline already finished but the user manually re-renders it as halfway done, for example. + } + + if (prevTime === 0) if (this.vars.onStart) if (this._time !== 0 || !this._duration) if (!suppressEvents) { + this._callback("onStart"); + } + + curTime = this._time; + if (curTime >= prevTime) { + tween = this._first; + while (tween) { + next = tween._next; //record it here because the value could change after rendering... + if (curTime !== this._time || (this._paused && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete + break; + } else if (tween._active || (tween._startTime <= curTime && !tween._paused && !tween._gc)) { + if (pauseTween === tween) { + this.pause(); + } + if (!tween._reversed) { + tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force); + } else { + tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force); + } + } + tween = next; + } + } else { + tween = this._last; + while (tween) { + next = tween._prev; //record it here because the value could change after rendering... + if (curTime !== this._time || (this._paused && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete + break; + } else if (tween._active || (tween._startTime <= prevTime && !tween._paused && !tween._gc)) { + if (pauseTween === tween) { + pauseTween = tween._prev; //the linked list is organized by _startTime, thus it's possible that a tween could start BEFORE the pause and end after it, in which case it would be positioned before the pause tween in the linked list, but we should render it before we pause() the timeline and cease rendering. This is only a concern when going in reverse. + while (pauseTween && pauseTween.endTime() > this._time) { + pauseTween.render( (pauseTween._reversed ? pauseTween.totalDuration() - ((time - pauseTween._startTime) * pauseTween._timeScale) : (time - pauseTween._startTime) * pauseTween._timeScale), suppressEvents, force); + pauseTween = pauseTween._prev; + } + pauseTween = null; + this.pause(); + } + if (!tween._reversed) { + tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force); + } else { + tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force); + } + } + tween = next; + } + } + + if (this._onUpdate) if (!suppressEvents) { + if (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values. + _lazyRender(); + } + this._callback("onUpdate"); + } + + if (callback) if (!this._gc) if (prevStart === this._startTime || prevTimeScale !== this._timeScale) if (this._time === 0 || totalDur >= this.totalDuration()) { //if one of the tweens that was rendered altered this timeline's startTime (like if an onComplete reversed the timeline), it probably isn't complete. If it is, don't worry, because whatever call altered the startTime would complete if it was necessary at the new time. The only exception is the timeScale property. Also check _gc because there's a chance that kill() could be called in an onUpdate + if (isComplete) { + if (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onComplete on a timeline that reports/checks tweened values. + _lazyRender(); + } + if (this._timeline.autoRemoveChildren) { + this._enabled(false, false); + } + this._active = false; + } + if (!suppressEvents && this.vars[callback]) { + this._callback(callback); + } + } + }; + + p._hasPausedChild = function() { + var tween = this._first; + while (tween) { + if (tween._paused || ((tween instanceof TimelineLite) && tween._hasPausedChild())) { + return true; + } + tween = tween._next; + } + return false; + }; + + p.getChildren = function(nested, tweens, timelines, ignoreBeforeTime) { + ignoreBeforeTime = ignoreBeforeTime || -9999999999; + var a = [], + tween = this._first, + cnt = 0; + while (tween) { + if (tween._startTime < ignoreBeforeTime) { + //do nothing + } else if (tween instanceof TweenLite) { + if (tweens !== false) { + a[cnt++] = tween; + } + } else { + if (timelines !== false) { + a[cnt++] = tween; + } + if (nested !== false) { + a = a.concat(tween.getChildren(true, tweens, timelines)); + cnt = a.length; + } + } + tween = tween._next; + } + return a; + }; + + p.getTweensOf = function(target, nested) { + var disabled = this._gc, + a = [], + cnt = 0, + tweens, i; + if (disabled) { + this._enabled(true, true); //getTweensOf() filters out disabled tweens, and we have to mark them as _gc = true when the timeline completes in order to allow clean garbage collection, so temporarily re-enable the timeline here. + } + tweens = TweenLite.getTweensOf(target); + i = tweens.length; + while (--i > -1) { + if (tweens[i].timeline === this || (nested && this._contains(tweens[i]))) { + a[cnt++] = tweens[i]; + } + } + if (disabled) { + this._enabled(false, true); + } + return a; + }; + + p.recent = function() { + return this._recent; + }; + + p._contains = function(tween) { + var tl = tween.timeline; + while (tl) { + if (tl === this) { + return true; + } + tl = tl.timeline; + } + return false; + }; + + p.shiftChildren = function(amount, adjustLabels, ignoreBeforeTime) { + ignoreBeforeTime = ignoreBeforeTime || 0; + var tween = this._first, + labels = this._labels, + p; + while (tween) { + if (tween._startTime >= ignoreBeforeTime) { + tween._startTime += amount; + } + tween = tween._next; + } + if (adjustLabels) { + for (p in labels) { + if (labels[p] >= ignoreBeforeTime) { + labels[p] += amount; + } + } + } + return this._uncache(true); + }; + + p._kill = function(vars, target) { + if (!vars && !target) { + return this._enabled(false, false); + } + var tweens = (!target) ? this.getChildren(true, true, false) : this.getTweensOf(target), + i = tweens.length, + changed = false; + while (--i > -1) { + if (tweens[i]._kill(vars, target)) { + changed = true; + } + } + return changed; + }; + + p.clear = function(labels) { + var tweens = this.getChildren(false, true, true), + i = tweens.length; + this._time = this._totalTime = 0; + while (--i > -1) { + tweens[i]._enabled(false, false); + } + if (labels !== false) { + this._labels = {}; + } + return this._uncache(true); + }; + + p.invalidate = function() { + var tween = this._first; + while (tween) { + tween.invalidate(); + tween = tween._next; + } + return Animation.prototype.invalidate.call(this);; + }; + + p._enabled = function(enabled, ignoreTimeline) { + if (enabled === this._gc) { + var tween = this._first; + while (tween) { + tween._enabled(enabled, true); + tween = tween._next; + } + } + return SimpleTimeline.prototype._enabled.call(this, enabled, ignoreTimeline); + }; + + p.totalTime = function(time, suppressEvents, uncapped) { + this._forcingPlayhead = true; + var val = Animation.prototype.totalTime.apply(this, arguments); + this._forcingPlayhead = false; + return val; + }; + + p.duration = function(value) { + if (!arguments.length) { + if (this._dirty) { + this.totalDuration(); //just triggers recalculation + } + return this._duration; + } + if (this.duration() !== 0 && value !== 0) { + this.timeScale(this._duration / value); + } + return this; + }; + + p.totalDuration = function(value) { + if (!arguments.length) { + if (this._dirty) { + var max = 0, + tween = this._last, + prevStart = 999999999999, + prev, end; + while (tween) { + prev = tween._prev; //record it here in case the tween changes position in the sequence... + if (tween._dirty) { + tween.totalDuration(); //could change the tween._startTime, so make sure the tween's cache is clean before analyzing it. + } + if (tween._startTime > prevStart && this._sortChildren && !tween._paused) { //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence + this.add(tween, tween._startTime - tween._delay); + } else { + prevStart = tween._startTime; + } + if (tween._startTime < 0 && !tween._paused) { //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found. + max -= tween._startTime; + if (this._timeline.smoothChildTiming) { + this._startTime += tween._startTime / this._timeScale; + } + this.shiftChildren(-tween._startTime, false, -9999999999); + prevStart = 0; + } + end = tween._startTime + (tween._totalDuration / tween._timeScale); + if (end > max) { + max = end; + } + tween = prev; + } + this._duration = this._totalDuration = max; + this._dirty = false; + } + return this._totalDuration; + } + return (value && this.totalDuration()) ? this.timeScale(this._totalDuration / value) : this; + }; + + p.paused = function(value) { + if (!value) { //if there's a pause directly at the spot from where we're unpausing, skip it. + var tween = this._first, + time = this._time; + while (tween) { + if (tween._startTime === time && tween.data === "isPause") { + tween._rawPrevTime = 0; //remember, _rawPrevTime is how zero-duration tweens/callbacks sense directionality and determine whether or not to fire. If _rawPrevTime is the same as _startTime on the next render, it won't fire. + } + tween = tween._next; + } + } + return Animation.prototype.paused.apply(this, arguments); + }; + + p.usesFrames = function() { + var tl = this._timeline; + while (tl._timeline) { + tl = tl._timeline; + } + return (tl === Animation._rootFramesTimeline); + }; + + p.rawTime = function() { + return this._paused ? this._totalTime : (this._timeline.rawTime() - this._startTime) * this._timeScale; + }; + + return TimelineLite; + + }, true); + + +}); if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } + +//export to AMD/RequireJS and CommonJS/Node (precursor to full modular build system coming at a later date) +(function(name) { + "use strict"; + var getGlobal = function() { + return (_gsScope.GreenSockGlobals || _gsScope)[name]; + }; + if (typeof(define) === "function" && define.amd) { //AMD + define(["TweenLite"], getGlobal); + } else if (typeof(module) !== "undefined" && module.exports) { //node + require("./TweenLite.js"); //dependency + module.exports = getGlobal(); + } +}("TimelineLite")); + + +/*! + * VERSION: 1.19.0 + * DATE: 2016-07-16 + * UPDATES AND DOCS AT: http://greensock.com + * + * @license Copyright (c) 2008-2016, 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(window, moduleName) { + + "use strict"; + var _exports = {}, + _globals = window.GreenSockGlobals = window.GreenSockGlobals || window; + if (_globals.TweenLite) { + return; //in case the core set of classes is already loaded, don't instantiate twice. + } + var _namespace = function(ns) { + var a = ns.split("."), + p = _globals, i; + for (i = 0; i < a.length; i++) { + p[a[i]] = p = p[a[i]] || {}; + } + return p; + }, + gs = _namespace("com.greensock"), + _tinyNum = 0.0000000001, + _slice = function(a) { //don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll() + var b = [], + l = a.length, + i; + for (i = 0; i !== l; b.push(a[i++])) {} + return b; + }, + _emptyFunc = function() {}, + _isArray = (function() { //works around issues in iframe environments where the Array global isn't shared, thus if the object originates in a different window/iframe, "(obj instanceof Array)" will evaluate false. We added some speed optimizations to avoid Object.prototype.toString.call() unless it's absolutely necessary because it's VERY slow (like 20x slower) + var toString = Object.prototype.toString, + array = toString.call([]); + return function(obj) { + return obj != null && (obj instanceof Array || (typeof(obj) === "object" && !!obj.push && toString.call(obj) === array)); + }; + }()), + a, i, p, _ticker, _tickerActive, + _defLookup = {}, + + /** + * @constructor + * Defines a GreenSock class, optionally with an array of dependencies that must be instantiated first and passed into the definition. + * This allows users to load GreenSock JS files in any order even if they have interdependencies (like CSSPlugin extends TweenPlugin which is + * inside TweenLite.js, but if CSSPlugin is loaded first, it should wait to run its code until TweenLite.js loads and instantiates TweenPlugin + * and then pass TweenPlugin to CSSPlugin's definition). This is all done automatically and internally. + * + * Every definition will be added to a "com.greensock" global object (typically window, but if a window.GreenSockGlobals object is found, + * it will go there as of v1.7). For example, TweenLite will be found at window.com.greensock.TweenLite and since it's a global class that should be available anywhere, + * it is ALSO referenced at window.TweenLite. However some classes aren't considered global, like the base com.greensock.core.Animation class, so + * those will only be at the package like window.com.greensock.core.Animation. Again, if you define a GreenSockGlobals object on the window, everything + * gets tucked neatly inside there instead of on the window directly. This allows you to do advanced things like load multiple versions of GreenSock + * files and put them into distinct objects (imagine a banner ad uses a newer version but the main site uses an older one). In that case, you could + * sandbox the banner one like: + * + * + * + * + * + * + * + * @param {!string} ns The namespace of the class definition, leaving off "com.greensock." as that's assumed. For example, "TweenLite" or "plugins.CSSPlugin" or "easing.Back". + * @param {!Array.} dependencies An array of dependencies (described as their namespaces minus "com.greensock." prefix). For example ["TweenLite","plugins.TweenPlugin","core.Animation"] + * @param {!function():Object} func The function that should be called and passed the resolved dependencies which will return the actual class for this definition. + * @param {boolean=} global If true, the class will be added to the global scope (typically window unless you define a window.GreenSockGlobals object) + */ + Definition = function(ns, dependencies, func, global) { + this.sc = (_defLookup[ns]) ? _defLookup[ns].sc : []; //subclasses + _defLookup[ns] = this; + this.gsClass = null; + this.func = func; + var _classes = []; + this.check = function(init) { + var i = dependencies.length, + missing = i, + cur, a, n, cl, hasModule; + while (--i > -1) { + if ((cur = _defLookup[dependencies[i]] || new Definition(dependencies[i], [])).gsClass) { + _classes[i] = cur.gsClass; + missing--; + } else if (init) { + cur.sc.push(this); + } + } + if (missing === 0 && func) { + a = ("com.greensock." + ns).split("."); + n = a.pop(); + cl = _namespace(a.join("."))[n] = this.gsClass = func.apply(func, _classes); + + //exports to multiple environments + if (global) { + _globals[n] = _exports[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.) + hasModule = (typeof(module) !== "undefined" && module.exports); + if (!hasModule && typeof(define) === "function" && define.amd){ //AMD + define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").pop(), [], function() { return cl; }); + } else if (hasModule){ //node + if (ns === moduleName) { + module.exports = _exports[moduleName] = cl; + for (i in _exports) { + cl[i] = _exports[i]; + } + } else if (_exports[moduleName]) { + _exports[moduleName][n] = cl; + } + } + } + for (i = 0; i < this.sc.length; i++) { + this.sc[i].check(); + } + } + }; + this.check(true); + }, + + //used to create Definition instances (which basically registers a class that has dependencies). + _gsDefine = window._gsDefine = function(ns, dependencies, func, global) { + return new Definition(ns, dependencies, func, global); + }, + + //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class). + _class = gs._class = function(ns, func, global) { + func = func || function() {}; + _gsDefine(ns, [], function(){ return func; }, global); + return func; + }; + + _gsDefine.globals = _globals; + + + +/* + * ---------------------------------------------------------------- + * Ease + * ---------------------------------------------------------------- + */ + var _baseParams = [0, 0, 1, 1], + _blankArray = [], + Ease = _class("easing.Ease", function(func, extraParams, type, power) { + this._func = func; + this._type = type || 0; + this._power = power || 0; + this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams; + }, true), + _easeMap = Ease.map = {}, + _easeReg = Ease.register = function(ease, names, types, create) { + var na = names.split(","), + i = na.length, + ta = (types || "easeIn,easeOut,easeInOut").split(","), + e, name, j, type; + while (--i > -1) { + name = na[i]; + e = create ? _class("easing."+name, null, true) : gs.easing[name] || {}; + j = ta.length; + while (--j > -1) { + type = ta[j]; + _easeMap[name + "." + type] = _easeMap[type + name] = e[type] = ease.getRatio ? ease : ease[type] || new ease(); + } + } + }; + + p = Ease.prototype; + p._calcEnd = false; + p.getRatio = function(p) { + if (this._func) { + this._params[0] = p; + return this._func.apply(null, this._params); + } + var t = this._type, + pw = this._power, + r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2; + if (pw === 1) { + r *= r; + } else if (pw === 2) { + r *= r * r; + } else if (pw === 3) { + r *= r * r * r; + } else if (pw === 4) { + r *= r * r * r * r; + } + return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2); + }; + + //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut) + a = ["Linear","Quad","Cubic","Quart","Quint,Strong"]; + i = a.length; + while (--i > -1) { + p = a[i]+",Power"+i; + _easeReg(new Ease(null,null,1,i), p, "easeOut", true); + _easeReg(new Ease(null,null,2,i), p, "easeIn" + ((i === 0) ? ",easeNone" : "")); + _easeReg(new Ease(null,null,3,i), p, "easeInOut"); + } + _easeMap.linear = gs.easing.Linear.easeIn; + _easeMap.swing = gs.easing.Quad.easeInOut; //for jQuery folks + + +/* + * ---------------------------------------------------------------- + * EventDispatcher + * ---------------------------------------------------------------- + */ + var EventDispatcher = _class("events.EventDispatcher", function(target) { + this._listeners = {}; + this._eventTarget = target || this; + }); + p = EventDispatcher.prototype; + + p.addEventListener = function(type, callback, scope, useParam, priority) { + priority = priority || 0; + var list = this._listeners[type], + index = 0, + listener, i; + if (this === _ticker && !_tickerActive) { + _ticker.wake(); + } + if (list == null) { + this._listeners[type] = list = []; + } + i = list.length; + while (--i > -1) { + listener = list[i]; + if (listener.c === callback && listener.s === scope) { + list.splice(i, 1); + } else if (index === 0 && listener.pr < priority) { + index = i + 1; + } + } + list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority}); + }; + + p.removeEventListener = function(type, callback) { + var list = this._listeners[type], i; + if (list) { + i = list.length; + while (--i > -1) { + if (list[i].c === callback) { + list.splice(i, 1); + return; + } + } + } + }; + + p.dispatchEvent = function(type) { + var list = this._listeners[type], + i, t, listener; + if (list) { + i = list.length; + if (i > 1) { + list = list.slice(0); //in case addEventListener() is called from within a listener/callback (otherwise the index could change, resulting in a skip) + } + t = this._eventTarget; + while (--i > -1) { + listener = list[i]; + if (listener) { + if (listener.up) { + listener.c.call(listener.s || t, {type:type, target:t}); + } else { + listener.c.call(listener.s || t); + } + } + } + } + }; + + +/* + * ---------------------------------------------------------------- + * Ticker + * ---------------------------------------------------------------- + */ + var _reqAnimFrame = window.requestAnimationFrame, + _cancelAnimFrame = window.cancelAnimationFrame, + _getTime = Date.now || function() {return new Date().getTime();}, + _lastUpdate = _getTime(); + + //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill. + a = ["ms","moz","webkit","o"]; + i = a.length; + while (--i > -1 && !_reqAnimFrame) { + _reqAnimFrame = window[a[i] + "RequestAnimationFrame"]; + _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"]; + } + + _class("Ticker", function(fps, useRAF) { + var _self = this, + _startTime = _getTime(), + _useRAF = (useRAF !== false && _reqAnimFrame) ? "auto" : false, + _lagThreshold = 500, + _adjustedLag = 33, + _tickWord = "tick", //helps reduce gc burden + _fps, _req, _id, _gap, _nextTime, + _tick = function(manual) { + var elapsed = _getTime() - _lastUpdate, + overlap, dispatch; + if (elapsed > _lagThreshold) { + _startTime += elapsed - _adjustedLag; + } + _lastUpdate += elapsed; + _self.time = (_lastUpdate - _startTime) / 1000; + overlap = _self.time - _nextTime; + if (!_fps || overlap > 0 || manual === true) { + _self.frame++; + _nextTime += overlap + (overlap >= _gap ? 0.004 : _gap - overlap); + dispatch = true; + } + if (manual !== true) { //make sure the request is made before we dispatch the "tick" event so that timing is maintained. Otherwise, if processing the "tick" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise. + _id = _req(_tick); + } + if (dispatch) { + _self.dispatchEvent(_tickWord); + } + }; + + EventDispatcher.call(_self); + _self.time = _self.frame = 0; + _self.tick = function() { + _tick(true); + }; + + _self.lagSmoothing = function(threshold, adjustedLag) { + _lagThreshold = threshold || (1 / _tinyNum); //zero should be interpreted as basically unlimited + _adjustedLag = Math.min(adjustedLag, _lagThreshold, 0); + }; + + _self.sleep = function() { + if (_id == null) { + return; + } + if (!_useRAF || !_cancelAnimFrame) { + clearTimeout(_id); + } else { + _cancelAnimFrame(_id); + } + _req = _emptyFunc; + _id = null; + if (_self === _ticker) { + _tickerActive = false; + } + }; + + _self.wake = function(seamless) { + if (_id !== null) { + _self.sleep(); + } else if (seamless) { + _startTime += -_lastUpdate + (_lastUpdate = _getTime()); + } else if (_self.frame > 10) { //don't trigger lagSmoothing if we're just waking up, and make sure that at least 10 frames have elapsed because of the iOS bug that we work around below with the 1.5-second setTimout(). + _lastUpdate = _getTime() - _lagThreshold + 5; + } + _req = (_fps === 0) ? _emptyFunc : (!_useRAF || !_reqAnimFrame) ? function(f) { return setTimeout(f, ((_nextTime - _self.time) * 1000 + 1) | 0); } : _reqAnimFrame; + if (_self === _ticker) { + _tickerActive = true; + } + _tick(2); + }; + + _self.fps = function(value) { + if (!arguments.length) { + return _fps; + } + _fps = value; + _gap = 1 / (_fps || 60); + _nextTime = this.time + _gap; + _self.wake(); + }; + + _self.useRAF = function(value) { + if (!arguments.length) { + return _useRAF; + } + _self.sleep(); + _useRAF = value; + _self.fps(_fps); + }; + _self.fps(fps); + + //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1.5-second timeout that automatically falls back to setTimeout() if it senses this condition. + setTimeout(function() { + if (_useRAF === "auto" && _self.frame < 5 && document.visibilityState !== "hidden") { + _self.useRAF(false); + } + }, 1500); + }); + + p = gs.Ticker.prototype = new gs.events.EventDispatcher(); + p.constructor = gs.Ticker; + + +/* + * ---------------------------------------------------------------- + * Animation + * ---------------------------------------------------------------- + */ + var Animation = _class("core.Animation", function(duration, vars) { + this.vars = vars = vars || {}; + this._duration = this._totalDuration = duration || 0; + this._delay = Number(vars.delay) || 0; + this._timeScale = 1; + this._active = (vars.immediateRender === true); + this.data = vars.data; + this._reversed = (vars.reversed === true); + + if (!_rootTimeline) { + return; + } + if (!_tickerActive) { //some browsers (like iOS 6 Safari) shut down JavaScript execution when the tab is disabled and they [occasionally] neglect to start up requestAnimationFrame again when returning - this code ensures that the engine starts up again properly. + _ticker.wake(); + } + + var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline; + tl.add(this, tl._time); + + if (this.vars.paused) { + this.paused(true); + } + }); + + _ticker = Animation.ticker = new gs.Ticker(); + p = Animation.prototype; + p._dirty = p._gc = p._initted = p._paused = false; + p._totalTime = p._time = 0; + p._rawPrevTime = -1; + p._next = p._last = p._onUpdate = p._timeline = p.timeline = null; + p._paused = false; + + + //some browsers (like iOS) occasionally drop the requestAnimationFrame event when the user switches to a different tab and then comes back again, so we use a 2-second setTimeout() to sense if/when that condition occurs and then wake() the ticker. + var _checkTimeout = function() { + if (_tickerActive && _getTime() - _lastUpdate > 2000) { + _ticker.wake(); + } + setTimeout(_checkTimeout, 2000); + }; + _checkTimeout(); + + + p.play = function(from, suppressEvents) { + if (from != null) { + this.seek(from, suppressEvents); + } + return this.reversed(false).paused(false); + }; + + p.pause = function(atTime, suppressEvents) { + if (atTime != null) { + this.seek(atTime, suppressEvents); + } + return this.paused(true); + }; + + p.resume = function(from, suppressEvents) { + if (from != null) { + this.seek(from, suppressEvents); + } + return this.paused(false); + }; + + p.seek = function(time, suppressEvents) { + return this.totalTime(Number(time), suppressEvents !== false); + }; + + p.restart = function(includeDelay, suppressEvents) { + return this.reversed(false).paused(false).totalTime(includeDelay ? -this._delay : 0, (suppressEvents !== false), true); + }; + + p.reverse = function(from, suppressEvents) { + if (from != null) { + this.seek((from || this.totalDuration()), suppressEvents); + } + return this.reversed(true).paused(false); + }; + + p.render = function(time, suppressEvents, force) { + //stub - we override this method in subclasses. + }; + + p.invalidate = function() { + this._time = this._totalTime = 0; + this._initted = this._gc = false; + this._rawPrevTime = -1; + if (this._gc || !this.timeline) { + this._enabled(true); + } + return this; + }; + + p.isActive = function() { + var tl = this._timeline, //the 2 root timelines won't have a _timeline; they're always active. + startTime = this._startTime, + rawTime; + return (!tl || (!this._gc && !this._paused && tl.isActive() && (rawTime = tl.rawTime()) >= startTime && rawTime < startTime + this.totalDuration() / this._timeScale)); + }; + + p._enabled = function (enabled, ignoreTimeline) { + if (!_tickerActive) { + _ticker.wake(); + } + this._gc = !enabled; + this._active = this.isActive(); + if (ignoreTimeline !== true) { + if (enabled && !this.timeline) { + this._timeline.add(this, this._startTime - this._delay); + } else if (!enabled && this.timeline) { + this._timeline._remove(this, true); + } + } + return false; + }; + + + p._kill = function(vars, target) { + return this._enabled(false, false); + }; + + p.kill = function(vars, target) { + this._kill(vars, target); + return this; + }; + + p._uncache = function(includeSelf) { + var tween = includeSelf ? this : this.timeline; + while (tween) { + tween._dirty = true; + tween = tween.timeline; + } + return this; + }; + + p._swapSelfInParams = function(params) { + var i = params.length, + copy = params.concat(); + while (--i > -1) { + if (params[i] === "{self}") { + copy[i] = this; + } + } + return copy; + }; + + p._callback = function(type) { + var v = this.vars, + callback = v[type], + params = v[type + "Params"], + scope = v[type + "Scope"] || v.callbackScope || this, + l = params ? params.length : 0; + switch (l) { //speed optimization; call() is faster than apply() so use it when there are only a few parameters (which is by far most common). Previously we simply did var v = this.vars; v[type].apply(v[type + "Scope"] || v.callbackScope || this, v[type + "Params"] || _blankArray); + case 0: callback.call(scope); break; + case 1: callback.call(scope, params[0]); break; + case 2: callback.call(scope, params[0], params[1]); break; + default: callback.apply(scope, params); + } + }; + +//----Animation getters/setters -------------------------------------------------------- + + p.eventCallback = function(type, callback, params, scope) { + if ((type || "").substr(0,2) === "on") { + var v = this.vars; + if (arguments.length === 1) { + return v[type]; + } + if (callback == null) { + delete v[type]; + } else { + v[type] = callback; + v[type + "Params"] = (_isArray(params) && params.join("").indexOf("{self}") !== -1) ? this._swapSelfInParams(params) : params; + v[type + "Scope"] = scope; + } + if (type === "onUpdate") { + this._onUpdate = callback; + } + } + return this; + }; + + p.delay = function(value) { + if (!arguments.length) { + return this._delay; + } + if (this._timeline.smoothChildTiming) { + this.startTime( this._startTime + value - this._delay ); + } + this._delay = value; + return this; + }; + + p.duration = function(value) { + if (!arguments.length) { + this._dirty = false; + return this._duration; + } + this._duration = this._totalDuration = value; + this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration. + if (this._timeline.smoothChildTiming) if (this._time > 0) if (this._time < this._duration) if (value !== 0) { + this.totalTime(this._totalTime * (value / this._duration), true); + } + return this; + }; + + p.totalDuration = function(value) { + this._dirty = false; + return (!arguments.length) ? this._totalDuration : this.duration(value); + }; + + p.time = function(value, suppressEvents) { + if (!arguments.length) { + return this._time; + } + if (this._dirty) { + this.totalDuration(); + } + return this.totalTime((value > this._duration) ? this._duration : value, suppressEvents); + }; + + p.totalTime = function(time, suppressEvents, uncapped) { + if (!_tickerActive) { + _ticker.wake(); + } + if (!arguments.length) { + return this._totalTime; + } + if (this._timeline) { + if (time < 0 && !uncapped) { + time += this.totalDuration(); + } + if (this._timeline.smoothChildTiming) { + if (this._dirty) { + this.totalDuration(); + } + var totalDuration = this._totalDuration, + tl = this._timeline; + if (time > totalDuration && !uncapped) { + time = totalDuration; + } + this._startTime = (this._paused ? this._pauseTime : tl._time) - ((!this._reversed ? time : totalDuration - time) / this._timeScale); + if (!tl._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here. + this._uncache(false); + } + //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The startTime of that child would get pushed out, but one of the ancestors may have completed. + if (tl._timeline) { + while (tl._timeline) { + if (tl._timeline._time !== (tl._startTime + tl._totalTime) / tl._timeScale) { + tl.totalTime(tl._totalTime, true); + } + tl = tl._timeline; + } + } + } + if (this._gc) { + this._enabled(true, false); + } + if (this._totalTime !== time || this._duration === 0) { + if (_lazyTweens.length) { + _lazyRender(); + } + this.render(time, suppressEvents, false); + if (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render. + _lazyRender(); + } + } + } + return this; + }; + + p.progress = p.totalProgress = function(value, suppressEvents) { + var duration = this.duration(); + return (!arguments.length) ? (duration ? this._time / duration : this.ratio) : this.totalTime(duration * value, suppressEvents); + }; + + p.startTime = function(value) { + if (!arguments.length) { + return this._startTime; + } + if (value !== this._startTime) { + this._startTime = value; + if (this.timeline) if (this.timeline._sortChildren) { + this.timeline.add(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct. + } + } + return this; + }; + + p.endTime = function(includeRepeats) { + return this._startTime + ((includeRepeats != false) ? this.totalDuration() : this.duration()) / this._timeScale; + }; + + p.timeScale = function(value) { + if (!arguments.length) { + return this._timeScale; + } + value = value || _tinyNum; //can't allow zero because it'll throw the math off + if (this._timeline && this._timeline.smoothChildTiming) { + var pauseTime = this._pauseTime, + t = (pauseTime || pauseTime === 0) ? pauseTime : this._timeline.totalTime(); + this._startTime = t - ((t - this._startTime) * this._timeScale / value); + } + this._timeScale = value; + return this._uncache(false); + }; + + p.reversed = function(value) { + if (!arguments.length) { + return this._reversed; + } + if (value != this._reversed) { + this._reversed = value; + this.totalTime(((this._timeline && !this._timeline.smoothChildTiming) ? this.totalDuration() - this._totalTime : this._totalTime), true); + } + return this; + }; + + p.paused = function(value) { + if (!arguments.length) { + return this._paused; + } + var tl = this._timeline, + raw, elapsed; + if (value != this._paused) if (tl) { + if (!_tickerActive && !value) { + _ticker.wake(); + } + raw = tl.rawTime(); + elapsed = raw - this._pauseTime; + if (!value && tl.smoothChildTiming) { + this._startTime += elapsed; + this._uncache(false); + } + this._pauseTime = value ? raw : null; + this._paused = value; + this._active = this.isActive(); + if (!value && elapsed !== 0 && this._initted && this.duration()) { + raw = tl.smoothChildTiming ? this._totalTime : (raw - this._startTime) / this._timeScale; + this.render(raw, (raw === this._totalTime), true); //in case the target's properties changed via some other tween or manual update by the user, we should force a render. + } + } + if (this._gc && !value) { + this._enabled(true, false); + } + return this; + }; + + +/* + * ---------------------------------------------------------------- + * SimpleTimeline + * ---------------------------------------------------------------- + */ + var SimpleTimeline = _class("core.SimpleTimeline", function(vars) { + Animation.call(this, 0, vars); + this.autoRemoveChildren = this.smoothChildTiming = true; + }); + + p = SimpleTimeline.prototype = new Animation(); + p.constructor = SimpleTimeline; + p.kill()._gc = false; + p._first = p._last = p._recent = null; + p._sortChildren = false; + + p.add = p.insert = function(child, position, align, stagger) { + var prevTween, st; + child._startTime = Number(position || 0) + child._delay; + if (child._paused) if (this !== child._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order). + child._pauseTime = child._startTime + ((this.rawTime() - child._startTime) / child._timeScale); + } + if (child.timeline) { + child.timeline._remove(child, true); //removes from existing timeline so that it can be properly added to this one. + } + child.timeline = child._timeline = this; + if (child._gc) { + child._enabled(true, true); + } + prevTween = this._last; + if (this._sortChildren) { + st = child._startTime; + while (prevTween && prevTween._startTime > st) { + prevTween = prevTween._prev; + } + } + if (prevTween) { + child._next = prevTween._next; + prevTween._next = child; + } else { + child._next = this._first; + this._first = child; + } + if (child._next) { + child._next._prev = child; + } else { + this._last = child; + } + child._prev = prevTween; + this._recent = child; + if (this._timeline) { + this._uncache(true); + } + return this; + }; + + p._remove = function(tween, skipDisable) { + if (tween.timeline === this) { + if (!skipDisable) { + tween._enabled(false, true); + } + + if (tween._prev) { + tween._prev._next = tween._next; + } else if (this._first === tween) { + this._first = tween._next; + } + if (tween._next) { + tween._next._prev = tween._prev; + } else if (this._last === tween) { + this._last = tween._prev; + } + tween._next = tween._prev = tween.timeline = null; + if (tween === this._recent) { + this._recent = this._last; + } + + if (this._timeline) { + this._uncache(true); + } + } + return this; + }; + + p.render = function(time, suppressEvents, force) { + var tween = this._first, + next; + this._totalTime = this._time = this._rawPrevTime = time; + while (tween) { + next = tween._next; //record it here because the value could change after rendering... + if (tween._active || (time >= tween._startTime && !tween._paused)) { + if (!tween._reversed) { + tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force); + } else { + tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force); + } + } + tween = next; + } + }; + + p.rawTime = function() { + if (!_tickerActive) { + _ticker.wake(); + } + return this._totalTime; + }; + +/* + * ---------------------------------------------------------------- + * TweenLite + * ---------------------------------------------------------------- + */ + var TweenLite = _class("TweenLite", function(target, duration, vars) { + Animation.call(this, duration, vars); + this.render = TweenLite.prototype.render; //speed optimization (avoid prototype lookup on this "hot" method) + + if (target == null) { + throw "Cannot tween a null target."; + } + + this.target = target = (typeof(target) !== "string") ? target : TweenLite.selector(target) || target; + + var isSelector = (target.jquery || (target.length && target !== window && target[0] && (target[0] === window || (target[0].nodeType && target[0].style && !target.nodeType)))), + overwrite = this.vars.overwrite, + i, targ, targets; + + this._overwrite = overwrite = (overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(overwrite) === "number") ? overwrite >> 0 : _overwriteLookup[overwrite]; + + if ((isSelector || target instanceof Array || (target.push && _isArray(target))) && typeof(target[0]) !== "number") { + this._targets = targets = _slice(target); //don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll() + this._propLookup = []; + this._siblings = []; + for (i = 0; i < targets.length; i++) { + targ = targets[i]; + if (!targ) { + targets.splice(i--, 1); + continue; + } else if (typeof(targ) === "string") { + targ = targets[i--] = TweenLite.selector(targ); //in case it's an array of strings + if (typeof(targ) === "string") { + targets.splice(i+1, 1); //to avoid an endless loop (can't imagine why the selector would return a string, but just in case) + } + continue; + } else if (targ.length && targ !== window && targ[0] && (targ[0] === window || (targ[0].nodeType && targ[0].style && !targ.nodeType))) { //in case the user is passing in an array of selector objects (like jQuery objects), we need to check one more level and pull things out if necessary. Also note that
    '+L+"
    "),e.data("videomarkup",x),e.append(x),(i&&1==e.data("disablevideoonmobile")||a.isIE(8))&&e.find("video").remove(),e.find("video").each(function(t){var i=this,r=jQuery(this);r.parent().hasClass("html5vid")||r.wrap('
    ');var s=r.parent();1!=s.data("metaloaded")&&d(i,"loadedmetadata",function(e){n(e,o),a.resetVideo(e,o)}(e))});break;case"youtube":b="http","https:"===location.protocol&&(b="https"),"none"==h&&(p=p.replace("controls=1","controls=0"),-1==p.toLowerCase().indexOf("controls")&&(p+="&controls=0"));var V=t(e.data("videostartat")),P=t(e.data("videoendat"));-1!=V&&(p=p+"&start="+V),-1!=P&&(p=p+"&end="+P);var I=p.split("origin="+b+"://"),C="";I.length>1?(C=I[0]+"origin="+b+"://",self.location.href.match(/www/gi)&&!I[1].match(/www/gi)&&(C+="www."),C+=I[1]):C=p;var j="true"===m||m===!0?"allowfullscreen":"";e.data("videomarkup",'');break;case"vimeo":"https:"===location.protocol&&(b="https"),e.data("videomarkup",'')}var _=i&&"on"==e.data("noposteronmobile");if(void 0!=e.data("videoposter")&&e.data("videoposter").length>2&&!_)0==e.find(".tp-videoposter").length&&e.append('
    '),0==e.find("iframe").length&&e.find(".tp-videoposter").click(function(){if(a.playVideo(e,o),i){if(1==e.data("disablevideoonmobile"))return!1;punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut})}});else{if(i&&1==e.data("disablevideoonmobile"))return!1;0!=e.find("iframe").length||"youtube"!=T&&"vimeo"!=T||(e.append(e.data("videomarkup")),r(e,o,!1))}"none"!=e.data("dottedoverlay")&&void 0!=e.data("dottedoverlay")&&1!=e.find(".tp-dottedoverlay").length&&e.append('
    '),e.addClass("HasListener"),1==e.data("bgvideo")&&punchgs.TweenLite.set(e.find("video, iframe"),{autoAlpha:0})}});var d=function(e,t,a){e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent(t,a,!1)},o=function(e,t,a){var i={};return i.video=e,i.videotype=t,i.settings=a,i},r=function(e,d,r){var n=e.find("iframe"),p="iframe"+Math.round(1e5*Math.random()+1),v=e.data("videoloop"),u="loopandnoslidestop"!=v;if(v="loop"==v||"loopandnoslidestop"==v,1==e.data("forcecover")){e.removeClass("fullscreenvideo").addClass("coverscreenvideo");var c=e.data("aspectratio");void 0!=c&&c.split(":").length>1&&a.prepareCoveredVideo(c,d,e)}if(1==e.data("bgvideo")){var c=e.data("aspectratio");void 0!=c&&c.split(":").length>1&&a.prepareCoveredVideo(c,d,e)}if(n.attr("id",p),r&&e.data("startvideonow",!0),1!==e.data("videolistenerexist"))switch(e.data("videotype")){case"youtube":var g=new YT.Player(p,{events:{onStateChange:function(e){var i=e.target.getVideoEmbedCode(),r=jQuery("#"+i.split('id="')[1].split('"')[0]),n=r.closest(".tp-simpleresponsive"),p=r.parent(),c=r.parent().data("player");if(e.data==YT.PlayerState.PLAYING)punchgs.TweenLite.to(p.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(p.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),"mute"==p.data("volume")||a.lastToggleState(p.data("videomutetoggledby"))?c.mute():(c.unMute(),c.setVolume(parseInt(p.data("volume"),0)||75)),d.videoplaying=!0,s(p,d),u?d.c.trigger("stoptimer"):d.videoplaying=!1,d.c.trigger("revolution.slide.onvideoplay",o(c,"youtube",p.data())),a.toggleState(p.data("videotoggledby"));else{if(0==e.data&&v){var g=t(p.data("videostartat"));-1!=g&&c.seekTo(g),c.playVideo(),a.toggleState(p.data("videotoggledby"))}(0==e.data||2==e.data)&&"on"==p.data("showcoveronpause")&&p.find(".tp-videoposter").length>0&&(punchgs.TweenLite.to(p.find(".tp-videoposter"),.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(p.find("iframe"),.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut})),-1!=e.data&&3!=e.data&&(d.videoplaying=!1,l(p,d),n.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",o(c,"youtube",p.data())),(void 0==d.currentLayerVideoIsPlaying||d.currentLayerVideoIsPlaying.attr("id")==p.attr("id"))&&a.unToggleState(p.data("videotoggledby"))),0==e.data&&1==p.data("nextslideatend")?(p.data("nextslideatend-triggered",1),d.c.revnext(),l(p,d)):(l(p,d),d.videoplaying=!1,n.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",o(c,"youtube",p.data())),(void 0==d.currentLayerVideoIsPlaying||d.currentLayerVideoIsPlaying.attr("id")==p.attr("id"))&&a.unToggleState(p.data("videotoggledby")))}},onReady:function(e){var a=e.target.getVideoEmbedCode(),d=jQuery("#"+a.split('id="')[1].split('"')[0]),o=d.parent(),r=o.data("videorate");o.data("videostart");if(o.addClass("rs-apiready"),void 0!=r&&e.target.setPlaybackRate(parseFloat(r)),o.find(".tp-videoposter").unbind("click"),o.find(".tp-videoposter").click(function(){i||g.playVideo()}),o.data("startvideonow")){o.data("player").playVideo();var n=t(o.data("videostartat"));-1!=n&&o.data("player").seekTo(n)}o.data("videolistenerexist",1)}}});e.data("player",g);break;case"vimeo":for(var f,y=n.attr("src"),m={},h=y,b=/([^&=]+)=([^&]*)/g;f=b.exec(h);)m[decodeURIComponent(f[1])]=decodeURIComponent(f[2]);y=void 0!=m.player_id?y.replace(m.player_id,p):y+"&player_id="+p;try{y=y.replace("api=0","api=1")}catch(w){}y+="&api=1",n.attr("src",y);var g=e.find("iframe")[0],T=(jQuery("#"+p),$f(p));T.addEvent("ready",function(){if(e.addClass("rs-apiready"),T.addEvent("play",function(t){e.data("nextslidecalled",0),punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),d.c.trigger("revolution.slide.onvideoplay",o(T,"vimeo",e.data())),d.videoplaying=!0,s(e,d),u?d.c.trigger("stoptimer"):d.videoplaying=!1,"mute"==e.data("volume")||a.lastToggleState(e.data("videomutetoggledby"))?T.api("setVolume","0"):T.api("setVolume",parseInt(e.data("volume"),0)/100||.75),a.toggleState(e.data("videotoggledby"))}),T.addEvent("playProgress",function(a){var i=t(e.data("videoendat"));if(e.data("currenttime",a.seconds),0!=i&&Math.abs(i-a.seconds)<.3&&i>a.seconds&&1!=e.data("nextslidecalled"))if(v){T.api("play");var o=t(e.data("videostartat"));-1!=o&&T.api("seekTo",o)}else 1==e.data("nextslideatend")&&(e.data("nextslideatend-triggered",1),e.data("nextslidecalled",1),d.c.revnext()),T.api("pause")}),T.addEvent("finish",function(t){l(e,d),d.videoplaying=!1,d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",o(T,"vimeo",e.data())),1==e.data("nextslideatend")&&(e.data("nextslideatend-triggered",1),d.c.revnext()),(void 0==d.currentLayerVideoIsPlaying||d.currentLayerVideoIsPlaying.attr("id")==e.attr("id"))&&a.unToggleState(e.data("videotoggledby"))}),T.addEvent("pause",function(t){e.find(".tp-videoposter").length>0&&"on"==e.data("showcoveronpause")&&(punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut})),d.videoplaying=!1,l(e,d),d.c.trigger("starttimer"),d.c.trigger("revolution.slide.onvideostop",o(T,"vimeo",e.data())),(void 0==d.currentLayerVideoIsPlaying||d.currentLayerVideoIsPlaying.attr("id")==e.attr("id"))&&a.unToggleState(e.data("videotoggledby"))}),e.find(".tp-videoposter").unbind("click"),e.find(".tp-videoposter").click(function(){return i?void 0:(T.api("play"),!1)}),e.data("startvideonow")){T.api("play");var r=t(e.data("videostartat"));-1!=r&&T.api("seekTo",r)}e.data("videolistenerexist",1)})}else{var k=t(e.data("videostartat"));switch(e.data("videotype")){case"youtube":r&&(e.data("player").playVideo(),-1!=k&&e.data("player").seekTo());break;case"vimeo":if(r){var T=$f(e.find("iframe").attr("id"));T.api("play"),-1!=k&&T.api("seekTo",k)}}}},n=function(e,r,n){if(i&&1==e.data("disablevideoonmobile"))return!1;var p=e.find("video"),v=p[0],u=p.parent(),c=e.data("videoloop"),g="loopandnoslidestop"!=c;if(c="loop"==c||"loopandnoslidestop"==c,u.data("metaloaded",1),void 0==p.attr("control")&&(0!=e.find(".tp-video-play-button").length||i||e.append('
     
    '),e.find("video, .tp-poster, .tp-video-play-button").click(function(){e.hasClass("videoisplaying")?v.pause():v.play()})),1==e.data("forcecover")||e.hasClass("fullscreenvideo")||1==e.data("bgvideo"))if(1==e.data("forcecover")||1==e.data("bgvideo")){u.addClass("fullcoveredvideo");var f=e.data("aspectratio")||"4:3";a.prepareCoveredVideo(f,r,e)}else u.addClass("fullscreenvideo");var y=e.find(".tp-vid-play-pause")[0],m=e.find(".tp-vid-mute")[0],h=e.find(".tp-vid-full-screen")[0],b=e.find(".tp-seek-bar")[0],w=e.find(".tp-volume-bar")[0];void 0!=y&&d(y,"click",function(){1==v.paused?v.play():v.pause()}),void 0!=m&&d(m,"click",function(){0==v.muted?(v.muted=!0,m.innerHTML="Unmute"):(v.muted=!1,m.innerHTML="Mute")}),void 0!=h&&h&&d(h,"click",function(){v.requestFullscreen?v.requestFullscreen():v.mozRequestFullScreen?v.mozRequestFullScreen():v.webkitRequestFullscreen&&v.webkitRequestFullscreen()}),void 0!=b&&(d(b,"change",function(){var e=v.duration*(b.value/100);v.currentTime=e}),d(b,"mousedown",function(){e.addClass("seekbardragged"),v.pause()}),d(b,"mouseup",function(){e.removeClass("seekbardragged"),v.play()})),d(v,"timeupdate",function(){var a=100/v.duration*v.currentTime,i=t(e.data("videoendat")),d=v.currentTime;if(void 0!=b&&(b.value=a),0!=i&&-1!=i&&Math.abs(i-d)<=.3&&i>d&&1!=e.data("nextslidecalled"))if(c){v.play();var o=t(e.data("videostartat"));-1!=o&&(v.currentTime=o)}else 1==e.data("nextslideatend")&&(e.data("nextslideatend-triggered",1),e.data("nextslidecalled",1),r.just_called_nextslide_at_htmltimer=!0,r.c.revnext(),setTimeout(function(){r.just_called_nextslide_at_htmltimer=!1},1e3)),v.pause()}),void 0!=w&&d(w,"change",function(){v.volume=w.value}),d(v,"play",function(){e.data("nextslidecalled",0),"mute"==e.data("volume")&&(v.muted=!0),e.addClass("videoisplaying"),s(e,r),g?(r.videoplaying=!0,r.c.trigger("stoptimer"),r.c.trigger("revolution.slide.onvideoplay",o(v,"html5",e.data()))):(r.videoplaying=!1,r.c.trigger("starttimer"),r.c.trigger("revolution.slide.onvideostop",o(v,"html5",e.data()))),punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("video"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut});var t=e.find(".tp-vid-play-pause")[0],i=e.find(".tp-vid-mute")[0];void 0!=t&&(t.innerHTML="Pause"),void 0!=i&&v.muted&&(i.innerHTML="Unmute"),a.toggleState(e.data("videotoggledby"))}),d(v,"pause",function(){e.find(".tp-videoposter").length>0&&"on"==e.data("showcoveronpause")&&!e.hasClass("seekbardragged")&&(punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("video"),.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut})),e.removeClass("videoisplaying"),r.videoplaying=!1,l(e,r),r.c.trigger("starttimer"),r.c.trigger("revolution.slide.onvideostop",o(v,"html5",e.data()));var t=e.find(".tp-vid-play-pause")[0];void 0!=t&&(t.innerHTML="Play"),(void 0==r.currentLayerVideoIsPlaying||r.currentLayerVideoIsPlaying.attr("id")==e.attr("id"))&&a.unToggleState(e.data("videotoggledby"))}),d(v,"ended",function(){l(e,r),r.videoplaying=!1,l(e,r),r.c.trigger("starttimer"),r.c.trigger("revolution.slide.onvideostop",o(v,"html5",e.data())),1==e.data("nextslideatend")&&(1==!r.just_called_nextslide_at_htmltimer&&(e.data("nextslideatend-triggered",1),r.c.revnext(),r.just_called_nextslide_at_htmltimer=!0),setTimeout(function(){r.just_called_nextslide_at_htmltimer=!1},1500)),e.removeClass("videoisplaying")})},s=function(e,t){void 0==t.playingvideos&&(t.playingvideos=new Array),e.data("stopallvideos")&&void 0!=t.playingvideos&&t.playingvideos.length>0&&(t.lastplayedvideos=jQuery.extend(!0,[],t.playingvideos),jQuery.each(t.playingvideos,function(e,i){a.stopVideo(i,t)})),t.playingvideos.push(e),t.currentLayerVideoIsPlaying=e},l=function(e,t){void 0!=t.playingvideos&&t.playingvideos.splice(jQuery.inArray(e,t.playingvideos),1)}}(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/index.php b/public/assets/plugins/rs-plugin/js/extensions/source/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.actions.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.actions.js new file mode 100644 index 0000000..ee40833 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.actions.js @@ -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('
    '); + 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:'#fff'}); + 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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.carousel.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.carousel.js new file mode 100644 index 0000000..32594a3 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.carousel.js @@ -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_.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)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)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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.kenburn.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.kenburn.js new file mode 100644 index 0000000..49e3e67 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.kenburn.js @@ -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('
    '); + 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.height0 ? 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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.layeranimation.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.layeranimation.js new file mode 100644 index 0000000..dd29bfd --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.layeranimation.js @@ -0,0 +1,1475 @@ +/******************************************** + * REVOLUTION 5.0 EXTENSION - LAYER ANIMATION + * @version: 1.4 (15.12.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, { + + // MAKE SURE THE ANIMATION ENDS WITH A CLEANING ON MOZ TRANSFORMS + animcompleted : function(_nc,opt) { + var t = _nc.data('videotype'), + ap = _nc.data('autoplay'), + an = _nc.data('autoplayonlyfirsttime'); + + + if (t!=undefined && t!="none") + if (ap==true || ap=="true" || ap=="on" || ap=="1sttime" || an) { + _R.playVideo(_nc,opt); + + _R.toggleState(_nc.data('videotoggledby')); + if ( an || ap=="1sttime") { + _nc.data('autoplayonlyfirsttime',false); + _nc.data('autoplay',"off"); + } + } else { + if (ap=="no1sttime") + _nc.data('autoplay','on'); + _R.unToggleState(_nc.data('videotoggledby')); + } + + }, + + /******************************************************** + - PREPARE AND DEFINE STATIC LAYER DIRECTIONS - + *********************************************************/ + handleStaticLayers : function(_nc,opt) { + var s = parseInt(_nc.data('startslide'),0), + e = parseInt(_nc.data('endslide'),0); + if (s < 0) + s=0; + if (e <0 ) + e = opt.slideamount; + if (s===0 && e===opt.slideamount-1) + e = opt.slideamount+1; + _nc.data('startslide',s); + _nc.data('endslide',e); + }, + + /************************************ + ANIMATE ALL CAPTIONS + *************************************/ + animateTheCaptions : function(nextli, opt,recalled,mtl) { + var base_offsetx = opt.sliderType==="carousel" ? 0 : opt.width/2 - (opt.gridwidth[opt.curWinRange]*opt.bw)/2, + base_offsety=0, + index = nextli.data('index'); + + + opt.layers = opt.layers || new Object(); + opt.layers[index] = opt.layers[index] || nextli.find('.tp-caption') + opt.layers["static"] = opt.layers["static"] || opt.c.find('.tp-static-layers').find('.tp-caption'); + + var allcaptions = new Array; + + opt.conh = opt.c.height(); + opt.conw = opt.c.width(); + opt.ulw = opt.ul.width(); + opt.ulh = opt.ul.height(); + + + + /* ENABLE DEBUG MODE */ + if (opt.debugMode) { + nextli.addClass("indebugmode"); + nextli.find('.helpgrid').remove(); + opt.c.find('.hglayerinfo').remove(); + nextli.append('
    '); + var hg = nextli.find('.helpgrid'); + hg.append('
    Zoom:'+(Math.round(opt.bw*100))+'%     Device Level:'+opt.curWinRange+'    Grid Preset:'+opt.gridwidth[opt.curWinRange]+'x'+opt.gridheight[opt.curWinRange]+'
    ') + opt.c.append('
    ') + hg.append('
    '); + } + + if (allcaptions) + jQuery.each(allcaptions,function(i) { + var _nc = jQuery(this); + punchgs.TweenLite.set(_nc.find('.tp-videoposter'),{autoAlpha:1}); + punchgs.TweenLite.set(_nc.find('iframe'),{autoAlpha:0}); + }) + + // COLLECT ALL CAPTIONS + if (opt.layers[index]) + jQuery.each(opt.layers[index], function(i,a) { allcaptions.push(a); }); + if (opt.layers["static"]) + jQuery.each(opt.layers["static"], function(i,a) { allcaptions.push(a); }); + + // GO THROUGH ALL CAPTIONS, AND MANAGE THEM + if (allcaptions) + jQuery.each(allcaptions,function(i) { + _R.animateSingleCaption(jQuery(this),opt,base_offsetx,base_offsety,i,recalled) + }); + + var bt=jQuery('body').find('#'+opt.c.attr('id')).find('.tp-bannertimer'); + bt.data('opt',opt); + + + if (mtl != undefined) setTimeout(function() { + mtl.resume(); + },30); + }, + + /*************************************** + - ANIMATE THE CAPTIONS - + ***************************************/ + animateSingleCaption : function(_nc,opt,offsetx,offsety,i,recalled,triggerforce) { + + var internrecalled = recalled, + staticdirection = staticLayerStatus(_nc,opt,"in",true), + _pw = _nc.data('_pw') || _nc.closest('.tp-parallax-wrap'), + _lw = _nc.data('_lw') || _nc.closest('.tp-loop-wrap'), + _mw = _nc.data('_mw') || _nc.closest('.tp-mask-wrap'), + _responsive = _nc.data('responsive') || "on", + _respoffset = _nc.data('responsive_offset') || "on", + _ba = _nc.data('basealign') || "grid", + _gw = _ba==="grid" ? opt.width : opt.ulw, //opt.conw, + _gh = _ba==="grid" ? opt.height : opt.ulh, //opt.conh; + rtl = jQuery('body').hasClass("rtl"); + + + + if (!_nc.data('_pw')) { + _nc.data('_pw',_pw); + _nc.data('_lw',_lw); + _nc.data('_mw',_mw); + } + + if (opt.sliderLayout=="fullscreen") + offsety = _gh/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2; + + if (opt.autoHeight=="on" || (opt.minHeight!=undefined && opt.minHeight>0)) + offsety = opt.conh/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2;; + + if (offsety<0) offsety=0; + + + + // LAYER GRID FOR DEBUGGING + if (opt.debugMode) { + _nc.closest('li').find('.helpgrid').css({top:offsety+"px", left:offsetx+"px"}); + var linfo = opt.c.find('.hglayerinfo'); + _nc.on("hover, mouseenter",function() { + var ltxt = "", + spa = 0; + if (_nc.data()) + jQuery.each(_nc.data(),function(key,val) { + if (typeof val !== "object") { + + ltxt = ltxt + ''+key+":"+val+"    "; + + } + }); + linfo.html(ltxt); + }); + } + /* END OF DEBUGGING */ + + + var handlecaption=0, + layervisible = makeArray(_nc.data('visibility'),opt)[opt.forcedWinRange] || makeArray(_nc.data('visibility'),opt) || "on"; + + + + // HIDE CAPTION IF RESOLUTION IS TOO LOW + if (layervisible=="off" || (_gw
    '); + if (vidw!="100%") + _nc.css({minWidth:vidw+"px",minHeight:vidh+"px"}); + else + _nc.css({width:"100%",height:"100%"}); + _nc.removeClass("tp-videolayer"); + }*/ + + // IF IT IS AN IMAGE + if (_nc.find('img').length>0) { + var im = _nc.find('img'); + _nc.data('layertype',"image"); + if (im.width()==0) im.css({width:"auto"}); + if (im.height()==0) im.css({height:"auto"}); + + + + + if (im.data('ww') == undefined && im.width()>0) im.data('ww',im.width()); + if (im.data('hh') == undefined && im.height()>0) im.data('hh',im.height()); + + var ww = im.data('ww'), + hh = im.data('hh'), + fuw = _ba =="slide" ? opt.ulw : opt.gridwidth[opt.curWinRange], + fuh = _ba =="slide" ? opt.ulh : opt.gridheight[opt.curWinRange], + + ww = makeArray(im.data('ww'),opt)[opt.curWinRange] || makeArray(im.data('ww'),opt) || "auto", + hh = makeArray(im.data('hh'),opt)[opt.curWinRange] || makeArray(im.data('hh'),opt) || "auto"; + + var wful = ww==="full" || ww === "full-proportional", + hful = hh==="full" || hh === "full-proportional"; + + if (ww==="full-proportional") { + var ow = im.data('owidth'), + oh = im.data('oheight'); + if (ow/fuw < oh/fuh) { + ww = fuw; + hh = oh*(fuw/ow); + } else { + hh = fuh; + ww = ow*(fuh/oh); + } + } else { + ww = wful ? fuw : parseFloat(ww); + hh = hful ? fuh : parseFloat(hh); + } + + + if (ww==undefined) ww=0; + if (hh==undefined) hh=0; + + if (_responsive!=="off") { + + if (_ba!="grid" && wful) + im.width(ww); + else + im.width(ww*opt.bw); + if (_ba!="grid" && hful) + im.height(hh); + else + im.height(hh*opt.bh); + } else { + im.width(ww); + im.height(hh); + } + } + + if (_ba==="slide") { + offsetx = 0; + offsety=0; + } + + + // IF IT IS A VIDEO LAYER + if (_nc.hasClass("tp-videolayer") || _nc.find('iframe').length>0 || _nc.find('video').length>0) { + + _nc.data('layertype',"video"); + _R.manageVideoLayer(_nc,opt,recalled,internrecalled); + if (!recalled && !internrecalled) { + var t = _nc.data('videotype'); + _R.resetVideo(_nc,opt); + } + + var asprat = _nc.data('aspectratio'); + if (asprat!=undefined && asprat.split(":").length>1) + _R.prepareCoveredVideo(asprat,opt,_nc); + + var im = _nc.find('iframe') ? _nc.find('iframe') : im = _nc.find('video'), + html5vid = _nc.find('iframe') ? false : true, + yvcover = _nc.hasClass('coverscreenvideo'); + + im.css({display:"block"}); + + // SET WIDTH / HEIGHT + if (_nc.data('videowidth') == undefined) { + _nc.data('videowidth',im.width()); + _nc.data('videoheight',im.height()); + } + var ww = makeArray(_nc.data('videowidth'),opt)[opt.curWinRange] || makeArray(_nc.data('videowidth'),opt) || "auto", + hh = makeArray(_nc.data('videoheight'),opt)[opt.curWinRange] || makeArray(_nc.data('videoheight'),opt) || "auto", + getobj; + + ww = parseFloat(ww); + hh = parseFloat(hh); + + + // READ AND WRITE CSS SETTINGS OF IFRAME AND VIDEO FOR RESIZING ELEMENST ON DEMAND + if (_nc.data('cssobj')===undefined) { + getobj = getcssParams(_nc,0); + _nc.data('cssobj',getobj); + } + + var ncobj = setResponsiveCSSValues(_nc.data('cssobj'),opt); + + + // IE8 FIX FOR AUTO LINEHEIGHT + if (ncobj.lineHeight=="auto") ncobj.lineHeight = ncobj.fontSize+4; + + + if (!_nc.hasClass('fullscreenvideo') && !yvcover) { + + punchgs.TweenLite.set(_nc,{ + paddingTop: Math.round((ncobj.paddingTop * opt.bh)) + "px", + paddingBottom: Math.round((ncobj.paddingBottom * opt.bh)) + "px", + paddingLeft: Math.round((ncobj.paddingLeft* opt.bw)) + "px", + paddingRight: Math.round((ncobj.paddingRight * opt.bw)) + "px", + marginTop: (ncobj.marginTop * opt.bh) + "px", + marginBottom: (ncobj.marginBottom * opt.bh) + "px", + marginLeft: (ncobj.marginLeft * opt.bw) + "px", + marginRight: (ncobj.marginRight * opt.bw) + "px", + borderTopWidth: Math.round(ncobj.borderTopWidth * opt.bh) + "px", + borderBottomWidth: Math.round(ncobj.borderBottomWidth * opt.bh) + "px", + borderLeftWidth: Math.round(ncobj.borderLeftWidth * opt.bw) + "px", + borderRightWidth: Math.round(ncobj.borderRightWidth * opt.bw) + "px", + width:(ww*opt.bw)+"px", + height:(hh*opt.bh)+"px" + }); + } else { + offsetx=0; offsety=0; + _nc.data('x',0) + _nc.data('y',0) + + var ovhh = _gh; + if (opt.autoHeight=="on") ovhh = opt.conh + _nc.css({'width':_gw, 'height':ovhh }); + + + } + + if ((html5vid == false && !yvcover) || ((_nc.data('forcecover')!=1 && !_nc.hasClass('fullscreenvideo') && !yvcover))) { + im.width(ww*opt.bw); + im.height(hh*opt.bh); + } + } // END OF POSITION AND STYLE READ OUTS OF VIDEO + + + + // ALL WRAPPED REKURSIVE ELEMENTS SHOULD BE RESPONSIVE HANDLED + _nc.find('.tp-resizeme, .tp-resizeme *').each(function() { + calcCaptionResponsive(jQuery(this),opt,"rekursive",_responsive); + }); + + // ALL ELEMENTS IF THE MAIN ELEMENT IS REKURSIVE RESPONSIVE SHOULD BE REPONSIVE HANDLED + if (_nc.hasClass("tp-resizeme")) + _nc.find('*').each(function() { + calcCaptionResponsive(jQuery(this),opt,"rekursive",_responsive); + }); + + // RESPONIVE HANDLING OF CURRENT LAYER + calcCaptionResponsive(_nc,opt,0,_responsive); + + // _nc FRONTCORNER CHANGES + var ncch = _nc.outerHeight(), + bgcol = _nc.css('backgroundColor'); + sharpCorners(_nc,'.frontcorner','left','borderRight','borderTopColor',ncch,bgcol); + sharpCorners(_nc,'.frontcornertop','left','borderRight','borderBottomColor',ncch,bgcol); + sharpCorners(_nc,'.backcorner','right','borderLeft','borderBottomColor',ncch,bgcol); + sharpCorners(_nc,'.backcornertop','right','borderLeft','borderTopColor',ncch,bgcol); + + + if (opt.fullScreenAlignForce == "on") { + offsetx=0; + offsety=0; + } + + var arrobj = _nc.data('arrobj'); + if (arrobj===undefined) { + var arrobj = new Object(); + arrobj.voa = makeArray(_nc.data('voffset'),opt)[opt.curWinRange] || makeArray(_nc.data('voffset'),opt)[0]; + arrobj.hoa = makeArray(_nc.data('hoffset'),opt)[opt.curWinRange] || makeArray(_nc.data('hoffset'),opt)[0]; + arrobj.elx = makeArray(_nc.data('x'),opt)[opt.curWinRange] || makeArray(_nc.data('x'),opt)[0]; + arrobj.ely = makeArray(_nc.data('y'),opt)[opt.curWinRange] || makeArray(_nc.data('y'),opt)[0]; + } + + + // CORRECTION OF NEGATIVE VALUES FROM OLDER SLIDER + //arrobj.voa = arrobj.ely==="bottom" ? arrobj.voa * -1 : arrobj.voa; + //arrobj.hoa = arrobj.elx==="right" ? arrobj.hoa * -1 : arrobj.hoa; + + + var voa = arrobj.voa.length==0 ? 0 : arrobj.voa, + hoa = arrobj.hoa.length==0 ? 0 : arrobj.hoa, + elx = arrobj.elx.length==0 ? 0 : arrobj.elx, + ely = arrobj.ely.length==0 ? 0 : arrobj.ely, + eow = _nc.outerWidth(true), + eoh = _nc.outerHeight(true); + + + // NEED CLASS FOR FULLWIDTH AND FULLHEIGHT LAYER SETTING !! + if (eow==0 && eoh==0) { + eow = opt.ulw; + eoh = opt.ulh; + } + + var vofs= _respoffset !=="off" ? parseInt(voa,0)*opt.bw : parseInt(voa,0), + hofs= _respoffset !=="off" ? parseInt(hoa,0)*opt.bw : parseInt(hoa,0), + crw = _ba==="grid" ? opt.gridwidth[opt.curWinRange]*opt.bw : _gw, + crh = _ba==="grid" ? opt.gridheight[opt.curWinRange]*opt.bw : _gh; + + + + if (opt.fullScreenAlignForce == "on") { + crw = opt.ulw; + crh = opt.ulh; + } + + + // ALIGN POSITIONED ELEMENTS + + + elx = elx==="center" || elx==="middle" ? (crw/2 - eow/2) + hofs : elx==="left" ? hofs : elx==="right" ? (crw - eow) - hofs : _respoffset !=="off" ? elx * opt.bw : elx; + ely = ely=="center" || ely=="middle" ? (crh/2 - eoh/2) + vofs : ely =="top" ? vofs : ely=="bottom" ? (crh - eoh)-vofs : _respoffset !=="off" ? ely*opt.bw : ely; + + if (rtl) + elx = elx + eow; + + // THE TRANSITIONS OF CAPTIONS + // MDELAY AND MSPEED + + + var $lts = _nc.data('lasttriggerstate'), + $cts = _nc.data('triggerstate'), + $start = _nc.data('start') || 100, + $end = _nc.data('end'), + mdelay = triggerforce ? 0 : $start==="bytrigger" || $start==="sliderenter" ? 0 : parseFloat($start)/1000, + calcx = (elx+offsetx), + calcy = (ely+offsety), + tpcapindex = _nc.css("z-Index"); + + if (!triggerforce) + if ($lts=="reset" && $start!="bytrigger") { + _nc.data("triggerstate","on"); + _nc.data('animdirection',"in"); + $cts = "on"; + } else + if ($lts=="reset" && $start=="bytrigger") { + _nc.data("triggerstate","off"); + _nc.data('animdirection',"out"); + $cts = "off"; + } + + + // SET TOP/LEFT POSITION OF LAYER + punchgs.TweenLite.set(_pw,{zIndex:tpcapindex, top:calcy,left:calcx,overwrite:"auto"}); + + if (staticdirection == 0) internrecalled = true; + + // STATIC LAYER, THINK ON THIS !!! + if (_nc.data('timeline')!=undefined && !internrecalled) { + if (staticdirection!=2) + _nc.data('timeline').gotoAndPlay(0); + internrecalled = true; + } + + // KILL OUT ANIMATION + + if (!recalled && _nc.data('timeline_out') && staticdirection!=2 && staticdirection!=0) { + _nc.data('timeline_out').kill(); + _nc.data('outstarted',0); + } + + // TRIGGERED ELEMENTS SHOULD + if (triggerforce && _nc.data('timeline')!=undefined) { + _nc.removeData('$anims') + _nc.data('timeline').pause(0); + _nc.data('timeline').kill(); + if (_nc.data('newhoveranim')!=undefined) { + _nc.data('newhoveranim').progress(0); + _nc.data('newhoveranim').kill(); + } + _nc.removeData('timeline'); + punchgs.TweenLite.killTweensOf(_nc); + _nc.unbind('hover'); + _nc.removeClass("rs-hover-ready"); + + _nc.removeData('newhoveranim'); + + } + + var $time = _nc.data('timeline') ? _nc.data('timeline').time() : 0, + $progress = _nc.data('timeline')!==undefined ? _nc.data('timeline').progress() : 0, + tl = _nc.data('timeline') || new punchgs.TimelineLite({smoothChildTiming:true}); + + $progress = jQuery.isNumeric($progress) ? $progress: 0; + + tl.pause(); + // LAYER IS TRIGGERED ?? + + + + if ($progress<1 && _nc.data('outstarted') != 1 || staticdirection==2 || triggerforce) { + var animobject = _nc; + + if (_nc.data('mySplitText') !=undefined) _nc.data('mySplitText').revert(); + + if (_nc.data('splitin')!=undefined && _nc.data('splitin').match(/chars|words|lines/g) || _nc.data('splitout')!=undefined && _nc.data('splitout').match(/chars|words|lines/g)) { + var splittarget = _nc.find('a').length>0 ? _nc.find('a') : _nc; + _nc.data('mySplitText',new punchgs.SplitText(splittarget,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); + _nc.addClass("splitted"); + } + + if ( _nc.data('mySplitText') !==undefined && _nc.data('splitin') && _nc.data('splitin').match(/chars|words|lines/g)) animobject = _nc.data('mySplitText')[_nc.data('splitin')] + + var $a = new Object(); + + + + var reverseanim = _nc.data('transform_in')!=undefined ? _nc.data('transform_in').match(/\(R\)/gi) : false; + + // BUILD ANIMATION LIBRARY AND HOVER ANIMATION + if (!_nc.data('$anims') || triggerforce || reverseanim) { + var $from = newAnimObject(), + $result = newAnimObject(), + $hover = newHoverAnimObject(), + hashover = _nc.data('transform_hover')!==undefined || _nc.data('style_hover')!==undefined; + + // WHICH ANIMATION TYPE SHOULD BE USED + $result = getAnimDatas($result,_nc.data('transform_idle')); + + $from = getAnimDatas($result,_nc.data('transform_in'),opt.sdir==1); + + if (hashover) { + + $hover = getAnimDatas($hover,_nc.data('transform_hover')); + $hover = convertHoverStyle($hover,_nc.data('style_hover')); + _nc.data('hover',$hover); + } + + // DELAYS + $from.elemdelay = (_nc.data('elementdelay') == undefined) ? 0 : _nc.data('elementdelay'); + $result.anim.ease = $from.anim.ease = $from.anim.ease || punchgs.Power1.easeInOut; + + + + // HOVER ANIMATION + if (hashover && !_nc.hasClass("rs-hover-ready")) { + + _nc.addClass("rs-hover-ready"); + _nc.hover(function(e) { + var nc = jQuery(e.currentTarget), + t = nc.data('hover'), + intl = nc.data('timeline'); + + if (intl && intl.progress()==1) { + + if (nc.data('newhoveranim')===undefined || nc.data('newhoveranim')==="none") { + nc.data('newhoveranim',punchgs.TweenLite.to(nc,t.speed,t.anim)); + + } else { + nc.data('newhoveranim').progress(0); + nc.data('newhoveranim').play(); + } + } + }, + function(e) { + var nc = jQuery(e.currentTarget), + intl = nc.data('timeline'); + + if (intl && intl.progress()==1 && nc.data('newhoveranim')!=undefined) { + nc.data('newhoveranim').reverse(); + } + }); + } + $a = new Object(); + $a.f = $from; + $a.r = $result; + _nc.data('$anims'); + } else { + $a = _nc.data('$anims'); + } + + + + // SET WRAPPING CONTAINER SIZES + var $mask_frm = getMaskDatas(_nc.data('mask_in')), + newtl = new punchgs.TimelineLite(); + + $a.f.anim.x = $a.f.anim.x * opt.bw || getBorderDirections($a.f.anim.x,opt,eow,eoh,calcy,calcx, "horizontal" ); + $a.f.anim.y = $a.f.anim.y * opt.bw || getBorderDirections($a.f.anim.y,opt,eow,eoh,calcy,calcx, "vertical" ); + + + + // IF LAYER IS NOT STATIC, OR STATIC AND NOT ANIMATED IN AT THIS LOOP + if (staticdirection != 2 || triggerforce) { + + // SPLITED ANIMATION IS IN GAME + if (animobject != _nc) { + var oldease = $a.r.anim.ease; + tl.add(punchgs.TweenLite.set(_nc, $a.r.anim)); + $a.r = newAnimObject(); + $a.r.anim.ease = oldease; + } + + $a.f.anim.visibility = "hidden"; + + + newtl.eventCallback("onStart",function(){ + punchgs.TweenLite.set(_nc,{visibility:"visible"}); + // FIX VISIBLE IFRAME BUG IN SAFARI + if (_nc.data('iframes')) + _nc.find('iframe').each(function() { + punchgs.TweenLite.set(jQuery(this),{autoAlpha:1}); + }) + punchgs.TweenLite.set(_pw,{visibility:"visible"}); + var data={}; + data.layer = _nc; + data.eventtype = "enterstage"; + data.layertype = _nc.data('layertype'); + data.layersettings = _nc.data(); + opt.c.trigger("revolution.layeraction",data) + }); + + newtl.eventCallback("onComplete",function() { + var data={}; + data.layer = _nc; + data.eventtype = "enteredstage"; + data.layertype = _nc.data('layertype'); + data.layersettings = _nc.data(); + opt.c.trigger("revolution.layeraction",data); + _R.animcompleted(_nc,opt); + }); + + // SHOW ELEMENTS WITH SLIDEENTER A BIT LATER FIRST ! + if (($start=="sliderenter" && opt.overcontainer)) + mdelay = 0.6; + + tl.add(newtl.staggerFromTo(animobject,$a.f.speed,$a.f.anim,$a.r.anim,$a.f.elemdelay),mdelay); + + + // MASK ANIMATION + if ($mask_frm) { + var $mask_rsl = new Object(); + $mask_rsl.ease = $a.r.anim.ease; + $mask_rsl.overflow = $mask_frm.anim.overflow ="hidden"; + $mask_rsl.x = $mask_rsl.y = 0; + + $mask_frm.anim.x = $mask_frm.anim.x * opt.bw || getBorderDirections($mask_frm.anim.x,opt,eow,eoh,calcy,calcx,"horizontal"); + $mask_frm.anim.y = $mask_frm.anim.y * opt.bw || getBorderDirections($mask_frm.anim.y,opt,eow,eoh,calcy,calcx,"vertical"); + + + tl.add(punchgs.TweenLite.fromTo(_mw,$a.f.speed,$mask_frm.anim,$mask_rsl,$from.elemdelay),mdelay); + } else { + tl.add(punchgs.TweenLite.set(_mw,{overflow:"visible"},$from.elemdelay),0); + } + } + + // SAVE IT TO NCAPTION BEFORE NEW STEPS WILL BE ADDED + _nc.data('timeline',tl); + + opt.sliderscrope = opt.sliderscrope === undefined ? Math.round(Math.random()*99999) : opt.sliderscrope; + + // IF THERE IS ANY EXIT ANIM DEFINED + // For Static Layers -> 1 -> In, 2-> Out 0-> Ignore -1-> Not Static + staticdirection = staticLayerStatus(_nc,opt,"in"); + + if (($progress === 0 || staticdirection==2) && $end!=="bytrigger" && !triggerforce && $end!="sliderleave") + if (($end!=undefined) && (staticdirection==-1 || staticdirection==2) && ($end!=="bytriger")) + punchgs.TweenLite.delayedCall(parseInt(_nc.data('end'),0)/1000,_R.endMoveCaption,[_nc,_mw,_pw,opt],opt.sliderscrope); + else + punchgs.TweenLite.delayedCall(999999,_R.endMoveCaption,[_nc,_mw,_pw,opt],opt.sliderscrope); + + + + // SAVE THE TIMELINE IN DOM ELEMENT + + tl = _nc.data('timeline'); + + if (_nc.data('loopanimation')=="on") callCaptionLoops(_lw,opt.bw); + + + + + if (($start!="sliderenter" || ($start=="sliderenter" && opt.overcontainer)) && (staticdirection==-1 || staticdirection==1 || triggerforce || (staticdirection==0 && $progress<1 && _nc.hasClass("rev-static-visbile")))) + if (($progress<1 && $progress>0) || + ($progress==0 && $start!="bytrigger" && $lts!="keep") || + ($progress==0 && $start!="bytrigger" && $lts=="keep" && $cts=="on") || + ($start=="bytrigger" && $lts=="keep" && $cts=="on")) { + tl.resume($time); + _R.toggleState(_nc.data('layertoggledby')) + } + } + + //punchgs.TweenLite.set(_mw,{width:eow, height:eoh}); + if (_nc.data('loopanimation')=="on") punchgs.TweenLite.set(_lw,{minWidth:eow,minHeight:eoh}); + + if (_nc.data('slidelink')!=0 && (_nc.data('slidelink')==1 || _nc.hasClass("slidelink"))) { + punchgs.TweenLite.set(_mw,{width:"100%", height:"100%"}); + _nc.data('slidelink',1); + } else { + punchgs.TweenLite.set(_mw,{width:"auto", height:"auto"}); + _nc.data('slidelink',0); + } + }, + + ////////////////////////////// + // MOVE OUT THE CAPTIONS // + //////////////////////////// + endMoveCaption : function(_nc,_mw,_pw,opt) { + + _mw = _mw || _nc.data('_mw'); + _pw = _pw || _nc.data('_pw'); + + // Kill TimeLine of "in Animation" + _nc.data('outstarted',1); + + + if (_nc.data('timeline')) + _nc.data('timeline').pause(); + else + if (_nc.data('_pw')===undefined) return; + + var tl = new punchgs.TimelineLite(), + subtl = new punchgs.TimelineLite(), + newmasktl = new punchgs.TimelineLite(), + $from = getAnimDatas(newAnimObject(),_nc.data('transform_in'),opt.sdir==1), + $to = _nc.data('transform_out') ? getAnimDatas(newEndAnimObject(),_nc.data('transform_out'),opt.sdir==1) : getAnimDatas(newEndAnimObject(),_nc.data('transform_in'),opt.sdir==1), + animobject = _nc.data('splitout') && _nc.data('splitout').match(/words|chars|lines/g) ? _nc.data('mySplitText')[_nc.data('splitout')] : _nc, + elemdelay = (_nc.data('endelementdelay') == undefined) ? 0 : _nc.data('endelementdelay'), + iw = _nc.innerWidth(), + ih = _nc.innerHeight(), + p = _pw.position(); + + // IF REVERSE AUTO ANIMATION ENABLED + if (_nc.data('transform_out') && _nc.data('transform_out').match(/auto:auto/g)) { + $from.speed = $to.speed; + $from.anim.ease = $to.anim.ease; + $to = $from; + } + + var $mask_to = getMaskDatas(_nc.data('mask_out')); + + $to.anim.x = $to.anim.x * opt.bw || getBorderDirections($to.anim.x,opt,iw,ih,p.top,p.left,"horizontal"); + $to.anim.y = $to.anim.y * opt.bw || getBorderDirections($to.anim.y,opt,iw,ih,p.top,p.left,"vertical"); + + subtl.eventCallback("onStart",function(){ + var data={}; + data.layer = _nc; + data.eventtype = "leavestage"; + data.layertype = _nc.data('layertype'); + data.layersettings = _nc.data(); + opt.c.trigger("revolution.layeraction",data); + }); + + subtl.eventCallback("onComplete",function(){ + punchgs.TweenLite.set(_nc,{visibility:"hidden"}); + punchgs.TweenLite.set(_pw,{visibility:"hidden"}); + var data={}; + data.layer = _nc; + data.eventtype = "leftstage"; + data.layertype = _nc.data('layertype'); + data.layersettings = _nc.data(); + opt.c.trigger("revolution.layeraction",data); + }); + + + + tl.add(subtl.staggerTo(animobject,$to.speed,$to.anim,elemdelay),0); + + // MASK ANIMATION + if ($mask_to) { + $mask_to.anim.ease = $to.anim.ease; + $mask_to.anim.overflow = "hidden"; + + $mask_to.anim.x = $mask_to.anim.x * opt.bw || getBorderDirections($mask_to.anim.x,opt,iw,ih,p.top,p.left,"horizontal"); + $mask_to.anim.y = $mask_to.anim.y * opt.bw || getBorderDirections($mask_to.anim.y,opt,iw,ih,p.top,p.left,"vertical"); + + + tl.add(newmasktl.to(_mw,$to.speed,$mask_to.anim,elemdelay),0); + } else { + tl.add(newmasktl.set(_mw,{overflow:"visible",overwrite:"auto"},elemdelay),0); + } + + _nc.data('timeline_out',tl); + }, + + ////////////////////////// + // REMOVE THE CAPTIONS // + ///////////////////////// + removeTheCaptions : function(actli,opt) { + var removetime = 0, + index = actli.data('index'), + allcaptions = new Array; + + // COLLECT ALL CAPTIONS + if (opt.layers[index]) + jQuery.each(opt.layers[index], function(i,a) { allcaptions.push(a); }); + if (opt.layers["static"]) + jQuery.each(opt.layers["static"], function(i,a) { allcaptions.push(a); }); + + + + punchgs.TweenLite.killDelayedCallsTo(_R.endMoveCaption,false,opt.sliderscrope); + + // GO THROUGH ALL CAPTIONS, AND MANAGE THEM + if (allcaptions) + jQuery.each(allcaptions,function(i) { + var _nc=jQuery(this), + stat = staticLayerStatus(_nc,opt,"out"); + if (stat != 0 ) { //0 == ignore + killCaptionLoops(_nc); + clearTimeout(_nc.data('videoplaywait')); + if (_R.stopVideo) _R.stopVideo(_nc,opt); + _R.endMoveCaption(_nc,null,null,opt) + opt.playingvideos = []; + opt.lastplayedvideos = []; + } + }); + } +}); + + + + + +/********************************************************************************************** + - HELPER FUNCTIONS FOR LAYER TRANSFORMS - +**********************************************************************************************/ + + +///////////////////////////////////// +// - CREATE ANIMATION OBJECT - // +///////////////////////////////////// +var newAnimObject = function() { + var a = new Object(); + a.anim = new Object(); + a.anim.x=0; + a.anim.y=0; + a.anim.z=0; + a.anim.rotationX = 0; + a.anim.rotationY = 0; + a.anim.rotationZ = 0; + a.anim.scaleX = 1; + a.anim.scaleY = 1; + a.anim.skewX = 0; + a.anim.skewY = 0; + a.anim.opacity=1; + a.anim.transformOrigin = "50% 50%"; + a.anim.transformPerspective = 600; + a.anim.rotation = 0; + a.anim.ease = punchgs.Power3.easeOut; + a.anim.force3D = "auto"; + a.speed = 0.3; + a.anim.autoAlpha = 1; + a.anim.visibility = "visible"; + a.anim.overwrite = "all"; + return a; +} + +var newEndAnimObject = function() { + var a = new Object(); + a.anim = new Object(); + a.anim.x=0; + a.anim.y=0; + a.anim.z=0; + return a; +} + +var newHoverAnimObject = function() { + var a = new Object(); + a.anim = new Object(); + a.speed = 0.2; + return a; +} + +var animDataTranslator = function(val,defval) { + + if (jQuery.isNumeric(parseFloat(val))) { + return parseFloat(val); + } else + if (val===undefined || val==="inherit") { + return defval; + } else + if (val.split("{").length>1) { + var min = val.split(","), + max = parseFloat(min[1].split("}")[0]); + min = parseFloat(min[0].split("{")[1]); + val = Math.random()*(max-min) + min; + } + return val; +} + +var getBorderDirections = function (x,o,w,h,top,left,direction) { + + if (!jQuery.isNumeric(x) && x.match(/%]/g)) { + x = x.split("[")[1].split("]")[0]; + if (direction=="horizontal") + x = (w+2)*parseInt(x,0)/100; + else + if (direction=="vertical") + x = (h+2)*parseInt(x,0)/100; + } else { + + + x = x === "layer_left" ? (0-w) : x === "layer_right" ? w : x; + x = x === "layer_top" ? (0-h) : x==="layer_bottom" ? h : x; + x = x === "left" || x==="stage_left" ? (0-w-left) : x === "right" || x==="stage_right" ? o.conw-left : x === "center" || x === "stage_center" ? (o.conw/2 - w/2)-left : x; + x = x === "top" || x==="stage_top" ? (0-h-top) : x==="bottom" || x==="stage_bottom" ? o.conh-top : x === "middle" || x === "stage_middle" ? (o.conh/2 - h/2)-top : x; + } + + return x; +} + +/////////////////////////////////////////////////// +// ANALYSE AND READ OUT DATAS FROM HTML CAPTIONS // +/////////////////////////////////////////////////// +var getAnimDatas = function(frm,data,reversed) { + var o = new Object(); + o = jQuery.extend(true,{},o, frm); + if (data === undefined) + return o; + + var customarray = data.split(';'); + if (customarray) + jQuery.each(customarray,function(index,pa) { + var p = pa.split(":") + var w = p[0], + v = p[1]; + + + if (reversed && v!=undefined && v.length>0 && v.match(/\(R\)/)) { + v = v.replace("(R)",""); + v = v==="right" ? "left" : v==="left" ? "right" : v==="top" ? "bottom" : v==="bottom" ? "top" : v; + if (v[0]==="[" && v[1]==="-") v = v.replace("[-","["); + else + if (v[0]==="[" && v[1]!=="-") v = v.replace("[","[-"); + else + if (v[0]==="-") v = v.replace("-",""); + else + if (v[0].match(/[1-9]/)) v="-"+v; + + } + + if (v!=undefined) { + v = v.replace(/\(R\)/,''); + if (w=="rotationX" || w=="rX") o.anim.rotationX = animDataTranslator(v,o.anim.rotationX)+"deg"; + if (w=="rotationY" || w=="rY") o.anim.rotationY = animDataTranslator(v,o.anim.rotationY)+"deg"; + if (w=="rotationZ" || w=="rZ") o.anim.rotation = animDataTranslator(v,o.anim.rotationZ)+"deg"; + if (w=="scaleX" || w=="sX") o.anim.scaleX = animDataTranslator(v,o.anim.scaleX); + if (w=="scaleY" || w=="sY") o.anim.scaleY = animDataTranslator(v,o.anim.scaleY); + if (w=="opacity" || w=="o") o.anim.opacity = animDataTranslator(v,o.anim.opacity); + if (w=="skewX" || w=="skX") o.anim.skewX = animDataTranslator(v,o.anim.skewX); + if (w=="skewY" || w=="skY") o.anim.skewY = animDataTranslator(v,o.anim.skewY); + if (w=="x") o.anim.x = animDataTranslator(v,o.anim.x); + if (w=="y") o.anim.y = animDataTranslator(v,o.anim.y); + if (w=="z") o.anim.z = animDataTranslator(v,o.anim.z); + if (w=="transformOrigin" || w=="tO") o.anim.transformOrigin = v.toString(); + if (w=="transformPerspective" || w=="tP") o.anim.transformPerspective=parseInt(v,0); + if (w=="speed" || w=="s") o.speed = parseFloat(v)/1000; + if (w=="ease" || w=="e") o.anim.ease = v; + } + + }) + + return o; +} + + + +///////////////////////////////// +// BUILD MASK ANIMATION OBJECT // +///////////////////////////////// +var getMaskDatas = function(d) { + if (d === undefined) + return false; + + var o = new Object(); + o.anim = new Object(); + var s = d.split(';') + if (s) + jQuery.each(s,function(index,param) { + param = param.split(":") + var w = param[0], + v = param[1]; + if (w=="x") o.anim.x = v; + if (w=="y") o.anim.y = v; + if (w=="s") o.speed = parseFloat(v)/1000; + if (w=="e" || w=="ease") o.anim.ease = v; + }); + + return o; +} + + + + +//////////////////////// +// SHOW THE CAPTION // +/////////////////////// + +var makeArray = function(obj,opt,show) { + + if (obj==undefined) obj = 0; + + if (!jQuery.isArray(obj) && jQuery.type(obj)==="string" && (obj.split(",").length>1 || obj.split("[").length>1)) { + obj = obj.replace("[",""); + obj = obj.replace("]",""); + var newobj = obj.match(/'/g) ? obj.split("',") : obj.split(","); + obj = new Array(); + if (newobj) + jQuery.each(newobj,function(index,element) { + element = element.replace("'",""); + element = element.replace("'",""); + obj.push(element); + }) + } else { + var tempw = obj; + if (!jQuery.isArray(obj) ) { + obj = new Array(); + obj.push(tempw); + } + } + + var tempw = obj[obj.length-1]; + + if (obj.length=ai) || (s == ai) || (e == ai)){ + if (!dontmod) { + _nc.addClass("rev-static-visbile"); + _nc.removeClass("rev-static-hidden"); + } + a = 1; + } else + a = 0; + + // IF STATIC ITEM ALREADY VISIBLE + } else { + if ((e==ai) || (s > ai) || (e < ai)) + a = 2; + else + a = 0; + } + } else { + // IF STATIC ITEM CURRENTLY NOT VISIBLE + if (_nc.hasClass("rev-static-visbile")) { + if ((s > ai) || + (e < ai)) { + a = 2; + if (!dontmod) { + _nc.removeClass("rev-static-visbile"); + _nc.addClass("rev-static-hidden"); + } + } else { + a = 0; + } + } else { + a = 2; + } + } + } + + return a; // 1 -> In, 2-> Out 0-> Ignore -1-> Not Static +} + + + +var convertHoverStyle = function(t,s) { + if (s===undefined) return t; + s = s.replace("c:","color:"); + s = s.replace("bg:","background-color:"); + s = s.replace("bw:","border-width:"); + s = s.replace("bc:","border-color:"); + s = s.replace("br:","borderRadius:"); + s = s.replace("bs:","border-style:"); + s = s.replace("td:","text-decoration:"); + var sp = s.split(";"); + if (sp) + jQuery.each(sp,function(key,cont){ + var attr = cont.split(":"); + if (attr[0].length>0) + t.anim[attr[0]] = attr[1]; + }) + + return t; + +} +//////////////////////////////////////////////// +// - GET CSS ATTRIBUTES OF ELEMENT - // +//////////////////////////////////////////////// +var getcssParams = function(nc,level) { + + var obj = new Object(), + gp = false, + pc; + + // CHECK IF CURRENT ELEMENT SHOULD RESPECT REKURSICVE RESIZES, AND SHOULD OWN THE SAME ATTRIBUTES FROM PARRENT ELEMENT + if (level=="rekursive") { + pc = nc.closest('.tp-caption'); + if (pc && nc.css("fontSize") === pc.css("fontSize")) + gp = true; + } + + obj.basealign = nc.data('basealign') || "grid"; + obj.fontSize = gp ? pc.data('fontsize')===undefined ? parseInt(pc.css('fontSize'),0) || 0 : pc.data('fontsize') : nc.data('fontsize')===undefined ? parseInt(nc.css('fontSize'),0) || 0 : nc.data('fontsize'); + obj.fontWeight = gp ? pc.data('fontweight')===undefined ? parseInt(pc.css('fontWeight'),0) || 0 : pc.data('fontweight') : nc.data('fontweight')===undefined ? parseInt(nc.css('fontWeight'),0) || 0 : nc.data('fontweight'); + obj.whiteSpace = gp ? pc.data('whitespace')===undefined ? pc.css('whitespace') || "normal" : pc.data('whitespace') : nc.data('whitespace')===undefined ? nc.css('whitespace') || "normal" : nc.data('whitespace'); + + obj.lineHeight = gp ? pc.data('lineheight')===undefined ? parseInt(pc.css('lineHeight'),0) || 0 : pc.data('lineheight') : nc.data('lineheight')===undefined ? parseInt(nc.css('lineHeight'),0) || 0 : nc.data('lineheight'); + obj.letterSpacing = gp ? pc.data('letterspacing')===undefined ? parseFloat(pc.css('letterSpacing'),0) || 0 : pc.data('letterspacing') : nc.data('letterspacing')===undefined ? parseFloat(nc.css('letterSpacing')) || 0 : nc.data('letterspacing'); + + obj.paddingTop = nc.data('paddingtop')===undefined ? parseInt(nc.css('paddingTop'),0) || 0 : nc.data('paddingtop'); + obj.paddingBottom = nc.data('paddingbottom')===undefined ? parseInt(nc.css('paddingBottom'),0) || 0 : nc.data('paddingbottom'); + obj.paddingLeft = nc.data('paddingleft')===undefined ? parseInt(nc.css('paddingLeft'),0) || 0 : nc.data('paddingleft'); + obj.paddingRight = nc.data('paddingright')===undefined ? parseInt(nc.css('paddingRight'),0) || 0 : nc.data('paddingright'); + + obj.marginTop = nc.data('margintop')===undefined ? parseInt(nc.css('marginTop'),0) || 0 : nc.data('margintop'); + obj.marginBottom = nc.data('marginbottom')===undefined ? parseInt(nc.css('marginBottom'),0) || 0 : nc.data('marginbottom'); + obj.marginLeft = nc.data('marginleft')===undefined ? parseInt(nc.css('marginLeft'),0) || 0 : nc.data('marginleft'); + obj.marginRight = nc.data('marginright')===undefined ? parseInt(nc.css('marginRight'),0) || 0 : nc.data('marginright'); + + obj.borderTopWidth = nc.data('bordertopwidth')===undefined ? parseInt(nc.css('borderTopWidth'),0) || 0 : nc.data('bordertopwidth'); + obj.borderBottomWidth = nc.data('borderbottomwidth')===undefined ? parseInt(nc.css('borderBottomWidth'),0) || 0 : nc.data('borderbottomwidth'); + obj.borderLeftWidth = nc.data('borderleftwidth')===undefined ? parseInt(nc.css('borderLeftWidth'),0) || 0 : nc.data('borderleftwidth'); + obj.borderRightWidth = nc.data('borderrightwidth')===undefined ? parseInt(nc.css('borderRightWidth'),0) || 0 : nc.data('borderrightwidth'); + + if (level!="rekursive") { + obj.color = nc.data('color')===undefined ? "nopredefinedcolor" : nc.data('color'); + obj.whiteSpace = gp ? pc.data('whitespace')===undefined ? pc.css('whiteSpace') || "nowrap" : pc.data('whitespace') : nc.data('whitespace')===undefined ? nc.css('whiteSpace') || "nowrap" : nc.data('whitespace'); + + obj.minWidth = nc.data('width')===undefined ? parseInt(nc.css('minWidth'),0) || 0 : nc.data('width'); + obj.minHeight = nc.data('height')===undefined ? parseInt(nc.css('minHeight'),0) || 0 : nc.data('height'); + + if (nc.data('videowidth')!=undefined && nc.data('videoheight')!=undefined) { + var vwid = nc.data('videowidth'), + vhei = nc.data('videoheight'); + vwid = vwid==="100%" ? "none" : vwid; + vhei = vhei==="100%" ? "none" : vhei; + nc.data('width',vwid); + nc.data('height',vhei); + } + + obj.maxWidth = nc.data('width')===undefined ? parseInt(nc.css('maxWidth'),0) || "none" : nc.data('width'); + obj.maxHeight = nc.data('height')===undefined ? parseInt(nc.css('maxHeight'),0) || "none" : nc.data('height'); + + obj.wan = nc.data('wan')===undefined ? parseInt(nc.css('-webkit-transition'),0) || "none" : nc.data('wan'); + obj.moan = nc.data('moan')===undefined ? parseInt(nc.css('-moz-animation-transition'),0) || "none" : nc.data('moan'); + obj.man = nc.data('man')===undefined ? parseInt(nc.css('-ms-animation-transition'),0) || "none" : nc.data('man'); + obj.ani = nc.data('ani')===undefined ? parseInt(nc.css('transition'),0) || "none" : nc.data('ani'); + } + + obj.styleProps = nc.css(["background-color", + "border-top-color", + "border-bottom-color", + "border-right-color", + "border-left-color", + "border-top-style", + "border-bottom-style", + "border-left-style", + "border-right-style", + "border-left-width", + "border-right-width", + "border-bottom-width", + "border-top-width", + "color", + "text-decoration", + "font-style", + "border-radius"]); + return obj; +} + +// READ SINGLE OR ARRAY VALUES OF OBJ CSS ELEMENTS +var setResponsiveCSSValues = function(obj,opt) { + var newobj = new Object(); + if (obj) + jQuery.each(obj,function(key,val){ + newobj[key] = makeArray(val,opt)[opt.curWinRange] || obj[key]; + }) + return newobj; +} + +var minmaxconvert = function(a,m,r,fr) { + + a = jQuery.isNumeric(a) ? (a * m)+"px" : a; + a = a==="full" ? fr : a==="auto" || a==="none" ? r : a; + return a; + +} + +///////////////////////////////////////////////////////////////// +// - CALCULATE THE RESPONSIVE SIZES OF THE CAPTIONS - // +///////////////////////////////////////////////////////////////// +var calcCaptionResponsive = function(nc,opt,level,responsive) { + var getobj; + + if (nc.data('cssobj')===undefined) { + getobj = getcssParams(nc,level); + nc.data('cssobj',getobj); + } else + getobj = nc.data('cssobj'); + + var obj = setResponsiveCSSValues(getobj,opt); + + var bw=opt.bw, + bh=opt.bh; + + if (responsive==="off") { + bw=1; + bh=1; + } + + // IE8 FIX FOR AUTO LINEHEIGHT + if (obj.lineHeight=="auto") obj.lineHeight = obj.fontSize+4; + + + if (!nc.hasClass("tp-splitted")) { + + nc.css("-webkit-transition", "none"); + nc.css("-moz-transition", "none"); + nc.css("-ms-transition", "none"); + nc.css("transition", "none"); + + var hashover = nc.data('transform_hover')!==undefined || nc.data('style_hover')!==undefined; + if (hashover) punchgs.TweenLite.set(nc,obj.styleProps); + + punchgs.TweenLite.set(nc,{ + + fontSize: Math.round((obj.fontSize * bw))+"px", + fontWeight: obj.fontWeight, + letterSpacing:Math.floor((obj.letterSpacing * bw))+"px", + paddingTop: Math.round((obj.paddingTop * bh)) + "px", + paddingBottom: Math.round((obj.paddingBottom * bh)) + "px", + paddingLeft: Math.round((obj.paddingLeft* bw)) + "px", + paddingRight: Math.round((obj.paddingRight * bw)) + "px", + marginTop: (obj.marginTop * bh) + "px", + marginBottom: (obj.marginBottom * bh) + "px", + marginLeft: (obj.marginLeft * bw) + "px", + marginRight: (obj.marginRight * bw) + "px", + borderTopWidth: Math.round(obj.borderTopWidth * bh) + "px", + borderBottomWidth: Math.round(obj.borderBottomWidth * bh) + "px", + borderLeftWidth: Math.round(obj.borderLeftWidth * bw) + "px", + borderRightWidth: Math.round(obj.borderRightWidth * bw) + "px", + lineHeight: Math.round(obj.lineHeight * bh) + "px", + overwrite:"auto"}); + + if (level!="rekursive") { + + + + var winw = obj.basealign =="slide" ? opt.ulw : opt.gridwidth[opt.curWinRange], + winh = obj.basealign =="slide" ? opt.ulh : opt.gridheight[opt.curWinRange], + maxw = minmaxconvert(obj.maxWidth,bw,"none",winw), + maxh = minmaxconvert(obj.maxHeight,bh,"none",winh), + minw = minmaxconvert(obj.minWidth,bw,"0px",winw), + minh = minmaxconvert(obj.minHeight,bh,"0px",winh); + + punchgs.TweenLite.set(nc,{ + maxWidth:maxw, + maxHeight:maxh, + minWidth:minw, + minHeight:minh, + whiteSpace:obj.whiteSpace, + overwrite:"auto" + }); + if (obj.color!="nopredefinedcolor") + punchgs.TweenLite.set(nc,{color:obj.color,overwrite:"auto"}); + + } + + setTimeout(function() { + nc.css("-webkit-transition", nc.data('wan')); + nc.css("-moz-transition", nc.data('moan')); + nc.css("-ms-transition", nc.data('man')); + nc.css("transition", nc.data('ani')); + + },30); + } +} + + +////////////////////// +// CAPTION LOOPS // +////////////////////// +var callCaptionLoops = function(el,factor) { + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-pendulum")) { + if (el.data('loop-timeline')==undefined) { + el.data('loop-timeline',new punchgs.TimelineLite); + var startdeg = el.data('startdeg')==undefined ? -20 : el.data('startdeg'), + enddeg = el.data('enddeg')==undefined ? 20 : el.data('enddeg'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('ease'); + + + startdeg = startdeg * factor; + enddeg = enddeg * factor; + + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing})); + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:enddeg,transformOrigin:origin},{rotation:startdeg,ease:easing,onComplete:function() { + el.data('loop-timeline').restart(); + }})); + } + + } + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-rotate")) { + if (el.data('loop-timeline')==undefined) { + el.data('loop-timeline',new punchgs.TimelineLite); + var startdeg = el.data('startdeg')==undefined ? 0 : el.data('startdeg'), + enddeg = el.data('enddeg')==undefined ? 360 : el.data('enddeg'); + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + startdeg = startdeg * factor; + enddeg = enddeg * factor; + + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing,onComplete:function() { + el.data('loop-timeline').restart(); + }})); + } + + } + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-slideloop")) { + if (el.data('loop-timeline')==undefined) { + el.data('loop-timeline',new punchgs.TimelineLite); + var xs = el.data('xs')==undefined ? 0 : el.data('xs'), + ys = el.data('ys')==undefined ? 0 : el.data('ys'), + xe = el.data('xe')==undefined ? 0 : el.data('xe'), + ye = el.data('ye')==undefined ? 0 : el.data('ye'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + xs = xs * factor; + ys = ys * factor; + xe = xe * factor; + ye = ye * factor; + + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xs,y:ys},{x:xe,y:ye,ease:easing})); + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xe,y:ye},{x:xs,y:ys,onComplete:function() { + el.data('loop-timeline').restart(); + }})); + } + } + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + if (el.hasClass("rs-pulse")) { + if (el.data('loop-timeline')==undefined) { + el.data('loop-timeline',new punchgs.TimelineLite); + var zoomstart = el.data('zoomstart')==undefined ? 0 : el.data('zoomstart'), + zoomend = el.data('zoomend')==undefined ? 0 : el.data('zoomend'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomstart},{scale:zoomend,ease:easing})); + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomend},{scale:zoomstart,onComplete:function() { + el.data('loop-timeline').restart(); + }})); + } + } + + if (el.hasClass("rs-wave")) { + if (el.data('loop-timeline')==undefined) { + el.data('loop-timeline',new punchgs.TimelineLite); + + var angle= el.data('angle')==undefined ? 10 : parseInt(el.data('angle'),0), + radius = el.data('radius')==undefined ? 10 : parseInt(el.data('radius'),0), + speed = el.data('speed')==undefined ? -20 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + ors = origin.split(" "), + oo = new Object(); + + if (ors.length>=1) { + oo.x = ors[0]; + oo.y = ors[1]; + } else { + oo.x = "50%"; + oo.y = "50%"; + } + + angle = angle*factor; + radius = radius * factor; + + var yo = (0-el.height()/2) + (radius*(-1+(parseInt(oo.y,0)/100))), + xo = (el.width())*(-0.5+(parseInt(oo.x,0)/100)), + angobj= {a:0, ang : angle, element:el, unit:radius, xoffset:xo, yoffset:yo}; + + + el.data('loop-timeline').append(new punchgs.TweenLite.fromTo(angobj,speed, + { a:360 }, + { a:0, + force3D:"auto", + ease:punchgs.Linear.easeNone, + onUpdate:function() { + + var rad = angobj.a * (Math.PI / 180); + punchgs.TweenLite.to(angobj.element,0.1,{force3D:"auto",x:angobj.xoffset+Math.cos(rad) * angobj.unit, y:angobj.yoffset+angobj.unit * (1 - Math.sin(rad))}); + + }, + onComplete:function() { + el.data('loop-timeline').restart(); + } + } + )); + } + } +} + +var killCaptionLoops = function(nextcaption) { + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.find('.rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave').each(function() { + var el = jQuery(this); + if (el.data('loop-timeline')!=undefined) { + el.data('loop-timeline').pause(); + el.data('loop-timeline',null); + } + }); +} + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.migration.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.migration.js new file mode 100644 index 0000000..0ed965a --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.migration.js @@ -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=''; + 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=''; + 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); + + + + diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.navigation.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.navigation.js new file mode 100644 index 0000000..5d17659 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.navigation.js @@ -0,0 +1,1051 @@ +/******************************************** + * REVOLUTION 5.1.5 EXTENSION - NAVIGATION + * @version: 1.1 (04.01.2016) + * @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, { + + + hideUnHideNav : function(opt) { + var w = opt.c.width(), + a = opt.navigation.arrows, + b = opt.navigation.bullets, + c = opt.navigation.thumbnails, + d = opt.navigation.tabs; + + if (ckNO(a)) biggerNav(opt.c.find('.tparrows'),a.hide_under,w,a.hide_over); + if (ckNO(b)) biggerNav(opt.c.find('.tp-bullets'),b.hide_under,w,b.hide_over); + if (ckNO(c)) biggerNav(opt.c.parent().find('.tp-thumbs'),c.hide_under,w,c.hide_over); + if (ckNO(d)) biggerNav(opt.c.parent().find('.tp-tabs'),d.hide_under,w,d.hide_over); + + setONHeights(opt); + + }, + + resizeThumbsTabs : function(opt,force) { + + + if ((opt.navigation && opt.navigation.tabs.enable) || (opt.navigation && opt.navigation.thumbnails.enable)) { + var f = (jQuery(window).width()-480) / 500, + tws = new punchgs.TimelineLite(), + otab = opt.navigation.tabs, + othu = opt.navigation.thumbnails, + otbu = opt.navigation.bullets; + + tws.pause(); + f = f>1 ? 1 : f<0 ? 0 : f; + + if (ckNO(otab) && (force || otab.width>otab.min_width)) rtt(f,tws,opt.c,otab,opt.slideamount,'tab'); + if (ckNO(othu) && (force || othu.width>othu.min_width)) rtt(f,tws,opt.c,othu,opt.slideamount,'thumb'); + if (ckNO(otbu) && force) { + // SET BULLET SPACES AND POSITION + var bw = opt.c.find('.tp-bullets'); + + bw.find('.tp-bullet').each(function(i){ + var b = jQuery(this), + am = i+1, + w = b.outerWidth()+parseInt((otbu.space===undefined? 0:otbu.space),0), + h = b.outerHeight()+parseInt((otbu.space===undefined? 0:otbu.space),0); + + if (otbu.direction==="vertical") { + b.css({top:((am-1)*h)+"px", left:"0px"}); + bw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()}); + } + else { + b.css({left:((am-1)*w)+"px", top:"0px"}); + bw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()}); + } + }); + + } + + tws.play(); + + setONHeights(opt); + } + return true; + }, + + updateNavIndexes : function(opt) { + var _ = opt.c; + + function setNavIndex(a) { + if (_.find(a).lenght>0) { + _.find(a).each(function(i) { + jQuery(this).data('liindex',i); + }) + } + } + + setNavIndex('.tp-tab'); + setNavIndex('.tp-bullet'); + setNavIndex('.tp-thumb'); + _R.resizeThumbsTabs(opt,true); + _R.manageNavigation(opt); + }, + + + // PUT NAVIGATION IN POSITION AND MAKE SURE THUMBS AND TABS SHOWING TO THE RIGHT POSITION + manageNavigation : function(opt) { + + + var lof = _R.getHorizontalOffset(opt.c.parent(),"left"), + rof = _R.getHorizontalOffset(opt.c.parent(),"right"); + + if (ckNO(opt.navigation.bullets)) { + if (opt.sliderLayout!="fullscreen" && opt.sliderLayout!="fullwidth") { + // OFFSET ADJUSTEMENT FOR LEFT ARROWS BASED ON THUMBNAILS AND TABS OUTTER + opt.navigation.bullets.h_offset_old = opt.navigation.bullets.h_offset_old === undefined ? opt.navigation.bullets.h_offset : opt.navigation.bullets.h_offset_old; + opt.navigation.bullets.h_offset = opt.navigation.bullets.h_align==="center" ? opt.navigation.bullets.h_offset_old+lof/2 -rof/2: opt.navigation.bullets.h_offset_old+lof-rof; + } + setNavElPositions(opt.c.find('.tp-bullets'),opt.navigation.bullets); + } + + if (ckNO(opt.navigation.thumbnails)) + setNavElPositions(opt.c.parent().find('.tp-thumbs'),opt.navigation.thumbnails); + + if (ckNO(opt.navigation.tabs)) + setNavElPositions(opt.c.parent().find('.tp-tabs'),opt.navigation.tabs); + + if (ckNO(opt.navigation.arrows)) { + + if (opt.sliderLayout!="fullscreen" && opt.sliderLayout!="fullwidth") { + // OFFSET ADJUSTEMENT FOR LEFT ARROWS BASED ON THUMBNAILS AND TABS OUTTER + opt.navigation.arrows.left.h_offset_old = opt.navigation.arrows.left.h_offset_old === undefined ? opt.navigation.arrows.left.h_offset : opt.navigation.arrows.left.h_offset_old; + opt.navigation.arrows.left.h_offset = opt.navigation.arrows.left.h_align==="right" ? opt.navigation.arrows.left.h_offset_old+rof : opt.navigation.arrows.left.h_offset_old+lof; + + opt.navigation.arrows.right.h_offset_old = opt.navigation.arrows.right.h_offset_old === undefined ? opt.navigation.arrows.right.h_offset : opt.navigation.arrows.right.h_offset_old; + opt.navigation.arrows.right.h_offset = opt.navigation.arrows.right.h_align==="right" ? opt.navigation.arrows.right.h_offset_old+rof : opt.navigation.arrows.right.h_offset_old+lof; + } + setNavElPositions(opt.c.find('.tp-leftarrow.tparrows'),opt.navigation.arrows.left); + setNavElPositions(opt.c.find('.tp-rightarrow.tparrows'),opt.navigation.arrows.right); + } + + + if (ckNO(opt.navigation.thumbnails)) + moveThumbsInPosition(opt.c.parent().find('.tp-thumbs'),opt.navigation.thumbnails); + + if (ckNO(opt.navigation.tabs)) + moveThumbsInPosition(opt.c.parent().find('.tp-tabs'),opt.navigation.tabs); + }, + + + // MANAGE THE NAVIGATION + createNavigation : function(container,opt) { + + var cp = container.parent(), + _a = opt.navigation.arrows, _b = opt.navigation.bullets, _c = opt.navigation.thumbnails, _d = opt.navigation.tabs, + a = ckNO(_a), b = ckNO(_b), c = ckNO(_c), d = ckNO(_d); + + + // Initialise Keyboard Navigation if Option set so + initKeyboard(container,opt); + + // Initialise Mouse Scroll Navigation if Option set so + initMouseScroll(container,opt); + + //Draw the Arrows + if (a) initArrows(container,_a,opt); + + // BUILD BULLETS, THUMBS and TABS + opt.li.each(function(index) { + var li = jQuery(this); + if (b) addBullet(container,_b,li,opt); + if (c) addThumb(container,_c,li,'tp-thumb',opt); + if (d) addThumb(container,_d,li,'tp-tab',opt); + }); + + // LISTEN TO SLIDE CHANGE - SET ACTIVE SLIDE BULLET + container.bind('revolution.slide.onafterswap revolution.nextslide.waiting',function() { + + //cp.find('.tp-bullet, .tp-thumb, .tp-tab').removeClass("selected"); + + var si = container.find(".next-revslide").length==0 ? container.find(".active-revslide").data("index") : container.find(".next-revslide").data("index"); + + container.find('.tp-bullet').each(function() { + var _t = jQuery(this); + if (_t.data('liref')===si) + _t.addClass("selected"); + else + _t.removeClass("selected"); + }); + + cp.find('.tp-thumb, .tp-tab').each(function() { + var _t = jQuery(this); + if (_t.data('liref')===si) { + _t.addClass("selected"); + if (_t.hasClass("tp-tab")) + moveThumbsInPosition(cp.find('.tp-tabs'),_d); + else + moveThumbsInPosition(cp.find('.tp-thumbs'),_c); + } else + _t.removeClass("selected"); + + }); + + var ai = 0, + f = false; + if (opt.thumbs) + jQuery.each(opt.thumbs,function(i,obj) { + ai = f === false ? i : ai; + f = obj.id === si || i === si ? true : f; + }); + + + var pi = ai>0 ? ai-1 : opt.slideamount-1, + ni = (ai+1)==opt.slideamount ? 0 : ai+1; + + + if (_a.enable === true) { + var inst = _a.tmp; + jQuery.each(opt.thumbs[pi].params,function(i,obj) { + inst = inst.replace(obj.from,obj.to); + }); + _a.left.j.html(inst); + inst = _a.tmp; + jQuery.each(opt.thumbs[ni].params,function(i,obj) { + inst = inst.replace(obj.from,obj.to); + }); + _a.right.j.html(inst); + punchgs.TweenLite.set(_a.left.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[pi].src+")"}); + punchgs.TweenLite.set(_a.right.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[ni].src+")"}); + } + + + }); + + hdResets(_a); + hdResets(_b); + hdResets(_c); + hdResets(_d); + + + // HOVER OVER ELEMENTS SHOULD SHOW/HIDE NAVIGATION ELEMENTS + cp.on("mouseenter mousemove",function() { + + if (!cp.hasClass("tp-mouseover")) { + cp.addClass("tp-mouseover"); + + punchgs.TweenLite.killDelayedCallsTo(showHideNavElements); + + if (a && _a.hide_onleave) showHideNavElements(cp.find('.tparrows'),_a,"show"); + if (b && _b.hide_onleave) showHideNavElements(cp.find('.tp-bullets'),_b,"show"); + if (c && _c.hide_onleave) showHideNavElements(cp.find('.tp-thumbs'),_c,"show"); + if (d && _d.hide_onleave) showHideNavElements(cp.find('.tp-tabs'),_d,"show"); + + // ON MOBILE WE NEED TO HIDE ELEMENTS EVEN AFTER TOUCH + if (_ISM) { + cp.removeClass("tp-mouseover"); + callAllDelayedCalls(container,opt); + } + } + }); + + cp.on("mouseleave",function() { + cp.removeClass("tp-mouseover"); + callAllDelayedCalls(container,opt); + }); + + // FIRST RUN HIDE ALL ELEMENTS + if (a && _a.hide_onleave) showHideNavElements(cp.find('.tparrows'),_a,"hide",0); + if (b && _b.hide_onleave) showHideNavElements(cp.find('.tp-bullets'),_b,"hide",0); + if (c && _c.hide_onleave) showHideNavElements(cp.find('.tp-thumbs'),_c,"hide",0); + if (d && _d.hide_onleave) showHideNavElements(cp.find('.tp-tabs'),_d,"hide",0); + + // Initialise Swipe Navigation + if (c) swipeAction(cp.find('.tp-thumbs'),opt); + if (d) swipeAction(cp.find('.tp-tabs'),opt); + if (opt.sliderType==="carousel") swipeAction(container,opt,true); + if (opt.navigation.touch.touchenabled=="on") swipeAction(container,opt,"swipebased"); + } + +}); + + + + +///////////////////////////////// +// - INTERNAL FUNCTIONS - /// +///////////////////////////////// + + +var moveThumbsInPosition = function(container,opt) { + + var thumbs = container.hasClass("tp-thumbs") ? ".tp-thumbs" : ".tp-tabs", + thumbmask = container.hasClass("tp-thumbs") ? ".tp-thumb-mask" : ".tp-tab-mask", + thumbsiw = container.hasClass("tp-thumbs") ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper", + thumb = container.hasClass("tp-thumbs") ? ".tp-thumb" : ".tp-tab", + t=container.find(thumbmask), + el = t.find(thumbsiw), + thumbdir = opt.direction, + tw = thumbdir==="vertical" ? t.find(thumb).first().outerHeight(true)+opt.space : t.find(thumb).first().outerWidth(true)+opt.space, + tmw = thumbdir==="vertical" ? t.height() : t.width(), + ti = parseInt(t.find(thumb+'.selected').data('liindex'),0), + me = tmw/tw, + ts = thumbdir==="vertical" ? t.height() : t.width(), + tp = 0-(ti * tw), + els = thumbdir==="vertical" ? el.height() : el.width(), + curpos = tp < 0-(els-ts) ? 0-(els-ts) : curpos > 0 ? 0 : tp, + elp = el.data('offset'); + + + if (me>2) { + curpos = tp - (elp+tw) <= 0 ? tp - (elp+tw) < 0-tw ? elp : curpos + tw : curpos; + curpos = ( (tp-tw + elp + tmw)< tw && tp + (Math.round(me)-2)*tw < elp) ? tp + (Math.round(me)-2)*tw : curpos; + } + + curpos = curpos < 0-(els-ts) ? 0-(els-ts) : curpos > 0 ? 0 : curpos; + + if (thumbdir!=="vertical" && t.width()>=el.width()) curpos = 0; + if (thumbdir==="vertical" && t.height()>=el.height()) curpos = 0; + + + if (!container.hasClass("dragged")) { + if (thumbdir==="vertical") + el.data('tmmove',punchgs.TweenLite.to(el,0.5,{top:curpos+"px",ease:punchgs.Power3.easeInOut})); + else + el.data('tmmove',punchgs.TweenLite.to(el,0.5,{left:curpos+"px",ease:punchgs.Power3.easeInOut})); + el.data('offset',curpos); + } + }; + + +// RESIZE THE THUMBS BASED ON ORIGINAL SIZE AND CURRENT SIZE OF WINDOW +var rtt = function(f,tws,c,o,lis,wh) { + var h = c.parent().find('.tp-'+wh+'s'), + ins = h.find('.tp-'+wh+'s-inner-wrapper'), + mask = h.find('.tp-'+wh+'-mask'), + cw = o.width*f < o.min_width ? o.min_width : Math.round(o.width*f), + ch = Math.round((cw/o.width) * o.height), + iw = o.direction === "vertical" ? cw : (cw*lis) + ((o.space)*(lis-1)), + ih = o.direction === "vertical" ? (ch*lis) + ((o.space)*(lis-1)) : ch, + anm = o.direction === "vertical" ? {width:cw+"px"} : {height:ch+"px"}; + + + tws.add(punchgs.TweenLite.set(h,anm)); + tws.add(punchgs.TweenLite.set(ins,{width:iw+"px",height:ih+"px"})); + tws.add(punchgs.TweenLite.set(mask,{width:iw+"px",height:ih+"px"})); + var fin = ins.find('.tp-'+wh+''); + if (fin) + jQuery.each(fin,function(i,el) { + if (o.direction === "vertical") + tws.add(punchgs.TweenLite.set(el,{top:(i*(ch+parseInt((o.space===undefined? 0:o.space),0))),width:cw+"px",height:ch+"px"})); + else + if (o.direction === "horizontal") + tws.add(punchgs.TweenLite.set(el,{left:(i*(cw+parseInt((o.space===undefined? 0:o.space),0))),width:cw+"px",height:ch+"px"})); + }); + return tws; +}; + +// INTERNAL FUNCTIONS +var normalizeWheel = function( event) /*object*/ { + + var sX = 0, sY = 0, // spinX, spinY + pX = 0, pY = 0, // pixelX, pixelY + PIXEL_STEP = 1, + LINE_HEIGHT = 1, + PAGE_HEIGHT = 1; + + // Legacy + if ('detail' in event) { sY = event.detail; } + if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; } + if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; } + if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; } + + + //sY = navigator.userAgent.match(/mozilla/i) ? sY*10 : sY; + + + // side scrolling on FF with DOMMouseScroll + if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) { + sX = sY; + sY = 0; + } + + pX = sX * PIXEL_STEP; + pY = sY * PIXEL_STEP; + + if ('deltaY' in event) { pY = event.deltaY; } + if ('deltaX' in event) { pX = event.deltaX; } + + + + if ((pX || pY) && event.deltaMode) { + if (event.deltaMode == 1) { // delta in LINE units + pX *= LINE_HEIGHT; + pY *= LINE_HEIGHT; + } else { // delta in PAGE units + pX *= PAGE_HEIGHT; + pY *= PAGE_HEIGHT; + } + } + + // Fall-back if spin cannot be determined + if (pX && !sX) { sX = (pX < 1) ? -1 : 1; } + if (pY && !sY) { sY = (pY < 1) ? -1 : 1; } + + pY = navigator.userAgent.match(/mozilla/i) ? pY*10 : pY; + + if (pY>300 || pY<-300) pY = pY/10; + + return { spinX : sX, + spinY : sY, + pixelX : pX, + pixelY : pY }; + }; + +var initKeyboard = function(container,opt) { + if (opt.navigation.keyboardNavigation!=="on") return; + jQuery(document).keydown(function(e){ + if ((opt.navigation.keyboard_direction=="horizontal" && e.keyCode == 39) || (opt.navigation.keyboard_direction=="vertical" && e.keyCode==40)) { + opt.sc_indicator="arrow"; + opt.sc_indicator_dir = 0; + _R.callingNewSlide(opt,container,1); + } + if ((opt.navigation.keyboard_direction=="horizontal" && e.keyCode == 37) || (opt.navigation.keyboard_direction=="vertical" && e.keyCode==38)) { + opt.sc_indicator="arrow"; + opt.sc_indicator_dir = 1; + _R.callingNewSlide(opt,container,-1); + } + }); +}; + + + +var initMouseScroll = function(container,opt) { + + if (opt.navigation.mouseScrollNavigation!=="on" && opt.navigation.mouseScrollNavigation!=="carousel") return; + opt.isIEEleven = !!navigator.userAgent.match(/Trident.*rv\:11\./); + opt.isSafari = !!navigator.userAgent.match(/safari/i); + opt.ischrome = !!navigator.userAgent.match(/chrome/i); + + + var bl = opt.ischrome ? -49 : opt.isIEEleven || opt.isSafari ? -9 : navigator.userAgent.match(/mozilla/i) ? -29 : -49, + tl = opt.ischrome ? 49 : opt.isIEEleven || opt.isSafari ? 9 : navigator.userAgent.match(/mozilla/i) ? 29 : 49; + + + container.on('mousewheel DOMMouseScroll', function(e) { + + var res = normalizeWheel(e.originalEvent), + asi = container.find('.tp-revslider-slidesli.active-revslide').index(), + psi = container.find('.tp-revslider-slidesli.processing-revslide').index(), + fs = asi!=-1 && asi==0 || psi!=-1 && psi==0 ? true : false, + ls = asi!=-1 && asi==opt.slideamount-1 || psi!=1 && psi==opt.slideamount-1 ? true:false, + ret = true; + if (opt.navigation.mouseScrollNavigation=="carousel") + fs = ls = false; + + if (psi==-1) { + if(res.pixelYtl) { + if (!ls) { + opt.sc_indicator="arrow"; + opt.sc_indicator_dir = 1; + _R.callingNewSlide(opt,container,1); + + ret = false; + } + } + + + } else { + if ((!ls && (res.spinY>0)) || (!fs && (res.spinY<=0))) { + ret = false; + } + else + ret = true; + } + + if (ret==false) { + e.preventDefault(e); + return false; + } else { + return; + } + }); +}; + +var isme = function (a,c,e) { + a = _ISM ? jQuery(e.target).closest('.'+a).length || jQuery(e.srcElement).closest('.'+a).length : jQuery(e.toElement).closest('.'+a).length || jQuery(e.originalTarget).closest('.'+a).length; + return a === true || a=== 1 ? 1 : 0; +}; + +// - SET THE SWIPE FUNCTION // +var swipeAction = function(container,opt,vertical) { + + container.data('opt',opt); + + // TOUCH ENABLED SCROLL + var _ = opt.carousel; + jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"); + + _.Limit = "endless"; + var notonbody = _ISM || _R.get_browser()==="Firefox", + SwipeOn = container, //notonbody ? container : jQuery('body'), + pagescroll = opt.navigation.thumbnails.direction==="vertical" || opt.navigation.tabs.direction==="vertical"? "none" : "vertical", + swipe_wait_dir = opt.navigation.touch.swipe_direction || "horizontal"; + + pagescroll = vertical == "swipebased" && swipe_wait_dir=="vertical" ? "none" : vertical ? "vertical" : pagescroll; + + if (!jQuery.fn.swipetp) jQuery.fn.swipetp = jQuery.fn.swipe; + if (!jQuery.fn.swipetp.defaults || !jQuery.fn.swipetp.defaults.excludedElements) + if (!jQuery.fn.swipetp.defaults) + jQuery.fn.swipetp.defaults = new Object(); + + jQuery.fn.swipetp.defaults.excludedElements = "label, button, input, select, textarea, .noSwipe" + + + SwipeOn.swipetp({ + allowPageScroll:pagescroll, + triggerOnTouchLeave:true, + treshold:opt.navigation.touch.swipe_treshold, + fingers:opt.navigation.touch.swipe_min_touches, + + excludeElements:jQuery.fn.swipetp.defaults.excludedElements, + + swipeStatus:function(event,phase,direction,distance,duration,fingerCount,fingerData) { + + + var withinslider = isme('rev_slider_wrapper',container,event), + withinthumbs = isme('tp-thumbs',container,event), + withintabs = isme('tp-tabs',container,event), + starget = jQuery(this).attr('class'), + istt = starget.match(/tp-tabs|tp-thumb/gi) ? true : false; + + + + // SWIPE OVER SLIDER, TO SWIPE SLIDES IN CAROUSEL MODE + if (opt.sliderType==="carousel" && + (((phase==="move" || phase==="end" || phase=="cancel") && (opt.dragStartedOverSlider && !opt.dragStartedOverThumbs && !opt.dragStartedOverTabs)) + || (phase==="start" && withinslider>0 && withinthumbs===0 && withintabs===0))) { + + opt.dragStartedOverSlider = true; + distance = (direction && direction.match(/left|up/g)) ? Math.round(distance * -1) : distance = Math.round(distance * 1); + + switch (phase) { + case "start": + if (_.positionanim!==undefined) { + _.positionanim.kill(); + _.slide_globaloffset = _.infinity==="off" ? _.slide_offset : _R.simp(_.slide_offset, _.maxwidth); + } + _.overpull = "none"; + _.wrap.addClass("dragged"); + break; + case "move": + + + _.slide_offset = _.infinity==="off" ? _.slide_globaloffset + distance : _R.simp(_.slide_globaloffset + distance, _.maxwidth); + + if (_.infinity==="off") { + var bb = _.horizontal_align==="center" ? ((_.wrapwidth/2-_.slide_width/2) - _.slide_offset) / _.slide_width : (0 - _.slide_offset) / _.slide_width; + + if ((_.overpull ==="none" || _.overpull===0) && (bb<0 || bb>opt.slideamount-1)) + _.overpull = distance; + else + if (bb>=0 && bb<=opt.slideamount-1 && ((bb>=0 && distance>_.overpull) || (bb<=opt.slideamount-1 && distance<_.overpull))) + _.overpull = 0; + + _.slide_offset = bb<0 ? _.slide_offset+ (_.overpull-distance)/1.1 + Math.sqrt(Math.abs((_.overpull-distance)/1.1)) : + bb>opt.slideamount-1 ? _.slide_offset+ (_.overpull-distance)/1.1 - Math.sqrt(Math.abs((_.overpull-distance)/1.1)) : _.slide_offset ; + } + _R.organiseCarousel(opt,direction,true,true); + break; + + case "end": + case "cancel": + //duration !! + _.slide_globaloffset = _.slide_offset; + _.wrap.removeClass("dragged"); + _R.carouselToEvalPosition(opt,direction); + opt.dragStartedOverSlider = false; + opt.dragStartedOverThumbs = false; + opt.dragStartedOverTabs = false; + break; + } + } else + + // SWIPE OVER THUMBS OR TABS + if (( + ((phase==="move" || phase==="end" || phase=="cancel") && (!opt.dragStartedOverSlider && (opt.dragStartedOverThumbs || opt.dragStartedOverTabs))) + || + (phase==="start" && (withinslider>0 && (withinthumbs>0 || withintabs>0))))) { + + + if (withinthumbs>0) opt.dragStartedOverThumbs = true; + if (withintabs>0) opt.dragStartedOverTabs = true; + + var thumbs = opt.dragStartedOverThumbs ? ".tp-thumbs" : ".tp-tabs", + thumbmask = opt.dragStartedOverThumbs ? ".tp-thumb-mask" : ".tp-tab-mask", + thumbsiw = opt.dragStartedOverThumbs ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper", + thumb = opt.dragStartedOverThumbs ? ".tp-thumb" : ".tp-tab", + _o = opt.dragStartedOverThumbs ? opt.navigation.thumbnails : opt.navigation.tabs; + + + distance = (direction && direction.match(/left|up/g)) ? Math.round(distance * -1) : distance = Math.round(distance * 1); + var t= container.parent().find(thumbmask), + el = t.find(thumbsiw), + tdir = _o.direction, + els = tdir==="vertical" ? el.height() : el.width(), + ts = tdir==="vertical" ? t.height() : t.width(), + tw = tdir==="vertical" ? t.find(thumb).first().outerHeight(true)+_o.space : t.find(thumb).first().outerWidth(true)+_o.space, + newpos = (el.data('offset') === undefined ? 0 : parseInt(el.data('offset'),0)), + curpos = 0; + + switch (phase) { + case "start": + container.parent().find(thumbs).addClass("dragged"); + newpos = tdir === "vertical" ? el.position().top : el.position().left; + el.data('offset',newpos); + if (el.data('tmmove')) el.data('tmmove').pause(); + + break; + case "move": + if (els<=ts) return false; + + curpos = newpos + distance; + curpos = curpos>0 ? tdir==="horizontal" ? curpos - (el.width() * (curpos/el.width() * curpos/el.width())) : curpos - (el.height() * (curpos/el.height() * curpos/el.height())) : curpos; + var dif = tdir==="vertical" ? 0-(el.height()-t.height()) : 0-(el.width()-t.width()); + curpos = curpos < dif ? tdir==="horizontal" ? curpos + (el.width() * (curpos-dif)/el.width() * (curpos-dif)/el.width()) : curpos + (el.height() * (curpos-dif)/el.height() * (curpos-dif)/el.height()) : curpos; + if (tdir==="vertical") + punchgs.TweenLite.set(el,{top:curpos+"px"}); + else + punchgs.TweenLite.set(el,{left:curpos+"px"}); + + + break; + + case "end": + case "cancel": + + if (istt) { + curpos = newpos + distance; + + curpos = tdir==="vertical" ? curpos < 0-(el.height()-t.height()) ? 0-(el.height()-t.height()) : curpos : curpos < 0-(el.width()-t.width()) ? 0-(el.width()-t.width()) : curpos; + curpos = curpos > 0 ? 0 : curpos; + + curpos = Math.abs(distance)>tw/10 ? distance<=0 ? Math.floor(curpos/tw)*tw : Math.ceil(curpos/tw)*tw : distance<0 ? Math.ceil(curpos/tw)*tw : Math.floor(curpos/tw)*tw; + + curpos = tdir==="vertical" ? curpos < 0-(el.height()-t.height()) ? 0-(el.height()-t.height()) : curpos : curpos < 0-(el.width()-t.width()) ? 0-(el.width()-t.width()) : curpos; + curpos = curpos > 0 ? 0 : curpos; + + if (tdir==="vertical") + punchgs.TweenLite.to(el,0.5,{top:curpos+"px",ease:punchgs.Power3.easeOut}); + else + punchgs.TweenLite.to(el,0.5,{left:curpos+"px",ease:punchgs.Power3.easeOut}); + + curpos = !curpos ? tdir==="vertical" ? el.position().top : el.position().left : curpos; + + el.data('offset',curpos); + el.data('distance',distance); + + setTimeout(function() { + opt.dragStartedOverSlider = false; + opt.dragStartedOverThumbs = false; + opt.dragStartedOverTabs = false; + },100); + container.parent().find(thumbs).removeClass("dragged"); + + return false; + } + break; + } + } + else { + if (phase=="end" && !istt) { + + opt.sc_indicator="arrow"; + + if ((swipe_wait_dir=="horizontal" && direction == "left") || (swipe_wait_dir=="vertical" && direction == "up")) { + opt.sc_indicator_dir = 0; + _R.callingNewSlide(opt,opt.c,1); + return false; + } + if ((swipe_wait_dir=="horizontal" && direction == "right") || (swipe_wait_dir=="vertical" && direction == "down")) { + opt.sc_indicator_dir = 1; + _R.callingNewSlide(opt,opt.c,-1); + return false; + } + + } + opt.dragStartedOverSlider = false; + opt.dragStartedOverThumbs = false; + opt.dragStartedOverTabs = false; + return true; + } + } + }); +}; + + +// NAVIGATION HELPER FUNCTIONS +var hdResets = function(o) { + o.hide_delay = !jQuery.isNumeric(parseInt(o.hide_delay,0)) ? 0.2 : o.hide_delay/1000; + o.hide_delay_mobile = !jQuery.isNumeric(parseInt(o.hide_delay_mobile,0)) ? 0.2 : o.hide_delay_mobile/1000; +}; + +var ckNO = function(opt) { + return opt && opt.enable; +}; + +var ckNOLO = function(opt) { + return opt && opt.enable && opt.hide_onleave===true && (opt.position===undefined ? true : !opt.position.match(/outer/g)); +}; + +var callAllDelayedCalls = function(container,opt) { + var cp = container.parent(); + + if (ckNOLO(opt.navigation.arrows)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.arrows.hide_delay_mobile : opt.navigation.arrows.hide_delay,showHideNavElements,[cp.find('.tparrows'),opt.navigation.arrows,"hide"]); + + if (ckNOLO(opt.navigation.bullets)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.bullets.hide_delay_mobile : opt.navigation.bullets.hide_delay,showHideNavElements,[cp.find('.tp-bullets'),opt.navigation.bullets,"hide"]); + + if (ckNOLO(opt.navigation.thumbnails)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.thumbnails.hide_delay_mobile : opt.navigation.thumbnails.hide_delay,showHideNavElements,[cp.find('.tp-thumbs'),opt.navigation.thumbnails,"hide"]); + + if (ckNOLO(opt.navigation.tabs)) + punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.tabs.hide_delay_mobile : opt.navigation.tabs.hide_delay,showHideNavElements,[cp.find('.tp-tabs'),opt.navigation.tabs,"hide"]); +}; + +var showHideNavElements = function(container,opt,dir,speed) { + speed = speed===undefined ? 0.5 : speed; + switch (dir) { + case "show": + punchgs.TweenLite.to(container,speed, {autoAlpha:1,ease:punchgs.Power3.easeInOut,overwrite:"auto"}); + break; + case "hide": + punchgs.TweenLite.to(container,speed, {autoAlpha:0,ease:punchgs.Power3.easeInOu,overwrite:"auto"}); + break; + } + +}; + + +// ADD ARROWS +var initArrows = function(container,o,opt) { + // SET oIONAL CLASSES + o.style = o.style === undefined ? "" : o.style; + o.left.style = o.left.style === undefined ? "" : o.left.style; + o.right.style = o.right.style === undefined ? "" : o.right.style; + + + // ADD LEFT AND RIGHT ARROWS + if (container.find('.tp-leftarrow.tparrows').length===0) + container.append('
    '+o.tmp+'
    '); + if (container.find('.tp-rightarrow.tparrows').length===0) + container.append('
    '+o.tmp+'
    '); + var la = container.find('.tp-leftarrow.tparrows'), + ra = container.find('.tp-rightarrow.tparrows'); + // CLICK HANDLINGS ON LEFT AND RIGHT ARROWS + ra.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 0;container.revnext();}); + la.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 1;container.revprev();}); + + // SHORTCUTS + o.right.j = container.find('.tp-rightarrow.tparrows'); + o.left.j = container.find('.tp-leftarrow.tparrows') + + // OUTTUER PADDING DEFAULTS + o.padding_top = parseInt((opt.carousel.padding_top||0),0), + o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0); + + // POSITION OF ARROWS + setNavElPositions(la,o.left); + setNavElPositions(ra,o.right); + + if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true; +}; + + +// PUT ELEMENTS VERTICAL / HORIZONTAL IN THE RIGHT POSITION +var putVinPosition = function(el,o) { + var elh = el.outerHeight(true), + elw = el.outerWidth(true), + a = o.v_align === "top" ? {top:"0px",y:Math.round(o.v_offset)+"px"} : o.v_align === "center" ? {top:"50%",y:Math.round(((0-elh/2)+o.v_offset))+"px"} : {top:"100%",y:Math.round((0-(elh+o.v_offset)))+"px"}; + if (!el.hasClass("outer-bottom")) punchgs.TweenLite.set(el,a); +}; + +var putHinPosition = function(el,o) { + + var elh = el.outerHeight(true), + elw = el.outerWidth(true), + a = o.h_align === "left" ? {left:"0px",x:Math.round(o.h_offset)+"px"} : o.h_align === "center" ? {left:"50%",x:Math.round(((0-elw/2)+o.h_offset))+"px"} : {left:"100%",x:Math.round((0-(elw+o.h_offset)))+"px"}; + punchgs.TweenLite.set(el,a); +}; + +// SET POSITION OF ELEMENTS +var setNavElPositions = function(el,o) { + + var wrapper = + el.closest('.tp-simpleresponsive').length>0 ? + el.closest('.tp-simpleresponsive') : + el.closest('.tp-revslider-mainul').length>0 ? + el.closest('.tp-revslider-mainul') : + el.closest('.rev_slider_wrapper').length>0 ? + el.closest('.rev_slider_wrapper'): + el.parent().find('.tp-revslider-mainul'), + ww = wrapper.width(), + wh = wrapper.height(); + + putVinPosition(el,o); + putHinPosition(el,o); + + if (o.position==="outer-left" && (o.sliderLayout=="fullwidth" || o.sliderLayout=="fullscreen")) + punchgs.TweenLite.set(el,{left:(0-el.outerWidth())+"px",x:o.h_offset+"px"}); + else + if (o.position==="outer-right" && (o.sliderLayout=="fullwidth" || o.sliderLayout=="fullscreen")) + punchgs.TweenLite.set(el,{right:(0-el.outerWidth())+"px",x:o.h_offset+"px"}); + + + // MAX WIDTH AND HEIGHT BASED ON THE SOURROUNDING CONTAINER + if (el.hasClass("tp-thumbs") || el.hasClass("tp-tabs")) { + + var wpad = el.data('wr_padding'), + maxw = el.data('maxw'), + maxh = el.data('maxh'), + mask = el.hasClass("tp-thumbs") ? el.find('.tp-thumb-mask') : el.find('.tp-tab-mask'), + cpt = parseInt((o.padding_top||0),0), + cpb = parseInt((o.padding_bottom||0),0); + + + // ARE THE CONTAINERS BIGGER THAN THE SLIDER WIDTH OR HEIGHT ? + if (maxw>ww && o.position!=="outer-left" && o.position!=="outer-right") { + punchgs.TweenLite.set(el,{left:"0px",x:0,maxWidth:(ww-2*wpad)+"px"}); + punchgs.TweenLite.set(mask,{maxWidth:(ww-2*wpad)+"px"}); + } else { + punchgs.TweenLite.set(el,{maxWidth:(maxw)+"px"}); + punchgs.TweenLite.set(mask,{maxWidth:(maxw)+"px"}); + } + + if (maxh+2*wpad>wh && o.position!=="outer-bottom" && o.position!=="outer-top") { + punchgs.TweenLite.set(el,{top:"0px",y:0,maxHeight:(cpt+cpb+(wh-2*wpad))+"px"}); + punchgs.TweenLite.set(mask,{maxHeight:(cpt+cpb+(wh-2*wpad))+"px"}); + } else { + punchgs.TweenLite.set(el,{maxHeight:(maxh)+"px"}); + punchgs.TweenLite.set(mask,{maxHeight:maxh+"px"}); + } + + if (o.position!=="outer-left" && o.position!=="outer-right") { + cpt = 0; + cpb = 0; + } + + // SPAN IS ENABLED + if (o.span===true && o.direction==="vertical") { + punchgs.TweenLite.set(el,{maxHeight:(cpt+cpb+(wh-2*wpad))+"px",height:(cpt+cpb+(wh-2*wpad))+"px",top:(0-cpt),y:0}); + putVinPosition(mask,o); + } else + + if (o.span===true && o.direction==="horizontal") { + punchgs.TweenLite.set(el,{maxWidth:"100%",width:(ww-2*wpad)+"px",left:0,x:0}); + putHinPosition(mask,o); + } + } +}; + + +// ADD A BULLET +var addBullet = function(container,o,li,opt) { + + // Check if Bullet exists already ? + if (container.find('.tp-bullets').length===0) { + o.style = o.style === undefined ? "" : o.style; + container.append('
    '); + } + + // Add Bullet Structure to the Bullet Container + var bw = container.find('.tp-bullets'), + linkto = li.data('index'), + inst = o.tmp; + + jQuery.each(opt.thumbs[li.index()].params,function(i,obj) { inst = inst.replace(obj.from,obj.to);}) + + + bw.append('
    '+inst+'
    '); + + // SET BULLET SPACES AND POSITION + var b = container.find('.justaddedbullet'), + am = container.find('.tp-bullet').length, + w = b.outerWidth()+parseInt((o.space===undefined? 0:o.space),0), + h = b.outerHeight()+parseInt((o.space===undefined? 0:o.space),0); + + //bgimage = li.data('thumb') !==undefined ? li.data('thumb') : li.find('.defaultimg').data('lazyload') !==undefined && li.find('.defaultimg').data('lazyload') !== 'undefined' ? li.find('.defaultimg').data('lazyload') : li.find('.defaultimg').data('src'); + + if (o.direction==="vertical") { + b.css({top:((am-1)*h)+"px", left:"0px"}); + bw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()}); + } + else { + b.css({left:((am-1)*w)+"px", top:"0px"}); + bw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()}); + } + + b.find('.tp-bullet-image').css({backgroundImage:'url('+opt.thumbs[li.index()].src+')'}); + // SET LINK TO AND LISTEN TO CLICK + b.data('liref',linkto); + b.click(function() { + opt.sc_indicator="bullet"; + container.revcallslidewithid(linkto); + container.find('.tp-bullet').removeClass("selected"); + jQuery(this).addClass("selected"); + + }); + // REMOVE HELP CLASS + b.removeClass("justaddedbullet"); + + // OUTTUER PADDING DEFAULTS + o.padding_top = parseInt((opt.carousel.padding_top||0),0), + o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0); + + if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true; + + // PUT ALL CONTAINER IN POSITION + setNavElPositions(bw,o); +}; + + +var cHex = function(hex,o){ + o = parseFloat(o); + hex = hex.replace('#',''); + var r = parseInt(hex.substring(0,2), 16), + g = parseInt(hex.substring(2,4), 16), + b = parseInt(hex.substring(4,6), 16), + result = 'rgba('+r+','+g+','+b+','+o+')'; + return result; +}; + +// ADD THUMBNAILS +var addThumb = function(container,o,li,what,opt) { + var thumbs = what==="tp-thumb" ? ".tp-thumbs" : ".tp-tabs", + thumbmask = what==="tp-thumb" ? ".tp-thumb-mask" : ".tp-tab-mask", + thumbsiw = what==="tp-thumb" ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper", + thumb = what==="tp-thumb" ? ".tp-thumb" : ".tp-tab", + timg = what ==="tp-thumb" ? ".tp-thumb-image" : ".tp-tab-image"; + + o.visibleAmount = o.visibleAmount>opt.slideamount ? opt.slideamount : o.visibleAmount; + o.sliderLayout = opt.sliderLayout; + + // Check if THUNBS/TABS exists already ? + if (container.parent().find(thumbs).length===0) { + o.style = o.style === undefined ? "" : o.style; + + var spanw = o.span===true ? "tp-span-wrapper" : "", + addcontent = '
    '; + + if (o.position==="outer-top") + container.parent().prepend(addcontent) + else + if (o.position==="outer-bottom") + container.after(addcontent); + else + container.append(addcontent); + + // OUTTUER PADDING DEFAULTS + o.padding_top = parseInt((opt.carousel.padding_top||0),0), + o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0); + + if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true; + } + + + + // Add Thumb/TAB Structure to the THUMB/TAB Container + var linkto = li.data('index'), + t = container.parent().find(thumbs), + tm = t.find(thumbmask), + tw = tm.find(thumbsiw), + maxw = o.direction==="horizontal" ? (o.width * o.visibleAmount) + (o.space*(o.visibleAmount-1)) : o.width, + maxh = o.direction==="horizontal" ? o.height : (o.height * o.visibleAmount) + (o.space*(o.visibleAmount-1)), + inst = o.tmp; + jQuery.each(opt.thumbs[li.index()].params,function(i,obj) { + inst = inst.replace(obj.from,obj.to); + }) + + tw.append('
    '+inst+'
    '); + + + // SET BULLET SPACES AND POSITION + var b = t.find('.justaddedthumb'), + am = t.find(thumb).length, + w = b.outerWidth()+parseInt((o.space===undefined? 0:o.space),0), + h = b.outerHeight()+parseInt((o.space===undefined? 0:o.space),0); + + // FILL CONTENT INTO THE TAB / THUMBNAIL + b.find(timg).css({backgroundImage:"url("+opt.thumbs[li.index()].src+")"}); + + + if (o.direction==="vertical") { + b.css({top:((am-1)*h)+"px", left:"0px"}); + tw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()}); + } + else { + b.css({left:((am-1)*w)+"px", top:"0px"}); + tw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()}); + } + + t.data('maxw',maxw); + t.data('maxh',maxh); + t.data('wr_padding',o.wrapper_padding); + var position = o.position === "outer-top" || o.position==="outer-bottom" ? "relative" : "absolute", + _margin = (o.position === "outer-top" || o.position==="outer-bottom") && (o.h_align==="center") ? "auto" : "0"; + + + tm.css({maxWidth:maxw+"px",maxHeight:maxh+"px",overflow:"hidden",position:"relative"}); + t.css({maxWidth:(maxw)+"px",/*margin:_margin, */maxHeight:maxh+"px",overflow:"visible",position:position,background:cHex(o.wrapper_color,o.wrapper_opacity),padding:o.wrapper_padding+"px",boxSizing:"contet-box"}); + + + + // SET LINK TO AND LISTEN TO CLICK + b.click(function() { + + opt.sc_indicator="bullet"; + var dis = container.parent().find(thumbsiw).data('distance'); + dis = dis === undefined ? 0 : dis; + if (Math.abs(dis)<10) { + container.revcallslidewithid(linkto); + container.parent().find(thumbs).removeClass("selected"); + jQuery(this).addClass("selected"); + } + }); + // REMOVE HELP CLASS + b.removeClass("justaddedthumb"); + + // PUT ALL CONTAINER IN POSITION + setNavElPositions(t,o); +}; + +var setONHeights = function(o) { + var ot = o.c.parent().find('.outer-top'), + ob = o.c.parent().find('.outer-bottom'); + o.top_outer = !ot.hasClass("tp-forcenotvisible") ? ot.outerHeight() || 0 : 0; + o.bottom_outer = !ob.hasClass("tp-forcenotvisible") ? ob.outerHeight() || 0 : 0; +}; + + +// HIDE NAVIGATION ON PURPOSE +var biggerNav = function(el,a,b,c) { + if (a>b || b>c) + el.addClass("tp-forcenotvisible") + else + el.removeClass("tp-forcenotvisible"); +}; + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.parallax.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.parallax.js new file mode 100644 index 0000000..3d3e79a --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.parallax.js @@ -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('
    ') + 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('
    '); + li.find('.tp-parallax-wrap').wrapAll('
    '); + + // MOVE THE REMOVED 3D LAYERS OUT OF THE PARALLAX GROUP + li.find('.rs-parallaxlevel-tobggroup').closest('.tp-parallax-wrap').wrapAll('
    '); + + 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); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.slideanims.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.slideanims.js new file mode 100644 index 0000000..c148d24 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.slideanims.js @@ -0,0 +1,1397 @@ +/************************************************ + * REVOLUTION 5.0 EXTENSION - SLIDE ANIMATIONS + * @version: 1.1.0 (10.11.2015) + * @requires jquery.themepunch.revolution.js + * @author ThemePunch +************************************************/ + +(function($) { + +var _R = jQuery.fn.revolution; + + /////////////////////////////////////////// + // EXTENDED FUNCTIONS AVAILABLE GLOBAL // + /////////////////////////////////////////// + jQuery.extend(true,_R, { + + animateSlide : function(nexttrans, comingtransition, container, opt, nextli, actli, nextsh, actsh, mtl) { + return animateSlideIntern(nexttrans, comingtransition, container, opt, nextli, actli, nextsh, actsh, mtl) + } + + }); + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// SLIDE TRANSITION MODULES //////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////// +// +// * Revolution Slider - TRANSITION PREDEFINITION MODULES +// * @version: 5.0.0 (13.02.2015) +// * @author ThemePunch +// +////////////////////////////////////////////////////// + + + /////////////////////// + // PREPARE THE SLIDE // + ////////////////////// + var prepareOneSlide = function(slotholder,opt,visible,vorh) { + + var sh=slotholder, + img = sh.find('.defaultimg'), + scalestart = sh.data('zoomstart'), + rotatestart = sh.data('rotationstart'); + + if (img.data('currotate')!=undefined) + rotatestart = img.data('currotate'); + if (img.data('curscale')!=undefined && vorh=="box") + scalestart = img.data('curscale')*100; + else + if (img.data('curscale')!=undefined) + scalestart = img.data('curscale'); + + _R.slotSize(img,opt); + + + var src = img.attr('src'), + bgcolor=img.css('backgroundColor'), + w = opt.width, + h = opt.height, + fulloff = img.data("fxof"), + fullyoff=0; + + if (opt.autoHeight=="on") h = opt.c.height(); + if (fulloff==undefined) fulloff=0; + + var off=0, + bgfit = img.data('bgfit'), + bgrepeat = img.data('bgrepeat'), + bgposition = img.data('bgposition'); + + if (bgfit==undefined) bgfit="cover"; + if (bgrepeat==undefined) bgrepeat="no-repeat"; + if (bgposition==undefined) bgposition="center center"; + + + switch (vorh) { + // BOX ANIMATION PREPARING + case "box": + // SET THE MINIMAL SIZE OF A BOX + //var basicsize = 0, + var x = 0, + y = 0; + + /*if (opt.sloth>opt.slotw) + basicsize=opt.sloth + else + basicsize=opt.slotw; + + opt.slotw = basicsize; + opt.sloth = basicsize;*/ + + + for (var j=0;j'+ + + '
    '+ + + '
    '+ + '
    '); + y=y+opt.sloth; + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + } + x=x+opt.slotw; + } + break; + + // SLOT ANIMATION PREPARING + case "vertical": + case "horizontal": + + if (vorh == "horizontal") { + if (!visible) var off=0-opt.slotw; + for (var i=0;i'+ + '
    '+ + '
    '+ + '
    '); + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + + } + } else { + if (!visible) var off=0-opt.sloth; + for (var i=0;i'+ + + '
    '+ + '
    '+ + + '
    '); + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + + } + } + break; + } + } + + + +var getSliderTransitionParameters = function(container,opt,comingtransition,nextsh,slidedirection) { + + + /* Transition Name , + Transition Code, + Transition Sub Code, + Max Slots, + MasterSpeed Delays, + Preparing Slots (box,slideh, slidev), + Call on nextsh (null = no, true/false for visibility first preparing), + Call on actsh (null = no, true/false for visibility first preparing), + Index of Animation + easeIn, + easeOut, + speed, + slots, + */ + + + var p1i = punchgs.Power1.easeIn, + p1o = punchgs.Power1.easeOut, + p1io = punchgs.Power1.easeInOut, + p2i = punchgs.Power2.easeIn, + p2o = punchgs.Power2.easeOut, + p2io = punchgs.Power2.easeInOut, + p3i = punchgs.Power3.easeIn, + p3o = punchgs.Power3.easeOut, + p3io = punchgs.Power3.easeInOut, + flatTransitions = [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], + premiumTransitions = [16,17,18,19,20,21,22,23,24,25,27], + nexttrans =0, + specials = 1, + STAindex = 0, + indexcounter =0, + STA = new Array, + transitionsArray = [ ['boxslide' , 0, 1, 10, 0,'box',false,null,0,p1o,p1o,500,6], + ['boxfade', 1, 0, 10, 0,'box',false,null,1,p1io,p1io,700,5], + ['slotslide-horizontal', 2, 0, 0, 200,'horizontal',true,false,2,p2io,p2io,700,3], + ['slotslide-vertical', 3, 0,0,200,'vertical',true,false,3,p2io,p2io,700,3], + ['curtain-1', 4, 3,0,0,'horizontal',true,true,4,p1o,p1o,300,5], + ['curtain-2', 5, 3,0,0,'horizontal',true,true,5,p1o,p1o,300,5], + ['curtain-3', 6, 3,25,0,'horizontal',true,true,6,p1o,p1o,300,5], + ['slotzoom-horizontal', 7, 0,0,400,'horizontal',true,true,7,p1o,p1o,300,7], + ['slotzoom-vertical', 8, 0,0,0,'vertical',true,true,8,p2o,p2o,500,8], + ['slotfade-horizontal', 9, 0,0,500,'horizontal',true,null,9,p2o,p2o,500,25], + ['slotfade-vertical', 10, 0,0 ,500,'vertical',true,null,10,p2o,p2o,500,25], + ['fade', 11, 0, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['crossfade', 11, 1, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['fadethroughdark', 11, 2, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['fadethroughlight', 11, 3, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['fadethroughtransparent', 11, 4, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1], + ['slideleft', 12, 0,1,0,'horizontal',true,true,12,p3io,p3io,1000,1], + ['slideup', 13, 0,1,0,'horizontal',true,true,13,p3io,p3io,1000,1], + ['slidedown', 14, 0,1,0,'horizontal',true,true,14,p3io,p3io,1000,1], + ['slideright', 15, 0,1,0,'horizontal',true,true,15,p3io,p3io,1000,1], + ['slideoverleft', 12, 7,1,0,'horizontal',true,true,12,p3io,p3io,1000,1], + ['slideoverup', 13, 7,1,0,'horizontal',true,true,13,p3io,p3io,1000,1], + ['slideoverdown', 14, 7,1,0,'horizontal',true,true,14,p3io,p3io,1000,1], + ['slideoverright', 15, 7,1,0,'horizontal',true,true,15,p3io,p3io,1000,1], + ['slideremoveleft', 12, 8,1,0,'horizontal',true,true,12,p3io,p3io,1000,1], + ['slideremoveup', 13, 8,1,0,'horizontal',true,true,13,p3io,p3io,1000,1], + ['slideremovedown', 14, 8,1,0,'horizontal',true,true,14,p3io,p3io,1000,1], + ['slideremoveright', 15, 8,1,0,'horizontal',true,true,15,p3io,p3io,1000,1], + ['papercut', 16, 0,0,600,'',null,null,16,p3io,p3io,1000,2], + ['3dcurtain-horizontal', 17, 0,20,100,'vertical',false,true,17,p1io,p1io,500,7], + ['3dcurtain-vertical', 18, 0,10,100,'horizontal',false,true,18,p1io,p1io,500,5], + ['cubic', 19, 0,20,600,'horizontal',false,true,19,p3io,p3io,500,1], + ['cube',19,0,20,600,'horizontal',false,true,20,p3io,p3io,500,1], + ['flyin', 20, 0,4,600,'vertical',false,true,21,p3o,p3io,500,1], + ['turnoff', 21, 0,1,500,'horizontal',false,true,22,p3io,p3io,500,1], + ['incube', 22, 0,20,200,'horizontal',false,true,23,p2io,p2io,500,1], + ['cubic-horizontal', 23, 0,20,500,'vertical',false,true,24,p2o,p2o,500,1], + ['cube-horizontal', 23, 0,20,500,'vertical',false,true,25,p2o,p2o,500,1], + ['incube-horizontal', 24, 0,20,500,'vertical',false,true,26,p2io,p2io,500,1], + ['turnoff-vertical', 25, 0,1,200,'horizontal',false,true,27,p2io,p2io,500,1], + ['fadefromright', 12, 1,1,0,'horizontal',true,true,28,p2io,p2io,1000,1], + ['fadefromleft', 15, 1,1,0,'horizontal',true,true,29,p2io,p2io,1000,1], + ['fadefromtop', 14, 1,1,0,'horizontal',true,true,30,p2io,p2io,1000,1], + ['fadefrombottom', 13, 1,1,0,'horizontal',true,true,31,p2io,p2io,1000,1], + ['fadetoleftfadefromright', 12, 2,1,0,'horizontal',true,true,32,p2io,p2io,1000,1], + ['fadetorightfadefromleft', 15, 2,1,0,'horizontal',true,true,33,p2io,p2io,1000,1], + ['fadetobottomfadefromtop', 14, 2,1,0,'horizontal',true,true,34,p2io,p2io,1000,1], + ['fadetotopfadefrombottom', 13, 2,1,0,'horizontal',true,true,35,p2io,p2io,1000,1], + ['parallaxtoright', 12, 3,1,0,'horizontal',true,true,36,p2io,p2i,1500,1], + ['parallaxtoleft', 15, 3,1,0,'horizontal',true,true,37,p2io,p2i,1500,1], + ['parallaxtotop', 14, 3,1,0,'horizontal',true,true,38,p2io,p1i,1500,1], + ['parallaxtobottom', 13, 3,1,0,'horizontal',true,true,39,p2io,p1i,1500,1], + ['scaledownfromright', 12, 4,1,0,'horizontal',true,true,40,p2io,p2i,1000,1], + ['scaledownfromleft', 15, 4,1,0,'horizontal',true,true,41,p2io,p2i,1000,1], + ['scaledownfromtop', 14, 4,1,0,'horizontal',true,true,42,p2io,p2i,1000,1], + ['scaledownfrombottom', 13, 4,1,0,'horizontal',true,true,43,p2io,p2i,1000,1], + ['zoomout', 13, 5,1,0,'horizontal',true,true,44,p2io,p2i,1000,1], + ['zoomin', 13, 6,1,0,'horizontal',true,true,45,p2io,p2i,1000,1], + ['slidingoverlayup', 27, 0,1,0,'horizontal',true,true,47,p1io,p1o,2000,1], + ['slidingoverlaydown', 28, 0,1,0,'horizontal',true,true,48,p1io,p1o,2000,1], + ['slidingoverlayright', 30, 0,1,0,'horizontal',true,true,49,p1io,p1o,2000,1], + ['slidingoverlayleft', 29, 0,1,0,'horizontal',true,true,50,p1io,p1o,2000,1], + ['parallaxcirclesup', 31, 0,1,0,'horizontal',true,true,51,p2io,p1i,1500,1], + ['parallaxcirclesdown', 32, 0,1,0,'horizontal',true,true,52,p2io,p1i,1500,1], + ['parallaxcirclesright', 33, 0,1,0,'horizontal',true,true,53,p2io,p1i,1500,1], + ['parallaxcirclesleft', 34, 0,1,0,'horizontal',true,true,54,p2io,p1i,1500,1], + ['notransition',26,0,1,0,'horizontal',true,null,46,p2io,p2i,1000,1], + ['parallaxright', 12, 3,1,0,'horizontal',true,true,55,p2io,p2i,1500,1], + ['parallaxleft', 15, 3,1,0,'horizontal',true,true,56,p2io,p2i,1500,1], + ['parallaxup', 14, 3,1,0,'horizontal',true,true,57,p2io,p1i,1500,1], + ['parallaxdown', 13, 3,1,0,'horizontal',true,true,58,p2io,p1i,1500,1], + ]; + + opt.duringslidechange = true; + + // INTERNAL TEST FOR TRANSITIONS + opt.testanims = false; + if (opt.testanims==true) { + opt.nexttesttransform = opt.nexttesttransform === undefined ? 34 : opt.nexttesttransform + 1; + opt.nexttesttransform = opt.nexttesttransform>70 ? 0 : opt.nexttesttransform; + comingtransition = transitionsArray[opt.nexttesttransform][0]; + console.log(comingtransition+" "+opt.nexttesttransform+" "+transitionsArray[opt.nexttesttransform][1]+" "+transitionsArray[opt.nexttesttransform][2]); + } + + + // CHECK AUTO DIRECTION FOR TRANSITION ARTS + jQuery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax"],function(i,b) { + if (comingtransition==b+"horizontal") comingtransition = slidedirection!=1 ? b+"left" : b+"right"; + if (comingtransition==b+"vertical") comingtransition = slidedirection!=1 ? b+"up" : b+"down"; + }); + + + + // RANDOM TRANSITIONS + if (comingtransition == "random") { + comingtransition = Math.round(Math.random()*transitionsArray.length-1); + if (comingtransition>transitionsArray.length-1) comingtransition=transitionsArray.length-1; + } + + // RANDOM FLAT TRANSITIONS + if (comingtransition == "random-static") { + comingtransition = Math.round(Math.random()*flatTransitions.length-1); + if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1; + comingtransition = flatTransitions[comingtransition]; + } + + // RANDOM PREMIUM TRANSITIONS + if (comingtransition == "random-premium") { + comingtransition = Math.round(Math.random()*premiumTransitions.length-1); + if (comingtransition>premiumTransitions.length-1) comingtransition=premiumTransitions.length-1; + comingtransition = premiumTransitions[comingtransition]; + } + + //joomla only change: avoid problematic transitions that don't compatible with mootools + var problematicTransitions = [12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]; + if(opt.isJoomla == true && window.MooTools != undefined && problematicTransitions.indexOf(comingtransition) != -1){ + + var newTransIndex = Math.round(Math.random() * (premiumTransitions.length-2) ) + 1; + + //some limits fix + if (newTransIndex > premiumTransitions.length-1) + newTransIndex = premiumTransitions.length-1; + + if(newTransIndex == 0) + newTransIndex = 1; + + comingtransition = premiumTransitions[newTransIndex]; + } + + + + function findTransition() { + // FIND THE RIGHT TRANSITION PARAMETERS HERE + jQuery.each(transitionsArray,function(inde,trans) { + if (trans[0] == comingtransition || trans[8] == comingtransition) { + nexttrans = trans[1]; + specials = trans[2]; + STAindex = indexcounter; + } + indexcounter = indexcounter+1; + }) + } + + findTransition(); + + + + if (nexttrans>30) nexttrans = 30; + if (nexttrans<0) nexttrans = 0; + + + + var obj = new Object(); + obj.nexttrans = nexttrans; + obj.STA = transitionsArray[STAindex]; // PREPARED DEFAULT SETTINGS PER TRANSITION + obj.specials = specials; + return obj; + + +} + + +/************************************* + - ANIMATE THE SLIDE - +*************************************/ + +var gSlideTransA = function(a,i) { + if (i==undefined || jQuery.isNumeric(a)) return a; + if (a==undefined) return a; + return a.split(",")[i]; +} + +var animateSlideIntern = function(nexttrans, comingtransition, container, opt, nextli, actli, nextsh, actsh, mtl) { + + // GET THE TRANSITION + + var ai = actli.index(), + ni = nextli.index(), + slidedirection = ni opt.delay ? opt.delay : masterspeed; + + // ADJUST MASTERSPEED + masterspeed = masterspeed + STA[4]; + + + /////////////////////// + // ADJUST SLOTS // + /////////////////////// + opt.slots = gSlideTransA(nextli.data('slotamount'),ctid); + opt.slots = opt.slots==undefined || opt.slots=="default" ? STA[12] : opt.slots=="random" ? Math.round(Math.random()*12+4) : opt.slots; + opt.slots = opt.slots < 1 ? comingtransition=="boxslide" ? Math.round(Math.random()*6+3) : comingtransition=="flyin" ? Math.round(Math.random()*4+1) : opt.slots : opt.slots; + opt.slots = (nexttrans==4 || nexttrans==5 || nexttrans==6) && opt.slots<3 ? 3 : opt.slots; + opt.slots = STA[3] != 0 ? Math.min(opt.slots,STA[3]) : opt.slots; + opt.slots = nexttrans==9 ? opt.width/20 : nexttrans==10 ? opt.height/20 : opt.slots; + + + ///////////////////////////////////////////// + // SET THE ACTUAL AMOUNT OF SLIDES !! // + // SET A RANDOM AMOUNT OF SLOTS // + /////////////////////////////////////////// + opt.rotate = gSlideTransA(nextli.data('rotate'),ctid); + opt.rotate = opt.rotate==undefined || opt.rotate=="default" ? 0 : opt.rotate==999 || opt.rotate=="random" ? Math.round(Math.random()*360) : opt.rotate; + opt.rotate = (!jQuery.support.transition || opt.ie || opt.ie9) ? 0 : opt.rotate; + + + + + + // prepareOneSlide + if (nexttrans!=11) { + if (STA[7] !=null) prepareOneSlide(actsh,opt,STA[7],STA[5]); + if (STA[6] !=null) prepareOneSlide(nextsh,opt,STA[6],STA[5]); + } + + // DEFAULT SETTINGS FOR NEXT AND ACT SH + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultvid'),{y:0,x:0,top:0,left:0,scale:1}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('.defaultvid'),{y:0,x:0,top:0,left:0,scale:1}),0); + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultvid'),{y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('.defaultvid'),{y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(nextsh,{autoAlpha:1,y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(actsh,{autoAlpha:1,y:"+0%",x:"+0%"}),0); + mtl.add(punchgs.TweenLite.set(nextsh.parent(),{backgroundColor:"transparent"}),0); + mtl.add(punchgs.TweenLite.set(actsh.parent(),{backgroundColor:"transparent"}),0); + + + + var ei= gSlideTransA(nextli.data('easein'),ctid), + eo =gSlideTransA(nextli.data('easeout'),ctid); + + ei = ei==="default" ? STA[9] || punchgs.Power2.easeInOut : ei || STA[9] || punchgs.Power2.easeInOut; + eo = eo==="default" ? STA[10] || punchgs.Power2.easeInOut : eo || STA[10] || punchgs.Power2.easeInOut; + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==0) { // BOXSLIDE + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var maxz = Math.ceil(opt.height/opt.sloth); + var curz = 0; + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + curz=curz+1; + if (curz==maxz) curz=0; + + mtl.add(punchgs.TweenLite.from(ss,(masterspeed)/600, + {opacity:0,top:(0-opt.sloth),left:(0-opt.slotw),rotation:opt.rotate,force3D:"auto",ease:ei}),((j*15) + ((curz)*30))/1500); + }); + } + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==1) { + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var maxtime, + maxj = 0; + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + rand=Math.random()*masterspeed+300, + rand2=Math.random()*500+200; + if (rand+rand2>maxtime) { + maxtime = rand2+rand2; + maxj = j; + } + mtl.add(punchgs.TweenLite.from(ss,rand/1000, + {autoAlpha:0, force3D:"auto",rotation:opt.rotate,ease:ei}),rand2/1000); + }); + } + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==2) { + + var subtl = new punchgs.TimelineLite(); + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{left:opt.slotw,ease:ei, force3D:"auto",rotation:(0-opt.rotate)}),0); + mtl.add(subtl,0); + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{left:0-opt.slotw,ease:ei, force3D:"auto",rotation:opt.rotate}),0); + mtl.add(subtl,0); + }); + } + + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==3) { + var subtl = new punchgs.TimelineLite(); + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{top:opt.sloth,ease:ei,rotation:opt.rotate,force3D:"auto",transformPerspective:600}),0); + mtl.add(subtl,0); + + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{top:0-opt.sloth,rotation:opt.rotate,ease:eo,force3D:"auto",transformPerspective:600}),0); + mtl.add(subtl,0); + }); + } + + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==4 || nexttrans==5) { + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var cspeed = (masterspeed)/1000, + ticker = cspeed, + subtl = new punchgs.TimelineLite(); + + actsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + var del = (i*cspeed)/opt.slots; + if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; + subtl.add(punchgs.TweenLite.to(ss,cspeed*3,{transformPerspective:600,force3D:"auto",top:0+opt.height,opacity:0.5,rotation:opt.rotate,ease:ei,delay:del}),0); + mtl.add(subtl,0); + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + var del = (i*cspeed)/opt.slots; + if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; + subtl.add(punchgs.TweenLite.from(ss,cspeed*3, + {top:(0-opt.height),opacity:0.5,rotation:opt.rotate,force3D:"auto",ease:punchgs.eo,delay:del}),0); + mtl.add(subtl,0); + + }); + + + } + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==6) { + + + if (opt.slots<2) opt.slots=2; + if (opt.slots % 2) opt.slots = opt.slots+1; + + var subtl = new punchgs.TimelineLite(); + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + actsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + if (i+1opt.delay) masterspeed=opt.delay; + var subtl = new punchgs.TimelineLite(); + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this).find('div'); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{ + left:(0-opt.slotw/2)+'px', + top:(0-opt.height/2)+'px', + width:(opt.slotw*2)+"px", + height:(opt.height*2)+"px", + opacity:0, + rotation:opt.rotate, + force3D:"auto", + ease:ei}),0); + mtl.add(subtl,0); + + }); + + ////////////////////////////////////////////////////////////// + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // + /////////////////////////////////////////////////////////////// + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this).find('div'); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,top:0,opacity:0,transformPerspective:600}, + {left:(0-i*opt.slotw)+'px', + ease:eo, + force3D:"auto", + top:(0)+'px', + width:opt.width, + height:opt.height, + opacity:1,rotation:0, + delay:0.1}),0); + mtl.add(subtl,0); + }); + } + + + + + //////////////////////////////////// + // THE SLOTSZOOM - TRANSITION II. // + //////////////////////////////////// + if (nexttrans==8) { + + masterspeed = masterspeed * 3; + if (masterspeed>opt.delay) masterspeed=opt.delay; + var subtl = new punchgs.TimelineLite(); + + + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this).find('div'); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000, + {left:(0-opt.width/2)+'px', + top:(0-opt.sloth/2)+'px', + width:(opt.width*2)+"px", + height:(opt.sloth*2)+"px", + force3D:"auto", + ease:ei, + opacity:0,rotation:opt.rotate}),0); + mtl.add(subtl,0); + + }); + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // + /////////////////////////////////////////////////////////////// + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this).find('div'); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0, top:0,opacity:0,force3D:"auto"}, + {'left':(0)+'px', + 'top':(0-i*opt.sloth)+'px', + 'width':(nextsh.find('.defaultimg').data('neww'))+"px", + 'height':(nextsh.find('.defaultimg').data('newh'))+"px", + opacity:1, + ease:eo,rotation:0, + }),0); + mtl.add(subtl,0); + }); + } + + + //////////////////////////////////////// + // THE SLOTSFADE - TRANSITION III. // + ////////////////////////////////////// + if (nexttrans==9 || nexttrans==10) { + var ssamount=0; + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + ssamount++; + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,{autoAlpha:0,force3D:"auto",transformPerspective:600}, + {autoAlpha:1,ease:ei,delay:(i*5)/1000}),0); + + }); + } + + + ////////////////////// + // SLIDING OVERLAYS // + ////////////////////// + + if (nexttrans==27||nexttrans==28||nexttrans==29||nexttrans==30) { + + var slot = nextsh.find('.slot'), + nd = nexttrans==27 || nexttrans==28 ? 1 : 2, + mhp = nexttrans==27 || nexttrans==29 ? "-100%" : "+100%", + php = nexttrans==27 || nexttrans==29 ? "+100%" : "-100%", + mep = nexttrans==27 || nexttrans==29 ? "-80%" : "80%", + pep = nexttrans==27 || nexttrans==29 ? "80%" : "-80%", + ptp = nexttrans==27 || nexttrans==29 ? "10%" : "-10%", + fa = {overwrite:"all"}, + ta = {autoAlpha:0,zIndex:1,force3D:"auto",ease:ei}, + fb = {position:"inherit",autoAlpha:0,overwrite:"all",zIndex:1}, + tb = {autoAlpha:1,force3D:"auto",ease:eo}, + fc = {overwrite:"all",zIndex:2}, + tc = {autoAlpha:1,force3D:"auto",overwrite:"all",ease:ei}, + fd = {overwrite:"all",zIndex:2}, + td = {autoAlpha:1,force3D:"auto",ease:ei}, + at = nd==1 ? "y" : "x"; + + fa[at] = "0px"; + ta[at] = mhp; + fb[at] = ptp; + tb[at] = "0%"; + fc[at] = php; + tc[at] = mhp; + fd[at] = mep; + td[at] = pep; + + slot.append(''); + + mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,fa,ta),0); + mtl.add(punchgs.TweenLite.fromTo(nextsh.find('.defaultimg'),masterspeed/2000,fb,tb),masterspeed/2000); + mtl.add(punchgs.TweenLite.fromTo(slot,masterspeed/1000,fc,tc),0); + mtl.add(punchgs.TweenLite.fromTo(slot.find('.slotslide div'),masterspeed/1000,fd,td),0); + } + + + //////////////////////////////// + // PARALLAX CIRCLE TRANSITION // + //////////////////////////////// + + //nexttrans = 34; + if (nexttrans==31||nexttrans==32||nexttrans==33||nexttrans==34) { // up , down, right ,left + + masterspeed = 6000; + ei = punchgs.Power3.easeInOut; + + var ms = masterspeed / 1000; + mas = ms - ms/5, + _nt = nexttrans, + fy = _nt == 31 ? "+100%" : _nt == 32 ? "-100%" : "0%", + fx = _nt == 33 ? "+100%" : _nt == 34 ? "-100%" : "0%", + ty = _nt == 31 ? "-100%" : _nt == 32 ? "+100%" : "0%", + tx = _nt == 33 ? "-100%" : _nt == 34 ? "+100%" : "0%", + + + mtl.add(punchgs.TweenLite.fromTo(actsh,ms-(ms*0.2),{y:0,x:0},{y:ty,x:tx,ease:eo}),ms*0.2); + mtl.add(punchgs.TweenLite.fromTo(nextsh,ms,{y:fy, x:fx},{y:"0%",x:"0%",ease:ei}),0); + //mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:0}),0);border:1px solid #fff + + function moveCircles(cont,ms,_nt,dir,ei) { + var slot = cont.find('.slot'), + pieces = 6, + sizearray = [2,1.2,0.9,0.7,0.55,0.42], + sw = cont.width(), + sh = cont.height(), + di = sh>sw ? (sw*2) / pieces : (sh*2) / pieces; + slot.wrap('
    '); + + for (var i=0; ish ? sizearray[i]*sw : sizearray[i]*sh, + nw = nh, + + nl = 0 + (nw/2 - sw/2), + nt = 0 + (nh/2 - sh/2), + br = i!=0 ? "50%" : "0", + + ftop = _nt == 31 ? sh/2 - nh/2 : _nt == 32 ? sh/2 - nh/2 : sh/2 - nh/2, + fleft = _nt == 33 ? sw/2 - nw/2 : _nt == 34 ? sw - nw : sw/2 - nw/2, + fa = {scale:1,transformOrigo:"50% 50%",width:nw+"px",height:nh+"px",top:ftop+"px",left:fleft+"px",borderRadius:br}, + ta = {scale:1,top:sh/2 - nh/2,left:sw/2 - nw/2,ease:ei}, + + fftop = _nt == 31 ? nt : _nt == 32 ? nt : nt, + ffleft = _nt == 33 ? nl : _nt == 34 ? nl+(sw/2) : nl, + fb = {width:sw,height:sh,autoAlpha:1,top:fftop+"px",position:"absolute",left:ffleft+"px"}, + tb = {top:nt+"px",left:nl+"px",ease:ei}, + + speed = ms, + delay = 0; + + + + + mtl.add(punchgs.TweenLite.fromTo(t,speed,fa,ta),delay); + mtl.add(punchgs.TweenLite.fromTo(s,speed,fb,tb),delay); + mtl.add(punchgs.TweenLite.fromTo(t,0.001,{autoAlpha:0},{autoAlpha:1}),0); + } + }) + } + + nextsh.find('.slot').remove(); + nextsh.find('.defaultimg').clone().appendTo(nextsh).addClass("slot"); + moveCircles(nextsh, ms,_nt,"in",ei); + // moveCircles(actsh, mas,_nt,"out",eo); + + + + + + + + } + + ///////////////////////////// + // SIMPLE FADE ANIMATIONS // + //////////////////////////// + if (nexttrans==11) { + + if (specials>4) specials = 0; + + var ssamount=0, + bgcol = specials == 2 ? "#000" : specials == 3 ? "#fff" : "transparent"; + + switch (specials) { + case 0: //FADE + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0); + break; + + case 1: // CROSSFADE + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,{autoAlpha:1},{autoAlpha:0,force3D:"auto",ease:ei}),0); + break; + + case 2: + case 3: + case 4: + mtl.add(punchgs.TweenLite.set(actsh.parent(),{backgroundColor:bgcol,force3D:"auto"}),0); + mtl.add(punchgs.TweenLite.set(nextsh.parent(),{backgroundColor:"transparent",force3D:"auto"}),0); + mtl.add(punchgs.TweenLite.to(actsh,masterspeed/2000,{autoAlpha:0,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/2000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),masterspeed/2000); + break; + + } + + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('defaultimg'),{autoAlpha:1}),0); + + + } + + if (nexttrans==26) { + var ssamount=0; + masterspeed=0; + mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.to(actsh,masterspeed/1000,{autoAlpha:0,force3D:"auto",ease:ei}),0); + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + mtl.add(punchgs.TweenLite.set(actsh.find('defaultimg'),{autoAlpha:1}),0); + } + + + + if (nexttrans==12 || nexttrans==13 || nexttrans==14 || nexttrans==15) { + masterspeed = masterspeed; + if (masterspeed>opt.delay) masterspeed=opt.delay; + //masterspeed = 1000; + + setTimeout(function() { + punchgs.TweenLite.set(actsh.find('.defaultimg'),{autoAlpha:0}); + + },100); + + var oow = opt.width, + ooh = opt.height, + ssn=nextsh.find('.slotslide, .defaultvid'), + twx = 0, + twy = 0, + op = 1, + scal = 1, + fromscale = 1, + speedy = masterspeed/1000, + speedy2 = speedy; + + + if (opt.sliderLayout=="fullwidth" || opt.sliderLayout=="fullscreen") { + oow=ssn.width(); + ooh=ssn.height(); + } + + + + if (nexttrans==12) + twx = oow; + else + if (nexttrans==15) + twx = 0-oow; + else + if (nexttrans==13) + twy = ooh; + else + if (nexttrans==14) + twy = 0-ooh; + + + // DEPENDING ON EXTENDED SPECIALS, DIFFERENT SCALE AND OPACITY FUNCTIONS NEED TO BE ADDED + if (specials == 1) op = 0; + if (specials == 2) op = 0; + if (specials == 3) speedy = masterspeed / 1300; + + if (specials==4 || specials==5) + scal=0.6; + if (specials==6 ) + scal=1.4; + + + if (specials==5 || specials==6) { + fromscale=1.4; + op=0; + oow=0; + ooh=0;twx=0;twy=0; + } + if (specials==6) fromscale=0.6; + var dd = 0; + + if (specials==7) { + oow = 0; + ooh = 0; + } + + var inc = nextsh.find('.slotslide'), + outc = actsh.find('.slotslide, .defaultvid'); + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:15}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0); + + if (specials==8) { + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:15}),0); + mtl.add(punchgs.TweenLite.set(inc,{left:0, top:0, scale:1, opacity:1,rotation:0,ease:ei,force3D:"auto"}),0); + } else { + + mtl.add(punchgs.TweenLite.from(inc,speedy,{left:twx, top:twy, scale:fromscale, opacity:op,rotation:opt.rotate,ease:ei,force3D:"auto"}),0); + } + + if (specials==4 || specials==5) { + oow = 0; ooh=0; + } + + if (specials!=1) + switch (nexttrans) { + case 12: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'left':(0-oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + case 15: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'left':(oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + case 13: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'top':(0-ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + case 14: + mtl.add(punchgs.TweenLite.to(outc,speedy2,{'top':(ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0); + break; + } + } + + ////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVI. // + ////////////////////////////////////// + if (nexttrans==16) { // PAPERCUT + + + var subtl = new punchgs.TimelineLite(); + mtl.add(punchgs.TweenLite.set(actli,{'position':'absolute','z-index':20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':15}),0); + + + // PREPARE THE CUTS + actli.wrapInner('
    '); + + actli.find('.tp-half-one').clone(true).appendTo(actli).addClass("tp-half-two"); + actli.find('.tp-half-two').removeClass('tp-half-one'); + + var oow = opt.width, + ooh = opt.height; + if (opt.autoHeight=="on") + ooh = container.height(); + + + actli.find('.tp-half-one .defaultimg').wrap('
    ') + actli.find('.tp-half-two .defaultimg').wrap('
    ') + actli.find('.tp-half-two .defaultimg').css({position:'absolute',top:'-50%'}); + actli.find('.tp-half-two .tp-caption').wrapAll('
    '); + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-two'), + {width:oow,height:ooh,overflow:'hidden',zIndex:15,position:'absolute',top:ooh/2,left:'0px',transformPerspective:600,transformOrigin:"center bottom"}),0); + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'), + {width:oow,height:ooh/2,overflow:'visible',zIndex:10,position:'absolute',top:'0px',left:'0px',transformPerspective:600,transformOrigin:"center top"}),0); + + // ANIMATE THE CUTS + var img=actli.find('.defaultimg'), + ro1=Math.round(Math.random()*20-10), + ro2=Math.round(Math.random()*20-10), + ro3=Math.round(Math.random()*20-10), + xof = Math.random()*0.4-0.2, + yof = Math.random()*0.4-0.2, + sc1=Math.random()*1+1, + sc2=Math.random()*1+1, + sc3=Math.random()*0.3+0.3; + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'),{overflow:'hidden'}),0); + mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-one'),masterspeed/800, + {width:oow,height:ooh/2,position:'absolute',top:'0px',left:'0px',force3D:"auto",transformOrigin:"center top"}, + {scale:sc1,rotation:ro1,y:(0-ooh-ooh/4),autoAlpha:0,ease:ei}),0); + mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-two'),masterspeed/800, + {width:oow,height:ooh,overflow:'hidden',position:'absolute',top:ooh/2,left:'0px',force3D:"auto",transformOrigin:"center bottom"}, + {scale:sc2,rotation:ro2,y:ooh+ooh/4,ease:ei,autoAlpha:0,onComplete:function() { + // CLEAN UP + punchgs.TweenLite.set(actli,{'position':'absolute','z-index':15}); + punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':20}); + if (actli.find('.tp-half-one').length>0) { + actli.find('.tp-half-one .defaultimg').unwrap(); + actli.find('.tp-half-one .slotholder').unwrap(); + } + actli.find('.tp-half-two').remove(); + }}),0); + + subtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + + if (actli.html()!=null) + mtl.add(punchgs.TweenLite.fromTo(nextli,(masterspeed-200)/1000, + {scale:sc3,x:(opt.width/4)*xof, y:(ooh/4)*yof,rotation:ro3,force3D:"auto",transformOrigin:"center center",ease:eo}, + {autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0); + + mtl.add(subtl,0); + + + } + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVII. // + /////////////////////////////////////// + if (nexttrans==17) { // 3D CURTAIN HORIZONTAL + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/800, + {opacity:0,rotationY:0,scale:0.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, + {opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:ei,delay:j*0.06}),0); + + }); + } + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVIII. // + /////////////////////////////////////// + if (nexttrans==18) { // 3D CURTAIN VERTICAL + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/500, + {autoAlpha:0,rotationY:110,scale:0.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, + {autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:ei,delay:j*0.06}),0); + }); + + + + } + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XIX. // + /////////////////////////////////////// + if (nexttrans==19 || nexttrans==22) { // IN CUBE + + var subtl = new punchgs.TimelineLite(); + //SET DEFAULT IMG UNVISIBLE + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0); + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var rot = 90, + op = 1, + torig ="center center "; + + if (slidedirection==1) rot = -90; + + if (nexttrans==19) { + torig = torig+"-"+opt.height/2; + op=0; + + } else { + torig = torig+opt.height/2; + } + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + punchgs.TweenLite.set(container,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}); + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:opt.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationX:rot}, + {left:0,rotationY:0,top:0,z:0, scale:1,force3D:"auto",rotationX:0, delay:(j*50)/1000,ease:ei}),0); + subtl.add(punchgs.TweenLite.to(ss,0.1,{autoAlpha:1,delay:(j*50)/1000}),0); + mtl.add(subtl); + }); + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + var rot = -90; + if (slidedirection==1) rot = 90; + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationX:0}, + {autoAlpha:1,rotationY:opt.rotate,top:0,z:10, scale:1,rotationX:rot, delay:(j*50)/1000,force3D:"auto",ease:eo}),0); + + mtl.add(subtl); + }); + mtl.add(punchgs.TweenLite.set(actli,{zIndex:18}),0); + } + + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==20 ) { // FLYIN + + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + if (slidedirection==1) { + var ofx = -opt.width + var rot =80; + var torig = "20% 70% -"+opt.height/2; + } else { + var ofx = opt.width; + var rot = -80; + var torig = "80% 70% -"+opt.height/2; + } + + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + d = (j*50)/1000; + + + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:ofx,rotationX:40,z:-600, opacity:op,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,transformStyle:"flat",rotationY:rot}, + {left:0,rotationX:0,opacity:1,top:0,z:0, scale:1,rotationY:0, delay:d,ease:ei}),0); + + + }); + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + d = (j*50)/1000; + d = j>0 ? d + masterspeed/9000 : 0; + + if (slidedirection!=1) { + var ofx = -opt.width/2 + var rot =30; + var torig = "20% 70% -"+opt.height/2; + } else { + var ofx = opt.width/2; + var rot = -30; + var torig = "80% 70% -"+opt.height/2; + } + eo=punchgs.Power2.easeInOut; + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {opacity:1,rotationX:0,top:0,z:0,scale:1,left:0, force3D:"auto",transformPerspective:600,transformOrigin:torig, transformStyle:"flat",rotationY:0}, + {opacity:1,rotationX:20,top:0, z:-600, left:ofx, force3D:"auto",rotationY:rot, delay:d,ease:eo}),0); + + + }); + } + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==21 || nexttrans==25) { // TURNOFF + + + //SET DEFAULT IMG UNVISIBLE + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var rot = 90, + ofx = -opt.width, + rot2 = -rot; + + if (slidedirection==1) { + if (nexttrans==25) { + var torig = "center top 0"; + rot = opt.rotate; + } else { + var torig = "left center 0"; + rot2 = opt.rotate; + } + + } else { + ofx = opt.width; + rot = -90; + if (nexttrans==25) { + var torig = "center bottom 0" + rot2 = -rot; + rot = opt.rotate; + } else { + var torig = "right center 0"; + rot2 = opt.rotate; + } + } + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + ms2 = ((masterspeed/1.5)/3); + + + mtl.add(punchgs.TweenLite.fromTo(ss,(ms2*2)/1000, + {left:0,transformStyle:"flat",rotationX:rot2,z:0, autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:torig,rotationY:rot}, + {left:0,rotationX:0,top:0,z:0, autoAlpha:1,scale:1,rotationY:0,force3D:"auto",delay:ms2/1000, ease:ei}),0); + }); + + + if (slidedirection!=1) { + ofx = -opt.width + rot = 90; + + if (nexttrans==25) { + torig = "center top 0" + rot2 = -rot; + rot = opt.rotate; + } else { + torig = "left center 0"; + rot2 = opt.rotate; + } + + } else { + ofx = opt.width; + rot = -90; + if (nexttrans==25) { + torig = "center bottom 0" + rot2 = -rot; + rot = opt.rotate; + } else { + torig = "right center 0"; + rot2 = opt.rotate; + } + } + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,transformStyle:"flat",rotationX:0,z:0, autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:torig,rotationY:0}, + {left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto", scale:1,rotationY:rot,ease:eo}),0); + }); + } + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==23 || nexttrans == 24) { // cube-horizontal - inboxhorizontal + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var rot = -90, + op = 1, + opx=0; + + if (slidedirection==1) rot = 90; + if (nexttrans==23) { + var torig = "center center -"+opt.width/2; + op=0; + } else + var torig = "center center "+opt.width/2; + + punchgs.TweenLite.set(container,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}); + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:opx,rotationX:opt.rotate,force3D:"auto",opacity:op,top:0,scale:1,transformPerspective:1200,transformOrigin:torig,rotationY:rot}, + {left:0,rotationX:0,autoAlpha:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/500,ease:ei}),0); + }); + + rot = 90; + if (slidedirection==1) rot = -90; + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformStyle:"flat",transformPerspective:1200,transformOrigin:torig, rotationY:0}, + {left:opx,rotationX:opt.rotate,top:0, scale:1,rotationY:rot, delay:(j*50)/500,ease:eo}),0); + if (nexttrans==23) mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/2000,{autoAlpha:1},{autoAlpha:0,delay:(j*50)/500 + masterspeed/3000,ease:eo}),0); + + }); + } + + + return mtl; +} + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.video.js b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.video.js new file mode 100644 index 0000000..c9f4ef2 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/extensions/source/revolution.extension.video.js @@ -0,0 +1,1059 @@ +/******************************************** + * REVOLUTION 5.1 EXTENSION - VIDEO FUNCTIONS + * @version: 1.2.1 (26.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, { + + resetVideo : function(_nc,opt) { + switch (_nc.data('videotype')) { + case "youtube": + var player=_nc.data('player'); + try{ + if (_nc.data('forcerewind')=="on" && !_ISM) { + var s = getStartSec(_nc.data('videostartat')); + s= s==-1 ? 0 : s; + if (_nc.data('player')!=undefined) { + _nc.data('player').seekTo(s); + _nc.data('player').pauseVideo(); + } + } + } catch(e) {} + if (_nc.find('.tp-videoposter').length==0) + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + break; + + case "vimeo": + var f = $f(_nc.find('iframe').attr("id")); + try{ + if (_nc.data('forcerewind')=="on" && !_ISM) { + var s = getStartSec(_nc.data('videostartat')), + ct = 0; + s= s==-1 ? 0 : s; + f.api("seekTo",s); + f.api("pause"); + } + + } catch(e) {} + if (_nc.find('.tp-videoposter').length==0) + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + break; + + case "html5": + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + + var jvideo = _nc.find('video'), + video = jvideo[0]; + + + punchgs.TweenLite.to(jvideo,0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + + if (_nc.data('forcerewind')=="on" && !_nc.hasClass("videoisplaying")) { + try{ + var s = getStartSec(_nc.data('videostartat')); + video.currentTime = s == -1 ? 0 : s; + } catch(e) {} + } + + if (_nc.data('volume')=="mute" || _R.lastToggleState(_nc.data('videomutetoggledby'))) + video.muted = true; + break; + } + }, + + isVideoMuted : function(_nc,opt) { + var muted = false; + switch (_nc.data('videotype')) { + case "youtube": + try{ + var player=_nc.data('player'); + muted = player.isMuted(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + if (_nc.data('volume')=="mute") + muted = true; + + } catch(e) {} + break; + case "html5": + var jvideo = _nc.find('video'), + video = jvideo[0]; + if (_nc.data('volume')=="mute") + video.muted = true; + break; + } + return muted; + }, + + muteVideo : function(_nc,opt) { + switch (_nc.data('videotype')) { + case "youtube": + try{ + var player=_nc.data('player'); + + player.mute(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + _nc.data('volume',"mute"); + f.api('setVolume',0); + } catch(e) {} + break; + case "html5": + var jvideo = _nc.find('video'), + video = jvideo[0]; + video.muted = true; + break; + } + }, + + unMuteVideo : function(_nc,opt) { + + switch (_nc.data('videotype')) { + case "youtube": + try{ + var player=_nc.data('player'); + player.unMute(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + _nc.data('volume',"1"); + f.api('setVolume',1); + } catch(e) {} + break; + case "html5": + var jvideo = _nc.find('video'), + video = jvideo[0]; + video.muted = false; + break; + } + }, + + + + + + stopVideo : function(_nc,opt) { + + switch (_nc.data('videotype')) { + case "youtube": + try{ + var player=_nc.data('player'); + player.pauseVideo(); + } catch(e) {} + break; + case "vimeo": + try{ + var f = $f(_nc.find('iframe').attr("id")); + f.api("pause"); + + } catch(e) {} + break; + case "html5": + var jvideo = _nc.find('video'), + video = jvideo[0]; + video.pause(); + break; + } + }, + + playVideo : function(_nc,opt) { + + clearTimeout(_nc.data('videoplaywait')); + switch (_nc.data('videotype')) { + case "youtube": + + if (_nc.find('iframe').length==0) { + _nc.append(_nc.data('videomarkup')); + addVideoListener(_nc,opt,true); + } else { + if (_nc.data('player').playVideo !=undefined) { + + var s = getStartSec(_nc.data('videostartat')), + ct = _nc.data('player').getCurrentTime(); + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) _nc.data('player').seekTo(s); + _nc.data('player').playVideo(); + } else { + _nc.data('videoplaywait',setTimeout(function() { + _R.playVideo(_nc,opt); + },50)); + } + } + break; + case "vimeo": + + if (_nc.find('iframe').length==0) { + _nc.append(_nc.data('videomarkup')); + addVideoListener(_nc,opt,true); + + } else { + if (_nc.hasClass("rs-apiready")) { + var id = _nc.find('iframe').attr("id"), + f = $f(id); + if (f.api("play")==undefined) { + _nc.data('videoplaywait',setTimeout(function() { + + _R.playVideo(_nc,opt); + },50)); + } else { + setTimeout(function() { + + f.api("play"); + var s = getStartSec(_nc.data('videostartat')), + ct = _nc.data('currenttime'); + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) f.api("seekTo",s); + },510); + } + } else { + _nc.data('videoplaywait',setTimeout(function() { + + _R.playVideo(_nc,opt); + },50)); + } + } + break; + case "html5": + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + + + var jvideo = _nc.find('video'), + video = jvideo[0], + html5vid = jvideo.parent(); + + if (html5vid.data('metaloaded') != 1) { + addEvent(video,'loadedmetadata',function(_nc) { + _R.resetVideo(_nc,opt); + video.play(); + var s = getStartSec(_nc.data('videostartat')), + ct = video.currentTime; + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) video.currentTime = s; + }(_nc)); + } else { + video.play(); + var s = getStartSec(_nc.data('videostartat')), + ct = video.currentTime; + if (_nc.data('nextslideatend-triggered')==1) { + ct=-1; + _nc.data('nextslideatend-triggered',0); + } + if (s!=-1 && s>ct) video.currentTime = s; + } + break; + } + }, + + isVideoPlaying : function(_nc,opt) { + var ret = false; + if (opt.playingvideos != undefined) { + jQuery.each(opt.playingvideos,function(i,nc) { + if (_nc.attr('id') == nc.attr('id')) + ret = true; + }); + } + return ret; + }, + + prepareCoveredVideo : function(asprat,opt,nextcaption) { + var ifr = nextcaption.find('iframe, video'), + wa = asprat.split(':')[0], + ha = asprat.split(':')[1], + li = nextcaption.closest('.tp-revslider-slidesli'), + od = li.width()/li.height(), + vd = wa/ha, + nvh = (od/vd)*100, + nvw = (vd/od)*100; + + if (od>vd) + punchgs.TweenLite.to(ifr,0.001,{height:nvh+"%", width:"100%", top:-(nvh-100)/2+"%",left:"0px",position:"absolute"}); + else + punchgs.TweenLite.to(ifr,0.001,{width:nvw+"%", height:"100%", left:-(nvw-100)/2+"%",top:"0px",position:"absolute"}); + + }, + + checkVideoApis : function(_nc,opt,addedApis) { + var httpprefix = location.protocol === 'https:' ? "https" : "http"; + + if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0)) opt.youtubeapineeded = true; + if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0) && addedApis.addedyt==0) { + opt.youtubestarttime = jQuery.now(); + addedApis.addedyt=1; + var s = document.createElement("script"); + s.src = "https://www.youtube.com/iframe_api"; /* Load Player API*/ + var before = document.getElementsByTagName("script")[0], + loadit = true; + jQuery('head').find('*').each(function(){ + if (jQuery(this).attr('src') == "https://www.youtube.com/iframe_api") + loadit = false; + }); + if (loadit) before.parentNode.insertBefore(s, before); + + } + + + + if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0)) opt.vimeoapineeded = true; + if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0) && addedApis.addedvim==0) { + opt.vimeostarttime = jQuery.now(); + addedApis.addedvim=1; + var f = document.createElement("script"), + before = document.getElementsByTagName("script")[0], + loadit = true; + f.src = httpprefix+"://f.vimeocdn.com/js/froogaloop2.min.js"; /* Load Player API*/ + + jQuery('head').find('*').each(function(){ + if (jQuery(this).attr('src') == httpprefix+"://a.vimeocdn.com/js/froogaloop2.min.js") + loadit = false; + }); + if (loadit) + before.parentNode.insertBefore(f, before); + } + return addedApis; + }, + + manageVideoLayer : function(_nc,opt,recalled,internrecalled) { + // YOUTUBE AND VIMEO LISTENRES INITIALISATION + var vida = _nc.data("videoattributes"), + vidytid = _nc.data('ytid'), + vimeoid = _nc.data('vimeoid'), + videopreload = _nc.data('videpreload'), + videomp = _nc.data('videomp4'), + videowebm = _nc.data('videowebm'), + videoogv = _nc.data('videoogv'), + videoafs = _nc.data('allowfullscreenvideo'), + videocontrols = _nc.data('videocontrols'), + httpprefix = "http", + videoloop = _nc.data('videoloop')=="loop" ? "loop" : _nc.data('videoloop')=="loopandnoslidestop" ? "loop" : "", + videotype = (videomp!=undefined || videowebm!=undefined) ? "html5" : + (vidytid!=undefined && String(vidytid).length>1) ? "youtube" : + (vimeoid!=undefined && String(vimeoid).length>1) ? "vimeo" : "none", + newvideotype = (videotype=="html5" && _nc.find('video').length==0) ? "html5" : + (videotype=="youtube" && _nc.find('iframe').length==0) ? "youtube" : + (videotype=="vimeo" && _nc.find('iframe').length==0) ? "vimeo" : "none"; + + _nc.data('videotype',videotype); + // ADD HTML5 VIDEO IF NEEDED + switch (newvideotype) { + case "html5": + if (videocontrols!="controls") videocontrols=""; + var apptxt = ''; + var hfm =""; + if (videoafs==="true" || videoafs===true) + hfm = '
    '; + + if (videocontrols=="controls") + apptxt = apptxt + ('
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + hfm+ + '
    '); + + _nc.data('videomarkup',apptxt) + _nc.append(apptxt); + + // START OF HTML5 VIDEOS + if ((_ISM && _nc.data('disablevideoonmobile')==1) ||_R.isIE(8)) _nc.find('video').remove(); + + // ADD HTML5 VIDEO CONTAINER + _nc.find('video').each(function(i) { + var video = this, + jvideo = jQuery(this); + + if (!jvideo.parent().hasClass("html5vid")) + jvideo.wrap('
    '); + + var html5vid = jvideo.parent(); + if (html5vid.data('metaloaded') != 1) { + addEvent(video,'loadedmetadata',function(_nc) { + htmlvideoevents(_nc,opt); + _R.resetVideo(_nc,opt); + }(_nc)); + } + }); + break; + case "youtube": + httpprefix = "http"; + if (location.protocol === 'https:') + httpprefix = "https"; + if (videocontrols=="none") { + vida = vida.replace("controls=1","controls=0"); + if (vida.toLowerCase().indexOf('controls')==-1) + vida = vida+"&controls=0"; + } + + var s = getStartSec(_nc.data('videostartat')), + e = getStartSec(_nc.data('videoendat')); + + if (s!=-1) vida=vida+"&start="+s; + if (e!=-1) vida=vida+"&end="+e; + + // CHECK VIDEO ORIGIN, AND EXTEND WITH WWW IN CASE IT IS MISSING ! + var orig = vida.split('origin='+httpprefix+'://'), + vida_new = ""; + + if (orig.length>1) { + vida_new = orig[0]+'origin='+httpprefix+'://'; + if (self.location.href.match(/www/gi) && !orig[1].match(/www/gi)) + vida_new=vida_new+"www." + vida_new=vida_new+orig[1]; + } else { + vida_new = vida; + } + + var yafv = videoafs==="true" || videoafs===true ? "allowfullscreen" : ""; + _nc.data('videomarkup',''); + break; + + case "vimeo": + if (location.protocol === 'https:') + httpprefix = "https"; + _nc.data('videomarkup',''); + break; + } + + //if (videotype=="vimeo" || videotype=="youtube") { + + // IF VIDEOPOSTER EXISTING + var noposteronmobile = _ISM && _nc.data('noposteronmobile')=="on"; + + if (_nc.data('videoposter')!=undefined && _nc.data('videoposter').length>2 && !noposteronmobile) { + if (_nc.find('.tp-videoposter').length==0) + _nc.append('
    '); + if (_nc.find('iframe').length==0) + _nc.find('.tp-videoposter').click(function() { + _R.playVideo(_nc,opt); + if (_ISM) { + if (_nc.data('disablevideoonmobile')==1) return false; + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + } + }) + } else { + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + if (_nc.find('iframe').length==0 && (videotype=="youtube" || videotype=="vimeo")) { + _nc.append(_nc.data('videomarkup')); + addVideoListener(_nc,opt,false); + } + } + + // ADD DOTTED OVERLAY IF NEEDED + if (_nc.data('dottedoverlay')!="none" && _nc.data('dottedoverlay')!=undefined && _nc.find('.tp-dottedoverlay').length!=1) + _nc.append('
    '); + + _nc.addClass("HasListener"); + + if (_nc.data('bgvideo')==1) { + punchgs.TweenLite.set(_nc.find('video, iframe'),{autoAlpha:0}); + } + } + +}); + + + + + +////////////////////////////////////////////////////// +// * Revolution Slider - VIDEO / API FUNCTIONS // +// * @version: 1.0 (30.10.2014) // +// * @author ThemePunch // +////////////////////////////////////////////////////// + +function getStartSec(st) { + return st == undefined ? -1 :jQuery.isNumeric(st) ? st : st.split(":").length>1 ? parseInt(st.split(":")[0],0)*60 + parseInt(st.split(":")[1],0) : st; +}; + +// - VIMEO ADD EVENT ///// +var addEvent = function(element, eventName, callback) { + if (element.addEventListener) + element.addEventListener(eventName, callback, false); + else + element.attachEvent(eventName, callback, false); +}; + +var getVideoDatas = function(p,t,d) { + var a = {}; + a.video = p; + a.videotype = t; + a.settings = d; + return a; +} + + +var addVideoListener = function(_nc,opt,startnow) { + + var ifr = _nc.find('iframe'), + frameID = "iframe"+Math.round(Math.random()*100000+1), + loop = _nc.data('videoloop'), + pforv = loop != "loopandnoslidestop"; + + loop = loop =="loop" || loop =="loopandnoslidestop"; + + // CARE ABOUT ASPECT RATIO + + if (_nc.data('forcecover')==1) { + _nc.removeClass("fullscreenvideo").addClass("coverscreenvideo"); + var asprat = _nc.data('aspectratio'); + if (asprat!=undefined && asprat.split(":").length>1) + _R.prepareCoveredVideo(asprat,opt,_nc); + } + + if (_nc.data('bgvideo')==1) { + var asprat = _nc.data('aspectratio'); + if (asprat!=undefined && asprat.split(":").length>1) + _R.prepareCoveredVideo(asprat,opt,_nc); + } + + + + // IF LISTENER DOES NOT EXIST YET + ifr.attr('id',frameID); + + if (startnow) _nc.data('startvideonow',true); + + if (_nc.data('videolistenerexist')!==1) { + switch (_nc.data('videotype')) { + // YOUTUBE LISTENER + case "youtube": + + var player = new YT.Player(frameID, { + events: { + "onStateChange": function(event) { + var embedCode = event.target.getVideoEmbedCode(), + ytcont = jQuery('#'+embedCode.split('id="')[1].split('"')[0]), + container = ytcont.closest('.tp-simpleresponsive'), + _nc = ytcont.parent(), + player = ytcont.parent().data('player'); + if (event.data == YT.PlayerState.PLAYING) { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + if (_nc.data('volume')=="mute" || _R.lastToggleState(_nc.data('videomutetoggledby'))) { + player.mute(); + } else { + player.unMute(); + player.setVolume(parseInt(_nc.data('volume'),0) || 75); + } + + opt.videoplaying=true; + addVidtoList(_nc,opt); + if (pforv) + opt.c.trigger('stoptimer'); + else + opt.videoplaying=false; + + opt.c.trigger('revolution.slide.onvideoplay',getVideoDatas(player,"youtube",_nc.data())); + _R.toggleState(_nc.data('videotoggledby')); + } else { + if (event.data==0 && loop) { + //player.playVideo(); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) player.seekTo(s); + player.playVideo(); + _R.toggleState(_nc.data('videotoggledby')); + } + if ((event.data==0 || event.data==2) && _nc.data('showcoveronpause')=="on" && _nc.find('.tp-videoposter').length>0) { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut}); + } + if ((event.data!=-1 && event.data!=3)) { + + opt.videoplaying=false; + remVidfromList(_nc,opt); + container.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(player,"youtube",_nc.data())); + + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_nc.data('videotoggledby')); + + } + if (event.data==0 && _nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + opt.c.revnext(); + remVidfromList(_nc,opt); + } else { + + remVidfromList(_nc,opt); + opt.videoplaying=false; + container.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(player,"youtube",_nc.data())); + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_nc.data('videotoggledby')); + } + } + }, + 'onReady': function(event) { + + var embedCode = event.target.getVideoEmbedCode(), + ytcont = jQuery('#'+embedCode.split('id="')[1].split('"')[0]), + _nc = ytcont.parent(), + videorate = _nc.data('videorate'), + videostart = _nc.data('videostart'); + + _nc.addClass("rs-apiready"); + if (videorate!=undefined) + event.target.setPlaybackRate(parseFloat(videorate)); + + // PLAY VIDEO IF THUMBNAIL HAS BEEN CLICKED + _nc.find('.tp-videoposter').unbind("click"); + _nc.find('.tp-videoposter').click(function() { + if (!_ISM) { + player.playVideo(); + } + }) + + if (_nc.data('startvideonow')) { + + _nc.data('player').playVideo(); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) _nc.data('player').seekTo(s); + //_nc.find('.tp-videoposter').click(); + } + _nc.data('videolistenerexist',1); + } + } + }); + _nc.data('player',player); + break; + + // VIMEO LISTENER + case "vimeo": + var isrc = ifr.attr('src'), + queryParameters = {}, queryString = isrc, + re = /([^&=]+)=([^&]*)/g, m; + // Creates a map with the query string parameters + while (m = re.exec(queryString)) { + queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); + } + if (queryParameters['player_id']!=undefined) + isrc = isrc.replace(queryParameters['player_id'],frameID); + else + isrc=isrc+"&player_id="+frameID; + try{ isrc = isrc.replace('api=0','api=1'); } catch(e) {} + isrc=isrc+"&api=1"; + ifr.attr('src',isrc); + + + var player = _nc.find('iframe')[0], + vimcont = jQuery('#'+frameID), + f = $f(frameID); + + f.addEvent('ready', function(){ + + _nc.addClass("rs-apiready"); + f.addEvent('play', function(data) { + _nc.data('nextslidecalled',0); + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + opt.c.trigger('revolution.slide.onvideoplay',getVideoDatas(f,"vimeo",_nc.data())); + opt.videoplaying=true; + addVidtoList(_nc,opt); + if (pforv) + opt.c.trigger('stoptimer'); + else + opt.videoplaying=false; + if (_nc.data('volume')=="mute" || _R.lastToggleState(_nc.data('videomutetoggledby'))) + f.api('setVolume',"0") + else + f.api('setVolume',(parseInt(_nc.data('volume'),0)/100 || 0.75)); + _R.toggleState(_nc.data('videotoggledby')); + }); + + f.addEvent('playProgress',function(data) { + var et = getStartSec(_nc.data('videoendat')) + + _nc.data('currenttime',data.seconds); + if (et!=0 && (Math.abs(et-data.seconds) <0.3 && et>data.seconds) && _nc.data('nextslidecalled') != 1) { + if (loop) { + + f.api("play"); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) f.api("seekTo",s); + } else { + if (_nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + _nc.data('nextslidecalled',1); + opt.c.revnext(); + } + f.api("pause"); + } + } + }); + + f.addEvent('finish', function(data) { + remVidfromList(_nc,opt); + opt.videoplaying=false; + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(f,"vimeo",_nc.data())); + if (_nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + opt.c.revnext(); + } + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_nc.data('videotoggledby')); + + }); + + f.addEvent('pause', function(data) { + + if (_nc.find('.tp-videoposter').length>0 && _nc.data('showcoveronpause')=="on") { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('iframe'),0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut}); + } + opt.videoplaying=false; + remVidfromList(_nc,opt); + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(f,"vimeo",_nc.data())); + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_nc.data('videotoggledby')); + }); + + + + _nc.find('.tp-videoposter').unbind("click"); + _nc.find('.tp-videoposter').click(function() { + if (!_ISM) { + + f.api("play"); + return false; + } + }) + if (_nc.data('startvideonow')) { + + f.api("play"); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) f.api("seekTo",s); + } + _nc.data('videolistenerexist',1); + }); + break; + } + } else { + var s = getStartSec(_nc.data('videostartat')); + switch (_nc.data('videotype')) { + // YOUTUBE LISTENER + case "youtube": + if (startnow) { + _nc.data('player').playVideo(); + if (s!=-1) _nc.data('player').seekTo() + } + break; + case "vimeo": + if (startnow) { + var f = $f(_nc.find('iframe').attr("id")); + f.api("play"); + if (s!=-1) f.api("seekTo",s); + } + break; + } + } +} + + + + +///////////////////////////////////////// HTML5 VIDEOS /////////////////////////////////////////// + +var htmlvideoevents = function(_nc,opt,startnow) { + + + + if (_ISM && _nc.data('disablevideoonmobile')==1) return false; + var jvideo = _nc.find('video'), + video = jvideo[0], + html5vid = jvideo.parent(), + loop = _nc.data('videoloop'), + pforv = loop != "loopandnoslidestop"; + + loop = loop =="loop" || loop =="loopandnoslidestop"; + + html5vid.data('metaloaded',1); + // FIRST TIME LOADED THE HTML5 VIDEO + + + + + //PLAY, STOP VIDEO ON CLICK OF PLAY, POSTER ELEMENTS + if (jvideo.attr('control') == undefined ) { + if (_nc.find('.tp-video-play-button').length==0 && !_ISM) + _nc.append('
     
    '); + _nc.find('video, .tp-poster, .tp-video-play-button').click(function() { + if (_nc.hasClass("videoisplaying")) + video.pause(); + else + video.play(); + }) + } + + // PRESET FULLCOVER VIDEOS ON DEMAND + if (_nc.data('forcecover')==1 || _nc.hasClass('fullscreenvideo') || _nc.data('bgvideo')==1) { + if (_nc.data('forcecover')==1 || _nc.data('bgvideo')==1) { + html5vid.addClass("fullcoveredvideo"); + var asprat = _nc.data('aspectratio') || "4:3"; + _R.prepareCoveredVideo(asprat,opt,_nc); + } + else + html5vid.addClass("fullscreenvideo"); + } + + + // FIND CONTROL BUTTONS IN VIDEO, AND ADD EVENT LISTENERS ON THEM + var playButton = _nc.find('.tp-vid-play-pause')[0], + muteButton = _nc.find('.tp-vid-mute')[0], + fullScreenButton = _nc.find('.tp-vid-full-screen')[0], + seekBar = _nc.find('.tp-seek-bar')[0], + volumeBar = _nc.find('.tp-volume-bar')[0]; + + if (playButton!=undefined) { + // Event listener for the play/pause button + addEvent(playButton,"click", function() { + if (video.paused == true) + video.play(); + else + video.pause(); + }); + } + + if (muteButton!=undefined) { + + // Event listener for the mute button + addEvent(muteButton,"click", function() { + if (video.muted == false) { + video.muted = true; + muteButton.innerHTML = "Unmute"; + } else { + video.muted = false; + muteButton.innerHTML = "Mute"; + } + }); + } + + if (fullScreenButton!=undefined) { + + // Event listener for the full-screen button + if (fullScreenButton) + addEvent(fullScreenButton,"click", function() { + if (video.requestFullscreen) { + video.requestFullscreen(); + } else if (video.mozRequestFullScreen) { + video.mozRequestFullScreen(); // Firefox + } else if (video.webkitRequestFullscreen) { + video.webkitRequestFullscreen(); // Chrome and Safari + } + }); + + } + + if (seekBar !=undefined) { + + // Event listener for the seek bar + addEvent(seekBar,"change", function() { + var time = video.duration * (seekBar.value / 100); + video.currentTime = time; + + }); + + // Pause the video when the seek handle is being dragged + addEvent(seekBar,"mousedown", function() { + _nc.addClass("seekbardragged"); + video.pause(); + + }); + + // Play the video when the seek handle is dropped + addEvent(seekBar,"mouseup", function() { + _nc.removeClass("seekbardragged"); + video.play(); + + }); + } + + + // Update the seek bar as the video plays + addEvent(video,"timeupdate", function() { + + var value = (100 / video.duration) * video.currentTime, + et = getStartSec(_nc.data('videoendat')), + cs =video.currentTime; + if (seekBar != undefined) + seekBar.value = value; + + if (et!=0 && et!=-1 && (Math.abs(et-cs) <=0.3 && et>cs) && _nc.data('nextslidecalled') != 1) { + if (loop) { + video.play(); + var s = getStartSec(_nc.data('videostartat')); + if (s!=-1) video.currentTime = s; + } else { + if (_nc.data('nextslideatend')==true) { + _nc.data('nextslideatend-triggered',1); + _nc.data('nextslidecalled',1); + opt.just_called_nextslide_at_htmltimer = true; + opt.c.revnext(); + setTimeout(function() { + opt.just_called_nextslide_at_htmltimer = false; + },1000); + } + video.pause(); + } + } + }); + + + if (volumeBar != undefined) { + + // Event listener for the volume bar + addEvent(volumeBar,"change", function() { + // Update the video volume + video.volume = volumeBar.value; + }); + } + + + // VIDEO EVENT LISTENER FOR "PLAY" + addEvent(video,"play",function() { + + + _nc.data('nextslidecalled',0); + + if (_nc.data('volume')=="mute") + video.muted=true; + + _nc.addClass("videoisplaying"); + + addVidtoList(_nc,opt); + + if (!pforv) { + opt.videoplaying=false; + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(video,"html5",_nc.data())); + } else { + opt.videoplaying=true; + opt.c.trigger('stoptimer'); + opt.c.trigger('revolution.slide.onvideoplay',getVideoDatas(video,"html5",_nc.data())); + } + + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('video'),0.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}); + + var playButton = _nc.find('.tp-vid-play-pause')[0], + muteButton = _nc.find('.tp-vid-mute')[0]; + if (playButton!=undefined) + playButton.innerHTML = "Pause"; + if (muteButton!=undefined && video.muted) + muteButton.innerHTML = "Unmute"; + + _R.toggleState(_nc.data('videotoggledby')); + }); + + // VIDEO EVENT LISTENER FOR "PAUSE" + addEvent(video,"pause",function() { + + if (_nc.find('.tp-videoposter').length>0 && _nc.data('showcoveronpause')=="on" && !_nc.hasClass("seekbardragged")) { + punchgs.TweenLite.to(_nc.find('.tp-videoposter'),0.3,{autoAlpha:1,force3D:"auto",ease:punchgs.Power3.easeInOut}); + punchgs.TweenLite.to(_nc.find('video'),0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut}); + } + + _nc.removeClass("videoisplaying"); + opt.videoplaying=false; + remVidfromList(_nc,opt); + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(video,"html5",_nc.data())); + var playButton = _nc.find('.tp-vid-play-pause')[0]; + if (playButton!=undefined) + playButton.innerHTML = "Play"; + + if (opt.currentLayerVideoIsPlaying==undefined || opt.currentLayerVideoIsPlaying.attr("id") == _nc.attr("id")) + _R.unToggleState(_nc.data('videotoggledby')); + }); + + // VIDEO EVENT LISTENER FOR "END" + + addEvent(video,"ended",function() { + remVidfromList(_nc,opt); + opt.videoplaying=false; + remVidfromList(_nc,opt); + opt.c.trigger('starttimer'); + opt.c.trigger('revolution.slide.onvideostop',getVideoDatas(video,"html5",_nc.data())); + if (_nc.data('nextslideatend')==true) { + if (!opt.just_called_nextslide_at_htmltimer==true) { + _nc.data('nextslideatend-triggered',1); + opt.c.revnext(); + opt.just_called_nextslide_at_htmltimer = true; + } + setTimeout(function() { + opt.just_called_nextslide_at_htmltimer = false; + },1500) + } + _nc.removeClass("videoisplaying"); + + + }); +} + + + +var addVidtoList = function(_nc,opt) { + + if (opt.playingvideos == undefined) opt.playingvideos = new Array(); + + // STOP OTHER VIDEOS + if (_nc.data('stopallvideos')) { + if (opt.playingvideos != undefined && opt.playingvideos.length>0) { + opt.lastplayedvideos = jQuery.extend(true,[],opt.playingvideos); + jQuery.each(opt.playingvideos,function(i,_nc) { + _R.stopVideo(_nc,opt); + }); + } + } + opt.playingvideos.push(_nc); + opt.currentLayerVideoIsPlaying = _nc; +} + + +var remVidfromList = function(_nc,opt) { + if (opt.playingvideos != undefined) + opt.playingvideos.splice(jQuery.inArray(_nc,opt.playingvideos),1); +} + + + + + + + +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/index.php b/public/assets/plugins/rs-plugin/js/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin/js/jquery.themepunch.enablelog.js b/public/assets/plugins/rs-plugin/js/jquery.themepunch.enablelog.js new file mode 100644 index 0000000..3b73f58 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/jquery.themepunch.enablelog.js @@ -0,0 +1 @@ +window.tplogs = true; \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/jquery.themepunch.revolution.min.js b/public/assets/plugins/rs-plugin/js/jquery.themepunch.revolution.min.js new file mode 100644 index 0000000..ccefe99 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/jquery.themepunch.revolution.min.js @@ -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:''},thumbnails:{style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'',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:'',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('
    !! Error at loading Slider Revolution 5.0 Extrensions.'+a.errorm+"
    ").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")).length>0){var a=i.parent().find(".tp-bannertimer"),n=a.data("opt");n.debugMode=!0,b(i,n)}})},revscroll:function(i){return this.each(function(){var a=e(this);a!=t&&a.length>0&&e("body").find("#"+a.attr("id")).length>0&&e("body,html").animate({scrollTop:a.offset().top+a.height()-i+"px"},{duration:400})})},revredraw:function(i){return this.each(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");b(i,n)}})},revkill:function(a){var n=this,o=e(this);if(punchgs.TweenLite.killDelayedCallsTo(i.showHideNavElements),i.endMoveCaption&&punchgs.TweenLite.killDelayedCallsTo(i.endMoveCaption),o!=t&&o.length>0&&e("body").find("#"+o.attr("id")).length>0){o.data("conthover",1),o.data("conthover-changed",1),o.trigger("revolution.slide.onpause");var r=o.parent().find(".tp-bannertimer"),s=r.data("opt");s.tonpause=!0,o.trigger("stoptimer"),punchgs.TweenLite.killTweensOf(o.find("*"),!1),punchgs.TweenLite.killTweensOf(o,!1),o.unbind("hover, mouseover, mouseenter,mouseleave, resize");var l="resize.revslider-"+o.attr("id");e(window).off(l),o.find("*").each(function(){var i=e(this);i.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),i.off("on, hover, mouseenter,mouseleave,mouseover, resize"),i.data("mySplitText",null),i.data("ctl",null),i.data("tween")!=t&&i.data("tween").kill(),i.data("kenburn")!=t&&i.data("kenburn").kill(),i.data("timeline_out")!=t&&i.data("timeline_out").kill(),i.data("timeline")!=t&&i.data("timeline").kill(),i.remove(),i.empty(),i=null}),punchgs.TweenLite.killTweensOf(o.find("*"),!1),punchgs.TweenLite.killTweensOf(o,!1),r.remove();try{o.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(d){}try{o.closest(".rev_slider_wrapper").remove()}catch(d){}try{o.remove()}catch(d){}return o.empty(),o.html(),o=null,s=null,delete n.c,delete n.opt,!0}return!1},revpause:function(){return this.each(function(){var i=e(this);if(i!=t&&i.length>0&&e("body").find("#"+i.attr("id")).length>0){i.data("conthover",1),i.data("conthover-changed",1),i.trigger("revolution.slide.onpause");var a=i.parent().find(".tp-bannertimer"),n=a.data("opt");n.tonpause=!0,i.trigger("stoptimer")}})},revresume:function(){return this.each(function(){var i=e(this);if(i!=t&&i.length>0&&e("body").find("#"+i.attr("id")).length>0){i.data("conthover",0),i.data("conthover-changed",1),i.trigger("revolution.slide.onresume");var a=i.parent().find(".tp-bannertimer"),n=a.data("opt");n.tonpause=!1,i.trigger("starttimer")}})},revnext:function(){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");i.callingNewSlide(o,a,1)}})},revprev:function(){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");i.callingNewSlide(o,a,-1)}})},revmaxslide:function(){return e(this).find(".tp-revslider-mainul >li").length},revcurrentslide: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 parseInt(n.act,0)+1}},revlastslide:function(){return e(this).find(".tp-revslider-mainul >li").length},revshowslide:function(a){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0){var o=n.parent().find(".tp-bannertimer"),r=o.data("opt");i.callingNewSlide(r,n,"to"+(a-1))}})},revcallslidewithid:function(a){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0){var o=n.parent().find(".tp-bannertimer"),r=o.data("opt");i.callingNewSlide(r,n,a)}})}});var i=e.fn.revolution;e.extend(!0,i,{simp:function(e,t,i){var a=Math.abs(e)-Math.floor(Math.abs(e/t))*t;return i?a:0>e?-1*a:a},iOSVersion:function(){var e=!1;return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?navigator.userAgent.match(/OS 4_\d like Mac OS X/i)&&(e=!0):e=!1,e},isIE:function(t,i){var a=e('
    ').appendTo(e("body"));a.html("");var n=a.find("a").length;return a.remove(),n},is_mobile:function(){var e=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],t=!1;for(var i in e)navigator.userAgent.split(e[i]).length>1&&(t=!0);return t},callBackHandling:function(t,i,a){try{t.callBackArray&&e.each(t.callBackArray,function(e,t){t&&t.inmodule&&t.inmodule===i&&t.atposition&&t.atposition===a&&t.callback&&t.callback.call()})}catch(n){console.log("Call Back Failed")}},get_browser:function(){var e,t=navigator.appName,i=navigator.userAgent,a=i.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=i.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),a=a?[a[1],a[2]]:[t,navigator.appVersion,"-?"],a[0]},get_browser_version:function(){var e,t=navigator.appName,i=navigator.userAgent,a=i.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=i.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),a=a?[a[1],a[2]]:[t,navigator.appVersion,"-?"],a[1]},getHorizontalOffset:function(e,t){var i=p(e,".outer-left"),a=p(e,".outer-right");switch(t){case"left":return i;case"right":return a;case"both":return i+a}},callingNewSlide:function(t,i,a){var n=i.find(".next-revslide").length>0?i.find(".next-revslide").index():i.find(".processing-revslide").length>0?i.find(".processing-revslide").index():i.find(".active-revslide").index(),o=0;i.find(".next-revslide").removeClass("next-revslide"),a&&e.isNumeric(a)||a.match(/to/g)?(1===a||-1===a?(o=n+a,o=0>o?t.slideamount-1:o>=t.slideamount?0:o):(a=e.isNumeric(a)?a:parseInt(a.split("to")[1],0),o=0>a?0:a>t.slideamount-1?t.slideamount-1:a),i.find(".tp-revslider-slidesli:eq("+o+")").addClass("next-revslide")):a&&i.find(".tp-revslider-slidesli").each(function(){var t=e(this);t.data("index")===a&&t.addClass("next-revslide")}),o=i.find(".next-revslide").index(),i.trigger("revolution.nextslide.waiting"),o!==n&&-1!=o?H(i,t):i.find(".next-revslide").removeClass("next-revslide")},slotSize:function(i,a){a.slotw=Math.ceil(a.width/a.slots),"fullscreen"==a.sliderLayout?a.sloth=Math.ceil(e(window).height()/a.slots):a.sloth=Math.ceil(a.height/a.slots),"on"==a.autoHeight&&i!==t&&""!==i&&(a.sloth=Math.ceil(i.height()/a.slots))},setSize:function(i){var a=(i.top_outer||0)+(i.bottom_outer||0),n=parseInt(i.carousel.padding_top||0,0),o=parseInt(i.carousel.padding_bottom||0,0),r=i.gridheight[i.curWinRange];if(r=ri.gridheight[i.curWinRange]&&"on"!=i.autoHeight&&(i.height=i.gridheight[i.curWinRange]),"fullscreen"==i.sliderLayout||i.infullscreenmode){i.height=i.bw*i.gridheight[i.curWinRange];var s=(i.c.parent().width(),e(window).height());if(i.fullScreenOffsetContainer!=t){try{var l=i.fullScreenOffsetContainer.split(",");l&&e.each(l,function(t,i){s=e(i).length>0?s-e(i).outerHeight(!0):s})}catch(d){}try{i.fullScreenOffset.split("%").length>1&&i.fullScreenOffset!=t&&i.fullScreenOffset.length>0?s-=e(window).height()*parseInt(i.fullScreenOffset,0)/100:i.fullScreenOffset!=t&&i.fullScreenOffset.length>0&&(s-=parseInt(i.fullScreenOffset,0))}catch(d){}}s=s0&&e.each(a.lastplayedvideos,function(e,t){i.playVideo(t,a)})},leaveViewPort:function(a){a.sliderlaststatus=a.sliderstatus,a.c.trigger("stoptimer"),a.playingvideos!=t&&a.playingvideos.length>0&&(a.lastplayedvideos=e.extend(!0,[],a.playingvideos),a.playingvideos&&e.each(a.playingvideos,function(e,t){i.stopVideo&&i.stopVideo(t,a)}))},unToggleState:function(i){i!=t&&i.length>0&&e.each(i,function(e,t){t.removeClass("rs-toggle-content-active")})},toggleState:function(i){i!=t&&i.length>0&&e.each(i,function(e,t){t.addClass("rs-toggle-content-active")})},lastToggleState:function(i){var a=0;return i!=t&&i.length>0&&e.each(i,function(e,t){a=t.hasClass("rs-toggle-content-active")}),a}});var a=i.is_mobile(),n=function(t,i){var a=[];return e.each(t,function(e,t){e!=i&&a.push(t)}),a},o=function(t,i,a){a.c.find(t).each(function(){var t=e(this);t.data("liref")===i&&t.remove()})},r=function(i,a){return e("body").data(i)?!1:a.filesystem?(a.errorm===t&&(a.errorm="
    Local Filesystem Detected !
    Put this to your header:"),console.warn("Local Filesystem detected !"),a.errorm=a.errorm+'
    <script type="text/javascript" src="'+a.jsFileLocation+i+a.extensions_suffix+'"></script>',console.warn(a.jsFileLocation+i+a.extensions_suffix+" could not be loaded !"),console.warn("Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document."),console.log(" "),a.modulesfailing=!0,!1):(e.ajax({url:a.jsFileLocation+i+a.extensions_suffix,dataType:"script",cache:!0,error:function(e){console.warn("Slider Revolution 5.0 Error !"),console.error("Failure at Loading:"+i+a.extensions_suffix+" on Path:"+a.jsFileLocation),console.info(e)}}),void e("body").data(i,!0))},s=function(a,n){var o=new Object,s=a.navigation;return o.kenburns=!1,o.parallax=!1,o.carousel=!1,o.navigation=!1,o.videos=!1,o.actions=!1,o.layeranim=!1,o.migration=!1,n.data("version")&&n.data("version").toString().match(/5./gi)?(n.find("img").each(function(){"on"==e(this).data("kenburns")&&(o.kenburns=!0)}),("carousel"==a.sliderType||"on"==s.keyboardNavigation||"on"==s.mouseScrollNavigation||"on"==s.touch.touchenabled||s.arrows.enable||s.bullets.enable||s.thumbnails.enable||s.tabs.enable)&&(o.navigation=!0),n.find(".tp-caption, .tp-static-layer, .rs-background-video-layer").each(function(){var i=e(this);(i.data("ytid")!=t||i.find("iframe").length>0&&i.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&(o.videos=!0),(i.data("vimeoid")!=t||i.find("iframe").length>0&&i.find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&(o.videos=!0),i.data("actions")!==t&&(o.actions=!0),o.layeranim=!0}),n.find("li").each(function(){e(this).data("link")&&e(this).data("link")!=t&&(o.layeranim=!0,o.actions=!0)}),!o.videos&&(n.find(".rs-background-video-layer").length>0||n.find(".tp-videolayer").length>0||n.find("iframe").length>0||n.find("video").length>0)&&(o.videos=!0),"carousel"==a.sliderType&&(o.carousel=!0),("off"!==a.parallax.type||a.viewPort.enable||"true"==a.viewPort.enable)&&(o.parallax=!0)):(o.kenburns=!0,o.parallax=!0,o.carousel=!1,o.navigation=!0,o.videos=!0,o.actions=!0,o.layeranim=!0,o.migration=!0),"hero"==a.sliderType&&(o.carousel=!1,o.navigation=!1),window.location.href.match(/file:/gi)&&(o.filesystem=!0,a.filesystem=!0),o.videos&&"undefined"==typeof i.isVideoPlaying&&r("revolution.extension.video",a),o.carousel&&"undefined"==typeof i.prepareCarousel&&r("revolution.extension.carousel",a),o.carousel||"undefined"!=typeof i.animateSlide||r("revolution.extension.slideanims",a),o.actions&&"undefined"==typeof i.checkActions&&r("revolution.extension.actions",a),o.layeranim&&"undefined"==typeof i.handleStaticLayers&&r("revolution.extension.layeranimation",a),o.kenburns&&"undefined"==typeof i.stopKenBurn&&r("revolution.extension.kenburn",a),o.navigation&&"undefined"==typeof i.createNavigation&&r("revolution.extension.navigation",a),o.migration&&"undefined"==typeof i.migration&&r("revolution.extension.migration",a),o.parallax&&"undefined"==typeof i.checkForParallax&&r("revolution.extension.parallax",a),o},l=function(e,t){t.filesystem||"undefined"!=typeof punchgs&&(!t.kenburns||t.kenburns&&"undefined"!=typeof i.stopKenBurn)&&(!t.navigation||t.navigation&&"undefined"!=typeof i.createNavigation)&&(!t.carousel||t.carousel&&"undefined"!=typeof i.prepareCarousel)&&(!t.videos||t.videos&&"undefined"!=typeof i.resetVideo)&&(!t.actions||t.actions&&"undefined"!=typeof i.checkActions)&&(!t.layeranim||t.layeranim&&"undefined"!=typeof i.handleStaticLayers)&&(!t.migration||t.migration&&"undefined"!=typeof i.migration)&&(!t.parallax||t.parallax&&"undefined"!=typeof i.checkForParallax)&&(t.carousel||!t.carousel&&"undefined"!=typeof i.animateSlide)?e.trigger("scriptsloaded"):setTimeout(function(){l(e,t)},50)},d=function(t){var i=new RegExp("themepunch.revolution.min.js","gi"),a="";return e("script").each(function(){var t=e(this).attr("src");t&&t.match(i)&&(a=t)}),a=a.replace("jquery.themepunch.revolution.min.js",""),a=a.replace("jquery.themepunch.revolution.js",""),a=a.split("?")[0]},c=function(t,i){var a=9999,n=0,o=0,r=0,s=e(window).width(),l=i&&9999==t.responsiveLevels?t.visibilityLevels:t.responsiveLevels;l&&l.length&&e.each(l,function(e,t){t>s&&(0==n||n>t)&&(a=t,r=e,n=t),s>t&&t>n&&(n=t,o=e)}),a>n&&(r=o),i?t.forcedWinRange=r:t.curWinRange=r},u=function(e,t){t.carousel.maxVisibleItems=t.carousel.maxVisibleItems<1?999:t.carousel.maxVisibleItems,t.carousel.vertical_align="top"===t.carousel.vertical_align?"0%":"bottom"===t.carousel.vertical_align?"100%":"50%"},p=function(t,i){var a=0;return t.find(i).each(function(){var t=e(this);!t.hasClass("tp-forcenotvisible")&&a'),n.find(">ul").addClass("tp-revslider-mainul"),o.c=n,o.ul=n.find(".tp-revslider-mainul"),o.ul.find(">li").each(function(t){var i=e(this);"on"==i.data("hideslideonmobile")&&a&&i.remove()}),o.cid=n.attr("id"),o.ul.css({visibility:"visible"}),o.slideamount=o.ul.find(">li").length,o.slayers=n.find(".tp-static-layers"),o.ul.find(">li").each(function(t){e(this).data("originalindex",t)}),"on"==o.shuffle){var r=new Object,s=o.ul.find(">li:first-child");r.fstransition=s.data("fstransition"),r.fsmasterspeed=s.data("fsmasterspeed"),r.fsslotamount=s.data("fsslotamount");for(var l=0;lli:eq("+d+")").prependTo(o.ul)}var u=o.ul.find(">li:first-child");u.data("fstransition",r.fstransition),u.data("fsmasterspeed",r.fsmasterspeed),u.data("fsslotamount",r.fsslotamount),o.li=o.ul.find(">li")}if(o.li=o.ul.find(">li"),o.thumbs=new Array,o.slots=4,o.act=-1,o.firststart=1,o.loadqueue=new Array,o.syncload=0,o.conw=n.width(),o.conh=n.height(),o.responsiveLevels.length>1?o.responsiveLevels[0]=9999:o.responsiveLevels=9999,e.each(o.li,function(i,a){var a=e(a),n=a.find(".rev-slidebg")||a.find("img").first(),r=0;a.addClass("tp-revslider-slidesli"),a.data("index")===t&&a.data("index","rs-"+Math.round(999999*Math.random()));var s=new Object;s.params=new Array,s.id=a.data("index"),s.src=a.data("thumb")!==t?a.data("thumb"):n.data("lazyload")!==t?n.data("lazyload"):n.attr("src"),a.data("title")!==t&&s.params.push({from:RegExp("\\{\\{title\\}\\}","g"),to:a.data("title")}),a.data("description")!==t&&s.params.push({from:RegExp("\\{\\{description\\}\\}","g"),to:a.data("description")});for(var r=1;10>=r;r++)a.data("param"+r)!==t&&s.params.push({from:RegExp("\\{\\{param"+r+"\\}\\}","g"),to:a.data("param"+r)});if(o.thumbs.push(s),a.data("origindex",a.index()),a.data("link")!=t){var l=a.data("link"),d=a.data("target")||"_self",c="back"===a.data("slideindex")?0:60,u=a.data("linktoslide"),p=u;u!=t&&"next"!=u&&"prev"!=u&&o.li.each(function(){var t=e(this);t.data("origindex")+1==p&&(u=t.data("index"))}),"slide"!=l&&(u="no");var h='":"{{LT}}",d+=5):p+=M&&" "!==T?Q()+T+"
    ":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&&(t.style.width=q+X+"px"))),v(i,K),v(s,J),v(o,te)},T=d.prototype;T.split=function(t){this.isSplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerHTML,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},T.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},d.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},d.version="0.3.4"})(_gsScope),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("SplitText"); + + +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) diff --git a/public/assets/plugins/rs-plugin/js/source/index.php b/public/assets/plugins/rs-plugin/js/source/index.php new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.enablelog.js b/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.enablelog.js new file mode 100644 index 0000000..3b73f58 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.enablelog.js @@ -0,0 +1 @@ +window.tplogs = true; \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.revolution.js b/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.revolution.js new file mode 100644 index 0000000..bb5fe4a --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.revolution.js @@ -0,0 +1,2658 @@ +/************************************************************************** + * 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(jQuery,undefined){ + "use strict"; + + jQuery.fn.extend({ + + revolution: function(options) { + + // SET DEFAULT VALUES OF ITEM // + var defaults = { + delay:9000, + responsiveLevels:4064, // Single or Array for Responsive Levels i.e.: 4064 or i.e. [2048, 1024, 768, 480] + visibilityLevels:[2048,1024,778,480], // Single or Array for Responsive Visibility Levels i.e.: 4064 or i.e. [2048, 1024, 768, 480] + gridwidth:960, // Single or Array i.e. 960 or [960, 840,760,460] + gridheight:500, // Single or Array i.e. 500 or [500, 450,400,350] + minHeight:0, + autoHeight:"off", + sliderType : "standard", // standard, carousel, hero + sliderLayout : "auto", // auto, fullwidth, fullscreen + + fullScreenAutoWidth:"off", // Turns the FullScreen Slider to be a FullHeight but auto Width Slider + fullScreenAlignForce:"off", + fullScreenOffsetContainer:"", // Size for FullScreen Slider minimising Calculated on the Container sizes + fullScreenOffset:"0", // Size for FullScreen Slider minimising + + hideCaptionAtLimit:0, // It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser) + hideAllCaptionAtLimit:0, // Hide all The Captions if Width of Browser is less then this value + hideSliderAtLimit:0, // Hide the whole slider, and stop also functions if Width of Browser is less than this value + disableProgressBar:"off", // Hides Progress Bar if is set to "on" + stopAtSlide:-1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case. + stopAfterLoops:-1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic + shadow:0, //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !) + dottedOverlay:"none", //twoxtwo, threexthree, twoxtwowhite, threexthreewhite + startDelay:0, // Delay before the first Animation starts. + lazyType : "smart", //full, smart, single + spinner:"spinner0", + shuffle:"off", // Random Order of Slides, + + + viewPort:{ + enable:false, // if enabled, slider wait with start or wait at first slide. + outof:"wait", // wait,pause + visible_area:"60%" + }, + + fallbacks:{ + isJoomla:false, + panZoomDisableOnMobile:"off", + simplifyAll:"on", + nextSlideOnWindowFocus:"off", + disableFocusListener:true + }, + + parallax : { + type : "off", // off, mouse, scroll, mouse+scroll + levels: [10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], + origo:"enterpoint", // slidercenter or 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", // horizontal - left/right arrows, vertical - top/bottom arrows + mouseScrollNavigation:"off", // on, off, carousel + onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off + + touch:{ + touchenabled:"off", // Enable Swipe Function : on/off + swipe_treshold : 75, // The number of pixels that the user must move their finger by before it is considered a swipe. + swipe_min_touches : 1, // Min Finger (touch) used for swipe + drag_block_vertical:false, // Prevent Vertical Scroll during Swipe + swipe_direction:"horizontal" + }, + arrows: { + style:"", + enable:false, + hide_onmobile:false, + hide_onleave:true, + 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:false, + hide_onmobile:false, + hide_onleave:true, + 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:'' + }, + thumbnails: { + style:"", + enable:false, + width:100, + height:50, + min_width:100, + wrapper_padding:2, + wrapper_color:"#f5f5f5", + wrapper_opacity:1, + tmp:'', + visibleAmount:5, + hide_onmobile:false, + hide_onleave:true, + hide_delay:200, + hide_delay_mobile:1200, + hide_under:0, + hide_over:9999, + direction:"horizontal", + span:false, + position:"inner", + space:2, + h_align:"left", + v_align:"center", + h_offset:20, + v_offset:0 + }, + tabs: { + style:"", + enable:false, + width:100, + min_width:100, + height:50, + wrapper_padding:10, + wrapper_color:"#f5f5f5", + wrapper_opacity:1, + tmp:'', + visibleAmount:5, + hide_onmobile:false, + hide_onleave:true, + hide_delay:200, + hide_delay_mobile:1200, + hide_under:0, + hide_over:9999, + direction:"horizontal", + span:false, + space:0, + position:"inner", + h_align:"left", + v_align:"center", + h_offset:20, + v_offset:0 + } + }, + extensions:"extensions/", //example extensions/ or extensions/source/ + extensions_suffix:".min.js", + debugMode:false + }; + + // Merge of Defaults + options = jQuery.extend(true,{},defaults, options); + + return this.each(function() { + + var c = jQuery(this); + //REMOVE SLIDES IF SLIDER IS HERO + if (options.sliderType=="hero") { + c.find('>ul>li').each(function(i) { + if (i>0) jQuery(this).remove(); + }) + } + options.jsFileLocation = options.jsFileLocation || getScriptLocation("themepunch.revolution.min.js"); + options.jsFileLocation = options.jsFileLocation + options.extensions; + options.scriptsneeded = getNeededScripts(options,c); + options.curWinRange = 0; + + if (options.navigation!=undefined && options.navigation.touch!=undefined) + options.navigation.touch.swipe_min_touches = options.navigation.touch.swipe_min_touches >5 ? 1 : options.navigation.touch.swipe_min_touches; + + + + jQuery(this).on("scriptsloaded",function() { + if (options.modulesfailing ) { + c.html('
    !! Error at loading Slider Revolution 5.0 Extrensions.'+options.errorm+'
    ').show(); + return false; + } + + // CHECK FOR MIGRATION + if (_R.migration!=undefined) options = _R.migration(c,options); + punchgs.force3D = true; + if (options.simplifyAll!=="on") punchgs.TweenLite.lagSmoothing(1000,16); + prepareOptions(c,options); + initSlider(c,options); + }); + + waitForScripts(c,options.scriptsneeded); + }) + }, + + // Remove a Slide from the Slider + revremoveslide : function(sindex) { + + return this.each(function() { + + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + if (opt && opt.li.length>0) { + if (sindex>0 || sindex<=opt.li.length) { + + var li = jQuery(opt.li[sindex]), + ref = li.data("index"), + nextslideafter = false; + + opt.slideamount = opt.slideamount-1; + removeNavWithLiref('.tp-bullet',ref,opt); + removeNavWithLiref('.tp-tab',ref,opt); + removeNavWithLiref('.tp-thumb',ref,opt); + if (li.hasClass('active-revslide')) + nextslideafter = true; + li.remove(); + opt.li = removeArray(opt.li,sindex); + if (opt.carousel && opt.carousel.slides) + opt.carousel.slides = removeArray(opt.carousel.slides,sindex) + opt.thumbs = removeArray(opt.thumbs,sindex); + if (_R.updateNavIndexes) _R.updateNavIndexes(opt); + if (nextslideafter) container.revnext(); + + } + } + } + }); + + }, + + // Add a New Call Back to some Module + revaddcallback: function(callback) { + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + if (opt.callBackArray === undefined) + opt.callBackArray = new Array(); + opt.callBackArray.push(callback); + } + }) + }, + + // Get Current Parallax Proc + revgetparallaxproc : function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + return opt.scrollproc; + } + + }, + + // ENABLE DEBUG MODE + revdebugmode: function() { + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + opt.debugMode = true; + containerResized(container,opt); + } + }) + }, + + // METHODE SCROLL + revscroll: function(oy) { + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) + jQuery('body,html').animate({scrollTop:(container.offset().top+(container.height())-oy)+"px"},{duration:400}); + }) + }, + + // METHODE PAUSE + revredraw: function(oy) { + return this.each(function() { + + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + containerResized(container,opt); + } + }) + }, + // METHODE PAUSE + revkill: function(oy) { + + var self = this, + container=jQuery(this); + + punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements); + if (_R.endMoveCaption) + punchgs.TweenLite.killDelayedCallsTo(_R.endMoveCaption); + + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + + container.data('conthover',1); + container.data('conthover-changed',1); + container.trigger('revolution.slide.onpause'); + var bt = container.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + opt.tonpause = true; + container.trigger('stoptimer'); + + punchgs.TweenLite.killTweensOf(container.find('*'),false); + punchgs.TweenLite.killTweensOf(container,false); + container.unbind('hover, mouseover, mouseenter,mouseleave, resize'); + var resizid = "resize.revslider-"+container.attr('id'); + jQuery(window).off(resizid); + container.find('*').each(function() { + var el = jQuery(this); + + el.unbind('on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer'); + el.off('on, hover, mouseenter,mouseleave,mouseover, resize'); + el.data('mySplitText',null); + el.data('ctl',null); + if (el.data('tween')!=undefined) + el.data('tween').kill(); + if (el.data('kenburn')!=undefined) + el.data('kenburn').kill(); + if (el.data('timeline_out')!=undefined) + el.data('timeline_out').kill(); + if (el.data('timeline')!=undefined) + el.data('timeline').kill(); + + el.remove(); + el.empty(); + el=null; + }) + + + punchgs.TweenLite.killTweensOf(container.find('*'),false); + punchgs.TweenLite.killTweensOf(container,false); + bt.remove(); + try{container.closest('.forcefullwidth_wrapper_tp_banner').remove();} catch(e) {} + try{container.closest('.rev_slider_wrapper').remove()} catch(e) {} + try{container.remove();} catch(e) {} + container.empty(); + container.html(); + container = null; + + opt = null; + delete(self.c); + delete(self.opt); + + return true; + } else { + return false; + } + + + }, + + // METHODE PAUSE + revpause: function() { + return this.each(function() { + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + c.data('conthover',1); + c.data('conthover-changed',1); + c.trigger('revolution.slide.onpause'); + var bt = c.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.tonpause = true; + c.trigger('stoptimer'); + } + }) + }, + + // METHODE RESUME + revresume: function() { + return this.each(function() { + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + c.data('conthover',0); + c.data('conthover-changed',1); + c.trigger('revolution.slide.onresume'); + var bt = c.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.tonpause = false; + c.trigger('starttimer'); + } + }) + }, + + // METHODE NEXT + revnext: function() { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + var bt = c.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + _R.callingNewSlide(opt,c,1); + } + }) + }, + + // METHODE RESUME + revprev: function() { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + var bt = c.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + _R.callingNewSlide(opt,c,-1); + } + }) + }, + + // METHODE LENGTH + revmaxslide: function() { + // CATCH THE CONTAINER + return jQuery(this).find('.tp-revslider-mainul >li').length; + }, + + + // METHODE CURRENT + revcurrentslide: function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + var bt = c.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + return parseInt(opt.act,0)+1; + } + }, + + // METHODE CURRENT + revlastslide: function() { + // CATCH THE CONTAINER + return jQuery(this).find('.tp-revslider-mainul >li').length; + }, + + + // METHODE JUMP TO SLIDE + revshowslide: function(slide) { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + var bt = c.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + _R.callingNewSlide(opt,c,"to"+(slide-1)); + } + }) + }, + revcallslidewithid: function(slide) { + return this.each(function() { + // CATCH THE CONTAINER + var c=jQuery(this); + if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) { + var bt = c.parent().find('.tp-bannertimer'), + opt = bt.data('opt'); + _R.callingNewSlide(opt,c,slide); + } + }) + } +}); + + + +////////////////////////////////////////////////////////////// +// - REVOLUTION FUNCTION EXTENSIONS FOR GLOBAL USAGE - // +////////////////////////////////////////////////////////////// +var _R = jQuery.fn.revolution; + +jQuery.extend(true, _R, { + + simp : function(a,b,basic) { + var c = Math.abs(a) - (Math.floor(Math.abs(a / b))*b); + if (basic) + return c; + else + return a<0 ? -1*c : c; + }, + + // - IS IOS VERSION OLDER THAN 5 ?? + iOSVersion : function() { + var oldios = false; + if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { + if (navigator.userAgent.match(/OS 4_\d like Mac OS X/i)) { + oldios = true; + } + } else { + oldios = false; + } + return oldios; + }, + + + // - CHECK IF BROWSER IS IE - + isIE : function( version, comparison ){ + var $div = jQuery('
    ').appendTo(jQuery('body')); + $div.html(''); + var ieTest = $div.find('a').length; + $div.remove(); + return ieTest; + }, + + // - IS MOBILE ?? + is_mobile : function() { + var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry','Android', 'webos', ,'iPod', 'iPhone', 'iPad', 'Blackberry', 'BlackBerry']; + var ismobile=false; + for(var i in agents) { + + if (navigator.userAgent.split(agents[i]).length>1) { + ismobile = true; + + } + } + return ismobile; + }, + + // - CALL BACK HANDLINGS - // + callBackHandling : function(opt,type,position) { + try{ + if (opt.callBackArray) + jQuery.each(opt.callBackArray,function(i,c) { + if (c) { + if (c.inmodule && c.inmodule === type) + if (c.atposition && c.atposition === position) + if (c.callback) + c.callback.call(); + } + }); + } catch(e) { + console.log("Call Back Failed"); + } + }, + + get_browser : function(){ + var N=navigator.appName, ua=navigator.userAgent, tem; + var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; + M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; + return M[0]; + }, + + get_browser_version : function(){ + var N=navigator.appName, ua=navigator.userAgent, tem; + var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; + M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; + return M[1]; + }, + + // GET THE HORIZONTAL OFFSET OF SLIDER BASED ON THE THU`MBNAIL AND TABS LEFT AND RIGHT SIDE + getHorizontalOffset : function(container,side) { + var thumbloff = gWiderOut(container,'.outer-left'), + thumbroff = gWiderOut(container,'.outer-right'); + + switch (side) { + case "left": + return thumbloff; + break; + case "right": + return thumbroff; + break; + case "both": + return thumbloff+thumbroff; + break; + } + }, + + + // - CALLING THE NEW SLIDE - // + callingNewSlide : function(opt,container,direction) { + + + var aindex = container.find('.next-revslide').length>0 ? container.find('.next-revslide').index() : container.find('.processing-revslide').length>0 ? container.find('.processing-revslide').index() : container.find('.active-revslide').index(), + nindex = 0; + + container.find('.next-revslide').removeClass("next-revslide"); + + + // SET NEXT DIRECTION + if (direction && jQuery.isNumeric(direction) || direction.match(/to/g)) { + if (direction===1 || direction === -1) { + nindex = aindex + direction; + nindex = nindex<0 ? opt.slideamount-1 : nindex>=opt.slideamount ? 0 : nindex; + } else { + + direction=jQuery.isNumeric(direction) ? direction : parseInt(direction.split("to")[1],0); + nindex = direction<0 ? 0 : direction>opt.slideamount-1 ? opt.slideamount-1 : direction; + } + container.find('.tp-revslider-slidesli:eq('+nindex+')').addClass("next-revslide"); + } else + if (direction) { + + container.find('.tp-revslider-slidesli').each(function() { + var li=jQuery(this); + if (li.data('index')===direction) li.addClass("next-revslide"); + }) + } + + + nindex = container.find('.next-revslide').index(); + container.trigger("revolution.nextslide.waiting"); + + + if (nindex !== aindex && nindex!=-1) + swapSlide(container,opt); + else + container.find('.next-revslide').removeClass("next-revslide"); + }, + + slotSize : function(img,opt) { + opt.slotw=Math.ceil(opt.width/opt.slots); + + if (opt.sliderLayout=="fullscreen") + opt.sloth=Math.ceil(jQuery(window).height()/opt.slots); + else + opt.sloth=Math.ceil(opt.height/opt.slots); + + if (opt.autoHeight=="on" && img!==undefined && img!=="") + opt.sloth=Math.ceil(img.height()/opt.slots); + + + }, + + setSize : function(opt) { + + var ofh = (opt.top_outer || 0) + (opt.bottom_outer || 0), + cpt = parseInt((opt.carousel.padding_top||0),0), + cpb = parseInt((opt.carousel.padding_bottom||0),0), + maxhei = opt.gridheight[opt.curWinRange]; + + maxhei = maxheiopt.gridheight[opt.curWinRange] && opt.autoHeight!="on") opt.height=opt.gridheight[opt.curWinRange]; + + if (opt.sliderLayout=="fullscreen" || opt.infullscreenmode) { + opt.height = opt.bw * opt.gridheight[opt.curWinRange]; + var cow = opt.c.parent().width(); + var coh = jQuery(window).height(); + + if (opt.fullScreenOffsetContainer!=undefined) { + try{ + var offcontainers = opt.fullScreenOffsetContainer.split(","); + if (offcontainers) + jQuery.each(offcontainers,function(index,searchedcont) { + coh = jQuery(searchedcont).length>0 ? coh - jQuery(searchedcont).outerHeight(true) : coh; + }); + } catch(e) {} + try{ + if (opt.fullScreenOffset.split("%").length>1 && opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) + coh = coh - (jQuery(window).height()* parseInt(opt.fullScreenOffset,0)/100); + else + if (opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) + coh = coh - parseInt(opt.fullScreenOffset,0); + } catch(e) {} + } + + coh = coh0) { + + jQuery.each(opt.lastplayedvideos,function(i,_nc) { + + _R.playVideo(_nc,opt); + }); + } + }, + + leaveViewPort : function(opt) { + opt.sliderlaststatus = opt.sliderstatus; + opt.c.trigger("stoptimer"); + if (opt.playingvideos != undefined && opt.playingvideos.length>0) { + opt.lastplayedvideos = jQuery.extend(true,[],opt.playingvideos); + if (opt.playingvideos) + jQuery.each(opt.playingvideos,function(i,_nc) { + if (_R.stopVideo) _R.stopVideo(_nc,opt); + }); + } + }, + + unToggleState : function(a) { + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + layer.removeClass("rs-toggle-content-active"); + }); + }, + + toggleState : function(a) { + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + layer.addClass("rs-toggle-content-active"); + }); + }, + lastToggleState : function(a) { + var state = 0; + if (a!=undefined && a.length>0) + jQuery.each(a,function(i,layer) { + state = layer.hasClass("rs-toggle-content-active"); + }); + return state; + } + +}); + + +var _ISM = _R.is_mobile(); + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +var removeArray = function(arr,i) { + var newarr = []; + jQuery.each(arr,function(a,b) { + if (a!=i) newarr.push(b); + }) + return newarr; + } + +var removeNavWithLiref = function(a,ref,opt) { + opt.c.find(a).each(function() { + var a = jQuery(this); + if (a.data('liref')===ref) + a.remove(); + }) +} + + +var lAjax = function(s,o) { + if (jQuery('body').data(s)) return false; + if (o.filesystem) { + if (o.errorm===undefined) + o.errorm = "
    Local Filesystem Detected !
    Put this to your header:"; + console.warn('Local Filesystem detected !'); + o.errorm = o.errorm+'
    <script type="text/javascript" src="'+o.jsFileLocation+s+o.extensions_suffix+'"></script>'; + console.warn(o.jsFileLocation+s+o.extensions_suffix+' could not be loaded !'); + console.warn('Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document.'); + console.log(" "); + o.modulesfailing = true; + return false; + } + jQuery.ajax({ + url:o.jsFileLocation+s+o.extensions_suffix, + 'dataType':'script', + 'cache':true, + "error":function(e) { + console.warn("Slider Revolution 5.0 Error !") + console.error("Failure at Loading:"+s+o.extensions_suffix+" on Path:"+o.jsFileLocation) + console.info(e); + } + }); + jQuery('body').data(s,true); +} + +var getNeededScripts = function(o,c) { + var n = new Object(), + _n = o.navigation; + + n.kenburns = false; + n.parallax = false; + n.carousel = false; + n.navigation = false; + n.videos = false; + n.actions = false; + n.layeranim = false; + n.migration = false; + + + // MIGRATION EXTENSION + if (!c.data('version') || !c.data('version').toString().match(/5./gi)) { + n.kenburns = true; + n.parallax = true; + n.carousel = false; + n.navigation = true; + n.videos = true; + n.actions = true; + n.layeranim = true; + n.migration = true; + } + else { + // KEN BURN MODUL + c.find('img').each(function(){ + if (jQuery(this).data('kenburns')=="on") n.kenburns = true; + }); + + // NAVIGATION EXTENSTION + if (o.sliderType =="carousel" || _n.keyboardNavigation=="on" || _n.mouseScrollNavigation=="on" || _n.touch.touchenabled=="on" || _n.arrows.enable || _n.bullets.enable || _n.thumbnails.enable || _n.tabs.enable ) + n.navigation = true; + + // LAYERANIM, VIDEOS, ACTIONS EXTENSIONS + c.find('.tp-caption, .tp-static-layer, .rs-background-video-layer').each(function(){ + var _nc = jQuery(this); + if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0)) + n.videos = true; + if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0)) + n.videos = true; + if (_nc.data('actions')!==undefined) + n.actions = true; + n.layeranim = true; + }); + + c.find('li').each(function() { + if (jQuery(this).data('link') && jQuery(this).data('link')!=undefined) { + n.layeranim = true; + n.actions = true; + } + }) + + // VIDEO EXTENSION + if (!n.videos && (c.find('.rs-background-video-layer').length>0 || c.find(".tp-videolayer").length>0 || c.find('iframe').length>0 || c.find('video').length>0)) + n.videos = true; + + // VIDEO EXTENSION + if (o.sliderType =="carousel") + n.carousel = true; + + + + if (o.parallax.type!=="off" || o.viewPort.enable || o.viewPort.enable=="true") + n.parallax = true; + } + + if (o.sliderType=="hero") { + n.carousel = false; + n.navigation = false; + } + + if (window.location.href.match(/file:/gi)) { + n.filesystem = true; + o.filesystem = true; + } + + // LOAD THE NEEDED LIBRARIES + if (n.videos && typeof _R.isVideoPlaying=='undefined') lAjax('revolution.extension.video',o); + if (n.carousel && typeof _R.prepareCarousel=='undefined') lAjax('revolution.extension.carousel',o); + if (!n.carousel && typeof _R.animateSlide=='undefined') lAjax('revolution.extension.slideanims',o); + if (n.actions && typeof _R.checkActions=='undefined') lAjax('revolution.extension.actions',o); + if (n.layeranim && typeof _R.handleStaticLayers=='undefined') lAjax('revolution.extension.layeranimation',o); + if (n.kenburns && typeof _R.stopKenBurn=='undefined') lAjax('revolution.extension.kenburn',o); + if (n.navigation && typeof _R.createNavigation=='undefined') lAjax('revolution.extension.navigation',o); + if (n.migration && typeof _R.migration=='undefined') lAjax('revolution.extension.migration',o); + if (n.parallax && typeof _R.checkForParallax=='undefined') lAjax('revolution.extension.parallax',o); + + + + return n; +} + +/////////////////////////////////// +// - WAIT FOR SCRIPT LOADS - // +/////////////////////////////////// +var waitForScripts = function(c,n) { + // CHECK KEN BURN DEPENDENCIES + + if (n.filesystem || + (typeof punchgs !== 'undefined' && + (!n.kenburns || (n.kenburns && typeof _R.stopKenBurn !== 'undefined')) && + (!n.navigation || (n.navigation && typeof _R.createNavigation !== 'undefined')) && + (!n.carousel || (n.carousel && typeof _R.prepareCarousel !== 'undefined')) && + (!n.videos || (n.videos && typeof _R.resetVideo !== 'undefined')) && + (!n.actions || (n.actions && typeof _R.checkActions !== 'undefined')) && + (!n.layeranim || (n.layeranim && typeof _R.handleStaticLayers !== 'undefined')) && + (!n.migration || (n.migration && typeof _R.migration !== 'undefined')) && + (!n.parallax || (n.parallax && typeof _R.checkForParallax !== 'undefined')) && + (n.carousel || (!n.carousel && typeof _R.animateSlide !== 'undefined')) + )) + c.trigger("scriptsloaded"); + else + setTimeout(function() { + waitForScripts(c,n); + },50); + +} + +////////////////////////////////// +// - GET SCRIPT LOCATION - // +////////////////////////////////// +var getScriptLocation = function(a) { + + var srcexp = new RegExp("themepunch.revolution.min.js","gi"), + ret = ""; + jQuery("script").each(function() { + var src = jQuery(this).attr("src"); + if (src && src.match(srcexp)) + ret = src; + }); + + ret = ret.replace('jquery.themepunch.revolution.min.js', ''); + ret = ret.replace('jquery.themepunch.revolution.js', ''); + ret = ret.split("?")[0]; + return ret; +} + +////////////////////////////////////////// +// - ADVANCED RESPONSIVE LEVELS - // +////////////////////////////////////////// +var setCurWinRange = function(opt,vis) { + var curlevel = 0, + curwidth = 9999, + lastmaxlevel = 0, + lastmaxid = 0, + curid = 0, + winw = jQuery(window).width(), + l = vis && opt.responsiveLevels==9999 ? opt.visibilityLevels : opt.responsiveLevels; + + if (l && l.length) + jQuery.each(l,function(index,level) { + if (winwlevel) { + curwidth = level; + curid = index; + lastmaxlevel = level; + } + } + + if (winw>level && lastmaxlevel'); + + // PREPRARE SOME CLASSES AND VARIABLES + container.find('>ul').addClass("tp-revslider-mainul"); + + + // CREATE SOME DEFAULT OPTIONS FOR LATER + opt.c=container; + opt.ul = container.find('.tp-revslider-mainul'); + + // Remove Not Needed Slides for Mobile Devices + opt.ul.find('>li').each(function(i) { + var li = jQuery(this); + if (li.data('hideslideonmobile')=="on" && _ISM) li.remove(); + }); + + + opt.cid = container.attr('id'); + opt.ul.css({visibility:"visible"}); + opt.slideamount = opt.ul.find('>li').length; + opt.slayers = container.find('.tp-static-layers'); + + + + + // Save Original Index of Slides + opt.ul.find('>li').each(function(i) { + jQuery(this).data('originalindex',i); + }); + + // RANDOMIZE THE SLIDER SHUFFLE MODE + if (opt.shuffle=="on") { + var fsa = new Object, + fli = opt.ul.find('>li:first-child'); + fsa.fstransition = fli.data('fstransition'); + fsa.fsmasterspeed = fli.data('fsmasterspeed'); + fsa.fsslotamount = fli.data('fsslotamount'); + + for (var u=0;uli:eq('+it+')').prependTo(opt.ul); + } + + var newfli = opt.ul.find('>li:first-child'); + newfli.data('fstransition',fsa.fstransition); + newfli.data('fsmasterspeed',fsa.fsmasterspeed); + newfli.data('fsslotamount',fsa.fsslotamount); + // COLLECT ALL LI INTO AN ARRAY + opt.li = opt.ul.find('>li'); + } + + + opt.li = opt.ul.find('>li'); + opt.thumbs = new Array(); + + opt.slots=4; + opt.act=-1; + opt.firststart=1; + opt.loadqueue = new Array(); + opt.syncload = 0; + opt.conw = container.width(); + opt.conh = container.height(); + + if (opt.responsiveLevels.length>1) + opt.responsiveLevels[0] = 9999; + else + opt.responsiveLevels = 9999; + + // RECORD THUMBS AND SET INDEXES + jQuery.each(opt.li,function(index,li) { + var li = jQuery(li), + img = li.find('.rev-slidebg') || li.find('img').first(), + i = 0; + + + li.addClass("tp-revslider-slidesli"); + if (li.data('index')===undefined) li.data('index','rs-'+Math.round(Math.random()*999999)); + + var obj = new Object; + obj.params = new Array(); + + obj.id = li.data('index'); + obj.src = li.data('thumb')!==undefined ? li.data('thumb') : img.data('lazyload') !== undefined ? img.data('lazyload') : img.attr('src'); + if (li.data('title') !== undefined) obj.params.push({from:RegExp("\\{\\{title\\}\\}","g"), to:li.data("title")}) + if (li.data('description') !== undefined) obj.params.push({from:RegExp("\\{\\{description\\}\\}","g"), to:li.data("description")}) + for (var i=1;i<=10;i++) { + if (li.data("param"+i)!==undefined) + obj.params.push({from:RegExp("\\{\\{param"+i+"\\}\\}","g"), to:li.data("param"+i)}) + } + opt.thumbs.push(obj); + + li.data('origindex',li.index()); + + // IF LINK ON SLIDE EXISTS, NEED TO CREATE A PROPER LAYER FOR IT. + if (li.data('link')!=undefined) { + var link = li.data('link'), + target= li.data('target') || "_self", + zindex= li.data('slideindex')==="back" ? 0 : 60, + linktoslide=li.data('linktoslide'), + checksl = linktoslide; + + if (linktoslide != undefined) + if (linktoslide!="next" && linktoslide!="prev") + opt.li.each(function() { + var t = jQuery(this); + if (t.data('origindex')+1==checksl) linktoslide = t.data('index'); + }); + + + if (link!="slide") linktoslide="no"; + + var apptxt = '
    '; + li.append(apptxt); + } + }); + + + // CREATE GRID WIDTH AND HEIGHT ARRAYS + opt.rle = opt.responsiveLevels.length || 1; + opt.gridwidth = cArray(opt.gridwidth,opt.rle); + opt.gridheight = cArray(opt.gridheight,opt.rle); + // END OF VERSION 5.0 INIT MODIFICATION + + + + // SIMPLIFY ANIMATIONS ON OLD IOS AND IE8 IF NEEDED + if (opt.simplifyAll=="on" && (_R.isIE(8) || _R.iOSVersion())) { + container.find('.tp-caption').each(function() { + var tc = jQuery(this); + tc.removeClass("customin customout").addClass("fadein fadeout"); + tc.data('splitin',""); + tc.data('speed',400); + }) + opt.li.each(function() { + var li= jQuery(this); + li.data('transition',"fade"); + li.data('masterspeed',500); + li.data('slotamount',1); + var img = li.find('.rev-slidebg') || li.find('>img').first(); + img.data('kenburns',"off"); + }); + } + + opt.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); + + // SOME OPTIONS WHICH SHOULD CLOSE OUT SOME OTHER SETTINGS + opt.autoHeight = opt.sliderLayout=="fullscreen" ? "on" : opt.autoHeight; + + if (opt.sliderLayout=="fullwidth" && opt.autoHeight=="off") container.css({maxHeight:opt.gridheight[opt.curWinRange]+"px"}); + + // BUILD A FORCE FULLWIDTH CONTAINER, TO SPAN THE FULL SLIDER TO THE FULL WIDTH OF BROWSER + if (opt.sliderLayout!="auto" && container.closest('.forcefullwidth_wrapper_tp_banner').length==0) { + if (opt.sliderLayout!=="fullscreen" || opt.fullScreenAutoWidth!="on") { + var cp = container.parent(), + mb = cp.css('marginBottom'), + mt = cp.css('marginTop'); + mb = mb===undefined ? 0 : mb; + mt = mt===undefined ? 0 : mt; + + cp.wrap('
    '); + container.closest('.forcefullwidth_wrapper_tp_banner').append('
    '); + container.parent().css({marginTop:"0px",marginBottom:"0px"}); + //container.css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); + container.parent().css({position:'absolute'}); + } + } + + + + // SHADOW ADD ONS + if (opt.shadow!==undefined && opt.shadow>0) { + container.parent().addClass('tp-shadow'+opt.shadow); + container.parent().append('
    '); + container.parent().find('.tp-shadowcover').css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); + } + + // ESTIMATE THE CURRENT WINDOWS RANGE INDEX + setCurWinRange(opt); + setCurWinRange(opt,true); + + // IF THE CONTAINER IS NOT YET INITIALISED, LETS GO FOR IT + if (!container.hasClass("revslider-initialised")) { + // MARK THAT THE CONTAINER IS INITIALISED WITH SLIDER REVOLUTION ALREADY + container.addClass("revslider-initialised"); + + // FOR BETTER SELECTION, ADD SOME BASIC CLASS + container.addClass("tp-simpleresponsive"); + + // WE DONT HAVE ANY ID YET ? WE NEED ONE ! LETS GIVE ONE RANDOMLY FOR RUNTIME + if (container.attr('id')==undefined) container.attr('id',"revslider-"+Math.round(Math.random()*1000+5)); + + // CHECK IF FIREFOX 13 IS ON WAY.. IT HAS A STRANGE BUG, CSS ANIMATE SHOULD NOT BE USED + opt.firefox13 = false; + opt.ie = !jQuery.support.opacity; + opt.ie9 = (document.documentMode == 9); + + opt.origcd=opt.delay; + + + + // CHECK THE jQUERY VERSION + var version = jQuery.fn.jquery.split('.'), + versionTop = parseFloat(version[0]), + versionMinor = parseFloat(version[1]), + versionIncrement = parseFloat(version[2] || '0'); + if (versionTop==1 && versionMinor < 7) + container.html('
    The Current Version of jQuery:'+version+'
    Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
    '); + if (versionTop>1) opt.ie=false; + + + + // PREPARE VIDEO PLAYERS + var addedApis = new Object(); + addedApis.addedyt=0; + addedApis.addedvim=0; + addedApis.addedvid=0; + + container.find('.tp-caption, .rs-background-video-layer').each(function(i) { + var _nc = jQuery(this), + an = _nc.data('autoplayonlyfirsttime'), + ap = _nc.data('autoplay'); + + + if (_nc.hasClass("tp-static-layer") && _R.handleStaticLayers) + _R.handleStaticLayers(_nc,opt); + + var pom = _nc.data('noposteronmobile') || _nc.data('noPosterOnMobile') || _nc.data('posteronmobile') || _nc.data('posterOnMobile') || _nc.data('posterOnMObile'); + _nc.data('noposteronmobile',pom); + + // FIX VISIBLE IFRAME BUG IN SAFARI + var iff = 0; + _nc.find('iframe').each(function() { + punchgs.TweenLite.set(jQuery(this),{autoAlpha:0}); + iff++; + }) + if (iff>0) + _nc.data('iframes',true) + + if (_nc.hasClass("tp-caption")) { + // PREPARE LAYERS AND WRAP THEM WITH PARALLAX, LOOP, MASK HELP CONTAINERS + var ec = _nc.hasClass("slidelink") ? "width:100% !important;height:100% !important;" : ""; + _nc.wrap(''); + var lar = ['pendulum', 'rotate','slideloop','pulse','wave'], + _lc = _nc.closest('.tp-loop-wrap'); + + jQuery.each(lar,function(i,k) { + var lw = _nc.find('.rs-'+k), + f = lw.data() || ""; + if (f!="") { + _lc.data(f); + _lc.addClass("rs-"+k); + lw.children(0).unwrap(); + _nc.data('loopanimation',"on"); + } + }); + punchgs.TweenLite.set(_nc,{visibility:"hidden"}); + } + + var as = _nc.data('actions'); + if (as!==undefined) _R.checkActions(_nc,opt,as); + + checkHoverDependencies(_nc,opt); + + if (_R.checkVideoApis) + addedApis = _R.checkVideoApis(_nc,opt,addedApis); + + // REMOVE VIDEO AUTOPLAYS FOR MOBILE DEVICES + if (_ISM) { + if (an == true || an=="true") { + _nc.data('autoplayonlyfirsttime',"false"); + an=false; + } + if (ap==true || ap=="true" || ap=="on" || ap=="1sttime") { + _nc.data('autoplay',"off"); + ap="off"; + } + + } + + + // PREPARE TIMER BEHAVIOUR BASED ON AUTO PLAYED VIDEOS IN SLIDES + if (an == true || an=="true" || ap == "1sttime") + _nc.closest('li.tp-revslider-slidesli').addClass("rs-pause-timer-once"); + + if (ap==true || ap=="true" || ap == "on" || ap == "no1sttime") + _nc.closest('li.tp-revslider-slidesli').addClass("rs-pause-timer-always"); + + + }); + + container.hover( + function() { + container.trigger('tp-mouseenter'); + opt.overcontainer=true; + }, + function() { + container.trigger('tp-mouseleft'); + opt.overcontainer=false; + }); + + + container.on('mouseover',function() { + container.trigger('tp-mouseover'); + opt.overcontainer=true; + }) + + // REMOVE ANY VIDEO JS SETTINGS OF THE VIDEO IF NEEDED (OLD FALL BACK, AND HELP FOR 3THD PARTY PLUGIN CONFLICTS) + container.find('.tp-caption video').each(function(i) { + var v = jQuery(this); + v.removeClass("video-js vjs-default-skin"); + v.attr("preload",""); + v.css({display:"none"}); + }); + + //PREPARE LOADINGS ALL IN SEQUENCE + if (opt.sliderType!=="standard") opt.lazyType = "all"; + + + // PRELOAD STATIC LAYERS + loadImages(container.find('.tp-static-layers'),opt,0); + + waitForCurrentImages(container.find('.tp-static-layers img'),opt,function() { + container.find('.tp-static-layers img').each(function() { + var e = jQuery(this), + src = e.data('lazyload') != undefined ? e.data('lazyload') : e.attr('src'), + loadobj = getLoadObj(opt,src); + e.attr('src',loadobj.src) + }) + }) + + + + // SET ALL LI AN INDEX AND INIT LAZY LOADING + opt.li.each(function(i) { + var li = jQuery(this); + + if (opt.lazyType=="all" || (opt.lazyType=="smart" && (i==0 || i == 1 || i == opt.slideamount || i == opt.slideamount-1))) { + loadImages(li,opt,i); + waitForCurrentImages(li,opt,function() { + if (opt.sliderType=="carousel") + punchgs.TweenLite.to(li,1,{autoAlpha:1,ease:punchgs.Power3.easeInOut}); + }); + } + + }); + + + + // IF DEEPLINK HAS BEEN SET + var deeplink = getUrlVars("#")[0]; + if (deeplink.length<9) { + if (deeplink.split('slide').length>1) { + var dslide=parseInt(deeplink.split('slide')[1],0); + if (dslide<1) dslide=1; + if (dslide>opt.slideamount) dslide=opt.slideamount; + opt.startWithSlide=dslide-1; + } + } + + // PREPARE THE SPINNER + container.append( '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '); + + + // RESET THE TIMER + if (container.find('.tp-bannertimer').length===0) container.append(''); + container.find('.tp-bannertimer').css({'width':'0%'}); + container.find('.tp-bannertimer').data('opt',opt); + + + // PREPARE THE SLIDES + opt.ul.css({'display':'block'}); + prepareSlides(container,opt); + if (opt.parallax.type!=="off") _R.checkForParallax(container,opt); + + + // PREPARE SLIDER SIZE + _R.setSize(opt); + + + // Call the Navigation Builder + if (opt.sliderType!=="hero") _R.createNavigation(container,opt); + if (_R.resizeThumbsTabs) _R.resizeThumbsTabs(opt); + contWidthManager(opt); + var _v = opt.viewPort; + opt.inviewport = false; + + if (_v !=undefined && _v.enable) { + if (!jQuery.isNumeric(_v.visible_area)) + if (_v.visible_area.indexOf('%')!==-1) + _v.visible_area = parseInt(_v.visible_area)/100; + + if (_R.scrollTicker) _R.scrollTicker(opt,container); + } + + + + // START THE SLIDER + setTimeout(function() { + if ( opt.sliderType =="carousel") _R.prepareCarousel(opt); + + if (!_v.enable || (_v.enable && opt.inviewport) || (_v.enable && !opt.inviewport && !_v.outof=="wait")) { + swapSlide(container,opt); + } + else + opt.waitForFirstSlide = true; + + if (_R.manageNavigation) _R.manageNavigation(opt); + + + // START COUNTDOWN + if (opt.slideamount>1) { + if (!_v.enable || (_v.enable && opt.inviewport)) + countDown(container,opt); + else + opt.waitForCountDown = true; + } + setTimeout(function() { + container.trigger('revolution.slide.onloaded'); + },100); + },opt.startDelay); + opt.startDelay=0; + + + + /****************************** + - FULLSCREEN CHANGE - + ********************************/ + // FULLSCREEN MODE TESTING + jQuery("body").data('rs-fullScreenMode',false); + jQuery(window).on ('mozfullscreenchange webkitfullscreenchange fullscreenchange',function(){ + jQuery("body").data('rs-fullScreenMode',!jQuery("body").data('rs-fullScreenMode')); + if (jQuery("body").data('rs-fullScreenMode')) { + setTimeout(function() { + jQuery(window).trigger("resize"); + },200); + } + }); + + var resizid = "resize.revslider-"+container.attr('id'); + + // IF RESIZED, NEED TO STOP ACTUAL TRANSITION AND RESIZE ACTUAL IMAGES + jQuery(window).on(resizid,function() { + if (container==undefined) return false; + + if (jQuery('body').find(container)!=0) + contWidthManager(opt); + + if (container.outerWidth(true)!=opt.width || container.is(":hidden") || (opt.sliderLayout=="fullscreen" && jQuery(window).height()!=opt.lastwindowheight)) { + opt.lastwindowheight = jQuery(window).height(); + containerResized(container,opt); + } + + + }); + + hideSliderUnder(container,opt); + contWidthManager(opt); + if (!opt.fallbacks.disableFocusListener && opt.fallbacks.disableFocusListener != "true" && opt.fallbacks.disableFocusListener !== true) tabBlurringCheck(container,opt); + } +} + +/************************************* + - CREATE SIMPLE ARRAYS - +**************************************/ +var cArray = function(b,l) { + if (!jQuery.isArray(b)) { + var t = b; + b = new Array(); + b.push(t); + } + if (b.lengthopt.bw) + opt.bh=opt.bw + else + opt.bw = opt.bh; + + if (opt.bh>1 || opt.bw>1) { opt.bw=1; opt.bh=1; } +} + + + + + +///////////////////////////////////////// +// - PREPARE THE SLIDES / SLOTS - // +/////////////////////////////////////// +var prepareSlides = function(container,opt) { + + container.find('.tp-caption').each(function() { + var c = jQuery(this); + if (c.data('transition')!==undefined) c.addClass(c.data('transition')); + }); + + // PREPARE THE UL CONTAINER TO HAVEING MAX HEIGHT AND HEIGHT FOR ANY SITUATION + opt.ul.css({overflow:'hidden',width:'100%',height:'100%',maxHeight:container.parent().css('maxHeight')}) + if (opt.autoHeight=="on") { + opt.ul.css({overflow:'hidden',width:'100%',height:'100%',maxHeight:"none"}); + container.css({'maxHeight':'none'}); + container.parent().css({'maxHeight':'none'}); + } + //_R.setSize("",opt); + opt.li.each(function(j) { + var li=jQuery(this), + originalIndex = li.data('originalindex'); + + //START WITH CORRECT SLIDE + if ((opt.startWithSlide !=undefined && originalIndex==opt.startWithSlide) || opt.startWithSlide ===undefined && j==0) + li.addClass("next-revslide"); + + + // MAKE LI OVERFLOW HIDDEN FOR FURTHER ISSUES + li.css({'width':'100%','height':'100%','overflow':'hidden'}); + + }); + + if (opt.sliderType === "carousel") { + //SET CAROUSEL + opt.ul.css({overflow:"visible"}).wrap(''); + var apt = '
    '; + opt.c.parent().prepend(apt); + opt.c.parent().append(apt); + _R.prepareCarousel(opt); + } + + // RESOLVE OVERFLOW HIDDEN OF MAIN CONTAINER + container.parent().css({'overflow':'visible'}); + + + opt.li.find('>img').each(function(j) { + + var img=jQuery(this), + bgvid = img.closest('li').find('.rs-background-video-layer'); + + bgvid.addClass("defaultvid").css({zIndex:30}); + + img.addClass('defaultimg'); + + // TURN OF KEN BURNS IF WE ARE ON MOBILE AND IT IS WISHED SO + if (opt.fallbacks.panZoomDisableOnMobile == "on" && _ISM) { + img.data('kenburns',"off"); + img.data('bgfit',"cover"); + } + + img.wrap('
    '); + bgvid.appendTo(img.closest('li').find('.slotholder')); + var dts = img.data(); + img.closest('.slotholder').data(dts); + + if (bgvid.length>0 && dts.bgparallax!=undefined) + bgvid.data('bgparallax',dts.bgparallax); + + if (opt.dottedOverlay!="none" && opt.dottedOverlay!=undefined) + img.closest('.slotholder').append('
    '); + + var src=img.attr('src'); + dts.src = src; + dts.bgfit = dts.bgfit || "cover"; + dts.bgrepeat = dts.bgrepeat || "no-repeat", + dts.bgposition = dts.bgposition || "center center"; + + var pari = img.closest('.slotholder'); + img.parent().append('
    '); + var comment = document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - " + img.get(0).outerHTML); + img.replaceWith(comment); + img = pari.find('.tp-bgimg'); + img.data(dts); + img.attr("src",src); + + if (opt.sliderType === "standard" || opt.sliderType==="undefined") + img.css({'opacity':0}); + + }) + + +} + + +// REMOVE SLOTS // +var removeSlots = function(container,opt,where,addon) { + opt.removePrepare = opt.removePrepare + addon; + where.find('.slot, .slot-circle-wrapper').each(function() { + jQuery(this).remove(); + }); + opt.transition = 0; + opt.removePrepare = 0; +} + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// SLIDE SWAPS //////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + +// THE IMAGE IS LOADED, WIDTH, HEIGHT CAN BE SAVED +var cutParams = function(a) { + var b = a; + if (a!=undefined && a.length>0) + b = a.split("?")[0]; + return b; +} + +var relativeRedir = function(redir){ + return location.pathname.replace(/(.*)\/[^/]*/, "$1/"+redir); +} + +var abstorel = function (base, relative) { + var stack = base.split("/"), + parts = relative.split("/"); + stack.pop(); // remove current file name (or empty string) + // (omit if "base" is the current folder without trailing slash) + for (var i=0; i5000 && opt.youtubewarning!=true) { + opt.youtubewarning = true; + var txt = "YouTube Api Could not be loaded !"; + if (location.protocol === 'https:') txt = txt + " Please Check and Renew SSL Certificate !"; + console.error(txt); + opt.c.append('
    '+txt+'
    ') + } + } + + if (opt.vimeoapineeded == true && !window['Froogaloop']) { + waitforload = true; + if (jQuery.now()-opt.vimeostarttime>5000 && opt.vimeowarning!=true) { + opt.vimeowarning= true; + var txt = "Vimeo Froogaloop Api Could not be loaded !"; + if (location.protocol === 'https:') txt = txt + " Please Check and Renew SSL Certificate !"; + console.error(txt); + opt.c.append('
    '+txt+'
    ') + } + } + }); + + + if (waitforload) + setTimeout(function() { + waitForCurrentImages(nextli,opt,callback) ; + },19); + else + callback(); + +} + + +////////////////////////////////////// +// - CALL TO SWAP THE SLIDES - // +///////////////////////////////////// +var swapSlide = function(container,opt) { + + clearTimeout(opt.waitWithSwapSlide); + + + + if (container.find('.processing-revslide').length>0) { + opt.waitWithSwapSlide = setTimeout(function() { + swapSlide(container,opt); + + },150); + return false; + } + + var actli = container.find('.active-revslide'), + nextli = container.find('.next-revslide'), + defimg= nextli.find('.defaultimg'); + + + if (nextli.index() === actli.index()) { + nextli.removeClass("next-revslide"); + return false; + } + nextli.removeClass("next-revslide").addClass("processing-revslide"); + + nextli.data('slide_on_focus_amount',(nextli.data('slide_on_focus_amount')+1) || 1); + // CHECK IF WE ARE ALREADY AT LAST ITEM TO PLAY IN REAL LOOP SESSION + if (opt.stopLoop=="on" && nextli.index()==opt.lastslidetoshow-1) { + container.find('.tp-bannertimer').css({'visibility':'hidden'}); + container.trigger('revolution.slide.onstop'); + opt.noloopanymore = 1; + } + + // INCREASE LOOP AMOUNTS + if (nextli.index()===opt.slideamount-1) { + opt.looptogo=opt.looptogo-1; + if (opt.looptogo<=0) + opt.stopLoop="on"; + } + + opt.tonpause = true; + container.trigger('stoptimer'); + opt.cd=0; + if (opt.spinner==="off") + container.find('.tp-loader').css({display:"none"}); + else + container.find('.tp-loader').css({display:"block"}); + + + loadImages(nextli,opt,1); + + + // WAIT FOR SWAP SLIDE PROGRESS + waitForCurrentImages(nextli,opt,function() { + + + // MANAGE BG VIDEOS + nextli.find('.rs-background-video-layer').each(function() { + var _nc = jQuery(this); + if (!_nc.hasClass("HasListener")) { + _nc.data('bgvideo',1); + _R.manageVideoLayer(_nc,opt); + } + if (_nc.find('.rs-fullvideo-cover').length==0) + _nc.append('
    ') + }); + swapSlideProgress(opt,defimg,container) + }); + +} + +////////////////////////////////////// +// - PROGRESS SWAP THE SLIDES - // +///////////////////////////////////// +var swapSlideProgress = function(opt,defimg,container) { + + var actli = container.find('.active-revslide'), + nextli = container.find('.processing-revslide'), + actsh = actli.find('.slotholder'), + nextsh = nextli.find('.slotholder'); + opt.tonpause = false; + opt.cd=0; + container.trigger('nulltimer'); + + + container.find('.tp-loader').css({display:"none"}); + // if ( opt.sliderType =="carousel") _R.prepareCarousel(opt); + _R.setSize(opt); + _R.slotSize(defimg,opt); + + if (_R.manageNavigation) _R.manageNavigation(opt); + var data={}; + data.nextslide=nextli; + data.currentslide=actli; + container.trigger('revolution.slide.onbeforeswap',data); + + opt.transition = 1; + opt.videoplaying = false; + + // IF DELAY HAS BEEN SET VIA THE SLIDE, WE TAKE THE NEW VALUE, OTHER WAY THE OLD ONE... + if (nextli.data('delay')!=undefined) { + opt.cd=0; + opt.delay=nextli.data('delay'); + } else + opt.delay=opt.origcd; + + + var ai = actli.index(), + ni = nextli.index(); + opt.sdir = ni-1) + opt.looptogo=opt.stopAfterLoops; + else + opt.looptogo=9999999; + + if (opt.stopAtSlide!=undefined && opt.stopAtSlide>-1) + opt.lastslidetoshow=opt.stopAtSlide; + else + opt.lastslidetoshow=999; + + opt.stopLoop="off"; + + if (opt.looptogo==0) opt.stopLoop="on"; + + + var bt=container.find('.tp-bannertimer'); + + // LISTENERS //container.trigger('stoptimer'); + container.on('stoptimer',function() { + var bt = jQuery(this).find('.tp-bannertimer'); + bt.data('tween').pause(); + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + opt.sliderstatus = "paused"; + _R.unToggleState(opt.slidertoggledby); + }); + + + container.on('starttimer',function() { + if (opt.conthover!=1 && opt.videoplaying!=true && opt.width>opt.hideSliderAtLimit && opt.tonpause != true && opt.overnav !=true) + if (opt.noloopanymore !== 1 && (!opt.viewPort.enable || opt.inviewport)) { + bt.css({visibility:"visible"}); + bt.data('tween').resume(); + opt.sliderstatus = "playing"; + } + + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + _R.toggleState(opt.slidertoggledby); + }); + + + container.on('restarttimer',function() { + + var bt = jQuery(this).find('.tp-bannertimer'); + if (opt.mouseoncontainer && opt.navigation.onHoverStop=="on" && (!_ISM)) return false; + if (opt.noloopanymore !== 1 && (!opt.viewPort.enable || opt.inviewport)) { + bt.css({visibility:"visible"}); + bt.data('tween').kill(); + bt.data('tween',punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1})); + opt.sliderstatus = "playing"; + } + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + _R.toggleState(opt.slidertoggledby); + }); + + container.on('nulltimer',function() { + bt.data('tween').pause(0); + if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"}); + opt.sliderstatus = "paused"; + }); + + var countDownNext = function() { + if (jQuery('body').find(container).length==0) { + removeAllListeners(container,opt); + clearInterval(opt.cdint); + } + + container.trigger("revolution.slide.slideatend"); + + //STATE OF API CHANGED -> MOVE TO AIP BETTER + if (container.data('conthover-changed') == 1) { + opt.conthover= container.data('conthover'); + container.data('conthover-changed',0); + } + + _R.callingNewSlide(opt,container,1); + } + + bt.data('tween',punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1})); + bt.data('opt',opt); + + if (opt.slideamount >1 && !(opt.stopAfterLoops==0 && opt.stopAtSlide==1)) { + container.trigger("starttimer"); + } + else { + opt.noloopanymore = 1; + container.trigger("nulltimer"); + } + + container.on('tp-mouseenter',function() { + opt.mouseoncontainer = true; + if (opt.navigation.onHoverStop=="on" && (!_ISM)) { + container.trigger('stoptimer'); + container.trigger('revolution.slide.onpause'); + } + }); + container.on('tp-mouseleft',function() { + opt.mouseoncontainer = false; + if (container.data('conthover')!=1 && opt.navigation.onHoverStop=="on" && ((opt.viewPort.enable==true && opt.inviewport) || opt.viewPort.enable==false)) { + container.trigger('revolution.slide.onresume'); + container.trigger('starttimer'); + } + }); + +} + + + + +////////////////////////////////////////////////////// +// * Revolution Slider - NEEDFULL FUNCTIONS +// * @version: 1.0 (30.10.2014) +// * @author ThemePunch +////////////////////////////////////////////////////// + + + +// - BLUR / FOXUS FUNCTIONS ON BROWSER + +var vis = (function(){ + var stateKey, + eventKey, + keys = { + hidden: "visibilitychange", + webkitHidden: "webkitvisibilitychange", + mozHidden: "mozvisibilitychange", + msHidden: "msvisibilitychange" + }; + for (stateKey in keys) { + if (stateKey in document) { + eventKey = keys[stateKey]; + break; + } + } + return function(c) { + if (c) document.addEventListener(eventKey, c); + return !document[stateKey]; + } + })(); + +var restartOnFocus = function(opt) { + if (opt==undefined || opt.c==undefined) return false; + if (opt.windowfocused!=true) { + opt.windowfocused = true; + punchgs.TweenLite.delayedCall(0.3,function(){ + // TAB IS ACTIVE, WE CAN START ANY PART OF THE SLIDER + if (opt.fallbacks.nextSlideOnWindowFocus=="on") opt.c.revnext(); + opt.c.revredraw(); + if (opt.lastsliderstatus=="playing") + opt.c.revresume(); + }); + } +} + +var lastStatBlur = function(opt) { + opt.windowfocused = false; + opt.lastsliderstatus = opt.sliderstatus; + opt.c.revpause(); + var actsh = opt.c.find('.active-revslide .slotholder'), + nextsh = opt.c.find('.processing-revslide .slotholder'); + + if (nextsh.data('kenburns')=="on") + _R.stopKenBurn(nextsh,opt); + + if (actsh.data('kenburns')=="on") + _R.stopKenBurn(actsh,opt); + + +} + +var tabBlurringCheck = function(container,opt) { + var notIE = (document.documentMode === undefined), + isChromium = window.chrome; + + if (notIE && !isChromium) { + // checks for Firefox and other NON IE Chrome versions + jQuery(window).on("focusin", function () { + restartOnFocus(opt); + }).on("focusout", function () { + lastStatBlur(opt); + }); + } else { + // checks for IE and Chromium versions + if (window.addEventListener) { + // bind focus event + window.addEventListener("focus", function (event) { + restartOnFocus(opt); + }, false); + // bind blur event + window.addEventListener("blur", function (event) { + lastStatBlur(opt); + }, false); + + } else { + // bind focus event + window.attachEvent("focus", function (event) { + restartOnFocus(opt); + }); + // bind focus event + window.attachEvent("blur", function (event) { + lastStatBlur(opt); + }); + } + } +} + + +// - GET THE URL PARAMETER // + +var getUrlVars = function (hashdivider){ + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf(hashdivider) + 1).split('_'); + for(var i = 0; i < hashes.length; i++) + { + hashes[i] = hashes[i].replace('%3D',"="); + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; +} +})(jQuery); \ No newline at end of file diff --git a/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.tools.min.js b/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.tools.min.js new file mode 100644 index 0000000..7384210 --- /dev/null +++ b/public/assets/plugins/rs-plugin/js/source/jquery.themepunch.tools.min.js @@ -0,0 +1,8503 @@ +/******************************************** + - THEMEPUNCH TOOLS Ver. 1.0 - + Last Update of Tools 27.02.2015 +*********************************************/ + + +/* +* @fileOverview TouchSwipe - jQuery Plugin +* @version 1.6.12 +* +* @author Matt Bryson http://www.github.com/mattbryson +* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin +* @see http://labs.rampinteractive.co.uk/touchSwipe/ +* @see http://plugins.jquery.com/project/touchSwipe +* +* Copyright (c) 2010-2015 Matt Bryson +* Dual licensed under the MIT or GPL Version 2 licenses. +* +*/ + +/* +* +* Changelog +* $Date: 2010-12-12 (Wed, 12 Dec 2010) $ +* $version: 1.0.0 +* $version: 1.0.1 - removed multibyte comments +* +* $Date: 2011-21-02 (Mon, 21 Feb 2011) $ +* $version: 1.1.0 - added allowPageScroll property to allow swiping and scrolling of page +* - changed handler signatures so one handler can be used for multiple events +* $Date: 2011-23-02 (Wed, 23 Feb 2011) $ +* $version: 1.2.0 - added click handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler. +* - If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object. +* $version: 1.2.1 - removed console log! +* +* $version: 1.2.2 - Fixed bug where scope was not preserved in callback methods. +* +* $Date: 2011-28-04 (Thurs, 28 April 2011) $ +* $version: 1.2.4 - Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring. +* +* $Date: 2011-27-09 (Tues, 27 September 2011) $ +* $version: 1.2.5 - Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy) +* +* $Date: 2012-14-05 (Mon, 14 May 2012) $ +* $version: 1.2.6 - Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected +* +* $Date: 2012-05-06 (Tues, 05 June 2012) $ +* $version: 1.2.7 - Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled. +* +* $Date: 2012-05-06 (Tues, 05 June 2012) $ +* $version: 1.2.8 - Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event. +* +* $Date: 2012-06-06 (Wed, 06 June 2012) $ +* $version: 1.3.0 - Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added 'enable', 'disable', and 'destroy' methods +* +* $Date: 2012-05-06 (Fri, 05 June 2012) $ +* $version: 1.3.1 - Bug fixes - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly. +* +* $Date: 2012-29-07 (Sun, 29 July 2012) $ +* $version: 1.3.2 - Added fallbackToMouseEvents option to NOT capture mouse events on non touch devices. +* - Added "all" fingers value to the fingers property, so any combination of fingers triggers the swipe, allowing event handlers to check the finger count +* +* $Date: 2012-09-08 (Thurs, 9 Aug 2012) $ +* $version: 1.3.3 - Code tidy prep for minefied version +* +* $Date: 2012-04-10 (wed, 4 Oct 2012) $ +* $version: 1.4.0 - Added pinch support, pinchIn and pinchOut +* +* $Date: 2012-11-10 (Thurs, 11 Oct 2012) $ +* $version: 1.5.0 - Added excludedElements, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements. +* +* $Date: 2012-22-10 (Mon, 22 Oct 2012) $ +* $version: 1.5.1 - Fixed bug with jQuery 1.8 and trailing comma in excludedElements +* - Fixed bug with IE and eventPreventDefault() +* $Date: 2013-01-12 (Fri, 12 Jan 2013) $ +* $version: 1.6.0 - Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture. +* - made the demo site all static local HTML pages so they can be run locally by a developer +* - added jsDoc comments and added documentation for the plugin +* - code tidy +* - added triggerOnTouchLeave property that will end the event when the user swipes off the element. +* $Date: 2013-03-23 (Sat, 23 Mar 2013) $ +* $version: 1.6.1 - Added support for ie8 touch events +* $version: 1.6.2 - Added support for events binding with on / off / bind in jQ for all callback names. +* - Deprecated the 'click' handler in favour of tap. +* - added cancelThreshold property +* - added option method to update init options at runtime +* $version 1.6.3 - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property +* +* $Date: 2013-04-04 (Thurs, 04 April 2013) $ +* $version 1.6.4 - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back. +* +* $Date: 2013-08-24 (Sat, 24 Aug 2013) $ +* $version 1.6.5 - Merged a few pull requests fixing various bugs, added AMD support. +* +* $Date: 2014-06-04 (Wed, 04 June 2014) $ +* $version 1.6.6 - Merge of pull requests. +* - IE10 touch support +* - Only prevent default event handling on valid swipe +* - Separate license/changelog comment +* - Detect if the swipe is valid at the end of the touch event. +* - Pass fingerdata to event handlers. +* - Add 'hold' gesture +* - Be more tolerant about the tap distance +* - Typos and minor fixes +* +* $Date: 2015-22-01 (Thurs, 22 Jan 2015) $ +* $version 1.6.7 - Added patch from https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/206 to fix memory leak +* +* $Date: 2015-2-2 (Mon, 2 Feb 2015) $ +* $version 1.6.8 - Added preventDefaultEvents option to proxy events regardless. +* - Fixed issue with swipe and pinch not triggering at the same time +* +* $Date: 2015-9-6 (Tues, 9 June 2015) $ +* $version 1.6.9 - Added PR from jdalton/hybrid to fix pointer events +* - Added scrolling demo +* - Added version property to plugin +* +* $Date: 2015-1-10 (Wed, 1 October 2015) $ +* $version 1.6.10 - Added PR from beatspace to fix tap events +* $version 1.6.11 - Added PRs from indri-indri ( Doc tidyup), kkirsche ( Bower tidy up ), UziTech (preventDefaultEvents fixes ) +* - Allowed setting multiple options via .swipe("options", options_hash) and more simply .swipe(options_hash) or exisitng instances +* $version 1.6.12 - Fixed bug with multi finger releases above 2 not triggering events +*/ + +/** + * See (http://jquery.com/). + * @name $ + * @class + * See the jQuery Library (http://jquery.com/) for full details. This just + * documents the function and classes that are added to jQuery by this plug-in. + */ + +/** + * See (http://jquery.com/) + * @name fn + * @class + * See the jQuery Library (http://jquery.com/) for full details. This just + * documents the function and classes that are added to jQuery by this plug-in. + * @memberOf $ + */ + + + +(function (factory) { + if (typeof define === 'function' && define.amd && define.amd.jQuery) { + // AMD. Register as anonymous module. + define(['jquery'], factory); + } else { + // Browser globals. + factory(jQuery); + } +}(function ($) { + "use strict"; + + //Constants + var VERSION = "1.6.12", + LEFT = "left", + RIGHT = "right", + UP = "up", + DOWN = "down", + IN = "in", + OUT = "out", + + NONE = "none", + AUTO = "auto", + + SWIPE = "swipe", + PINCH = "pinch", + TAP = "tap", + DOUBLE_TAP = "doubletap", + LONG_TAP = "longtap", + HOLD = "hold", + + HORIZONTAL = "horizontal", + VERTICAL = "vertical", + + ALL_FINGERS = "all", + + DOUBLE_TAP_THRESHOLD = 10, + + PHASE_START = "start", + PHASE_MOVE = "move", + PHASE_END = "end", + PHASE_CANCEL = "cancel", + + SUPPORTS_TOUCH = 'ontouchstart' in window, + + SUPPORTS_POINTER_IE10 = window.navigator.msPointerEnabled && !window.navigator.pointerEnabled, + + SUPPORTS_POINTER = window.navigator.pointerEnabled || window.navigator.msPointerEnabled, + + PLUGIN_NS = 'TouchSwipe'; + + + + /** + * The default configuration, and available options to configure touch swipe with. + * You can set the default values by updating any of the properties prior to instantiation. + * @name $.fn.swipe.defaults + * @namespace + * @property {int} [fingers=1] The number of fingers to detect in a swipe. Any swipes that do not meet this requirement will NOT trigger swipe handlers. + * @property {int} [threshold=75] The number of pixels that the user must move their finger by before it is considered a swipe. + * @property {int} [cancelThreshold=null] The number of pixels that the user must move their finger back from the original swipe direction to cancel the gesture. + * @property {int} [pinchThreshold=20] The number of pixels that the user must pinch their finger by before it is considered a pinch. + * @property {int} [maxTimeThreshold=null] Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe. + * @property {int} [fingerReleaseThreshold=250] Time in milliseconds between releasing multiple fingers. If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release. + * @property {int} [longTapThreshold=500] Time in milliseconds between tap and release for a long tap + * @property {int} [doubleTapThreshold=200] Time in milliseconds between 2 taps to count as a double tap + * @property {function} [swipe=null] A handler to catch all swipes. See {@link $.fn.swipe#event:swipe} + * @property {function} [swipeLeft=null] A handler that is triggered for "left" swipes. See {@link $.fn.swipe#event:swipeLeft} + * @property {function} [swipeRight=null] A handler that is triggered for "right" swipes. See {@link $.fn.swipe#event:swipeRight} + * @property {function} [swipeUp=null] A handler that is triggered for "up" swipes. See {@link $.fn.swipe#event:swipeUp} + * @property {function} [swipeDown=null] A handler that is triggered for "down" swipes. See {@link $.fn.swipe#event:swipeDown} + * @property {function} [swipeStatus=null] A handler triggered for every phase of the swipe. See {@link $.fn.swipe#event:swipeStatus} + * @property {function} [pinchIn=null] A handler triggered for pinch in events. See {@link $.fn.swipe#event:pinchIn} + * @property {function} [pinchOut=null] A handler triggered for pinch out events. See {@link $.fn.swipe#event:pinchOut} + * @property {function} [pinchStatus=null] A handler triggered for every phase of a pinch. See {@link $.fn.swipe#event:pinchStatus} + * @property {function} [tap=null] A handler triggered when a user just taps on the item, rather than swipes it. If they do not move, tap is triggered, if they do move, it is not. + * @property {function} [doubleTap=null] A handler triggered when a user double taps on the item. The delay between taps can be set with the doubleTapThreshold property. See {@link $.fn.swipe.defaults#doubleTapThreshold} + * @property {function} [longTap=null] A handler triggered when a user long taps on the item. The delay between start and end can be set with the longTapThreshold property. See {@link $.fn.swipe.defaults#longTapThreshold} + * @property (function) [hold=null] A handler triggered when a user reaches longTapThreshold on the item. See {@link $.fn.swipe.defaults#longTapThreshold} + * @property {boolean} [triggerOnTouchEnd=true] If true, the swipe events are triggered when the touch end event is received (user releases finger). If false, it will be triggered on reaching the threshold, and then cancel the touch event automatically. + * @property {boolean} [triggerOnTouchLeave=false] If true, then when the user leaves the swipe object, the swipe will end and trigger appropriate handlers. + * @property {string|undefined} [allowPageScroll='auto'] How the browser handles page scrolls when the user is swiping on a touchSwipe object. See {@link $.fn.swipe.pageScroll}.

    + "auto" : all undefined swipes will cause the page to scroll in that direction.
    + "none" : the page will not scroll when user swipes.
    + "horizontal" : will force page to scroll on horizontal swipes.
    + "vertical" : will force page to scroll on vertical swipes.
    + * @property {boolean} [fallbackToMouseEvents=true] If true mouse events are used when run on a non touch device, false will stop swipes being triggered by mouse events on non tocuh devices. + * @property {string} [excludedElements="button, input, select, textarea, a, .noSwipe"] A jquery selector that specifies child elements that do NOT trigger swipes. By default this excludes all form, input, select, button, anchor and .noSwipe elements. + * @property {boolean} [preventDefaultEvents=true] by default default events are cancelled, so the page doesn't move. You can dissable this so both native events fire as well as your handlers. + + */ + var defaults = { + 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, //Deprecated since 1.6.2 + 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 + }; + + + + /** + * Applies TouchSwipe behaviour to one or more jQuery objects. + * The TouchSwipe plugin can be instantiated via this method, or methods within + * TouchSwipe can be executed via this method as per jQuery plugin architecture. + * An existing plugin can have its options changed simply by re calling .swipe(options) + * @see TouchSwipe + * @class + * @param {Mixed} method If the current DOMNode is a TouchSwipe object, and method is a TouchSwipe method, then + * the method is executed, and any following arguments are passed to the TouchSwipe method. + * If method is an object, then the TouchSwipe class is instantiated on the current DOMNode, passing the + * configuration properties defined in the object. See TouchSwipe + * + */ + $.fn.swipe = function (method) { + var $this = $(this), + plugin = $this.data(PLUGIN_NS); + + //Check if we are already instantiated and trying to execute a method + if (plugin && typeof method === 'string') { + if (plugin[method]) { + return plugin[method].apply(this, Array.prototype.slice.call(arguments, 1)); + } else { + $.error('Method ' + method + ' does not exist on jQuery.swipe'); + } + } + + //Else update existing plugin with new options hash + else if (plugin && typeof method === 'object') { + plugin['option'].apply(this, arguments); + } + + //Else not instantiated and trying to pass init object (or nothing) + else if (!plugin && (typeof method === 'object' || !method)) { + return init.apply(this, arguments); + } + + return $this; + }; + + /** + * The version of the plugin + * @readonly + */ + $.fn.swipe.version = VERSION; + + + + //Expose our defaults so a user could override the plugin defaults + $.fn.swipe.defaults = defaults; + + /** + * The phases that a touch event goes through. The phase is passed to the event handlers. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @property {string} PHASE_START Constant indicating the start phase of the touch event. Value is "start". + * @property {string} PHASE_MOVE Constant indicating the move phase of the touch event. Value is "move". + * @property {string} PHASE_END Constant indicating the end phase of the touch event. Value is "end". + * @property {string} PHASE_CANCEL Constant indicating the cancel phase of the touch event. Value is "cancel". + */ + $.fn.swipe.phases = { + PHASE_START: PHASE_START, + PHASE_MOVE: PHASE_MOVE, + PHASE_END: PHASE_END, + PHASE_CANCEL: PHASE_CANCEL + }; + + /** + * The direction constants that are passed to the event handlers. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @property {string} LEFT Constant indicating the left direction. Value is "left". + * @property {string} RIGHT Constant indicating the right direction. Value is "right". + * @property {string} UP Constant indicating the up direction. Value is "up". + * @property {string} DOWN Constant indicating the down direction. Value is "cancel". + * @property {string} IN Constant indicating the in direction. Value is "in". + * @property {string} OUT Constant indicating the out direction. Value is "out". + */ + $.fn.swipe.directions = { + LEFT: LEFT, + RIGHT: RIGHT, + UP: UP, + DOWN: DOWN, + IN : IN, + OUT: OUT + }; + + /** + * The page scroll constants that can be used to set the value of allowPageScroll option + * These properties are read only + * @namespace + * @readonly + * @see $.fn.swipe.defaults#allowPageScroll + * @property {string} NONE Constant indicating no page scrolling is allowed. Value is "none". + * @property {string} HORIZONTAL Constant indicating horizontal page scrolling is allowed. Value is "horizontal". + * @property {string} VERTICAL Constant indicating vertical page scrolling is allowed. Value is "vertical". + * @property {string} AUTO Constant indicating either horizontal or vertical will be allowed, depending on the swipe handlers registered. Value is "auto". + */ + $.fn.swipe.pageScroll = { + NONE: NONE, + HORIZONTAL: HORIZONTAL, + VERTICAL: VERTICAL, + AUTO: AUTO + }; + + /** + * Constants representing the number of fingers used in a swipe. These are used to set both the value of fingers in the + * options object, as well as the value of the fingers event property. + * These properties are read only, attempting to change them will not alter the values passed to the event handlers. + * @namespace + * @readonly + * @see $.fn.swipe.defaults#fingers + * @property {string} ONE Constant indicating 1 finger is to be detected / was detected. Value is 1. + * @property {string} TWO Constant indicating 2 fingers are to be detected / were detected. Value is 2. + * @property {string} THREE Constant indicating 3 finger are to be detected / were detected. Value is 3. + * @property {string} FOUR Constant indicating 4 finger are to be detected / were detected. Not all devices support this. Value is 4. + * @property {string} FIVE Constant indicating 5 finger are to be detected / were detected. Not all devices support this. Value is 5. + * @property {string} ALL Constant indicating any combination of finger are to be detected. Value is "all". + */ + $.fn.swipe.fingers = { + ONE: 1, + TWO: 2, + THREE: 3, + FOUR: 4, + FIVE: 5, + ALL: ALL_FINGERS + }; + + /** + * Initialise the plugin for each DOM element matched + * This creates a new instance of the main TouchSwipe class for each DOM element, and then + * saves a reference to that instance in the elements data property. + * @internal + */ + function init(options) { + //Prep and extend the options + if (options && (options.allowPageScroll === undefined && (options.swipe !== undefined || options.swipeStatus !== undefined))) { + options.allowPageScroll = NONE; + } + + //Check for deprecated options + //Ensure that any old click handlers are assigned to the new tap, unless we have a tap + if(options.click!==undefined && options.tap===undefined) { + options.tap = options.click; + } + + if (!options) { + options = {}; + } + + //pass empty object so we dont modify the defaults + options = $.extend({}, $.fn.swipe.defaults, options); + + //For each element instantiate the plugin + return this.each(function () { + var $this = $(this); + + //Check we havent already initialised the plugin + var plugin = $this.data(PLUGIN_NS); + + if (!plugin) { + plugin = new TouchSwipe(this, options); + $this.data(PLUGIN_NS, plugin); + } + }); + } + + /** + * Main TouchSwipe Plugin Class. + * Do not use this to construct your TouchSwipe object, use the jQuery plugin method $.fn.swipe(); {@link $.fn.swipe} + * @private + * @name TouchSwipe + * @param {DOMNode} element The HTML DOM object to apply to plugin to + * @param {Object} options The options to configure the plugin with. @link {$.fn.swipe.defaults} + * @see $.fh.swipe.defaults + * @see $.fh.swipe + * @class + */ + function TouchSwipe(element, options) { + + //take a local/instacne level copy of the options - should make it this.options really... + var options = $.extend({}, options); + + var useTouchEvents = (SUPPORTS_TOUCH || SUPPORTS_POINTER || !options.fallbackToMouseEvents), + START_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerDown' : 'pointerdown') : 'touchstart') : 'mousedown', + MOVE_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerMove' : 'pointermove') : 'touchmove') : 'mousemove', + END_EV = useTouchEvents ? (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerUp' : 'pointerup') : 'touchend') : 'mouseup', + LEAVE_EV = useTouchEvents ? null : 'mouseleave', //we manually detect leave on touch devices, so null event here + CANCEL_EV = (SUPPORTS_POINTER ? (SUPPORTS_POINTER_IE10 ? 'MSPointerCancel' : 'pointercancel') : 'touchcancel'); + + + + //touch properties + var distance = 0, + direction = null, + duration = 0, + startTouchesDistance = 0, + endTouchesDistance = 0, + pinchZoom = 1, + pinchDistance = 0, + pinchDirection = 0, + maximumsMap=null; + + + + //jQuery wrapped element for this instance + var $element = $(element); + + //Current phase of th touch cycle + var phase = "start"; + + // the current number of fingers being used. + var fingerCount = 0; + + //track mouse points / delta + var fingerData = {}; + + //track times + var startTime = 0, + endTime = 0, + previousTouchEndTime=0, + fingerCountAtRelease=0, + doubleTapStartTime=0; + + //Timeouts + var singleTapTimeout=null, + holdTimeout=null; + + // Add gestures to all swipable areas if supported + try { + $element.bind(START_EV, touchStart); + $element.bind(CANCEL_EV, touchCancel); + } + catch (e) { + $.error('events not supported ' + START_EV + ',' + CANCEL_EV + ' on jQuery.swipe'); + } + + // + //Public methods + // + + /** + * re-enables the swipe plugin with the previous configuration + * @function + * @name $.fn.swipe#enable + * @return {DOMNode} The Dom element that was registered with TouchSwipe + * @example $("#element").swipe("enable"); + */ + this.enable = function () { + $element.bind(START_EV, touchStart); + $element.bind(CANCEL_EV, touchCancel); + return $element; + }; + + /** + * disables the swipe plugin + * @function + * @name $.fn.swipe#disable + * @return {DOMNode} The Dom element that is now registered with TouchSwipe + * @example $("#element").swipe("disable"); + */ + this.disable = function () { + removeListeners(); + return $element; + }; + + /** + * Destroy the swipe plugin completely. To use any swipe methods, you must re initialise the plugin. + * @function + * @name $.fn.swipe#destroy + * @example $("#element").swipe("destroy"); + */ + this.destroy = function () { + removeListeners(); + $element.data(PLUGIN_NS, null); + $element = null; + }; + + + /** + * Allows run time updating of the swipe configuration options. + * @function + * @name $.fn.swipe#option + * @param {String} property The option property to get or set, or a has of multiple options to set + * @param {Object} [value] The value to set the property to + * @return {Object} If only a property name is passed, then that property value is returned. If nothing is passed the current options hash is returned. + * @example $("#element").swipe("option", "threshold"); // return the threshold + * @example $("#element").swipe("option", "threshold", 100); // set the threshold after init + * @example $("#element").swipe("option", {threshold:100, fingers:3} ); // set multiple properties after init + * @example $("#element").swipe({threshold:100, fingers:3} ); // set multiple properties after init - the "option" method is optional! + * @example $("#element").swipe("option"); // Return the current options hash + * @see $.fn.swipe.defaults + * + */ + this.option = function (property, value) { + + if(typeof property === 'object') { + options = $.extend(options, property); + } else if(options[property]!==undefined) { + if(value===undefined) { + return options[property]; + } else { + options[property] = value; + } + } else if (!property) { + return options; + } else { + $.error('Option ' + property + ' does not exist on jQuery.swipe.options'); + } + + return null; + } + + + + // + // Private methods + // + + // + // EVENTS + // + /** + * Event handler for a touch start event. + * Stops the default click event from triggering and stores where we touched + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchStart(jqEvent) { + + //If we already in a touch event (a finger already in use) then ignore subsequent ones.. + if( getTouchInProgress() ) + return; + + //Check if this element matches any in the excluded elements selectors, or its parent is excluded, if so, DON'T swipe + if( $(jqEvent.target).closest( options.excludedElements, $element ).length>0 ) + return; + + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + var ret, + touches = event.touches, + evt = touches ? touches[0] : event; + + phase = PHASE_START; + + //If we support touches, get the finger count + if (touches) { + // get the total number of fingers touching the screen + fingerCount = touches.length; + } + //Else this is the desktop, so stop the browser from dragging content + else if(options.preventDefaultEvents !== false) { + jqEvent.preventDefault(); //call this on jq event so we are cross browser + } + + //clear vars.. + distance = 0; + direction = null; + pinchDirection=null; + duration = 0; + startTouchesDistance=0; + endTouchesDistance=0; + pinchZoom = 1; + pinchDistance = 0; + maximumsMap=createMaximumsData(); + cancelMultiFingerRelease(); + + //Create the default finger data + createFingerData( 0, evt ); + + // check the number of fingers is what we are looking for, or we are capturing pinches + if (!touches || (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || hasPinches()) { + // get the coordinates of the touch + startTime = getTimeStamp(); + + if(fingerCount==2) { + //Keep track of the initial pinch distance, so we can calculate the diff later + //Store second finger data as start + createFingerData( 1, touches[1] ); + startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start); + } + + if (options.swipeStatus || options.pinchStatus) { + ret = triggerHandler(event, phase); + } + } + else { + //A touch with more or less than the fingers we are looking for, so cancel + ret = false; + } + + //If we have a return value from the users handler, then return and cancel + if (ret === false) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + return ret; + } + else { + if (options.hold) { + holdTimeout = setTimeout($.proxy(function() { + //Trigger the event + $element.trigger('hold', [event.target]); + //Fire the callback + if(options.hold) { + ret = options.hold.call($element, event, event.target); + } + }, this), options.longTapThreshold ); + } + + setTouchInProgress(true); + } + + return null; + }; + + + + /** + * Event handler for a touch move event. + * If we change fingers during move, then cancel the event + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchMove(jqEvent) { + + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + //If we are ending, cancelling, or within the threshold of 2 fingers being released, don't track anything.. + if (phase === PHASE_END || phase === PHASE_CANCEL || inMultiFingerRelease()) + return; + + var ret, + touches = event.touches, + evt = touches ? touches[0] : event; + + + //Update the finger data + var currentFinger = updateFingerData(evt); + endTime = getTimeStamp(); + + if (touches) { + fingerCount = touches.length; + } + + if (options.hold) + clearTimeout(holdTimeout); + + phase = PHASE_MOVE; + + //If we have 2 fingers get Touches distance as well + if(fingerCount==2) { + + //Keep track of the initial pinch distance, so we can calculate the diff later + //We do this here as well as the start event, in case they start with 1 finger, and the press 2 fingers + if(startTouchesDistance==0) { + //Create second finger if this is the first time... + createFingerData( 1, touches[1] ); + + startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start); + } else { + //Else just update the second finger + updateFingerData(touches[1]); + + endTouchesDistance = calculateTouchesDistance(fingerData[0].end, fingerData[1].end); + pinchDirection = calculatePinchDirection(fingerData[0].end, fingerData[1].end); + } + + + pinchZoom = calculatePinchZoom(startTouchesDistance, endTouchesDistance); + pinchDistance = Math.abs(startTouchesDistance - endTouchesDistance); + } + + + + + if ( (fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !touches || hasPinches() ) { + + direction = calculateDirection(currentFinger.start, currentFinger.end); + + //Check if we need to prevent default event (page scroll / pinch zoom) or not + validateDefaultEvent(jqEvent, direction); + + //Distance and duration are all off the main finger + distance = calculateDistance(currentFinger.start, currentFinger.end); + duration = calculateDuration(); + + //Cache the maximum distance we made in this direction + setMaxDistance(direction, distance); + + + if (options.swipeStatus || options.pinchStatus) { + ret = triggerHandler(event, phase); + } + + + //If we trigger end events when threshold are met, or trigger events when touch leaves element + if(!options.triggerOnTouchEnd || options.triggerOnTouchLeave) { + + var inBounds = true; + + //If checking if we leave the element, run the bounds check (we can use touchleave as its not supported on webkit) + if(options.triggerOnTouchLeave) { + var bounds = getbounds( this ); + inBounds = isInBounds( currentFinger.end, bounds ); + } + + //Trigger end handles as we swipe if thresholds met or if we have left the element if the user has asked to check these.. + if(!options.triggerOnTouchEnd && inBounds) { + phase = getNextPhase( PHASE_MOVE ); + } + //We end if out of bounds here, so set current phase to END, and check if its modified + else if(options.triggerOnTouchLeave && !inBounds ) { + phase = getNextPhase( PHASE_END ); + } + + if(phase==PHASE_CANCEL || phase==PHASE_END) { + triggerHandler(event, phase); + } + } + } + else { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + + if (ret === false) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + } + + + + + /** + * Event handler for a touch end event. + * Calculate the direction and trigger events + * @inner + * @param {object} jqEvent The normalised jQuery event object. + */ + function touchEnd(jqEvent) { + //As we use Jquery bind for events, we need to target the original event object + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent, + touches = event.touches; + + //If we are still in a touch with the device wait a fraction and see if the other finger comes up + //if it does within the threshold, then we treat it as a multi release, not a single release and end the touch / swipe + if (touches) { + if(touches.length && !inMultiFingerRelease()) { + startMultiFingerRelease(); + return true; + } else if (touches.length && inMultiFingerRelease()) { + return true; + } + } + + //If a previous finger has been released, check how long ago, if within the threshold, then assume it was a multifinger release. + //This is used to allow 2 fingers to release fractionally after each other, whilst maintainig the event as containg 2 fingers, not 1 + if(inMultiFingerRelease()) { + fingerCount=fingerCountAtRelease; + } + + //Set end of swipe + endTime = getTimeStamp(); + + //Get duration incase move was never fired + duration = calculateDuration(); + + //If we trigger handlers at end of swipe OR, we trigger during, but they didnt trigger and we are still in the move phase + if(didSwipeBackToCancel() || !validateSwipeDistance()) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } else if (options.triggerOnTouchEnd || (options.triggerOnTouchEnd == false && phase === PHASE_MOVE)) { + //call this on jq event so we are cross browser + if(options.preventDefaultEvents !== false) { + jqEvent.preventDefault(); + } + phase = PHASE_END; + triggerHandler(event, phase); + } + //Special cases - A tap should always fire on touch end regardless, + //So here we manually trigger the tap end handler by itself + //We dont run trigger handler as it will re-trigger events that may have fired already + else if (!options.triggerOnTouchEnd && hasTap()) { + //Trigger the pinch events... + phase = PHASE_END; + triggerHandlerForGesture(event, phase, TAP); + } + else if (phase === PHASE_MOVE) { + phase = PHASE_CANCEL; + triggerHandler(event, phase); + } + + setTouchInProgress(false); + + return null; + } + + + + /** + * Event handler for a touch cancel event. + * Clears current vars + * @inner + */ + function touchCancel() { + // reset the variables back to default values + fingerCount = 0; + endTime = 0; + startTime = 0; + startTouchesDistance=0; + endTouchesDistance=0; + pinchZoom=1; + + //If we were in progress of tracking a possible multi touch end, then re set it. + cancelMultiFingerRelease(); + + setTouchInProgress(false); + } + + + /** + * Event handler for a touch leave event. + * This is only triggered on desktops, in touch we work this out manually + * as the touchleave event is not supported in webkit + * @inner + */ + function touchLeave(jqEvent) { + //If these events are being programmatically triggered, we don't have an original event object, so use the Jq one. + var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent; + + //If we have the trigger on leave property set.... + if(options.triggerOnTouchLeave) { + phase = getNextPhase( PHASE_END ); + triggerHandler(event, phase); + } + } + + /** + * Removes all listeners that were associated with the plugin + * @inner + */ + function removeListeners() { + $element.unbind(START_EV, touchStart); + $element.unbind(CANCEL_EV, touchCancel); + $element.unbind(MOVE_EV, touchMove); + $element.unbind(END_EV, touchEnd); + + //we only have leave events on desktop, we manually calculate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.unbind(LEAVE_EV, touchLeave); + } + + setTouchInProgress(false); + } + + + /** + * Checks if the time and distance thresholds have been met, and if so then the appropriate handlers are fired. + */ + function getNextPhase(currentPhase) { + + var nextPhase = currentPhase; + + // Ensure we have valid swipe (under time and over distance and check if we are out of bound...) + var validTime = validateSwipeTime(); + var validDistance = validateSwipeDistance(); + var didCancel = didSwipeBackToCancel(); + + //If we have exceeded our time, then cancel + if(!validTime || didCancel) { + nextPhase = PHASE_CANCEL; + } + //Else if we are moving, and have reached distance then end + else if (validDistance && currentPhase == PHASE_MOVE && (!options.triggerOnTouchEnd || options.triggerOnTouchLeave) ) { + nextPhase = PHASE_END; + } + //Else if we have ended by leaving and didn't reach distance, then cancel + else if (!validDistance && currentPhase==PHASE_END && options.triggerOnTouchLeave) { + nextPhase = PHASE_CANCEL; + } + + return nextPhase; + } + + + /** + * Trigger the relevant event handler + * The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down" + * @param {object} event the original event object + * @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases} + * @inner + */ + function triggerHandler(event, phase) { + + var ret, + touches = event.touches; + + //Swipes and pinches are not mutually exclusive - can happend at same time, so need to trigger 2 events potentially + if( (didSwipe() && hasSwipes()) || (didPinch() && hasPinches()) ) { + // SWIPE GESTURES + if(didSwipe() && hasSwipes()) { //hasSwipes as status needs to fire even if swipe is invalid + //Trigger the swipe events... + ret = triggerHandlerForGesture(event, phase, SWIPE); + } + + // PINCH GESTURES (if the above didn't cancel) + if((didPinch() && hasPinches()) && ret!==false) { + //Trigger the pinch events... + ret = triggerHandlerForGesture(event, phase, PINCH); + } + } + else { + + // CLICK / TAP (if the above didn't cancel) + if(didDoubleTap() && ret!==false) { + //Trigger the tap events... + ret = triggerHandlerForGesture(event, phase, DOUBLE_TAP); + } + + // CLICK / TAP (if the above didn't cancel) + else if(didLongTap() && ret!==false) { + //Trigger the tap events... + ret = triggerHandlerForGesture(event, phase, LONG_TAP); + } + + // CLICK / TAP (if the above didn't cancel) + else if(didTap() && ret!==false) { + //Trigger the tap event.. + ret = triggerHandlerForGesture(event, phase, TAP); + } + } + + // If we are cancelling the gesture, then manually trigger the reset handler + if (phase === PHASE_CANCEL) { + if(hasSwipes() ) { + ret = triggerHandlerForGesture(event, phase, SWIPE); + } + + if(hasPinches()) { + ret = triggerHandlerForGesture(event, phase, PINCH); + } + touchCancel(event); + } + + // If we are ending the gesture, then manually trigger the reset handler IF all fingers are off + if(phase === PHASE_END) { + //If we support touch, then check that all fingers are off before we cancel + if (touches) { + if(!touches.length) { + touchCancel(event); + } + } + else { + touchCancel(event); + } + } + + return ret; + } + + + + /** + * Trigger the relevant event handler + * The handlers are passed the original event, the element that was swiped, and in the case of the catch all handler, the direction that was swiped, "left", "right", "up", or "down" + * @param {object} event the original event object + * @param {string} phase the phase of the swipe (start, end cancel etc) {@link $.fn.swipe.phases} + * @param {string} gesture the gesture to trigger a handler for : PINCH or SWIPE {@link $.fn.swipe.gestures} + * @return Boolean False, to indicate that the event should stop propagation, or void. + * @inner + */ + function triggerHandlerForGesture(event, phase, gesture) { + + var ret; + + //SWIPES.... + if(gesture==SWIPE) { + //Trigger status every time.. + + //Trigger the event... + $element.trigger('swipeStatus', [phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeStatus) { + ret = options.swipeStatus.call($element, event, phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + + + + if (phase == PHASE_END && validateSwipe()) { + //Fire the catch all event + $element.trigger('swipe', [direction, distance, duration, fingerCount, fingerData]); + + //Fire catch all callback + if (options.swipe) { + ret = options.swipe.call($element, event, direction, distance, duration, fingerCount, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + //trigger direction specific event handlers + switch (direction) { + case LEFT: + //Trigger the event + $element.trigger('swipeLeft', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeLeft) { + ret = options.swipeLeft.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case RIGHT: + //Trigger the event + $element.trigger('swipeRight', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeRight) { + ret = options.swipeRight.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case UP: + //Trigger the event + $element.trigger('swipeUp', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeUp) { + ret = options.swipeUp.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + + case DOWN: + //Trigger the event + $element.trigger('swipeDown', [direction, distance, duration, fingerCount, fingerData]); + + //Fire the callback + if (options.swipeDown) { + ret = options.swipeDown.call($element, event, direction, distance, duration, fingerCount, fingerData); + } + break; + } + } + } + + + //PINCHES.... + if(gesture==PINCH) { + //Trigger the event + $element.trigger('pinchStatus', [phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchStatus) { + ret = options.pinchStatus.call($element, event, phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + //If the status cancels, then dont run the subsequent event handlers.. + if(ret===false) return false; + } + + if(phase==PHASE_END && validatePinch()) { + + switch (pinchDirection) { + case IN: + //Trigger the event + $element.trigger('pinchIn', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchIn) { + ret = options.pinchIn.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + } + break; + + case OUT: + //Trigger the event + $element.trigger('pinchOut', [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]); + + //Fire the callback + if (options.pinchOut) { + ret = options.pinchOut.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData); + } + break; + } + } + } + + + + + + if(gesture==TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + + + //Cancel any existing double tap + clearTimeout(singleTapTimeout); + //Cancel hold timeout + clearTimeout(holdTimeout); + + //If we are also looking for doubelTaps, wait incase this is one... + if(hasDoubleTap() && !inDoubleTap()) { + //Cache the time of this tap + doubleTapStartTime = getTimeStamp(); + + //Now wait for the double tap timeout, and trigger this single tap + //if its not cancelled by a double tap + singleTapTimeout = setTimeout($.proxy(function() { + doubleTapStartTime=null; + //Trigger the event + $element.trigger('tap', [event.target]); + + + //Fire the callback + if(options.tap) { + ret = options.tap.call($element, event, event.target); + } + }, this), options.doubleTapThreshold ); + + } else { + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('tap', [event.target]); + + + //Fire the callback + if(options.tap) { + ret = options.tap.call($element, event, event.target); + } + } + } + } + + else if (gesture==DOUBLE_TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + //Cancel any pending singletap + clearTimeout(singleTapTimeout); + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('doubletap', [event.target]); + + //Fire the callback + if(options.doubleTap) { + ret = options.doubleTap.call($element, event, event.target); + } + } + } + + else if (gesture==LONG_TAP) { + if(phase === PHASE_CANCEL || phase === PHASE_END) { + //Cancel any pending singletap (shouldnt be one) + clearTimeout(singleTapTimeout); + doubleTapStartTime=null; + + //Trigger the event + $element.trigger('longtap', [event.target]); + + //Fire the callback + if(options.longTap) { + ret = options.longTap.call($element, event, event.target); + } + } + } + + return ret; + } + + + + + // + // GESTURE VALIDATION + // + + /** + * Checks the user has swipe far enough + * @return Boolean if threshold has been set, return true if the threshold was met, else false. + * If no threshold was set, then we return true. + * @inner + */ + function validateSwipeDistance() { + var valid = true; + //If we made it past the min swipe distance.. + if (options.threshold !== null) { + valid = distance >= options.threshold; + } + + return valid; + } + + /** + * Checks the user has swiped back to cancel. + * @return Boolean if cancelThreshold has been set, return true if the cancelThreshold was met, else false. + * If no cancelThreshold was set, then we return true. + * @inner + */ + function didSwipeBackToCancel() { + var cancelled = false; + if(options.cancelThreshold !== null && direction !==null) { + cancelled = (getMaxDistance( direction ) - distance) >= options.cancelThreshold; + } + + return cancelled; + } + + /** + * Checks the user has pinched far enough + * @return Boolean if pinchThreshold has been set, return true if the threshold was met, else false. + * If no threshold was set, then we return true. + * @inner + */ + function validatePinchDistance() { + if (options.pinchThreshold !== null) { + return pinchDistance >= options.pinchThreshold; + } + return true; + } + + /** + * Checks that the time taken to swipe meets the minimum / maximum requirements + * @return Boolean + * @inner + */ + function validateSwipeTime() { + var result; + //If no time set, then return true + + if (options.maxTimeThreshold) { + if (duration >= options.maxTimeThreshold) { + result = false; + } else { + result = true; + } + } + else { + result = true; + } + + return result; + } + + + + /** + * Checks direction of the swipe and the value allowPageScroll to see if we should allow or prevent the default behaviour from occurring. + * This will essentially allow page scrolling or not when the user is swiping on a touchSwipe object. + * @param {object} jqEvent The normalised jQuery representation of the event object. + * @param {string} direction The direction of the event. See {@link $.fn.swipe.directions} + * @see $.fn.swipe.directions + * @inner + */ + function validateDefaultEvent(jqEvent, direction) { + + //If we have no pinches, then do this + //If we have a pinch, and we we have 2 fingers or more down, then dont allow page scroll. + + //If the option is set, allways allow the event to bubble up (let user handle wiredness) + if( options.preventDefaultEvents === false) { + return; + } + + if (options.allowPageScroll === NONE) { + jqEvent.preventDefault(); + } else { + var auto = options.allowPageScroll === AUTO; + + switch (direction) { + case LEFT: + if ((options.swipeLeft && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) { + jqEvent.preventDefault(); + } + break; + + case RIGHT: + if ((options.swipeRight && auto) || (!auto && options.allowPageScroll != HORIZONTAL)) { + jqEvent.preventDefault(); + } + break; + + case UP: + if ((options.swipeUp && auto) || (!auto && options.allowPageScroll != VERTICAL)) { + jqEvent.preventDefault(); + } + break; + + case DOWN: + if ((options.swipeDown && auto) || (!auto && options.allowPageScroll != VERTICAL)) { + jqEvent.preventDefault(); + } + break; + } + } + + } + + + // PINCHES + /** + * Returns true of the current pinch meets the thresholds + * @return Boolean + * @inner + */ + function validatePinch() { + var hasCorrectFingerCount = validateFingers(); + var hasEndPoint = validateEndPoint(); + var hasCorrectDistance = validatePinchDistance(); + return hasCorrectFingerCount && hasEndPoint && hasCorrectDistance; + + } + + /** + * Returns true if any Pinch events have been registered + * @return Boolean + * @inner + */ + function hasPinches() { + //Enure we dont return 0 or null for false values + return !!(options.pinchStatus || options.pinchIn || options.pinchOut); + } + + /** + * Returns true if we are detecting pinches, and have one + * @return Boolean + * @inner + */ + function didPinch() { + //Enure we dont return 0 or null for false values + return !!(validatePinch() && hasPinches()); + } + + + + + // SWIPES + /** + * Returns true if the current swipe meets the thresholds + * @return Boolean + * @inner + */ + function validateSwipe() { + //Check validity of swipe + var hasValidTime = validateSwipeTime(); + var hasValidDistance = validateSwipeDistance(); + var hasCorrectFingerCount = validateFingers(); + var hasEndPoint = validateEndPoint(); + var didCancel = didSwipeBackToCancel(); + + // if the user swiped more than the minimum length, perform the appropriate action + // hasValidDistance is null when no distance is set + var valid = !didCancel && hasEndPoint && hasCorrectFingerCount && hasValidDistance && hasValidTime; + + return valid; + } + + /** + * Returns true if any Swipe events have been registered + * @return Boolean + * @inner + */ + function hasSwipes() { + //Enure we dont return 0 or null for false values + return !!(options.swipe || options.swipeStatus || options.swipeLeft || options.swipeRight || options.swipeUp || options.swipeDown); + } + + + /** + * Returns true if we are detecting swipes and have one + * @return Boolean + * @inner + */ + function didSwipe() { + //Enure we dont return 0 or null for false values + return !!(validateSwipe() && hasSwipes()); + } + + /** + * Returns true if we have matched the number of fingers we are looking for + * @return Boolean + * @inner + */ + function validateFingers() { + //The number of fingers we want were matched, or on desktop we ignore + return ((fingerCount === options.fingers || options.fingers === ALL_FINGERS) || !SUPPORTS_TOUCH); + } + + /** + * Returns true if we have an end point for the swipe + * @return Boolean + * @inner + */ + function validateEndPoint() { + //We have an end value for the finger + return fingerData[0].end.x !== 0; + } + + // TAP / CLICK + /** + * Returns true if a click / tap events have been registered + * @return Boolean + * @inner + */ + function hasTap() { + //Enure we dont return 0 or null for false values + return !!(options.tap) ; + } + + /** + * Returns true if a double tap events have been registered + * @return Boolean + * @inner + */ + function hasDoubleTap() { + //Enure we dont return 0 or null for false values + return !!(options.doubleTap) ; + } + + /** + * Returns true if any long tap events have been registered + * @return Boolean + * @inner + */ + function hasLongTap() { + //Enure we dont return 0 or null for false values + return !!(options.longTap) ; + } + + /** + * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past. + * @return Boolean + * @inner + */ + function validateDoubleTap() { + if(doubleTapStartTime==null){ + return false; + } + var now = getTimeStamp(); + return (hasDoubleTap() && ((now-doubleTapStartTime) <= options.doubleTapThreshold)); + } + + /** + * Returns true if we could be in the process of a double tap (one tap has occurred, we are listening for double taps, and the threshold hasn't past. + * @return Boolean + * @inner + */ + function inDoubleTap() { + return validateDoubleTap(); + } + + + /** + * Returns true if we have a valid tap + * @return Boolean + * @inner + */ + function validateTap() { + return ((fingerCount === 1 || !SUPPORTS_TOUCH) && (isNaN(distance) || distance < options.threshold)); + } + + /** + * Returns true if we have a valid long tap + * @return Boolean + * @inner + */ + function validateLongTap() { + //slight threshold on moving finger + return ((duration > options.longTapThreshold) && (distance < DOUBLE_TAP_THRESHOLD)); + } + + /** + * Returns true if we are detecting taps and have one + * @return Boolean + * @inner + */ + function didTap() { + //Enure we dont return 0 or null for false values + return !!(validateTap() && hasTap()); + } + + + /** + * Returns true if we are detecting double taps and have one + * @return Boolean + * @inner + */ + function didDoubleTap() { + //Enure we dont return 0 or null for false values + return !!(validateDoubleTap() && hasDoubleTap()); + } + + /** + * Returns true if we are detecting long taps and have one + * @return Boolean + * @inner + */ + function didLongTap() { + //Enure we dont return 0 or null for false values + return !!(validateLongTap() && hasLongTap()); + } + + + + + // MULTI FINGER TOUCH + /** + * Starts tracking the time between 2 finger releases, and keeps track of how many fingers we initially had up + * @inner + */ + function startMultiFingerRelease() { + previousTouchEndTime = getTimeStamp(); + fingerCountAtRelease = event.touches.length+1; + } + + /** + * Cancels the tracking of time between 2 finger releases, and resets counters + * @inner + */ + function cancelMultiFingerRelease() { + previousTouchEndTime = 0; + fingerCountAtRelease = 0; + } + + /** + * Checks if we are in the threshold between 2 fingers being released + * @return Boolean + * @inner + */ + function inMultiFingerRelease() { + + var withinThreshold = false; + + if(previousTouchEndTime) { + var diff = getTimeStamp() - previousTouchEndTime + if( diff<=options.fingerReleaseThreshold ) { + withinThreshold = true; + } + } + + return withinThreshold; + } + + + /** + * gets a data flag to indicate that a touch is in progress + * @return Boolean + * @inner + */ + function getTouchInProgress() { + //strict equality to ensure only true and false are returned + return !!($element.data(PLUGIN_NS+'_intouch') === true); + } + + /** + * Sets a data flag to indicate that a touch is in progress + * @param {boolean} val The value to set the property to + * @inner + */ + function setTouchInProgress(val) { + + //Add or remove event listeners depending on touch status + if(val===true) { + $element.bind(MOVE_EV, touchMove); + $element.bind(END_EV, touchEnd); + + //we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.bind(LEAVE_EV, touchLeave); + } + } else { + + $element.unbind(MOVE_EV, touchMove, false); + $element.unbind(END_EV, touchEnd, false); + + //we only have leave events on desktop, we manually calcuate leave on touch as its not supported in webkit + if(LEAVE_EV) { + $element.unbind(LEAVE_EV, touchLeave, false); + } + } + + + //strict equality to ensure only true and false can update the value + $element.data(PLUGIN_NS+'_intouch', val === true); + } + + + /** + * Creates the finger data for the touch/finger in the event object. + * @param {int} id The id to store the finger data under (usually the order the fingers were pressed) + * @param {object} evt The event object containing finger data + * @return finger data object + * @inner + */ + function createFingerData(id, evt) { + var f = { + start:{ x: 0, y: 0 }, + end:{ x: 0, y: 0 } + }; + f.start.x = f.end.x = evt.pageX||evt.clientX; + f.start.y = f.end.y = evt.pageY||evt.clientY; + fingerData[id] = f; + return f; + } + + /** + * Updates the finger data for a particular event object + * @param {object} evt The event object containing the touch/finger data to upadte + * @return a finger data object. + * @inner + */ + function updateFingerData(evt) { + var id = evt.identifier!==undefined ? evt.identifier : 0; + var f = getFingerData( id ); + + if (f === null) { + f = createFingerData(id, evt); + } + + f.end.x = evt.pageX||evt.clientX; + f.end.y = evt.pageY||evt.clientY; + + return f; + } + + /** + * Returns a finger data object by its event ID. + * Each touch event has an identifier property, which is used + * to track repeat touches + * @param {int} id The unique id of the finger in the sequence of touch events. + * @return a finger data object. + * @inner + */ + function getFingerData(id) { + return fingerData[id] || null; + } + + + /** + * Sets the maximum distance swiped in the given direction. + * If the new value is lower than the current value, the max value is not changed. + * @param {string} direction The direction of the swipe + * @param {int} distance The distance of the swipe + * @inner + */ + function setMaxDistance(direction, distance) { + distance = Math.max(distance, getMaxDistance(direction) ); + maximumsMap[direction].distance = distance; + } + + /** + * gets the maximum distance swiped in the given direction. + * @param {string} direction The direction of the swipe + * @return int The distance of the swipe + * @inner + */ + function getMaxDistance(direction) { + if (maximumsMap[direction]) return maximumsMap[direction].distance; + return undefined; + } + + /** + * Creats a map of directions to maximum swiped values. + * @return Object A dictionary of maximum values, indexed by direction. + * @inner + */ + function createMaximumsData() { + var maxData={}; + maxData[LEFT]=createMaximumVO(LEFT); + maxData[RIGHT]=createMaximumVO(RIGHT); + maxData[UP]=createMaximumVO(UP); + maxData[DOWN]=createMaximumVO(DOWN); + + return maxData; + } + + /** + * Creates a map maximum swiped values for a given swipe direction + * @param {string} The direction that these values will be associated with + * @return Object Maximum values + * @inner + */ + function createMaximumVO(dir) { + return { + direction:dir, + distance:0 + } + } + + + // + // MATHS / UTILS + // + + /** + * Calculate the duration of the swipe + * @return int + * @inner + */ + function calculateDuration() { + return endTime - startTime; + } + + /** + * Calculate the distance between 2 touches (pinch) + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return int; + * @inner + */ + function calculateTouchesDistance(startPoint, endPoint) { + var diffX = Math.abs(startPoint.x - endPoint.x); + var diffY = Math.abs(startPoint.y - endPoint.y); + + return Math.round(Math.sqrt(diffX*diffX+diffY*diffY)); + } + + /** + * Calculate the zoom factor between the start and end distances + * @param {int} startDistance Distance (between 2 fingers) the user started pinching at + * @param {int} endDistance Distance (between 2 fingers) the user ended pinching at + * @return float The zoom value from 0 to 1. + * @inner + */ + function calculatePinchZoom(startDistance, endDistance) { + var percent = (endDistance/startDistance) * 1; + return percent.toFixed(2); + } + + + /** + * Returns the pinch direction, either IN or OUT for the given points + * @return string Either {@link $.fn.swipe.directions.IN} or {@link $.fn.swipe.directions.OUT} + * @see $.fn.swipe.directions + * @inner + */ + function calculatePinchDirection() { + if(pinchZoom<1) { + return OUT; + } + else { + return IN; + } + } + + + /** + * Calculate the length / distance of the swipe + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return int + * @inner + */ + function calculateDistance(startPoint, endPoint) { + return Math.round(Math.sqrt(Math.pow(endPoint.x - startPoint.x, 2) + Math.pow(endPoint.y - startPoint.y, 2))); + } + + /** + * Calculate the angle of the swipe + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return int + * @inner + */ + function calculateAngle(startPoint, endPoint) { + var x = startPoint.x - endPoint.x; + var y = endPoint.y - startPoint.y; + var r = Math.atan2(y, x); //radians + var angle = Math.round(r * 180 / Math.PI); //degrees + + //ensure value is positive + if (angle < 0) { + angle = 360 - Math.abs(angle); + } + + return angle; + } + + /** + * Calculate the direction of the swipe + * This will also call calculateAngle to get the latest angle of swipe + * @param {point} startPoint A point object containing x and y co-ordinates + * @param {point} endPoint A point object containing x and y co-ordinates + * @return string Either {@link $.fn.swipe.directions.LEFT} / {@link $.fn.swipe.directions.RIGHT} / {@link $.fn.swipe.directions.DOWN} / {@link $.fn.swipe.directions.UP} + * @see $.fn.swipe.directions + * @inner + */ + function calculateDirection(startPoint, endPoint ) { + var angle = calculateAngle(startPoint, endPoint); + + if ((angle <= 45) && (angle >= 0)) { + return LEFT; + } else if ((angle <= 360) && (angle >= 315)) { + return LEFT; + } else if ((angle >= 135) && (angle <= 225)) { + return RIGHT; + } else if ((angle > 45) && (angle < 135)) { + return DOWN; + } else { + return UP; + } + } + + + /** + * Returns a MS time stamp of the current time + * @return int + * @inner + */ + function getTimeStamp() { + var now = new Date(); + return now.getTime(); + } + + + + /** + * Returns a bounds object with left, right, top and bottom properties for the element specified. + * @param {DomNode} The DOM node to get the bounds for. + */ + function getbounds( el ) { + el = $(el); + var offset = el.offset(); + + var bounds = { + left:offset.left, + right:offset.left+el.outerWidth(), + top:offset.top, + bottom:offset.top+el.outerHeight() + } + + return bounds; + } + + + /** + * Checks if the point object is in the bounds object. + * @param {object} point A point object. + * @param {int} point.x The x value of the point. + * @param {int} point.y The x value of the point. + * @param {object} bounds The bounds object to test + * @param {int} bounds.left The leftmost value + * @param {int} bounds.right The righttmost value + * @param {int} bounds.top The topmost value + * @param {int} bounds.bottom The bottommost value + */ + function isInBounds(point, bounds) { + return (point.x > bounds.left && point.x < bounds.right && point.y > bounds.top && point.y < bounds.bottom); + }; + + + } + + + + +/** + * A catch all handler that is triggered for all swipe directions. + * @name $.fn.swipe#swipe + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + + + + +/** + * A handler that is triggered for "left" swipes. + * @name $.fn.swipe#swipeLeft + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "right" swipes. + * @name $.fn.swipe#swipeRight + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "up" swipes. + * @name $.fn.swipe#swipeUp + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler that is triggered for "down" swipes. + * @name $.fn.swipe#swipeDown + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user swiped in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for every phase of the swipe. This handler is constantly fired for the duration of the pinch. + * This is triggered regardless of swipe thresholds. + * @name $.fn.swipe#swipeStatus + * @event + * @default null + * @param {EventObject} event The original event object + * @param {string} phase The phase of the swipe event. See {@link $.fn.swipe.phases} + * @param {string} direction The direction the user swiped in. This is null if the user has yet to move. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user swiped. This is 0 if the user has yet to move. + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for pinch in events. + * @name $.fn.swipe#pinchIn + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for pinch out events. + * @name $.fn.swipe#pinchOut + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A handler triggered for all pinch events. This handler is constantly fired for the duration of the pinch. This is triggered regardless of thresholds. + * @name $.fn.swipe#pinchStatus + * @event + * @default null + * @param {EventObject} event The original event object + * @param {int} direction The direction the user pinched in. See {@link $.fn.swipe.directions} + * @param {int} distance The distance the user pinched + * @param {int} duration The duration of the swipe in milliseconds + * @param {int} fingerCount The number of fingers used. See {@link $.fn.swipe.fingers} + * @param {int} zoom The zoom/scale level the user pinched too, 0-1. + * @param {object} fingerData The coordinates of fingers in event + */ + +/** + * A click handler triggered when a user simply clicks, rather than swipes on an element. + * This is deprecated since version 1.6.2, any assignment to click will be assigned to the tap handler. + * You cannot use on to bind to this event as the default jQ click event will be triggered. + * Use the tap event instead. + * @name $.fn.swipe#click + * @event + * @deprecated since version 1.6.2, please use {@link $.fn.swipe#tap} instead + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A click / tap handler triggered when a user simply clicks or taps, rather than swipes on an element. + * @name $.fn.swipe#tap + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + +/** + * A double tap handler triggered when a user double clicks or taps on an element. + * You can set the time delay for a double tap with the {@link $.fn.swipe.defaults#doubleTapThreshold} property. + * Note: If you set both doubleTap and tap handlers, the tap event will be delayed by the doubleTapThreshold + * as the script needs to check if its a double tap. + * @name $.fn.swipe#doubleTap + * @see $.fn.swipe.defaults#doubleTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A long tap handler triggered once a tap has been release if the tap was longer than the longTapThreshold. + * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. + * @name $.fn.swipe#longTap + * @see $.fn.swipe.defaults#longTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + + /** + * A hold tap handler triggered as soon as the longTapThreshold is reached + * You can set the time delay for a long tap with the {@link $.fn.swipe.defaults#longTapThreshold} property. + * @name $.fn.swipe#hold + * @see $.fn.swipe.defaults#longTapThreshold + * @event + * @default null + * @param {EventObject} event The original event object + * @param {DomObject} target The element clicked on. + */ + +})); + + +// THEMEPUNCH INTERNAL HANDLINGS +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() {}; +} + +// THEMEPUNCH LOGS +if (window.tplogs==true) + try { + console.groupCollapsed("ThemePunch GreenSocks Logs"); + } catch(e) { } + +// SANDBOX GREENSOCK +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(window, moduleName) { + + "use strict"; + var _globals = window.GreenSockGlobals = window.GreenSockGlobals || window; + if (_globals.TweenLite) { + return; //in case the core set of classes is already loaded, don't instantiate twice. + } + var _namespace = function(ns) { + var a = ns.split("."), + p = _globals, i; + for (i = 0; i < a.length; i++) { + p[a[i]] = p = p[a[i]] || {}; + } + return p; + }, + gs = _namespace("com.greensock"), + _tinyNum = 0.0000000001, + _slice = function(a) { //don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll() + var b = [], + l = a.length, + i; + for (i = 0; i !== l; b.push(a[i++])) {} + return b; + }, + _emptyFunc = function() {}, + _isArray = (function() { //works around issues in iframe environments where the Array global isn't shared, thus if the object originates in a different window/iframe, "(obj instanceof Array)" will evaluate false. We added some speed optimizations to avoid Object.prototype.toString.call() unless it's absolutely necessary because it's VERY slow (like 20x slower) + var toString = Object.prototype.toString, + array = toString.call([]); + return function(obj) { + return obj != null && (obj instanceof Array || (typeof(obj) === "object" && !!obj.push && toString.call(obj) === array)); + }; + }()), + a, i, p, _ticker, _tickerActive, + _defLookup = {}, + + /** + * @constructor + * Defines a GreenSock class, optionally with an array of dependencies that must be instantiated first and passed into the definition. + * This allows users to load GreenSock JS files in any order even if they have interdependencies (like CSSPlugin extends TweenPlugin which is + * inside TweenLite.js, but if CSSPlugin is loaded first, it should wait to run its code until TweenLite.js loads and instantiates TweenPlugin + * and then pass TweenPlugin to CSSPlugin's definition). This is all done automatically and internally. + * + * Every definition will be added to a "com.greensock" global object (typically window, but if a window.GreenSockGlobals object is found, + * it will go there as of v1.7). For example, TweenLite will be found at window.com.greensock.TweenLite and since it's a global class that should be available anywhere, + * it is ALSO referenced at window.TweenLite. However some classes aren't considered global, like the base com.greensock.core.Animation class, so + * those will only be at the package like window.com.greensock.core.Animation. Again, if you define a GreenSockGlobals object on the window, everything + * gets tucked neatly inside there instead of on the window directly. This allows you to do advanced things like load multiple versions of GreenSock + * files and put them into distinct objects (imagine a banner ad uses a newer version but the main site uses an older one). In that case, you could + * sandbox the banner one like: + * + * + * + * + * + * + * + * @param {!string} ns The namespace of the class definition, leaving off "com.greensock." as that's assumed. For example, "TweenLite" or "plugins.CSSPlugin" or "easing.Back". + * @param {!Array.} dependencies An array of dependencies (described as their namespaces minus "com.greensock." prefix). For example ["TweenLite","plugins.TweenPlugin","core.Animation"] + * @param {!function():Object} func The function that should be called and passed the resolved dependencies which will return the actual class for this definition. + * @param {boolean=} global If true, the class will be added to the global scope (typically window unless you define a window.GreenSockGlobals object) + */ + Definition = function(ns, dependencies, func, global) { + this.sc = (_defLookup[ns]) ? _defLookup[ns].sc : []; //subclasses + _defLookup[ns] = this; + this.gsClass = null; + this.func = func; + var _classes = []; + this.check = function(init) { + var i = dependencies.length, + missing = i, + cur, a, n, cl, hasModule; + while (--i > -1) { + if ((cur = _defLookup[dependencies[i]] || new Definition(dependencies[i], [])).gsClass) { + _classes[i] = cur.gsClass; + missing--; + } else if (init) { + cur.sc.push(this); + } + } + if (missing === 0 && func) { + a = ("com.greensock." + ns).split("."); + n = a.pop(); + cl = _namespace(a.join("."))[n] = this.gsClass = func.apply(func, _classes); + + //exports to multiple environments + if (global) { + _globals[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.) + hasModule = (typeof(module) !== "undefined" && module.exports); + if (!hasModule && typeof(define) === "function" && define.amd){ //AMD + define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").pop(), [], function() { return cl; }); + } else if (ns === moduleName && hasModule){ //node + module.exports = cl; + } + } + for (i = 0; i < this.sc.length; i++) { + this.sc[i].check(); + } + } + }; + this.check(true); + }, + + //used to create Definition instances (which basically registers a class that has dependencies). + _gsDefine = window._gsDefine = function(ns, dependencies, func, global) { + return new Definition(ns, dependencies, func, global); + }, + + //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class). + _class = gs._class = function(ns, func, global) { + func = func || function() {}; + _gsDefine(ns, [], function(){ return func; }, global); + return func; + }; + + _gsDefine.globals = _globals; + + + +/* + * ---------------------------------------------------------------- + * Ease + * ---------------------------------------------------------------- + */ + var _baseParams = [0, 0, 1, 1], + _blankArray = [], + Ease = _class("easing.Ease", function(func, extraParams, type, power) { + this._func = func; + this._type = type || 0; + this._power = power || 0; + this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams; + }, true), + _easeMap = Ease.map = {}, + _easeReg = Ease.register = function(ease, names, types, create) { + var na = names.split(","), + i = na.length, + ta = (types || "easeIn,easeOut,easeInOut").split(","), + e, name, j, type; + while (--i > -1) { + name = na[i]; + e = create ? _class("easing."+name, null, true) : gs.easing[name] || {}; + j = ta.length; + while (--j > -1) { + type = ta[j]; + _easeMap[name + "." + type] = _easeMap[type + name] = e[type] = ease.getRatio ? ease : ease[type] || new ease(); + } + } + }; + + p = Ease.prototype; + p._calcEnd = false; + p.getRatio = function(p) { + if (this._func) { + this._params[0] = p; + return this._func.apply(null, this._params); + } + var t = this._type, + pw = this._power, + r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2; + if (pw === 1) { + r *= r; + } else if (pw === 2) { + r *= r * r; + } else if (pw === 3) { + r *= r * r * r; + } else if (pw === 4) { + r *= r * r * r * r; + } + return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2); + }; + + //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut) + a = ["Linear","Quad","Cubic","Quart","Quint,Strong"]; + i = a.length; + while (--i > -1) { + p = a[i]+",Power"+i; + _easeReg(new Ease(null,null,1,i), p, "easeOut", true); + _easeReg(new Ease(null,null,2,i), p, "easeIn" + ((i === 0) ? ",easeNone" : "")); + _easeReg(new Ease(null,null,3,i), p, "easeInOut"); + } + _easeMap.linear = gs.easing.Linear.easeIn; + _easeMap.swing = gs.easing.Quad.easeInOut; //for jQuery folks + + +/* + * ---------------------------------------------------------------- + * EventDispatcher + * ---------------------------------------------------------------- + */ + var EventDispatcher = _class("events.EventDispatcher", function(target) { + this._listeners = {}; + this._eventTarget = target || this; + }); + p = EventDispatcher.prototype; + + p.addEventListener = function(type, callback, scope, useParam, priority) { + priority = priority || 0; + var list = this._listeners[type], + index = 0, + listener, i; + if (list == null) { + this._listeners[type] = list = []; + } + i = list.length; + while (--i > -1) { + listener = list[i]; + if (listener.c === callback && listener.s === scope) { + list.splice(i, 1); + } else if (index === 0 && listener.pr < priority) { + index = i + 1; + } + } + list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority}); + if (this === _ticker && !_tickerActive) { + _ticker.wake(); + } + }; + + p.removeEventListener = function(type, callback) { + var list = this._listeners[type], i; + if (list) { + i = list.length; + while (--i > -1) { + if (list[i].c === callback) { + list.splice(i, 1); + return; + } + } + } + }; + + p.dispatchEvent = function(type) { + var list = this._listeners[type], + i, t, listener; + if (list) { + i = list.length; + t = this._eventTarget; + while (--i > -1) { + listener = list[i]; + if (listener) { + if (listener.up) { + listener.c.call(listener.s || t, {type:type, target:t}); + } else { + listener.c.call(listener.s || t); + } + } + } + } + }; + + +/* + * ---------------------------------------------------------------- + * Ticker + * ---------------------------------------------------------------- + */ + var _reqAnimFrame = window.requestAnimationFrame, + _cancelAnimFrame = window.cancelAnimationFrame, + _getTime = Date.now || function() {return new Date().getTime();}, + _lastUpdate = _getTime(); + + //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill. + a = ["ms","moz","webkit","o"]; + i = a.length; + while (--i > -1 && !_reqAnimFrame) { + _reqAnimFrame = window[a[i] + "RequestAnimationFrame"]; + _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"]; + } + + _class("Ticker", function(fps, useRAF) { + var _self = this, + _startTime = _getTime(), + _useRAF = (useRAF !== false && _reqAnimFrame), + _lagThreshold = 500, + _adjustedLag = 33, + _tickWord = "tick", //helps reduce gc burden + _fps, _req, _id, _gap, _nextTime, + _tick = function(manual) { + var elapsed = _getTime() - _lastUpdate, + overlap, dispatch; + if (elapsed > _lagThreshold) { + _startTime += elapsed - _adjustedLag; + } + _lastUpdate += elapsed; + _self.time = (_lastUpdate - _startTime) / 1000; + overlap = _self.time - _nextTime; + if (!_fps || overlap > 0 || manual === true) { + _self.frame++; + _nextTime += overlap + (overlap >= _gap ? 0.004 : _gap - overlap); + dispatch = true; + } + if (manual !== true) { //make sure the request is made before we dispatch the "tick" event so that timing is maintained. Otherwise, if processing the "tick" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise. + _id = _req(_tick); + } + if (dispatch) { + _self.dispatchEvent(_tickWord); + } + }; + + EventDispatcher.call(_self); + _self.time = _self.frame = 0; + _self.tick = function() { + _tick(true); + }; + + _self.lagSmoothing = function(threshold, adjustedLag) { + _lagThreshold = threshold || (1 / _tinyNum); //zero should be interpreted as basically unlimited + _adjustedLag = Math.min(adjustedLag, _lagThreshold, 0); + }; + + _self.sleep = function() { + if (_id == null) { + return; + } + if (!_useRAF || !_cancelAnimFrame) { + clearTimeout(_id); + } else { + _cancelAnimFrame(_id); + } + _req = _emptyFunc; + _id = null; + if (_self === _ticker) { + _tickerActive = false; + } + }; + + _self.wake = function() { + if (_id !== null) { + _self.sleep(); + } else if (_self.frame > 10) { //don't trigger lagSmoothing if we're just waking up, and make sure that at least 10 frames have elapsed because of the iOS bug that we work around below with the 1.5-second setTimout(). + _lastUpdate = _getTime() - _lagThreshold + 5; + } + _req = (_fps === 0) ? _emptyFunc : (!_useRAF || !_reqAnimFrame) ? function(f) { return setTimeout(f, ((_nextTime - _self.time) * 1000 + 1) | 0); } : _reqAnimFrame; + if (_self === _ticker) { + _tickerActive = true; + } + _tick(2); + }; + + _self.fps = function(value) { + if (!arguments.length) { + return _fps; + } + _fps = value; + _gap = 1 / (_fps || 60); + _nextTime = this.time + _gap; + _self.wake(); + }; + + _self.useRAF = function(value) { + if (!arguments.length) { + return _useRAF; + } + _self.sleep(); + _useRAF = value; + _self.fps(_fps); + }; + _self.fps(fps); + + //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1.5-second timeout that automatically falls back to setTimeout() if it senses this condition. + setTimeout(function() { + if (_useRAF && _self.frame < 5) { + _self.useRAF(false); + } + }, 1500); + }); + + p = gs.Ticker.prototype = new gs.events.EventDispatcher(); + p.constructor = gs.Ticker; + + +/* + * ---------------------------------------------------------------- + * Animation + * ---------------------------------------------------------------- + */ + var Animation = _class("core.Animation", function(duration, vars) { + this.vars = vars = vars || {}; + this._duration = this._totalDuration = duration || 0; + this._delay = Number(vars.delay) || 0; + this._timeScale = 1; + this._active = (vars.immediateRender === true); + this.data = vars.data; + this._reversed = (vars.reversed === true); + + if (!_rootTimeline) { + return; + } + if (!_tickerActive) { //some browsers (like iOS 6 Safari) shut down JavaScript execution when the tab is disabled and they [occasionally] neglect to start up requestAnimationFrame again when returning - this code ensures that the engine starts up again properly. + _ticker.wake(); + } + + var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline; + tl.add(this, tl._time); + + if (this.vars.paused) { + this.paused(true); + } + }); + + _ticker = Animation.ticker = new gs.Ticker(); + p = Animation.prototype; + p._dirty = p._gc = p._initted = p._paused = false; + p._totalTime = p._time = 0; + p._rawPrevTime = -1; + p._next = p._last = p._onUpdate = p._timeline = p.timeline = null; + p._paused = false; + + + //some browsers (like iOS) occasionally drop the requestAnimationFrame event when the user switches to a different tab and then comes back again, so we use a 2-second setTimeout() to sense if/when that condition occurs and then wake() the ticker. + var _checkTimeout = function() { + if (_tickerActive && _getTime() - _lastUpdate > 2000) { + _ticker.wake(); + } + setTimeout(_checkTimeout, 2000); + }; + _checkTimeout(); + + + p.play = function(from, suppressEvents) { + if (from != null) { + this.seek(from, suppressEvents); + } + return this.reversed(false).paused(false); + }; + + p.pause = function(atTime, suppressEvents) { + if (atTime != null) { + this.seek(atTime, suppressEvents); + } + return this.paused(true); + }; + + p.resume = function(from, suppressEvents) { + if (from != null) { + this.seek(from, suppressEvents); + } + return this.paused(false); + }; + + p.seek = function(time, suppressEvents) { + return this.totalTime(Number(time), suppressEvents !== false); + }; + + p.restart = function(includeDelay, suppressEvents) { + return this.reversed(false).paused(false).totalTime(includeDelay ? -this._delay : 0, (suppressEvents !== false), true); + }; + + p.reverse = function(from, suppressEvents) { + if (from != null) { + this.seek((from || this.totalDuration()), suppressEvents); + } + return this.reversed(true).paused(false); + }; + + p.render = function(time, suppressEvents, force) { + //stub - we override this method in subclasses. + }; + + p.invalidate = function() { + this._time = this._totalTime = 0; + this._initted = this._gc = false; + this._rawPrevTime = -1; + if (this._gc || !this.timeline) { + this._enabled(true); + } + return this; + }; + + p.isActive = function() { + var tl = this._timeline, //the 2 root timelines won't have a _timeline; they're always active. + startTime = this._startTime, + rawTime; + return (!tl || (!this._gc && !this._paused && tl.isActive() && (rawTime = tl.rawTime()) >= startTime && rawTime < startTime + this.totalDuration() / this._timeScale)); + }; + + p._enabled = function (enabled, ignoreTimeline) { + if (!_tickerActive) { + _ticker.wake(); + } + this._gc = !enabled; + this._active = this.isActive(); + if (ignoreTimeline !== true) { + if (enabled && !this.timeline) { + this._timeline.add(this, this._startTime - this._delay); + } else if (!enabled && this.timeline) { + this._timeline._remove(this, true); + } + } + return false; + }; + + + p._kill = function(vars, target) { + return this._enabled(false, false); + }; + + p.kill = function(vars, target) { + this._kill(vars, target); + return this; + }; + + p._uncache = function(includeSelf) { + var tween = includeSelf ? this : this.timeline; + while (tween) { + tween._dirty = true; + tween = tween.timeline; + } + return this; + }; + + p._swapSelfInParams = function(params) { + var i = params.length, + copy = params.concat(); + while (--i > -1) { + if (params[i] === "{self}") { + copy[i] = this; + } + } + return copy; + }; + + p._callback = function(type) { + var v = this.vars; + v[type].apply(v[type + "Scope"] || v.callbackScope || this, v[type + "Params"] || _blankArray); + }; + +//----Animation getters/setters -------------------------------------------------------- + + p.eventCallback = function(type, callback, params, scope) { + if ((type || "").substr(0,2) === "on") { + var v = this.vars; + if (arguments.length === 1) { + return v[type]; + } + if (callback == null) { + delete v[type]; + } else { + v[type] = callback; + v[type + "Params"] = (_isArray(params) && params.join("").indexOf("{self}") !== -1) ? this._swapSelfInParams(params) : params; + v[type + "Scope"] = scope; + } + if (type === "onUpdate") { + this._onUpdate = callback; + } + } + return this; + }; + + p.delay = function(value) { + if (!arguments.length) { + return this._delay; + } + if (this._timeline.smoothChildTiming) { + this.startTime( this._startTime + value - this._delay ); + } + this._delay = value; + return this; + }; + + p.duration = function(value) { + if (!arguments.length) { + this._dirty = false; + return this._duration; + } + this._duration = this._totalDuration = value; + this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration. + if (this._timeline.smoothChildTiming) if (this._time > 0) if (this._time < this._duration) if (value !== 0) { + this.totalTime(this._totalTime * (value / this._duration), true); + } + return this; + }; + + p.totalDuration = function(value) { + this._dirty = false; + return (!arguments.length) ? this._totalDuration : this.duration(value); + }; + + p.time = function(value, suppressEvents) { + if (!arguments.length) { + return this._time; + } + if (this._dirty) { + this.totalDuration(); + } + return this.totalTime((value > this._duration) ? this._duration : value, suppressEvents); + }; + + p.totalTime = function(time, suppressEvents, uncapped) { + if (!_tickerActive) { + _ticker.wake(); + } + if (!arguments.length) { + return this._totalTime; + } + if (this._timeline) { + if (time < 0 && !uncapped) { + time += this.totalDuration(); + } + if (this._timeline.smoothChildTiming) { + if (this._dirty) { + this.totalDuration(); + } + var totalDuration = this._totalDuration, + tl = this._timeline; + if (time > totalDuration && !uncapped) { + time = totalDuration; + } + this._startTime = (this._paused ? this._pauseTime : tl._time) - ((!this._reversed ? time : totalDuration - time) / this._timeScale); + if (!tl._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here. + this._uncache(false); + } + //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The startTime of that child would get pushed out, but one of the ancestors may have completed. + if (tl._timeline) { + while (tl._timeline) { + if (tl._timeline._time !== (tl._startTime + tl._totalTime) / tl._timeScale) { + tl.totalTime(tl._totalTime, true); + } + tl = tl._timeline; + } + } + } + if (this._gc) { + this._enabled(true, false); + } + if (this._totalTime !== time || this._duration === 0) { + if (_lazyTweens.length) { + _lazyRender(); + } + this.render(time, suppressEvents, false); + if (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render. + _lazyRender(); + } + } + } + return this; + }; + + p.progress = p.totalProgress = function(value, suppressEvents) { + var duration = this.duration(); + return (!arguments.length) ? (duration ? this._time / duration : this.ratio) : this.totalTime(duration * value, suppressEvents); + }; + + p.startTime = function(value) { + if (!arguments.length) { + return this._startTime; + } + if (value !== this._startTime) { + this._startTime = value; + if (this.timeline) if (this.timeline._sortChildren) { + this.timeline.add(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct. + } + } + return this; + }; + + p.endTime = function(includeRepeats) { + return this._startTime + ((includeRepeats != false) ? this.totalDuration() : this.duration()) / this._timeScale; + }; + + p.timeScale = function(value) { + if (!arguments.length) { + return this._timeScale; + } + value = value || _tinyNum; //can't allow zero because it'll throw the math off + if (this._timeline && this._timeline.smoothChildTiming) { + var pauseTime = this._pauseTime, + t = (pauseTime || pauseTime === 0) ? pauseTime : this._timeline.totalTime(); + this._startTime = t - ((t - this._startTime) * this._timeScale / value); + } + this._timeScale = value; + return this._uncache(false); + }; + + p.reversed = function(value) { + if (!arguments.length) { + return this._reversed; + } + if (value != this._reversed) { + this._reversed = value; + this.totalTime(((this._timeline && !this._timeline.smoothChildTiming) ? this.totalDuration() - this._totalTime : this._totalTime), true); + } + return this; + }; + + p.paused = function(value) { + if (!arguments.length) { + return this._paused; + } + var tl = this._timeline, + raw, elapsed; + if (value != this._paused) if (tl) { + if (!_tickerActive && !value) { + _ticker.wake(); + } + raw = tl.rawTime(); + elapsed = raw - this._pauseTime; + if (!value && tl.smoothChildTiming) { + this._startTime += elapsed; + this._uncache(false); + } + this._pauseTime = value ? raw : null; + this._paused = value; + this._active = this.isActive(); + if (!value && elapsed !== 0 && this._initted && this.duration()) { + raw = tl.smoothChildTiming ? this._totalTime : (raw - this._startTime) / this._timeScale; + this.render(raw, (raw === this._totalTime), true); //in case the target's properties changed via some other tween or manual update by the user, we should force a render. + } + } + if (this._gc && !value) { + this._enabled(true, false); + } + return this; + }; + + +/* + * ---------------------------------------------------------------- + * SimpleTimeline + * ---------------------------------------------------------------- + */ + var SimpleTimeline = _class("core.SimpleTimeline", function(vars) { + Animation.call(this, 0, vars); + this.autoRemoveChildren = this.smoothChildTiming = true; + }); + + p = SimpleTimeline.prototype = new Animation(); + p.constructor = SimpleTimeline; + p.kill()._gc = false; + p._first = p._last = p._recent = null; + p._sortChildren = false; + + p.add = p.insert = function(child, position, align, stagger) { + var prevTween, st; + child._startTime = Number(position || 0) + child._delay; + if (child._paused) if (this !== child._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order). + child._pauseTime = child._startTime + ((this.rawTime() - child._startTime) / child._timeScale); + } + if (child.timeline) { + child.timeline._remove(child, true); //removes from existing timeline so that it can be properly added to this one. + } + child.timeline = child._timeline = this; + if (child._gc) { + child._enabled(true, true); + } + prevTween = this._last; + if (this._sortChildren) { + st = child._startTime; + while (prevTween && prevTween._startTime > st) { + prevTween = prevTween._prev; + } + } + if (prevTween) { + child._next = prevTween._next; + prevTween._next = child; + } else { + child._next = this._first; + this._first = child; + } + if (child._next) { + child._next._prev = child; + } else { + this._last = child; + } + child._prev = prevTween; + this._recent = child; + if (this._timeline) { + this._uncache(true); + } + return this; + }; + + p._remove = function(tween, skipDisable) { + if (tween.timeline === this) { + if (!skipDisable) { + tween._enabled(false, true); + } + + if (tween._prev) { + tween._prev._next = tween._next; + } else if (this._first === tween) { + this._first = tween._next; + } + if (tween._next) { + tween._next._prev = tween._prev; + } else if (this._last === tween) { + this._last = tween._prev; + } + tween._next = tween._prev = tween.timeline = null; + if (tween === this._recent) { + this._recent = this._last; + } + + if (this._timeline) { + this._uncache(true); + } + } + return this; + }; + + p.render = function(time, suppressEvents, force) { + var tween = this._first, + next; + this._totalTime = this._time = this._rawPrevTime = time; + while (tween) { + next = tween._next; //record it here because the value could change after rendering... + if (tween._active || (time >= tween._startTime && !tween._paused)) { + if (!tween._reversed) { + tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force); + } else { + tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force); + } + } + tween = next; + } + }; + + p.rawTime = function() { + if (!_tickerActive) { + _ticker.wake(); + } + return this._totalTime; + }; + +/* + * ---------------------------------------------------------------- + * TweenLite + * ---------------------------------------------------------------- + */ + var TweenLite = _class("TweenLite", function(target, duration, vars) { + Animation.call(this, duration, vars); + this.render = TweenLite.prototype.render; //speed optimization (avoid prototype lookup on this "hot" method) + + if (target == null) { + throw "Cannot tween a null target."; + } + + this.target = target = (typeof(target) !== "string") ? target : TweenLite.selector(target) || target; + + var isSelector = (target.jquery || (target.length && target !== window && target[0] && (target[0] === window || (target[0].nodeType && target[0].style && !target.nodeType)))), + overwrite = this.vars.overwrite, + i, targ, targets; + + this._overwrite = overwrite = (overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(overwrite) === "number") ? overwrite >> 0 : _overwriteLookup[overwrite]; + + if ((isSelector || target instanceof Array || (target.push && _isArray(target))) && typeof(target[0]) !== "number") { + this._targets = targets = _slice(target); //don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll() + this._propLookup = []; + this._siblings = []; + for (i = 0; i < targets.length; i++) { + targ = targets[i]; + if (!targ) { + targets.splice(i--, 1); + continue; + } else if (typeof(targ) === "string") { + targ = targets[i--] = TweenLite.selector(targ); //in case it's an array of strings + if (typeof(targ) === "string") { + targets.splice(i+1, 1); //to avoid an endless loop (can't imagine why the selector would return a string, but just in case) + } + continue; + } else if (targ.length && targ !== window && targ[0] && (targ[0] === window || (targ[0].nodeType && targ[0].style && !targ.nodeType))) { //in case the user is passing in an array of selector objects (like jQuery objects), we need to check one more level and pull things out if necessary. Also note that + + + +
    + +
    Examples:
    + +
    +

    + + <i class="flaticon-phone-call"></i> +

    +
    + +
    +

    + + <i class="flaticon-phone"></i> +

    +
    + +
    +

    + + <i class="flaticon-virus"></i> +

    +
    + +
    +

    + + <i class="flaticon-call"></i> +

    +
    + +
    + + + + + + + + + \ No newline at end of file diff --git a/public/assets2/fonts/fontawesome-webfont3e6e.eot b/public/assets2/fonts/fontawesome-webfont3e6e.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/public/assets2/fonts/fontawesome-webfont3e6e.eot differ diff --git a/public/assets2/fonts/fontawesome-webfont3e6e.svg b/public/assets2/fonts/fontawesome-webfont3e6e.svg new file mode 100644 index 0000000..855c845 --- /dev/null +++ b/public/assets2/fonts/fontawesome-webfont3e6e.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/fonts/fontawesome-webfont3e6e.ttf b/public/assets2/fonts/fontawesome-webfont3e6e.ttf new file mode 100644 index 0000000..35acda2 Binary files /dev/null and b/public/assets2/fonts/fontawesome-webfont3e6e.ttf differ diff --git a/public/assets2/fonts/fontawesome-webfont3e6e.woff b/public/assets2/fonts/fontawesome-webfont3e6e.woff new file mode 100644 index 0000000..400014a Binary files /dev/null and b/public/assets2/fonts/fontawesome-webfont3e6e.woff differ diff --git a/public/assets2/fonts/fontawesome-webfont3e6e.woff2 b/public/assets2/fonts/fontawesome-webfont3e6e.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/public/assets2/fonts/fontawesome-webfont3e6e.woff2 differ diff --git a/public/assets2/fonts/fontawesome-webfontd41d.eot b/public/assets2/fonts/fontawesome-webfontd41d.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/public/assets2/fonts/fontawesome-webfontd41d.eot differ diff --git a/public/assets2/image/chiefsoft-lg2.png b/public/assets2/image/chiefsoft-lg2.png new file mode 100644 index 0000000..4c91d3c Binary files /dev/null and b/public/assets2/image/chiefsoft-lg2.png differ diff --git a/public/assets2/image/fav.png b/public/assets2/image/fav.png new file mode 100644 index 0000000..fe5b9d2 Binary files /dev/null and b/public/assets2/image/fav.png differ diff --git a/public/assets2/image/favicon-16x16.png b/public/assets2/image/favicon-16x16.png new file mode 100644 index 0000000..e3a908e Binary files /dev/null and b/public/assets2/image/favicon-16x16.png differ diff --git a/public/assets2/image/favicon-32x32.png b/public/assets2/image/favicon-32x32.png new file mode 100644 index 0000000..39f686c Binary files /dev/null and b/public/assets2/image/favicon-32x32.png differ diff --git a/public/assets2/image/hand-wash/1.png b/public/assets2/image/hand-wash/1.png new file mode 100644 index 0000000..e8d490b Binary files /dev/null and b/public/assets2/image/hand-wash/1.png differ diff --git a/public/assets2/image/hand-wash/10.png b/public/assets2/image/hand-wash/10.png new file mode 100644 index 0000000..d689168 Binary files /dev/null and b/public/assets2/image/hand-wash/10.png differ diff --git a/public/assets2/image/hand-wash/11.png b/public/assets2/image/hand-wash/11.png new file mode 100644 index 0000000..f59eb19 Binary files /dev/null and b/public/assets2/image/hand-wash/11.png differ diff --git a/public/assets2/image/hand-wash/12.png b/public/assets2/image/hand-wash/12.png new file mode 100644 index 0000000..5cc229f Binary files /dev/null and b/public/assets2/image/hand-wash/12.png differ diff --git a/public/assets2/image/hand-wash/2.png b/public/assets2/image/hand-wash/2.png new file mode 100644 index 0000000..7be7d3b Binary files /dev/null and b/public/assets2/image/hand-wash/2.png differ diff --git a/public/assets2/image/hand-wash/3.png b/public/assets2/image/hand-wash/3.png new file mode 100644 index 0000000..d603d1d Binary files /dev/null and b/public/assets2/image/hand-wash/3.png differ diff --git a/public/assets2/image/hand-wash/4.png b/public/assets2/image/hand-wash/4.png new file mode 100644 index 0000000..f52b4d2 Binary files /dev/null and b/public/assets2/image/hand-wash/4.png differ diff --git a/public/assets2/image/hand-wash/5.png b/public/assets2/image/hand-wash/5.png new file mode 100644 index 0000000..001148e Binary files /dev/null and b/public/assets2/image/hand-wash/5.png differ diff --git a/public/assets2/image/hand-wash/6.png b/public/assets2/image/hand-wash/6.png new file mode 100644 index 0000000..b288e43 Binary files /dev/null and b/public/assets2/image/hand-wash/6.png differ diff --git a/public/assets2/image/hand-wash/7.png b/public/assets2/image/hand-wash/7.png new file mode 100644 index 0000000..69ab368 Binary files /dev/null and b/public/assets2/image/hand-wash/7.png differ diff --git a/public/assets2/image/hand-wash/8.png b/public/assets2/image/hand-wash/8.png new file mode 100644 index 0000000..2f25cf8 Binary files /dev/null and b/public/assets2/image/hand-wash/8.png differ diff --git a/public/assets2/image/hand-wash/9.png b/public/assets2/image/hand-wash/9.png new file mode 100644 index 0000000..d28f21b Binary files /dev/null and b/public/assets2/image/hand-wash/9.png differ diff --git a/public/assets2/image/health.png b/public/assets2/image/health.png new file mode 100644 index 0000000..62ac3ff Binary files /dev/null and b/public/assets2/image/health.png differ diff --git a/public/assets2/image/home-1-logo-white.png b/public/assets2/image/home-1-logo-white.png new file mode 100644 index 0000000..d588a96 Binary files /dev/null and b/public/assets2/image/home-1-logo-white.png differ diff --git a/public/assets2/image/home-1-logo.png b/public/assets2/image/home-1-logo.png new file mode 100644 index 0000000..271dedf Binary files /dev/null and b/public/assets2/image/home-1-logo.png differ diff --git a/public/assets2/image/home-3-logo-white.png b/public/assets2/image/home-3-logo-white.png new file mode 100644 index 0000000..88313fe Binary files /dev/null and b/public/assets2/image/home-3-logo-white.png differ diff --git a/public/assets2/image/home-3-logo.png b/public/assets2/image/home-3-logo.png new file mode 100644 index 0000000..833092b Binary files /dev/null and b/public/assets2/image/home-3-logo.png differ diff --git a/public/assets2/image/home-4-logo-white.png b/public/assets2/image/home-4-logo-white.png new file mode 100644 index 0000000..078ab4a Binary files /dev/null and b/public/assets2/image/home-4-logo-white.png differ diff --git a/public/assets2/image/home-4-logo.png b/public/assets2/image/home-4-logo.png new file mode 100644 index 0000000..69b3a7b Binary files /dev/null and b/public/assets2/image/home-4-logo.png differ diff --git a/public/assets2/image/home-logo-rtl-1.png b/public/assets2/image/home-logo-rtl-1.png new file mode 100644 index 0000000..2530d75 Binary files /dev/null and b/public/assets2/image/home-logo-rtl-1.png differ diff --git a/public/assets2/image/home-logo-rtl-2.png b/public/assets2/image/home-logo-rtl-2.png new file mode 100644 index 0000000..f0bc0a0 Binary files /dev/null and b/public/assets2/image/home-logo-rtl-2.png differ diff --git a/public/assets2/image/main-slider/banner-3-bg.jpg b/public/assets2/image/main-slider/banner-3-bg.jpg new file mode 100644 index 0000000..8aeeb5c Binary files /dev/null and b/public/assets2/image/main-slider/banner-3-bg.jpg differ diff --git a/public/assets2/image/main-slider/home-1-slider-1.png b/public/assets2/image/main-slider/home-1-slider-1.png new file mode 100644 index 0000000..34c7492 Binary files /dev/null and b/public/assets2/image/main-slider/home-1-slider-1.png differ diff --git a/public/assets2/image/main-slider/home-1-slider-2.png b/public/assets2/image/main-slider/home-1-slider-2.png new file mode 100644 index 0000000..15440f5 Binary files /dev/null and b/public/assets2/image/main-slider/home-1-slider-2.png differ diff --git a/public/assets2/image/main-slider/home-1-slider-grass-2.png b/public/assets2/image/main-slider/home-1-slider-grass-2.png new file mode 100644 index 0000000..699a293 Binary files /dev/null and b/public/assets2/image/main-slider/home-1-slider-grass-2.png differ diff --git a/public/assets2/image/main-slider/home-2-slider-1-1.png b/public/assets2/image/main-slider/home-2-slider-1-1.png new file mode 100644 index 0000000..84f77df Binary files /dev/null and b/public/assets2/image/main-slider/home-2-slider-1-1.png differ diff --git a/public/assets2/image/main-slider/home-2-slider-1-2.png b/public/assets2/image/main-slider/home-2-slider-1-2.png new file mode 100644 index 0000000..1ff238e Binary files /dev/null and b/public/assets2/image/main-slider/home-2-slider-1-2.png differ diff --git a/public/assets2/image/main-slider/home-2-slider-2-1.png b/public/assets2/image/main-slider/home-2-slider-2-1.png new file mode 100644 index 0000000..18c4ecd Binary files /dev/null and b/public/assets2/image/main-slider/home-2-slider-2-1.png differ diff --git a/public/assets2/image/main-slider/home-2-slider-3-1.png b/public/assets2/image/main-slider/home-2-slider-3-1.png new file mode 100644 index 0000000..8321ee7 Binary files /dev/null and b/public/assets2/image/main-slider/home-2-slider-3-1.png differ diff --git a/public/assets2/image/main-slider/home-2-slider-3-2.png b/public/assets2/image/main-slider/home-2-slider-3-2.png new file mode 100644 index 0000000..1394578 Binary files /dev/null and b/public/assets2/image/main-slider/home-2-slider-3-2.png differ diff --git a/public/assets2/image/main-slider/home-3-slider-1.png b/public/assets2/image/main-slider/home-3-slider-1.png new file mode 100644 index 0000000..98a61e4 Binary files /dev/null and b/public/assets2/image/main-slider/home-3-slider-1.png differ diff --git a/public/assets2/image/main-slider/home-3-slider-2.png b/public/assets2/image/main-slider/home-3-slider-2.png new file mode 100644 index 0000000..8b07f6a Binary files /dev/null and b/public/assets2/image/main-slider/home-3-slider-2.png differ diff --git a/public/assets2/image/main-slider/home-3-slider-bg-1.png b/public/assets2/image/main-slider/home-3-slider-bg-1.png new file mode 100644 index 0000000..d860d71 Binary files /dev/null and b/public/assets2/image/main-slider/home-3-slider-bg-1.png differ diff --git a/public/assets2/image/main-slider/home-4-banner-1.jpg b/public/assets2/image/main-slider/home-4-banner-1.jpg new file mode 100644 index 0000000..2fd256c Binary files /dev/null and b/public/assets2/image/main-slider/home-4-banner-1.jpg differ diff --git a/public/assets2/image/main-slider/home-4-banner-2.jpg b/public/assets2/image/main-slider/home-4-banner-2.jpg new file mode 100644 index 0000000..30cef2a Binary files /dev/null and b/public/assets2/image/main-slider/home-4-banner-2.jpg differ diff --git a/public/assets2/image/main-slider/home-4-banner-3.jpg b/public/assets2/image/main-slider/home-4-banner-3.jpg new file mode 100644 index 0000000..b324e00 Binary files /dev/null and b/public/assets2/image/main-slider/home-4-banner-3.jpg differ diff --git a/public/assets2/image/main-slider/home-slider-bubbles-1.png b/public/assets2/image/main-slider/home-slider-bubbles-1.png new file mode 100644 index 0000000..0e57002 Binary files /dev/null and b/public/assets2/image/main-slider/home-slider-bubbles-1.png differ diff --git a/public/assets2/image/main-slider/home-slider-bubbles-2.png b/public/assets2/image/main-slider/home-slider-bubbles-2.png new file mode 100644 index 0000000..338d669 Binary files /dev/null and b/public/assets2/image/main-slider/home-slider-bubbles-2.png differ diff --git a/public/assets2/image/main-slider/home-slider-bubbles-3.png b/public/assets2/image/main-slider/home-slider-bubbles-3.png new file mode 100644 index 0000000..841e42a Binary files /dev/null and b/public/assets2/image/main-slider/home-slider-bubbles-3.png differ diff --git a/public/assets2/image/main-slider/home-slider-bubbles-4.png b/public/assets2/image/main-slider/home-slider-bubbles-4.png new file mode 100644 index 0000000..2fd31ca Binary files /dev/null and b/public/assets2/image/main-slider/home-slider-bubbles-4.png differ diff --git a/public/assets2/image/main-slider/home-slider-bubbles-5.png b/public/assets2/image/main-slider/home-slider-bubbles-5.png new file mode 100644 index 0000000..2b02aca Binary files /dev/null and b/public/assets2/image/main-slider/home-slider-bubbles-5.png differ diff --git a/public/assets2/image/main-slider/home-slider-bubbles-6.png b/public/assets2/image/main-slider/home-slider-bubbles-6.png new file mode 100644 index 0000000..40af28b Binary files /dev/null and b/public/assets2/image/main-slider/home-slider-bubbles-6.png differ diff --git a/public/assets2/image/preloader.gif b/public/assets2/image/preloader.gif new file mode 100644 index 0000000..3b62149 Binary files /dev/null and b/public/assets2/image/preloader.gif differ diff --git a/public/assets2/image/resources/Sym-2.png b/public/assets2/image/resources/Sym-2.png new file mode 100644 index 0000000..4822f56 Binary files /dev/null and b/public/assets2/image/resources/Sym-2.png differ diff --git a/public/assets2/image/resources/Sym-2.png-1.jpg b/public/assets2/image/resources/Sym-2.png-1.jpg new file mode 100644 index 0000000..09e2423 Binary files /dev/null and b/public/assets2/image/resources/Sym-2.png-1.jpg differ diff --git a/public/assets2/image/resources/Sym-2.png.jpg b/public/assets2/image/resources/Sym-2.png.jpg new file mode 100644 index 0000000..09e2423 Binary files /dev/null and b/public/assets2/image/resources/Sym-2.png.jpg differ diff --git a/public/assets2/image/resources/Sym-border.png b/public/assets2/image/resources/Sym-border.png new file mode 100644 index 0000000..a608805 Binary files /dev/null and b/public/assets2/image/resources/Sym-border.png differ diff --git a/public/assets2/image/resources/Sym.png b/public/assets2/image/resources/Sym.png new file mode 100644 index 0000000..cacbce9 Binary files /dev/null and b/public/assets2/image/resources/Sym.png differ diff --git a/public/assets2/image/resources/about-1.png b/public/assets2/image/resources/about-1.png new file mode 100644 index 0000000..ae0dfec Binary files /dev/null and b/public/assets2/image/resources/about-1.png differ diff --git a/public/assets2/image/resources/about-2.png b/public/assets2/image/resources/about-2.png new file mode 100644 index 0000000..6928851 Binary files /dev/null and b/public/assets2/image/resources/about-2.png differ diff --git a/public/assets2/image/resources/about-3.png b/public/assets2/image/resources/about-3.png new file mode 100644 index 0000000..66ff01a Binary files /dev/null and b/public/assets2/image/resources/about-3.png differ diff --git a/public/assets2/image/resources/about-4.png b/public/assets2/image/resources/about-4.png new file mode 100644 index 0000000..df72ba8 Binary files /dev/null and b/public/assets2/image/resources/about-4.png differ diff --git a/public/assets2/image/resources/best-doctors1.jpg b/public/assets2/image/resources/best-doctors1.jpg new file mode 100644 index 0000000..bfabc89 Binary files /dev/null and b/public/assets2/image/resources/best-doctors1.jpg differ diff --git a/public/assets2/image/resources/best-doctors2.jpg b/public/assets2/image/resources/best-doctors2.jpg new file mode 100644 index 0000000..1916da4 Binary files /dev/null and b/public/assets2/image/resources/best-doctors2.jpg differ diff --git a/public/assets2/image/resources/best-doctors3.jpg b/public/assets2/image/resources/best-doctors3.jpg new file mode 100644 index 0000000..46cae5f Binary files /dev/null and b/public/assets2/image/resources/best-doctors3.jpg differ diff --git a/public/assets2/image/resources/blo-single-1.jpg b/public/assets2/image/resources/blo-single-1.jpg new file mode 100644 index 0000000..75b2827 Binary files /dev/null and b/public/assets2/image/resources/blo-single-1.jpg differ diff --git a/public/assets2/image/resources/blog-1.jpg b/public/assets2/image/resources/blog-1.jpg new file mode 100644 index 0000000..b6aacf8 Binary files /dev/null and b/public/assets2/image/resources/blog-1.jpg differ diff --git a/public/assets2/image/resources/blog-2.jpg b/public/assets2/image/resources/blog-2.jpg new file mode 100644 index 0000000..9a98076 Binary files /dev/null and b/public/assets2/image/resources/blog-2.jpg differ diff --git a/public/assets2/image/resources/blog-3.jpg b/public/assets2/image/resources/blog-3.jpg new file mode 100644 index 0000000..3cabbeb Binary files /dev/null and b/public/assets2/image/resources/blog-3.jpg differ diff --git a/public/assets2/image/resources/blog-4.jpg b/public/assets2/image/resources/blog-4.jpg new file mode 100644 index 0000000..0b13b0b Binary files /dev/null and b/public/assets2/image/resources/blog-4.jpg differ diff --git a/public/assets2/image/resources/blog-single-1.jpg b/public/assets2/image/resources/blog-single-1.jpg new file mode 100644 index 0000000..68d0087 Binary files /dev/null and b/public/assets2/image/resources/blog-single-1.jpg differ diff --git a/public/assets2/image/resources/blog-single-2.jpg b/public/assets2/image/resources/blog-single-2.jpg new file mode 100644 index 0000000..2eafd11 Binary files /dev/null and b/public/assets2/image/resources/blog-single-2.jpg differ diff --git a/public/assets2/image/resources/blog-single-3.jpg b/public/assets2/image/resources/blog-single-3.jpg new file mode 100644 index 0000000..555468c Binary files /dev/null and b/public/assets2/image/resources/blog-single-3.jpg differ diff --git a/public/assets2/image/resources/blog-single-4.jpg b/public/assets2/image/resources/blog-single-4.jpg new file mode 100644 index 0000000..0c2cc62 Binary files /dev/null and b/public/assets2/image/resources/blog-single-4.jpg differ diff --git a/public/assets2/image/resources/breadcrumb.jpg b/public/assets2/image/resources/breadcrumb.jpg new file mode 100644 index 0000000..ae83ac7 Binary files /dev/null and b/public/assets2/image/resources/breadcrumb.jpg differ diff --git a/public/assets2/image/resources/cov-19-information.jpg b/public/assets2/image/resources/cov-19-information.jpg new file mode 100644 index 0000000..0897afa Binary files /dev/null and b/public/assets2/image/resources/cov-19-information.jpg differ diff --git a/public/assets2/image/resources/explore-bg-2.jpg b/public/assets2/image/resources/explore-bg-2.jpg new file mode 100644 index 0000000..5249e7f Binary files /dev/null and b/public/assets2/image/resources/explore-bg-2.jpg differ diff --git a/public/assets2/image/resources/explore-bg.jpg b/public/assets2/image/resources/explore-bg.jpg new file mode 100644 index 0000000..65ba4dc Binary files /dev/null and b/public/assets2/image/resources/explore-bg.jpg differ diff --git a/public/assets2/image/resources/footer-bg1.png b/public/assets2/image/resources/footer-bg1.png new file mode 100644 index 0000000..4235e0d Binary files /dev/null and b/public/assets2/image/resources/footer-bg1.png differ diff --git a/public/assets2/image/resources/funfacts-home-4.png b/public/assets2/image/resources/funfacts-home-4.png new file mode 100644 index 0000000..8932919 Binary files /dev/null and b/public/assets2/image/resources/funfacts-home-4.png differ diff --git a/public/assets2/image/resources/header-top-bg.jpg b/public/assets2/image/resources/header-top-bg.jpg new file mode 100644 index 0000000..11e97c5 Binary files /dev/null and b/public/assets2/image/resources/header-top-bg.jpg differ diff --git a/public/assets2/image/resources/home-1-contact-1.png b/public/assets2/image/resources/home-1-contact-1.png new file mode 100644 index 0000000..0022256 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-1.png differ diff --git a/public/assets2/image/resources/home-1-contact-2.png b/public/assets2/image/resources/home-1-contact-2.png new file mode 100644 index 0000000..904a13e Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-2.png differ diff --git a/public/assets2/image/resources/home-1-contact-3.png b/public/assets2/image/resources/home-1-contact-3.png new file mode 100644 index 0000000..a74ee22 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-3.png differ diff --git a/public/assets2/image/resources/home-1-contact-4.png b/public/assets2/image/resources/home-1-contact-4.png new file mode 100644 index 0000000..088aea3 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-4.png differ diff --git a/public/assets2/image/resources/home-1-contact-5.png b/public/assets2/image/resources/home-1-contact-5.png new file mode 100644 index 0000000..aa3f964 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-5.png differ diff --git a/public/assets2/image/resources/home-1-contact-6.png b/public/assets2/image/resources/home-1-contact-6.png new file mode 100644 index 0000000..8708dbf Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-6.png differ diff --git a/public/assets2/image/resources/home-1-contact-bg.png b/public/assets2/image/resources/home-1-contact-bg.png new file mode 100644 index 0000000..207f009 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-bg.png differ diff --git a/public/assets2/image/resources/home-1-contact-bubbles-1.png b/public/assets2/image/resources/home-1-contact-bubbles-1.png new file mode 100644 index 0000000..7f775d6 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-bubbles-1.png differ diff --git a/public/assets2/image/resources/home-1-contact-bubbles-2.png b/public/assets2/image/resources/home-1-contact-bubbles-2.png new file mode 100644 index 0000000..ae43032 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-bubbles-2.png differ diff --git a/public/assets2/image/resources/home-1-contact-bubbles-3.png b/public/assets2/image/resources/home-1-contact-bubbles-3.png new file mode 100644 index 0000000..3a115f5 Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-bubbles-3.png differ diff --git a/public/assets2/image/resources/home-1-contact-bubbles-4.png b/public/assets2/image/resources/home-1-contact-bubbles-4.png new file mode 100644 index 0000000..c3a551c Binary files /dev/null and b/public/assets2/image/resources/home-1-contact-bubbles-4.png differ diff --git a/public/assets2/image/resources/home-3-about.png b/public/assets2/image/resources/home-3-about.png new file mode 100644 index 0000000..1891435 Binary files /dev/null and b/public/assets2/image/resources/home-3-about.png differ diff --git a/public/assets2/image/resources/home-3-blog-1.jpg b/public/assets2/image/resources/home-3-blog-1.jpg new file mode 100644 index 0000000..6d06528 Binary files /dev/null and b/public/assets2/image/resources/home-3-blog-1.jpg differ diff --git a/public/assets2/image/resources/home-3-blog-2.jpg b/public/assets2/image/resources/home-3-blog-2.jpg new file mode 100644 index 0000000..c9ebc75 Binary files /dev/null and b/public/assets2/image/resources/home-3-blog-2.jpg differ diff --git a/public/assets2/image/resources/home-3-blog-3.jpg b/public/assets2/image/resources/home-3-blog-3.jpg new file mode 100644 index 0000000..c2a8cf7 Binary files /dev/null and b/public/assets2/image/resources/home-3-blog-3.jpg differ diff --git a/public/assets2/image/resources/home-3-blog-4.jpg b/public/assets2/image/resources/home-3-blog-4.jpg new file mode 100644 index 0000000..ca5eab2 Binary files /dev/null and b/public/assets2/image/resources/home-3-blog-4.jpg differ diff --git a/public/assets2/image/resources/home-3-ongoing-ai.png b/public/assets2/image/resources/home-3-ongoing-ai.png new file mode 100644 index 0000000..40972f2 Binary files /dev/null and b/public/assets2/image/resources/home-3-ongoing-ai.png differ diff --git a/public/assets2/image/resources/home-3-symptoms.png b/public/assets2/image/resources/home-3-symptoms.png new file mode 100644 index 0000000..df2f2b7 Binary files /dev/null and b/public/assets2/image/resources/home-3-symptoms.png differ diff --git a/public/assets2/image/resources/home-4-about-1.jpg b/public/assets2/image/resources/home-4-about-1.jpg new file mode 100644 index 0000000..3112877 Binary files /dev/null and b/public/assets2/image/resources/home-4-about-1.jpg differ diff --git a/public/assets2/image/resources/home-4-about-2.jpg b/public/assets2/image/resources/home-4-about-2.jpg new file mode 100644 index 0000000..1a57f36 Binary files /dev/null and b/public/assets2/image/resources/home-4-about-2.jpg differ diff --git a/public/assets2/image/resources/home-4-faq.png b/public/assets2/image/resources/home-4-faq.png new file mode 100644 index 0000000..3de098e Binary files /dev/null and b/public/assets2/image/resources/home-4-faq.png differ diff --git a/public/assets2/image/resources/home-4-symptoms-1.png b/public/assets2/image/resources/home-4-symptoms-1.png new file mode 100644 index 0000000..49a867b Binary files /dev/null and b/public/assets2/image/resources/home-4-symptoms-1.png differ diff --git a/public/assets2/image/resources/home-4-symptoms-bg.jpg b/public/assets2/image/resources/home-4-symptoms-bg.jpg new file mode 100644 index 0000000..1da4832 Binary files /dev/null and b/public/assets2/image/resources/home-4-symptoms-bg.jpg differ diff --git a/public/assets2/image/resources/popular-post-1.jpg b/public/assets2/image/resources/popular-post-1.jpg new file mode 100644 index 0000000..748a74a Binary files /dev/null and b/public/assets2/image/resources/popular-post-1.jpg differ diff --git a/public/assets2/image/resources/prevention-single.jpg b/public/assets2/image/resources/prevention-single.jpg new file mode 100644 index 0000000..debaa9b Binary files /dev/null and b/public/assets2/image/resources/prevention-single.jpg differ diff --git a/public/assets2/image/resources/review-1.png b/public/assets2/image/resources/review-1.png new file mode 100644 index 0000000..23f8cc6 Binary files /dev/null and b/public/assets2/image/resources/review-1.png differ diff --git a/public/assets2/image/resources/review-2.png b/public/assets2/image/resources/review-2.png new file mode 100644 index 0000000..dd37757 Binary files /dev/null and b/public/assets2/image/resources/review-2.png differ diff --git a/public/assets2/image/resources/review-3.png b/public/assets2/image/resources/review-3.png new file mode 100644 index 0000000..5597c3f Binary files /dev/null and b/public/assets2/image/resources/review-3.png differ diff --git a/public/assets2/image/shop/product-1.jpg b/public/assets2/image/shop/product-1.jpg new file mode 100644 index 0000000..99dc10b Binary files /dev/null and b/public/assets2/image/shop/product-1.jpg differ diff --git a/public/assets2/image/shop/product-2.jpg b/public/assets2/image/shop/product-2.jpg new file mode 100644 index 0000000..8e1e12f Binary files /dev/null and b/public/assets2/image/shop/product-2.jpg differ diff --git a/public/assets2/image/shop/product-3.jpg b/public/assets2/image/shop/product-3.jpg new file mode 100644 index 0000000..c1ba163 Binary files /dev/null and b/public/assets2/image/shop/product-3.jpg differ diff --git a/public/assets2/image/shop/product-4.jpg b/public/assets2/image/shop/product-4.jpg new file mode 100644 index 0000000..a8f3f3d Binary files /dev/null and b/public/assets2/image/shop/product-4.jpg differ diff --git a/public/assets2/image/shop/product-5.jpg b/public/assets2/image/shop/product-5.jpg new file mode 100644 index 0000000..76b5e2f Binary files /dev/null and b/public/assets2/image/shop/product-5.jpg differ diff --git a/public/assets2/image/shop/product-6.jpg b/public/assets2/image/shop/product-6.jpg new file mode 100644 index 0000000..7600e4b Binary files /dev/null and b/public/assets2/image/shop/product-6.jpg differ diff --git a/public/assets2/image/shop/product-7.jpg b/public/assets2/image/shop/product-7.jpg new file mode 100644 index 0000000..42b840a Binary files /dev/null and b/public/assets2/image/shop/product-7.jpg differ diff --git a/public/assets2/image/shop/product-8.jpg b/public/assets2/image/shop/product-8.jpg new file mode 100644 index 0000000..41d2f3f Binary files /dev/null and b/public/assets2/image/shop/product-8.jpg differ diff --git a/public/assets2/image/svg/asleep.svg b/public/assets2/image/svg/asleep.svg new file mode 100644 index 0000000..767f000 --- /dev/null +++ b/public/assets2/image/svg/asleep.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/bacteria.svg b/public/assets2/image/svg/bacteria.svg new file mode 100644 index 0000000..4bd4271 --- /dev/null +++ b/public/assets2/image/svg/bacteria.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/breath.svg b/public/assets2/image/svg/breath.svg new file mode 100644 index 0000000..8229d3f --- /dev/null +++ b/public/assets2/image/svg/breath.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/china.svg b/public/assets2/image/svg/china.svg new file mode 100644 index 0000000..e400a45 --- /dev/null +++ b/public/assets2/image/svg/china.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/cough.svg b/public/assets2/image/svg/cough.svg new file mode 100644 index 0000000..2e69f87 --- /dev/null +++ b/public/assets2/image/svg/cough.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/diarrhea.svg b/public/assets2/image/svg/diarrhea.svg new file mode 100644 index 0000000..4b7aaed --- /dev/null +++ b/public/assets2/image/svg/diarrhea.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/faq-btn.svg b/public/assets2/image/svg/faq-btn.svg new file mode 100644 index 0000000..8a34248 --- /dev/null +++ b/public/assets2/image/svg/faq-btn.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/fever.svg b/public/assets2/image/svg/fever.svg new file mode 100644 index 0000000..1f9372e --- /dev/null +++ b/public/assets2/image/svg/fever.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/flag.svg b/public/assets2/image/svg/flag.svg new file mode 100644 index 0000000..d22c207 --- /dev/null +++ b/public/assets2/image/svg/flag.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/flower.svg b/public/assets2/image/svg/flower.svg new file mode 100644 index 0000000..ec63c97 --- /dev/null +++ b/public/assets2/image/svg/flower.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/handwashwashing.svg b/public/assets2/image/svg/handwashwashing.svg new file mode 100644 index 0000000..fa54c03 --- /dev/null +++ b/public/assets2/image/svg/handwashwashing.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/headache-symptoms.svg b/public/assets2/image/svg/headache-symptoms.svg new file mode 100644 index 0000000..fb73f89 --- /dev/null +++ b/public/assets2/image/svg/headache-symptoms.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/headache.svg b/public/assets2/image/svg/headache.svg new file mode 100644 index 0000000..914b630 --- /dev/null +++ b/public/assets2/image/svg/headache.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/home.svg b/public/assets2/image/svg/home.svg new file mode 100644 index 0000000..dc51141 --- /dev/null +++ b/public/assets2/image/svg/home.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/immunity.svg b/public/assets2/image/svg/immunity.svg new file mode 100644 index 0000000..823a2c2 --- /dev/null +++ b/public/assets2/image/svg/immunity.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/india.svg b/public/assets2/image/svg/india.svg new file mode 100644 index 0000000..a8234a3 --- /dev/null +++ b/public/assets2/image/svg/india.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/korea.svg b/public/assets2/image/svg/korea.svg new file mode 100644 index 0000000..b8df95c --- /dev/null +++ b/public/assets2/image/svg/korea.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/man-touch.svg b/public/assets2/image/svg/man-touch.svg new file mode 100644 index 0000000..9eb24d0 --- /dev/null +++ b/public/assets2/image/svg/man-touch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/man.svg b/public/assets2/image/svg/man.svg new file mode 100644 index 0000000..52a1bc9 --- /dev/null +++ b/public/assets2/image/svg/man.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/mask-2.svg b/public/assets2/image/svg/mask-2.svg new file mode 100644 index 0000000..0db32ce --- /dev/null +++ b/public/assets2/image/svg/mask-2.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/mask.svg b/public/assets2/image/svg/mask.svg new file mode 100644 index 0000000..38988b5 --- /dev/null +++ b/public/assets2/image/svg/mask.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/maskmedical.svg b/public/assets2/image/svg/maskmedical.svg new file mode 100644 index 0000000..02cfe78 --- /dev/null +++ b/public/assets2/image/svg/maskmedical.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/masksick.svg b/public/assets2/image/svg/masksick.svg new file mode 100644 index 0000000..f89747e --- /dev/null +++ b/public/assets2/image/svg/masksick.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/meeting.svg b/public/assets2/image/svg/meeting.svg new file mode 100644 index 0000000..c73db27 --- /dev/null +++ b/public/assets2/image/svg/meeting.svg @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/nausea.svg b/public/assets2/image/svg/nausea.svg new file mode 100644 index 0000000..d5707e2 --- /dev/null +++ b/public/assets2/image/svg/nausea.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/no.svg b/public/assets2/image/svg/no.svg new file mode 100644 index 0000000..5571355 --- /dev/null +++ b/public/assets2/image/svg/no.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/object-hygiene.svg b/public/assets2/image/svg/object-hygiene.svg new file mode 100644 index 0000000..521d83e --- /dev/null +++ b/public/assets2/image/svg/object-hygiene.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/partnership.svg b/public/assets2/image/svg/partnership.svg new file mode 100644 index 0000000..733160b --- /dev/null +++ b/public/assets2/image/svg/partnership.svg @@ -0,0 +1,2 @@ + + diff --git a/public/assets2/image/svg/patient.svg b/public/assets2/image/svg/patient.svg new file mode 100644 index 0000000..921c04e --- /dev/null +++ b/public/assets2/image/svg/patient.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/smartphone.svg b/public/assets2/image/svg/smartphone.svg new file mode 100644 index 0000000..a28446c --- /dev/null +++ b/public/assets2/image/svg/smartphone.svg @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/socialspreading.svg b/public/assets2/image/svg/socialspreading.svg new file mode 100644 index 0000000..e244b17 --- /dev/null +++ b/public/assets2/image/svg/socialspreading.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/sore-throat.svg b/public/assets2/image/svg/sore-throat.svg new file mode 100644 index 0000000..ff9ccd9 --- /dev/null +++ b/public/assets2/image/svg/sore-throat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/sorethroat.svg b/public/assets2/image/svg/sorethroat.svg new file mode 100644 index 0000000..c693c3f --- /dev/null +++ b/public/assets2/image/svg/sorethroat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/spain.svg b/public/assets2/image/svg/spain.svg new file mode 100644 index 0000000..9d6c52c --- /dev/null +++ b/public/assets2/image/svg/spain.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/spongewash.svg b/public/assets2/image/svg/spongewash.svg new file mode 100644 index 0000000..2f69fbd --- /dev/null +++ b/public/assets2/image/svg/spongewash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/sport-team.svg b/public/assets2/image/svg/sport-team.svg new file mode 100644 index 0000000..5c3f253 --- /dev/null +++ b/public/assets2/image/svg/sport-team.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/tombstones.svg b/public/assets2/image/svg/tombstones.svg new file mode 100644 index 0000000..e2c7c18 --- /dev/null +++ b/public/assets2/image/svg/tombstones.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets2/image/svg/virus-2.svg b/public/assets2/image/svg/virus-2.svg new file mode 100644 index 0000000..bb22eba --- /dev/null +++ b/public/assets2/image/svg/virus-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/virus.svg b/public/assets2/image/svg/virus.svg new file mode 100644 index 0000000..90d7c2f --- /dev/null +++ b/public/assets2/image/svg/virus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/image/svg/working-at-home.svg b/public/assets2/image/svg/working-at-home.svg new file mode 100644 index 0000000..f3ab35b --- /dev/null +++ b/public/assets2/image/svg/working-at-home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets2/js/SmoothScroll.min.js b/public/assets2/js/SmoothScroll.min.js new file mode 100644 index 0000000..25665b7 --- /dev/null +++ b/public/assets2/js/SmoothScroll.min.js @@ -0,0 +1,7 @@ +// SmoothScroll for websites v1.2.1 +// Licensed under the terms of the MIT license. + +// People involved +// - Balazs Galambosi (maintainer) +// - Michael Herf (Pulse Algorithm) +!function(){var e,t={frameRate:1000,animationTime:700,stepSize:85,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},a=t,r=!1,o=!1,n={x:0,y:0},i=!1,l=document.documentElement,c=[120,120,120],u={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36};a=t;function s(){a.keyboardSupport&&x("keydown",w)}function d(){if(document.body){var t=document.body,n=document.documentElement,c=window.innerHeight,u=t.scrollHeight;if(l=document.compatMode.indexOf("CSS")>=0?n:t,e=t,s(),i=!0,top!=self)o=!0;else if(u>c&&(t.offsetHeight<=c||n.offsetHeight<=c)&&(n.style.height="auto",l.offsetHeight<=c)){var d=document.createElement("div");d.style.clear="both",t.appendChild(d)}a.fixedBackground||r||(t.style.backgroundAttachment="scroll",n.style.backgroundAttachment="scroll")}}var f=[],p=!1,h=+new Date;function m(e,t,r,o){var i,l;if(o||(o=1e3),i=(i=t)>0?1:-1,l=(l=r)>0?1:-1,(n.x!==i||n.y!==l)&&(n.x=i,n.y=l,f=[],h=0),1!=a.accelerationMax){var c=+new Date-h;if(c1&&(u=Math.min(u,a.accelerationMax),t*=u,r*=u)}h=+new Date}if(f.push({x:t,y:r,lastX:t<0?.99:-.99,lastY:r<0?.99:-.99,start:+new Date}),!p){var s=e===document.body,d=function(n){for(var i=+new Date,l=0,c=0,u=0;u=a.animationTime,v=w?1:m/a.animationTime;a.pulseAlgorithm&&(v=T(v));var g=h.x*v-h.lastX>>0,b=h.y*v-h.lastY>>0;l+=g,c+=b,h.lastX+=g,h.lastY+=b,w&&(f.splice(u,1),u--)}s?window.scrollBy(l,c):(l&&(e.scrollLeft+=l),c&&(e.scrollTop+=c)),t||r||(f=[]),f.length?M(d,e,o/a.frameRate+1):p=!1};M(d,e,0),p=!0}}function w(t){var r=t.target,o=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey&&t.keyCode!==u.spacebar;if(/input|textarea|select|embed/i.test(r.nodeName)||r.isContentEditable||t.defaultPrevented||o)return!0;if(D(r,"button")&&t.keyCode===u.spacebar)return!0;var n=0,i=0,l=S(e),c=l.clientHeight;switch(l==document.body&&(c=window.innerHeight),t.keyCode){case u.up:i=-a.arrowScroll;break;case u.down:i=a.arrowScroll;break;case u.spacebar:i=-(t.shiftKey?1:-1)*c*.9;break;case u.pageup:i=.9*-c;break;case u.pagedown:i=.9*c;break;case u.home:i=-l.scrollTop;break;case u.end:var s=l.scrollHeight-l.scrollTop-c;i=s>0?s+10:0;break;case u.left:n=-a.arrowScroll;break;case u.right:n=a.arrowScroll;break;default:return!0}m(l,n,i),t.preventDefault()}var v={};setInterval(function(){v={}},1e4);var g,b,y=(g=0,function(e){return e.uniqueID||(e.uniqueID=g++)});function k(e,t){for(var a=e.length;a--;)v[y(e[a])]=t;return t}function S(e){var t=[],a=l.scrollHeight;do{var r=v[y(e)];if(r)return k(t,r);if(t.push(e),a===e.scrollHeight){if(!o||l.clientHeight+10=1?1:e<=0?0:(1==a.pulseNormalize&&(a.pulseNormalize/=C(1)),C(e))}var z=/chrome/i.test(window.navigator.userAgent);"onmousewheel"in document&&z&&(x("mousedown",function(t){e=t.target}),x("mousewheel",function(t){i||d();var r=t.target,o=S(r);if(!o||t.defaultPrevented||D(e,"embed")||D(r,"embed")&&/\.pdf/i.test(r.src))return!0;var n=t.wheelDeltaX||0,l=t.wheelDeltaY||0;if(n||l||(l=t.wheelDelta||0),!a.touchpadSupport&&function(e){if(e){e=Math.abs(e),c.push(e),c.shift(),clearTimeout(b);var t=c[0]==c[1]&&c[1]==c[2],a=H(c[0],120)&&H(c[1],120)&&H(c[2],120);return!(t||a)}}(l))return!0;Math.abs(n)>1.2&&(n*=a.stepSize/120),Math.abs(l)>1.2&&(l*=a.stepSize/120),m(o,-n,-l),t.preventDefault()}),x("load",d))}(); \ No newline at end of file diff --git a/public/assets2/js/TweenMax.min.js b/public/assets2/js/TweenMax.min.js new file mode 100644 index 0000000..d4d4910 --- /dev/null +++ b/public/assets2/js/TweenMax.min.js @@ -0,0 +1,17 @@ +/*! + * VERSION: 2.1.2 + * DATE: 2019-03-01 + * UPDATES AND DOCS AT: http://greensock.com + * + * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin + * + * @license Copyright (c) 2008-2019, 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("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c],b):e[c%e.length];delete a.cycle},f=function(a){if("function"==typeof a)return a;var b="object"==typeof a?a:{each:a},c=b.ease,d=b.from||0,e=b.base||0,f={},g=isNaN(d),h=b.axis,i={center:.5,end:1}[d]||0;return function(a,j,k){var l,m,n,o,p,q,r,s,t,u=(k||b).length,v=f[u];if(!v){if(t="auto"===b.grid?0:(b.grid||[1/0])[0],!t){for(r=-(1/0);r<(r=k[t++].getBoundingClientRect().left)&&u>t;);t--}for(v=f[u]=[],l=g?Math.min(t,u)*i-.5:d%t,m=g?u*i/t-.5:d/t|0,r=0,s=1/0,q=0;u>q;q++)n=q%t-l,o=m-(q/t|0),v[q]=p=h?Math.abs("y"===h?o:n):Math.sqrt(n*n+o*o),p>r&&(r=p),s>p&&(s=p);v.max=r-s,v.min=s,v.v=u=b.amount||b.each*(t>u?u:h?"y"===h?u/t:t:Math.max(t,u/t))||0,v.b=0>u?e-u:e}return u=(v[a]-v.min)/v.max,v.b+(c?c.getRatio(u):u)*v.v}},g=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=g.prototype.render},h=1e-8,i=c._internals,j=i.isSelector,k=i.isArray,l=g.prototype=c.to({},.1,{}),m=[];g.version="2.1.2",l.constructor=g,l.kill()._gc=!1,g.killTweensOf=g.killDelayedCallsTo=c.killTweensOf,g.getTweensOf=c.getTweensOf,g.lagSmoothing=c.lagSmoothing,g.ticker=c.ticker,g.render=c.render,g.distribute=f,l.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),c.prototype.invalidate.call(this)},l.updateTo=function(a,b){var d,e=this,f=e.ratio,g=e.vars.immediateRender||a.immediateRender;b&&e._startTime.998){var h=e._totalTime;e.render(0,!0,!1),e._initted=!1,e.render(h,!0,!1)}else if(e._initted=!1,e._init(),e._time>0||g)for(var i,j=1/(1-f),k=e._firstPT;k;)i=k.s+k.c,k.c*=j,k.s=i-k.c,k=k._next;return e},l.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,g,j,k,l,m,n,o,p=this,q=p._dirty?p.totalDuration():p._totalDuration,r=p._time,s=p._totalTime,t=p._cycle,u=p._duration,v=p._rawPrevTime;if(a>=q-h&&a>=0?(p._totalTime=q,p._cycle=p._repeat,p._yoyo&&0!==(1&p._cycle)?(p._time=0,p.ratio=p._ease._calcEnd?p._ease.getRatio(0):0):(p._time=u,p.ratio=p._ease._calcEnd?p._ease.getRatio(1):1),p._reversed||(e=!0,f="onComplete",d=d||p._timeline.autoRemoveChildren),0===u&&(p._initted||!p.vars.lazy||d)&&(p._startTime===p._timeline._duration&&(a=0),(0>v||0>=a&&a>=-h||v===h&&"isPause"!==p.data)&&v!==a&&(d=!0,v>h&&(f="onReverseComplete")),p._rawPrevTime=n=!b||a||v===a?a:h)):h>a?(p._totalTime=p._time=p._cycle=0,p.ratio=p._ease._calcEnd?p._ease.getRatio(0):0,(0!==s||0===u&&v>0)&&(f="onReverseComplete",e=p._reversed),a>-h?a=0:0>a&&(p._active=!1,0===u&&(p._initted||!p.vars.lazy||d)&&(v>=0&&(d=!0),p._rawPrevTime=n=!b||a||v===a?a:h)),p._initted||(d=!0)):(p._totalTime=p._time=a,0!==p._repeat&&(j=u+p._repeatDelay,p._cycle=p._totalTime/j>>0,0!==p._cycle&&p._cycle===p._totalTime/j&&a>=s&&p._cycle--,p._time=p._totalTime-p._cycle*j,p._yoyo&&0!==(1&p._cycle)&&(p._time=u-p._time,o=p._yoyoEase||p.vars.yoyoEase,o&&(p._yoyoEase||(o!==!0||p._initted?p._yoyoEase=o=o===!0?p._ease:o instanceof Ease?o:Ease.map[o]:(o=p.vars.ease,p._yoyoEase=o=o?o instanceof Ease?o:"function"==typeof o?new Ease(o,p.vars.easeParams):Ease.map[o]||c.defaultEase:c.defaultEase)),p.ratio=o?1-o.getRatio((u-p._time)/u):0)),p._time>u?p._time=u:p._time<0&&(p._time=0)),p._easeType&&!o?(k=p._time/u,l=p._easeType,m=p._easePower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),p.ratio=1===l?1-k:2===l?k:p._time/u<.5?k/2:1-k/2):o||(p.ratio=p._ease.getRatio(p._time/u))),r===p._time&&!d&&t===p._cycle)return void(s!==p._totalTime&&p._onUpdate&&(b||p._callback("onUpdate")));if(!p._initted){if(p._init(),!p._initted||p._gc)return;if(!d&&p._firstPT&&(p.vars.lazy!==!1&&p._duration||p.vars.lazy&&!p._duration))return p._time=r,p._totalTime=s,p._rawPrevTime=v,p._cycle=t,i.lazyTweens.push(p),void(p._lazy=[a,b]);!p._time||e||o?e&&this._ease._calcEnd&&!o&&(p.ratio=p._ease.getRatio(0===p._time?0:1)):p.ratio=p._ease.getRatio(p._time/u)}for(p._lazy!==!1&&(p._lazy=!1),p._active||!p._paused&&p._time!==r&&a>=0&&(p._active=!0),0===s&&(2===p._initted&&a>0&&p._init(),p._startAt&&(a>=0?p._startAt.render(a,!0,d):f||(f="_dummyGS")),p.vars.onStart&&(0!==p._totalTime||0===u)&&(b||p._callback("onStart"))),g=p._firstPT;g;)g.f?g.t[g.p](g.c*p.ratio+g.s):g.t[g.p]=g.c*p.ratio+g.s,g=g._next;p._onUpdate&&(0>a&&p._startAt&&p._startTime&&p._startAt.render(a,!0,d),b||(p._totalTime!==s||f)&&p._callback("onUpdate")),p._cycle!==t&&(b||p._gc||p.vars.onRepeat&&p._callback("onRepeat")),f&&(!p._gc||d)&&(0>a&&p._startAt&&!p._onUpdate&&p._startTime&&p._startAt.render(a,!0,d),e&&(p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!b&&p.vars[f]&&p._callback(f),0===u&&p._rawPrevTime===h&&n!==h&&(p._rawPrevTime=0))},g.to=function(a,b,c){return new g(a,b,c)},g.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new g(a,b,c)},g.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new g(a,b,d)},g.staggerTo=g.allTo=function(a,b,h,i,l,n,o){var p,q,r,s,t=[],u=f(h.stagger||i),v=h.cycle,w=(h.startAt||m).cycle;for(k(a)||("string"==typeof a&&(a=c.selector(a)||a),j(a)&&(a=d(a))),a=a||[],p=a.length-1,r=0;p>=r;r++){q={};for(s in h)q[s]=h[s];if(v&&(e(q,a,r),null!=q.duration&&(b=q.duration,delete q.duration)),w){w=q.startAt={};for(s in h.startAt)w[s]=h.startAt[s];e(q.startAt,a,r)}q.delay=u(r,a[r],a)+(q.delay||0),r===p&&l&&(q.onComplete=function(){h.onComplete&&h.onComplete.apply(h.onCompleteScope||this,arguments),l.apply(o||h.callbackScope||this,n||m)}),t[r]=new g(a[r],b,q)}return t},g.staggerFrom=g.allFrom=function(a,b,c,d,e,f,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,g.staggerTo(a,b,c,d,e,f,h)},g.staggerFromTo=g.allFromTo=function(a,b,c,d,e,f,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,g.staggerTo(a,b,d,e,f,h,i)},g.delayedCall=function(a,b,c,d,e){return new g(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},g.set=function(a,b){return new g(a,0,b)},g.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var n=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(n(f,b)),e=d.length),f=f._next;return d},o=g.getAllTweens=function(b){return n(a._rootTimeline,b).concat(n(a._rootFramesTimeline,b))};g.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=o(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},g.killChildTweensOf=function(a,b){if(null!=a){var e,f,h,l,m,n=i.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),j(a)&&(a=d(a)),k(a))for(l=a.length;--l>-1;)g.killChildTweensOf(a[l],b);else{e=[];for(h in n)for(f=n[h].target.parentNode;f;)f===a&&(e=e.concat(n[h].tweens)),f=f.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var p=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=o(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return g.pauseAll=function(a,b,c){p(!0,a,b,c)},g.resumeAll=function(a,b,c){p(!1,a,b,c)},g.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||h,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},l.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},l.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},l.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var c=this._duration,d=this._cycle,e=d*(c+this._repeatDelay);return a>c&&(a=c),this.totalTime(this._yoyo&&1&d?c-a+e:this._repeat?a+e:a,b)},l.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},l.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},l.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},l.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},l.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},g},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a);var c,d,e=this,f=e.vars;e._labels={},e.autoRemoveChildren=!!f.autoRemoveChildren,e.smoothChildTiming=!!f.smoothChildTiming,e._sortChildren=!0,e._onUpdate=f.onUpdate;for(d in f)c=f[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(f[d]=e._swapSelfInParams(c));i(f.tweens)&&e.add(f.tweens,0,f.align,f.stagger)},e=1e-8,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c],b):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=function(a,b,c,d){var e="immediateRender";return e in b||(b[e]=!(c&&c[e]===!1||d)),b},r=function(a){if("function"==typeof a)return a;var b="object"==typeof a?a:{each:a},c=b.ease,d=b.from||0,e=b.base||0,f={},g=isNaN(d),h=b.axis,i={center:.5,end:1}[d]||0;return function(a,j,k){var l,m,n,o,p,q,r,s,t,u=(k||b).length,v=f[u];if(!v){if(t="auto"===b.grid?0:(b.grid||[1/0])[0],!t){for(r=-(1/0);r<(r=k[t++].getBoundingClientRect().left)&&u>t;);t--}for(v=f[u]=[],l=g?Math.min(t,u)*i-.5:d%t,m=g?u*i/t-.5:d/t|0,r=0,s=1/0,q=0;u>q;q++)n=q%t-l,o=m-(q/t|0),v[q]=p=h?Math.abs("y"===h?o:n):Math.sqrt(n*n+o*o),p>r&&(r=p),s>p&&(s=p);v.max=r-s,v.min=s,v.v=u=b.amount||b.each*(t>u?u:h?"y"===h?u/t:t:Math.max(t,u/t))||0,v.b=0>u?e-u:e}return u=(v[a]-v.min)/v.max,v.b+(c?c.getRatio(u):u)*v.v}},s=d.prototype=new b;return d.version="2.1.2",d.distribute=r,s.constructor=d,s.kill()._gc=s._forcingPlayhead=s._hasPause=!1,s.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},s.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,q(this,d)),e)},s.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return e=q(this,e,d),b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},s.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),s=r(e.stagger||f),t=e.startAt,u=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),o=0;of&&(e=1),i.add(g,f)),g=h;return j.add(i,0),e&&i.totalDuration(),i},s.add=function(e,f,g,h){var j,k,l,m,n,o,p=this;if("number"!=typeof f&&(f=p._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),p.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return p._uncache(!0)}if("string"==typeof e)return p.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(p,e,f),(e._time||!e._duration&&e._initted)&&(j=(p.rawTime()-e._startTime)*e._timeScale,(!e._duration||Math.abs(Math.max(0,Math.min(e.totalDuration(),j)))-e._totalTime>1e-5)&&e.render(j,!1,!1)),(p._gc||p._time===p._duration)&&!p._paused&&p._duratione._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return p},s.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},s._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},s.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},s.insert=s.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},s.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},s.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},s.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},s.removeLabel=function(a){return delete this._labels[a],this},s.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},s._parseTimeOrLabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f="number"!=typeof b||c?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexOf("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseInt(b.charAt(g-1)+"1",10)*Number(b.substr(g+1)),b=g>1?this._parseTimeOrLabel(b.substr(0,g-1),0,d):f}return Number(b)+c},s.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},s.stop=function(){return this.paused(!0)},s.gotoAndPlay=function(a,b){return this.play(a,b)},s.gotoAndStop=function(a,b){return this.pause(a,b)},s.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n,o=this,p=o._time,q=o._dirty?o.totalDuration():o._totalDuration,r=o._startTime,s=o._timeScale,t=o._paused;if(p!==o._time&&(a+=o._time-p),a>=q-e&&a>=0)o._totalTime=o._time=q,o._reversed||o._hasPausedChild()||(f=!0,h="onComplete",i=!!o._timeline.autoRemoveChildren,0===o._duration&&(0>=a&&a>=-e||o._rawPrevTime<0||o._rawPrevTime===e)&&o._rawPrevTime!==a&&o._first&&(i=!0,o._rawPrevTime>e&&(h="onReverseComplete"))),o._rawPrevTime=o._duration||!b||a||o._rawPrevTime===a?a:e,a=q+1e-4;else if(e>a)if(o._totalTime=o._time=0,a>-e&&(a=0),(0!==p||0===o._duration&&o._rawPrevTime!==e&&(o._rawPrevTime>0||0>a&&o._rawPrevTime>=0))&&(h="onReverseComplete",f=o._reversed),0>a)o._active=!1,o._timeline.autoRemoveChildren&&o._reversed?(i=f=!0,h="onReverseComplete"):o._rawPrevTime>=0&&o._first&&(i=!0),o._rawPrevTime=a;else{if(o._rawPrevTime=o._duration||!b||a||o._rawPrevTime===a?a:e,0===a&&f)for(d=o._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,o._initted||(i=!0)}else{if(o._hasPause&&!o._forcingPlayhead&&!b){if(a>=p)for(d=o._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===o._rawPrevTime||(l=d),d=d._next;else for(d=o._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(o._time=o._totalTime=a=l._startTime,n=o._startTime+a/o._timeScale)}o._totalTime=o._time=o._rawPrevTime=a}if(o._time!==p&&o._first||c||i||l){if(o._initted||(o._initted=!0),o._active||!o._paused&&o._time!==p&&a>0&&(o._active=!0),0===p&&o.vars.onStart&&(0===o._time&&o._duration||b||o._callback("onStart")),m=o._time,m>=p)for(d=o._first;d&&(g=d._next,m===o._time&&(!o._paused||t));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&(o.pause(),o._pauseTime=n),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=o._last;d&&(g=d._prev,m===o._time&&(!o._paused||t));){if(d._active||d._startTime<=p&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>o._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,o.pause(),o._pauseTime=n}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}o._onUpdate&&(b||(j.length&&k(),o._callback("onUpdate"))),h&&(o._gc||(r===o._startTime||s!==o._timeScale)&&(0===o._time||q>=o.totalDuration())&&(f&&(j.length&&k(),o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!b&&o.vars[h]&&o._callback(h)))}},s._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},s.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},s.recent=function(){return this._recent},s._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},s.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},s._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},s.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},s.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},s._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},s.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},s.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},s.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this,f=e._last,g=999999999999;f;)b=f._prev,f._dirty&&f.totalDuration(),f._startTime>g&&e._sortChildren&&!f._paused&&!e._calculatingDuration?(e._calculatingDuration=1,e.add(f,f._startTime-f._delay),e._calculatingDuration=0):g=f._startTime,f._startTime<0&&!f._paused&&(d-=f._startTime,e._timeline.smoothChildTiming&&(e._startTime+=f._startTime/e._timeScale,e._time-=f._startTime,e._totalTime-=f._startTime,e._rawPrevTime-=f._startTime),e.shiftChildren(-f._startTime,!1,-9999999999),g=0),c=f._startTime+f._totalDuration/f._timeScale,c>d&&(d=c),f=b;e._duration=e._totalDuration=d,e._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},s.paused=function(b){if(b===!1&&this._paused)for(var c=this._first;c;)c._startTime===this._time&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},s.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},s.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},e=1e-8,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="2.1.2",k.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time===f.target.time()||d!==f.duration()||f.isFromTo||f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale).render(f.time(),!0,!0),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.isFromTo=1,d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o,p=this,q=p._time,r=p._dirty?p.totalDuration():p._totalDuration,s=p._duration,t=p._totalTime,u=p._startTime,v=p._timeScale,w=p._rawPrevTime,x=p._paused,y=p._cycle;if(q!==p._time&&(a+=p._time-q),a>=r-e&&a>=0)p._locked||(p._totalTime=r,p._cycle=p._repeat),p._reversed||p._hasPausedChild()||(f=!0,j="onComplete",k=!!p._timeline.autoRemoveChildren,0===p._duration&&(0>=a&&a>=-e||0>w||w===e)&&w!==a&&p._first&&(k=!0,w>e&&(j="onReverseComplete"))),p._rawPrevTime=p._duration||!b||a||p._rawPrevTime===a?a:e,p._yoyo&&1&p._cycle?p._time=a=0:(p._time=s,a=s+1e-4);else if(e>a)if(p._locked||(p._totalTime=p._cycle=0),p._time=0,a>-e&&(a=0),(0!==q||0===s&&w!==e&&(w>0||0>a&&w>=0)&&!p._locked)&&(j="onReverseComplete",f=p._reversed),0>a)p._active=!1,p._timeline.autoRemoveChildren&&p._reversed?(k=f=!0,j="onReverseComplete"):w>=0&&p._first&&(k=!0),p._rawPrevTime=a;else{if(p._rawPrevTime=s||!b||a||p._rawPrevTime===a?a:e,0===a&&f)for(d=p._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,p._initted||(k=!0)}else if(0===s&&0>w&&(k=!0),p._time=p._rawPrevTime=a,p._locked||(p._totalTime=a,0!==p._repeat&&(l=s+p._repeatDelay,p._cycle=p._totalTime/l>>0,p._cycle&&p._cycle===p._totalTime/l&&a>=t&&p._cycle--,p._time=p._totalTime-p._cycle*l,p._yoyo&&1&p._cycle&&(p._time=s-p._time),p._time>s?(p._time=s,a=s+1e-4):p._time<0?p._time=a=0:a=p._time)),p._hasPause&&!p._forcingPlayhead&&!b){if(a=p._time,a>=q||p._repeat&&y!==p._cycle)for(d=p._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===p._rawPrevTime||(m=d),d=d._next;else for(d=p._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&(o=p._startTime+m._startTime/p._timeScale,m._startTime0&&(p._active=!0),0===t&&p.vars.onStart&&(0===p._totalTime&&p._totalDuration||b||p._callback("onStart")),n=p._time,n>=q)for(d=p._first;d&&(i=d._next,n===p._time&&(!p._paused||x));)(d._active||d._startTime<=p._time&&!d._paused&&!d._gc)&&(m===d&&(p.pause(),p._pauseTime=o),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=p._last;d&&(i=d._prev,n===p._time&&(!p._paused||x));){if(d._active||d._startTime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>p._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,p.pause(),p._pauseTime=o}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}p._onUpdate&&(b||(g.length&&h(),p._callback("onUpdate"))),j&&(p._locked||p._gc||(u===p._startTime||v!==p._timeScale)&&(0===p._time||r>=p.totalDuration())&&(f&&(g.length&&h(),p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!b&&p.vars[j]&&p._callback(j)))},k.getActive=function(a,b,c){var d,e,f=[],g=this.getChildren(a||null==a,b||null==a,!!c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].timec&&(a=c),this.totalTime(this._yoyo&&1&d?c-a+e:this._repeat?a+e:a,b)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+e)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n]); +}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&bthis._s2&&ee&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&bb?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="2.1.0",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return b&&O.createElementNS?O.createElementNS(b,a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$="undefined"!=typeof window?window:O.defaultView||{getComputedStyle:function(){}},_=function(a){return $.getComputedStyle(a)},aa=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||_(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},ba=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e&&"lineHeight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineHeight"!==c||e)if("%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+aa(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,-1!==aa(l,"display").indexOf("flex")&&(m.position="absolute"),i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=ba(a,c,d,e,!0))}else i=_(a).lineHeight,a.style.lineHeight=d,h=parseFloat(_(a).lineHeight),a.style.lineHeight=i;return o&&(h/=100),n?-h:h},ca=S.calculateOffset=function(a,b,c){if("absolute"!==aa(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=aa(a,"margin"+d,c);return a["offset"+d]-(ba(a,b,parseFloat(e),e.replace(w,""))||0)},da=function(a,b){var c,d,e,f={};if(b=b||_(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Ea===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Da===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Sa(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Ga&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},ea=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ca(a,g),void 0!==j[g]&&(h=new ta(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},fa={width:["Left","Right"],height:["Top","Bottom"]},ga=["marginLeft","marginRight","marginTop","marginBottom"],ha=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||_(a))[b]||0;if(a.getCTM&&Pa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=fa[b],f=e.length;for(c=c||_(a,null);--f>-1;)d-=parseFloat(aa(a,"padding"+e[f],c,!0))||0,d-=parseFloat(aa(a,"border"+e[f]+"Width",c,!0))||0;return d},ia=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ka=function(a,b){"function"==typeof a&&(a=a(r,q));var c="string"==typeof a&&"="===a.charAt(1);return"string"==typeof a&&"v"===a.charAt(a.length-2)&&(a=(c?a.substr(0,2):0)+window["inner"+("vh"===a.substr(-2)?"Height":"Width")]*(parseFloat(c?a.substr(2):a)/100)),null==a?b:c?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},la=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},ma={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},na=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},oa=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),ma[a])c=ma[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(c[3])),c[0]=na(g+1/3,d,e),c[1]=na(g,d,e),c[2]=na(g-1/3,d,e);else c=a.match(s)||ma.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=ma.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},pa=function(a,b){var c,d,e,f=a.match(qa)||[],g=0,h="";if(!f.length)return a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},ta=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=i.r(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod.call(this._tween,h.rotation,this.t,this._tween):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new ta(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ua||f.push(this.n),this.r=j?"function"==typeof j?j:Math.round:j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),va=function(a,b,c,d,e,f){var g=new ua(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},wa=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ua(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&qa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(-1!==(d+c).indexOf("rgb")||-1!==(d+c).indexOf("hsl")?(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" ")):(D=D.join(" ").split(",").join(", ").split(" "),E=E.join(" ").split(",").join(", ").split(" ")),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,qa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m]+"",x=parseFloat(p),x||0===x)h.appendXtra("",x,ja(u,x),u.replace(t,""),G&&-1!==u.indexOf("px")?Math.round:!1,!0);else if(e&&qa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,z=u,p=oa(p,C),u=oa(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(z.substr(0,z.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ja(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ja(u[1],p[1]),"%,",!1).appendXtra("",p[2],ja(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(z.substr(0,z.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",Math.round,!0).appendXtra("",p[1],u[1]-p[1],",",Math.round).appendXtra("",p[2],u[2]-p[2],y?",":B,Math.round),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),qa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+xa]=0,j["xs"+xa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ua(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var ya=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||ra(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.allowFunc=b.allowFunc,this.pr=b.priority||0},za=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return wa(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(aa(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){za(a,{parser:function(a,d,e,f,g,h,i){var j=new ua(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Ba,Ca="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Da=Z("transform"),Ea=X+"transform",Fa=Z("transformOrigin"),Ga=null!==Z("perspective"),Ha=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Ga?g.defaultForce3D||"auto":!1},Ia=_gsScope.SVGElement,Ja=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ka=O.documentElement||{},La=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ja("svg",Ka),b=Ja("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Fa]="50% 50%",b.style[Da]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Ga),Ka.removeChild(a)),d}(),Ma=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Ra(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ia(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Qa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Na=function(a){var b,c=P("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ka.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Na}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ka.removeChild(c),this.style.cssText=f,b},Oa=function(a){try{return a.getBBox()}catch(b){return Na.call(a,!0)}},Pa=function(a){return!(!Ia||!a.getCTM||a.parentNode&&!a.ownerSVGElement||!Oa(a))},Qa=[1,0,0,1,0,0],Ra=function(a,b){var c,d,e,f,g,h,i,j=a._gsTransform||new Ha,k=1e5,l=a.style;if(Da?d=aa(a,Ea,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),j.x||0,j.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,Da&&c&&!a.offsetParent&&(f=l.display,l.display="block",i=a.parentNode,i&&a.offsetParent||(g=1,h=a.nextSibling,Ka.appendChild(a)),d=aa(a,Ea,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?l.display=f:Wa(l,"display"),g&&(h?i.insertBefore(a,h):i?i.appendChild(a):Ka.removeChild(a))),(j.svg||a.getCTM&&Pa(a))&&(c&&-1!==(l[Da]+"").indexOf("matrix")&&(d=l[Da],c=0),e=a.getAttribute("transform"),c&&e&&(e=a.transform.baseVal.consolidate().matrix,d="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")",c=0)),c)return Qa;for(e=(d||"").match(s)||[],xa=e.length;--xa>-1;)f=Number(e[xa]),e[xa]=(g=f-(f|=0))?(g*k+(0>g?-.5:.5)|0)/k+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Sa=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ha:new Ha,n=m.scaleX<0,o=2e-5,p=1e5,q=Ga?parseFloat(aa(a,Fa,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Pa(a)),m.svg&&(Ma(a,aa(a,Fa,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Ba=g.useSVGTransformAttr||La),f=Ra(a),f!==Qa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(N),w=Math.sin(N),s=x*v+y*w,t=B*v+C*w,u=F*v+G*w,y=y*v-x*w,C=C*v-B*w,G=G*v-F*w,x=s,B=t,F=u),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),N=Math.atan2(B,C),m.scaleX=(Math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+D*D)*p+.5|0)/p,m.scaleZ=(Math.sqrt(F*F+G*G+H*H)*p+.5|0)/p,x/=m.scaleX,B/=m.scaleY,y/=m.scaleX,C/=m.scaleY,Math.abs(N)>o?(m.skewX=N*L,B=0,"simple"!==m.skewType&&(m.scaleY*=1/Math.cos(N))):m.skewX=0,m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Ga||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Ga&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180)),m.zOrigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Ba&&a.style[Da]?b.delayedCall(.001,function(){Wa(a.style,Da)}):!Ba&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Ta=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),xa=0;4>xa;xa++)z=ga[xa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):ba(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>xa?-d.ieOffsetX:-d.ieOffsetY:2>xa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===xa||2===xa?1:B)))+"px"}}},Ua=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Ba&&L||!Ga)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Ba&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Ba?this.t.setAttribute("transform","matrix("+u):A[Da]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Da]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Da]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Da]=u};j=Ha.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0, +j.scaleX=j.scaleY=j.scaleZ=1,za("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j=i.scale&&"function"==typeof i.scale?i.scale:0;j&&(i.scale=j(r,a));var k,l,m,n,o,p,s,t,u,v=a._gsTransform,w=a.style,x=1e-6,y=Ca.length,z=i,A={},B="transformOrigin",C=Sa(a,e,!0,z.parseTransform),D=z.transform&&("function"==typeof z.transform?z.transform(r,q):z.transform);if(C.skewType=z.skewType||C.skewType||g.defaultSkewType,d._transform=C,"rotationZ"in z&&(z.rotation=z.rotationZ),D&&"string"==typeof D&&Da)l=Q.style,l[Da]=D,l.display="block",l.position="absolute",-1!==D.indexOf("%")&&(l.width=aa(a,"width"),l.height=aa(a,"height")),O.body.appendChild(Q),k=Sa(Q,null,!1),"simple"===C.skewType&&(k.scaleY*=Math.cos(k.skewX*K)),C.svg&&(p=C.xOrigin,s=C.yOrigin,k.x-=C.xOffset,k.y-=C.yOffset,(z.transformOrigin||z.svgOrigin)&&(D={},Ma(a,ia(z.transformOrigin),D,z.svgOrigin,z.smoothOrigin,!0),p=D.xOrigin,s=D.yOrigin,k.x-=D.xOffset-C.xOffset,k.y-=D.yOffset-C.yOffset),(p||s)&&(t=Ra(Q,!0),k.x-=p-(p*t[0]+s*t[2]),k.y-=s-(p*t[1]+s*t[3]))),O.body.removeChild(Q),k.perspective||(k.perspective=C.perspective),null!=z.xPercent&&(k.xPercent=ka(z.xPercent,C.xPercent)),null!=z.yPercent&&(k.yPercent=ka(z.yPercent,C.yPercent));else if("object"==typeof z){if(k={scaleX:ka(null!=z.scaleX?z.scaleX:z.scale,C.scaleX),scaleY:ka(null!=z.scaleY?z.scaleY:z.scale,C.scaleY),scaleZ:ka(z.scaleZ,C.scaleZ),x:ka(z.x,C.x),y:ka(z.y,C.y),z:ka(z.z,C.z),xPercent:ka(z.xPercent,C.xPercent),yPercent:ka(z.yPercent,C.yPercent),perspective:ka(z.transformPerspective,C.perspective)},o=z.directionalRotation,null!=o)if("object"==typeof o)for(l in o)z[l]=o[l];else z.rotation=o;"string"==typeof z.x&&-1!==z.x.indexOf("%")&&(k.x=0,k.xPercent=ka(z.x,C.xPercent)),"string"==typeof z.y&&-1!==z.y.indexOf("%")&&(k.y=0,k.yPercent=ka(z.y,C.yPercent)),k.rotation=la("rotation"in z?z.rotation:"shortRotation"in z?z.shortRotation+"_short":C.rotation,C.rotation,"rotation",A),Ga&&(k.rotationX=la("rotationX"in z?z.rotationX:"shortRotationX"in z?z.shortRotationX+"_short":C.rotationX||0,C.rotationX,"rotationX",A),k.rotationY=la("rotationY"in z?z.rotationY:"shortRotationY"in z?z.shortRotationY+"_short":C.rotationY||0,C.rotationY,"rotationY",A)),k.skewX=la(z.skewX,C.skewX),k.skewY=la(z.skewY,C.skewY)}for(Ga&&null!=z.force3D&&(C.force3D=z.force3D,n=!0),m=C.force3D||C.z||C.rotationX||C.rotationY||k.z||k.rotationX||k.rotationY||k.perspective,m||null==z.scale||(k.scaleZ=1);--y>-1;)u=Ca[y],D=k[u]-C[u],(D>x||-x>D||null!=z[u]||null!=M[u])&&(n=!0,f=new ua(C,u,C[u],D,f),u in A&&(f.e=A[u]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return D="function"==typeof z.transformOrigin?z.transformOrigin(r,q):z.transformOrigin,C.svg&&(D||z.svgOrigin)&&(p=C.xOffset,s=C.yOffset,Ma(a,ia(D),k,z.svgOrigin,z.smoothOrigin),f=va(C,"xOrigin",(v?C:k).xOrigin,k.xOrigin,f,B),f=va(C,"yOrigin",(v?C:k).yOrigin,k.yOrigin,f,B),(p!==C.xOffset||s!==C.yOffset)&&(f=va(C,"xOffset",v?p:C.xOffset,C.xOffset,f,B),f=va(C,"yOffset",v?s:C.yOffset,C.yOffset,f,B)),D="0px 0px"),(D||Ga&&m&&C.zOrigin)&&(Da?(n=!0,u=Fa,D||(D=(aa(a,u,e,!1,"50% 50%")+"").split(" "),D=D[0]+" "+D[1]+" "+C.zOrigin+"px"),D+="",f=new ua(w,u,0,0,f,-1,B),f.b=w[u],f.plugin=h,Ga?(l=C.zOrigin,D=D.split(" "),C.zOrigin=(D.length>2?parseFloat(D[2]):l)||0,f.xs0=f.e=D[0]+" "+(D[1]||"50%")+" 0px",f=new ua(C,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=C.zOrigin):f.xs0=f.e=D):ia(D+"",C)),n&&(d._transformType=C.svg&&Ba||!m&&3!==this._transformType?2:3),j&&(i.scale=j),f},allowFunc:!0,prefix:!0}),za("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),za("clipPath",{defaultValue:"inset(0px)",prefix:!0,multi:!0,formatter:ra("inset(0px 0px 0px 0px)",!1,!0)}),za("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;jp?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=ba(a,"borderLeft",o,t),w=ba(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=ba(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=wa(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:ra("0px 0px 0px 0px",!1,!0)}),za("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return wa(a.style,c,this.format(aa(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:ra("0px 0px",!1,!0)}),za("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||_(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=aa(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ia}),za("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="","co"===a.substr(0,2)?a:ia(-1===a.indexOf(" ")?a+" "+a:a)}}),za("perspective",{defaultValue:"0px",prefix:!0}),za("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),za("transformStyle",{prefix:!0}),za("backfaceVisibility",{prefix:!0}),za("userSelect",{prefix:!0}),za("margin",{parser:sa("marginTop,marginRight,marginBottom,marginLeft")}),za("padding",{parser:sa("paddingTop,paddingRight,paddingBottom,paddingLeft")}),za("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(aa(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),za("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),za("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),za("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=aa(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/ba(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+aa(a,"borderTopStyle",e,!1,"solid")+" "+aa(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(qa)||["#000"])[0]}}),za("borderWidth",{parser:sa("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),za("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ua(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Va=function(a){var b,c=this.t,d=c.filter||aa(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!aa(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};za("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(aa(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===aa(a,"visibility",e)&&0!==b&&(h=0),U?f=new ua(i,"opacity",h,b-h,f):(f=new ua(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Va),j&&(f=new ua(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Wa=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Xa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Wa(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};za("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ua(a,d,0,0,g,2),g.setRatio=Xa,g.pr=-11,c=!0,g.b=o,k=da(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=ea(a,k,da(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Ya=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Fa:i[c].p),Wa(g,c);e&&(Wa(g,Da),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(za("clearProps",{parser:function(a,b,d,e,f){return f=new ua(a,d,0,0,f,2),f.setRatio=Ya,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),xa=j.length;xa--;)Aa(j[xa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=_(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=aa(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=da(a,e),A.cssText=t+";"+b,n=ea(a,n,da(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Da?m&&(l=!0,""===A.zIndex&&(w=aa(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ua(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Da?Ua:Ta,x.data=this._transform||Sa(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],h=i[g],"function"!=typeof n||h&&h.allowFunc||(n=n(r,q)),h)c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._propLookup[g]=this._addTween.call(this._tween,a.style,"setProperty",_(a).getPropertyValue(g)+"",n+"",g,!1,g);continue}m=aa(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=oa(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=wa(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=wa(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ha(a,g,e),o="px"):"left"===g||"top"===g?(j=ca(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineHeight"===g)&&(l||0===l)&&j&&(j=ba(a,g,j,o),"%"===p?(j/=ba(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=ba(a,g,1,p):"px"!==p&&(l=ba(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ua(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ua(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=e.r(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)$a(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(da(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||$a(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,$a(a,k,m),i.render(c,!0,!0),$a(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=ea(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){var b=1>a?Math.pow(10,(a+"").length-2):1;return function(c){return(Math.round(c/a)*a*b|0)/b}},c=function(a,b){for(;a;)a.f||a.blob||(a.m=b||Math.round),a=a._next},d=a.prototype;d._onInitAllProps=function(){var a,d,e,f,g=this._tween,h=g.vars.roundProps,i={},j=g._propLookup.roundProps;if("object"!=typeof h||h.push)for("string"==typeof h&&(h=h.split(",")),e=h.length;--e>-1;)i[h[e]]=Math.round;else for(f in h)i[f]=b(h[f]);for(f in i)for(a=g._firstPT;a;)d=a._next,a.pg?a.t._mod(i):a.n===f&&(2===a.f&&a.t?c(a.t._firstPT,i[f]):(this._add(a.t,f,a.s,a.c,i[f]),d&&(d._prev=a._prev),a._prev?a._prev._next=d:g._firstPT===a&&(g._firstPT=d),a._next=a._prev=null,g._propLookup[f]=j)),a=d;return!1},d._add=function(a,b,c,d,e){this._addTween(a,b,c,c+d,b,e||Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e,f=_gsScope.GreenSockGlobals||_gsScope,g=f.com.greensock,h=2*Math.PI,i=Math.PI/2,j=g._class,k=function(b,c){var d=j("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},l=a.register||function(){},m=function(a,b,c,d,e){var f=j("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return l(f,a),f},n=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},o=function(b,c){var d=j("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},p=m("Back",o("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),o("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),o("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),q=j("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),r=q.prototype=new a;return r.constructor=q,r.getRatio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcEnd?1===a?0:1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},q.ease=new q(.7,.7),r.config=q.config=function(a,b,c){return new q(a,b,c)},b=j("easing.SteppedEase",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),r=b.prototype=new a,r.constructor=b,r.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},r.config=b.config=function(a,c){return new b(a,c)},c=j("easing.ExpoScaleEase",function(a,b,c){this._p1=Math.log(b/a),this._p2=b-a,this._p3=a,this._ease=c},!0),r=c.prototype=new a,r.constructor=c,r.getRatio=function(a){return this._ease&&(a=this._ease.getRatio(a)),(this._p3*Math.exp(this._p1*a)-this._p3)/this._p2},r.config=c.config=function(a,b,d){return new c(a,b,d)},d=j("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),m=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--m>-1;)c=o?Math.random():1/l*m,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:m%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new n(1,1,null),m=l;--m>-1;)g=j[m],h=new n(g.x,g.y,h);this._prev=new n(0,0,0!==h.t?h:h.next)},!0),r=d.prototype=new a,r.constructor=d,r.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},r.config=function(a){return new d(a)},d.ease=new d,m("Bounce",k("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),k("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),k("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),m("Circ",k("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),k("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),k("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),e=function(b,c,d){var e=j("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},m("Elastic",e("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),e("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),e("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),m("Expo",k("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),k("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),k("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),m("Sine",k("SineOut",function(a){return Math.sin(a*i)}),k("SineIn",function(a){return-Math.cos(a*i)+1}),k("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),j("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),l(f.SlowMo,"SlowMo","ease,"),l(d,"RoughEase","ease,"),l(b,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a,f=e[b];if(f)return"undefined"!=typeof module&&module.exports&&(module.exports=f),f;var g,h,i,j,k,l=function(a){var b,c=a.split("."),d=e;for(b=0;b-1;)(k=r[f[p]]||new s(f[p],[])).gsClass?(i[p]=k.gsClass,q--):j&&k.sc.push(this);if(0===q&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=l(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p-1;)for(f=i[j],e=d?u("easing."+f,null,!0):m.easing[f]||{},g=k.length;--g>-1;)h=k[g],x[f+"."+h]=x[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(i=w.prototype,i._calcEnd=!1,i.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},g=["Linear","Quad","Cubic","Quart","Quint,Strong"],h=g.length;--h>-1;)i=g[h]+",Power"+h,y(new w(null,null,1,h),i,"easeOut",!0),y(new w(null,null,2,h),i,"easeIn"+(0===h?",easeNone":"")),y(new w(null,null,3,h),i,"easeInOut");x.linear=m.easing.Linear.easeIn,x.swing=m.easing.Quad.easeInOut;var z=u("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});i=z.prototype,i.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],i=0;for(this!==j||k||j.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===i&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},i.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var A=a.requestAnimationFrame,B=a.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},D=C();for(g=["ms","moz","webkit","o"],h=g.length;--h>-1&&!A;)A=a[g[h]+"RequestAnimationFrame"],B=a[g[h]+"CancelAnimationFrame"]||a[g[h]+"CancelRequestAnimationFrame"];u("Ticker",function(a,b){var c,e,f,g,h,i=this,l=C(),m=b!==!1&&A?"auto":!1,o=500,q=33,r="tick",s=function(a){var b,d,j=C()-D;j>o&&(l+=j-q),D+=j,i.time=(D-l)/1e3,b=i.time-h,(!c||b>0||a===!0)&&(i.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&i.dispatchEvent(r)};z.call(i),i.time=i.frame=0,i.tick=function(){s(!0)},i.lagSmoothing=function(a,b){return arguments.length?(o=a||1/n,void(q=Math.min(b,o,0))):1/n>o},i.sleep=function(){null!=f&&(m&&B?B(f):clearTimeout(f),e=p,f=null,i===j&&(k=!1))},i.wake=function(a){null!==f?i.sleep():a?l+=-D+(D=C()):i.frame>10&&(D=C()-o+5),e=0===c?p:m&&A?A:function(a){return setTimeout(a,1e3*(h-i.time)+1|0)},i===j&&(k=!0),s(2)},i.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void i.wake()):c},i.useRAF=function(a){return arguments.length?(i.sleep(),m=a,void i.fps(c)):m},i.fps(a),setTimeout(function(){"auto"===m&&i.frame<5&&"hidden"!==(d||{}).visibilityState&&i.useRAF(!1)},1500)}),i=m.Ticker.prototype=new m.events.EventDispatcher,i.constructor=m.Ticker;var E=u("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=!!b.immediateRender,this.data=b.data,this._reversed=!!b.reversed,Z){k||j.wake();var c=this.vars.useFrames?Y:Z;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});j=E.ticker=new m.Ticker,i=E.prototype,i._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var F=function(){k&&C()-D>2e3&&("hidden"!==(d||{}).visibilityState||!j.lagSmoothing())&&j.wake();var a=setTimeout(F,2e3);a.unref&&a.unref()};F(),i.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},i.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},i.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},i.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},i.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},i.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},i.render=function(a,b,c){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},i.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},i._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},i.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=q(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},i.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},i.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},i.totalTime=function(a,b,c){if(k||j.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(K.length&&_(),this.render(a,b,!1),K.length&&_())}return this},i.progress=i.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio; +},i.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},i.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(a){if(!arguments.length)return this._timeScale;var b,c;for(a=a||n,this._timeline&&this._timeline.smoothChildTiming&&(b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime(),this._startTime=c-(c-this._startTime)*this._timeScale/a),this._timeScale=a,c=this.timeline;c&&c.timeline;)c._dirty=!0,c.totalDuration(),c=c.timeline;return this},i.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(k||a||j.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var G=u("core.SimpleTimeline",function(a){E.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});i=G.prototype=new E,i.constructor=G,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=this.rawTime()-(a._timeline.rawTime()-a._pauseTime)),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},i._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},i.rawTime=function(){return k||j.wake(),this._totalTime};var H=u("TweenLite",function(b,c,d){if(E.call(this,c,d),this.render=H.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:H.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?X[H.defaultOverwrite]:"number"==typeof i?i>>0:X[i],(h||b instanceof Array||b.push&&q(b))&&"number"!=typeof b[0])for(this._targets=g=o(b),this._propLookup=[],this._siblings=[],e=0;e1&&ca(f,this,null,1,this._siblings[e])):(f=g[e--]=H.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=aa(b,this,!1),1===i&&this._siblings.length>1&&ca(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-n,this.render(Math.min(0,-this._delay)))},!0),I=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},J=function(a,b){var c,d={};for(c in a)W[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!T[c]||T[c]&&T[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};i=H.prototype=new E,i.constructor=H,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,H.version="2.1.2",H.defaultEase=i._ease=new w(null,null,1,1),H.defaultOverwrite="auto",H.ticker=j,H.autoSleep=120,H.lagSmoothing=function(a,b){j.lagSmoothing(a,b)},H.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(H.selector=c,c(b)):(d||(d=a.document),d?d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b):b)};var K=[],L={},M=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,O=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a&&null!=this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m.call(this._tween,b,this._target||c.t,this._tween):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},P=function(a){return(1e3*a|0)/1e3+""},Q=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(M)||[],f=b.match(M)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:P}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=O,N.test(b)&&(l.end=null),l},R=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=Q(m,n?parseFloat(o.s)+o.c+(o.s+"").replace(/[0-9\-\.]/g,""):d,h||H.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},S=H._internals={isArray:q,isSelector:I,lazyTweens:K,blobDif:Q},T=H._plugins={},U=S.tweenLookup={},V=0,W=S.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},X={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},Y=E._rootFramesTimeline=new G,Z=E._rootTimeline=new G,$=30,_=S.lazyRender=function(){var a,b,c=K.length;for(L={},a=0;c>a;a++)b=K[a],b&&b._lazy!==!1&&(b.render(b._lazy[0],b._lazy[1],!0),b._lazy=!1);K.length=0};Z._startTime=j.time,Y._startTime=j.frame,Z._active=Y._active=!0,setTimeout(_,1),E._updateRoot=H.render=function(){var a,b,c;if(K.length&&_(),Z.render((j.time-Z._startTime)*Z._timeScale,!1,!1),Y.render((j.frame-Y._startTime)*Y._timeScale,!1,!1),K.length&&_(),j.frame>=$){$=j.frame+(parseInt(H.autoSleep,10)||120);for(c in U){for(b=U[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete U[c]}if(c=Z._first,(!c||c._paused)&&H.autoSleep&&!Y._first&&1===j._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||j.sleep()}}},j.addEventListener("tick",E._updateRoot);var aa=function(a,b,c){var d,e,f=a._gsTweenID;if(U[f||(a._gsTweenID=f="t"+V++)]||(U[f]={target:a,tweens:[]}),b&&(d=U[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return U[f].tweens},ba=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=H.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},ca=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+n,l=[],m=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||da(b,0,o),0===da(h,j,o)&&(l[m++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2*n||(l[m++]=h)));for(f=m;--f>-1;)if(h=l[f],i=h._firstPT,2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted&&i){if(2!==d&&!ba(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},da=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*n>f-b?n:(f+=a.totalDuration()/a._timeScale/e)>b+n?0:f-b-n};i._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease,l=this._startAt;if(g.startAt){l&&(l.render(-1,!0),l.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.data="isStart",e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,e.onUpdate=g.onUpdate,e.onUpdateParams=g.onUpdateParams,e.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=H.to(this.target||{},0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(l)l.render(-1,!0),l.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)W[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=H.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof w?k:"function"==typeof k?new w(k,g.easeParams):x[k]||H.defaultEase:H.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&H._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},i._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;L[b._gsTweenID]&&_(),this.vars.css||b.style&&b!==a&&b.nodeType&&T.css&&this.vars.autoCSS!==!1&&J(this.vars,b);for(g in this.vars)if(l=this.vars[g],W[g])l&&(l instanceof Array||l.push&&q(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(T[g]&&(j=new T[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=R.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&ca(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[b._gsTweenID]=!0),i)},i.render=function(a,b,c){var d,e,f,g,h=this,i=h._time,j=h._duration,k=h._rawPrevTime;if(a>=j-n&&a>=0)h._totalTime=h._time=j,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1,h._reversed||(d=!0,e="onComplete",c=c||h._timeline.autoRemoveChildren),0===j&&(h._initted||!h.vars.lazy||c)&&(h._startTime===h._timeline._duration&&(a=0),(0>k||0>=a&&a>=-n||k===n&&"isPause"!==h.data)&&k!==a&&(c=!0,k>n&&(e="onReverseComplete")),h._rawPrevTime=g=!b||a||k===a?a:n);else if(n>a)h._totalTime=h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==i||0===j&&k>0)&&(e="onReverseComplete",d=h._reversed),a>-n?a=0:0>a&&(h._active=!1,0===j&&(h._initted||!h.vars.lazy||c)&&(k>=0&&(k!==n||"isPause"!==h.data)&&(c=!0),h._rawPrevTime=g=!b||a||k===a?a:n)),(!h._initted||h._startAt&&h._startAt.progress())&&(c=!0);else if(h._totalTime=h._time=a,h._easeType){var l=a/j,m=h._easeType,o=h._easePower;(1===m||3===m&&l>=.5)&&(l=1-l),3===m&&(l*=2),1===o?l*=l:2===o?l*=l*l:3===o?l*=l*l*l:4===o&&(l*=l*l*l*l),h.ratio=1===m?1-l:2===m?l:.5>a/j?l/2:1-l/2}else h.ratio=h._ease.getRatio(a/j);if(h._time!==i||c){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!c&&h._firstPT&&(h.vars.lazy!==!1&&h._duration||h.vars.lazy&&!h._duration))return h._time=h._totalTime=i,h._rawPrevTime=k,K.push(h),void(h._lazy=[a,b]);h._time&&!d?h.ratio=h._ease.getRatio(h._time/j):d&&h._ease._calcEnd&&(h.ratio=h._ease.getRatio(0===h._time?0:1))}for(h._lazy!==!1&&(h._lazy=!1),h._active||!h._paused&&h._time!==i&&a>=0&&(h._active=!0),0===i&&(h._startAt&&(a>=0?h._startAt.render(a,!0,c):e||(e="_dummyGS")),h.vars.onStart&&(0!==h._time||0===j)&&(b||h._callback("onStart"))),f=h._firstPT;f;)f.f?f.t[f.p](f.c*h.ratio+f.s):f.t[f.p]=f.c*h.ratio+f.s,f=f._next;h._onUpdate&&(0>a&&h._startAt&&a!==-1e-4&&h._startAt.render(a,!0,c),b||(h._time!==i||d||c)&&h._callback("onUpdate")),e&&(!h._gc||c)&&(0>a&&h._startAt&&!h._onUpdate&&a!==-1e-4&&h._startAt.render(a,!0,c),d&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!b&&h.vars[e]&&h._callback(e),0===j&&h._rawPrevTime===n&&g!==n&&(h._rawPrevTime=0))}},i._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:H.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline,n=this._firstPT;if((q(b)||I(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(H.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!ba(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&n&&this._enabled(!1,!1)}}return i},i.invalidate=function(){this._notifyPluginsOfEnabled&&H._onPluginEvent("_onDisable",this);var a=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-n,this.render(a,!1,this.vars.lazy!==!1)),this},i._enabled=function(a,b){if(k||j.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=aa(d[c],this,!0);else this._siblings=aa(this.target,this,!0)}return E.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?H._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},H.to=function(a,b,c){return new H(a,b,c)},H.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new H(a,b,c)},H.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new H(a,b,d)},H.delayedCall=function(a,b,c,d,e){return new H(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},H.set=function(a,b){return new H(a,0,b)},H.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:H.selector(a)||a;var c,d,e,f;if((q(a)||I(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(H.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gsTweenID)for(d=aa(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d||[]},H.killTweensOf=H.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=H.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ea=u("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ea.prototype},!0);if(i=ea.prototype,ea.version="1.19.0",ea.API=2,i._firstPT=null,i._addTween=R,i.setRatio=O,i._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},i._mod=i._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},H._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ea.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ea.API&&(T[(new a[b])._propName]=a[b]);return!0},t.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=u("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ea.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ea(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ea.activate([g]),g},g=a._gsQueue){for(h=0;h