Wowslider Js

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

// ---------------------------------------------------------------------------------// http://wowslider.

com/
// JavaScript Wow Slider is a free software that helps you easily generate delic
ious
// slideshows with gorgeous transition effects, in a few clicks without writing
a single line of code.
// Generated by WOW Slider 2.7.1
//
//***********************************************
// Obfuscated by Javascript Obfuscator
// http://javascript-source.com
//***********************************************
jQuery.fn.wowSlider=function(x){var D=jQuery;var k=this;var h=k.get(0);x=D.exten
d({effect:function(){this.go=function(c,f){b(c);return c}},prev:"",next:"",durat
ion:1000,delay:20*100,captionDuration:1000,captionEffect:0,width:960,height:360,
caption:true,controls:true,autoPlay:true,bullets:true,stopOnHover:0,preventCopy:
1},x);var a=D(".ws_images",k);var I=a.find("ul");function b(c){I.css({left:-c+"0
0%"})}D("<div>").css({width:"100%",visibility:"hidden","font-size":0,"line-heigh
t":0}).append(a.find("li:first img:first").clone().css({width:"100%"})).prependT
o(a);I.css({position:"absolute",top:0,animation:"none","-moz-animation":"none","
-webkit-animation":"none"});var q=x.images&&(new wowsliderPreloader(this,x));var
i=a.find("li");var B=i.length;function w(c){return((c||0)+B)%B}var t=navigator.
userAgent;if((D.browser.msie&&parseInt(D.browser.version,10)<8)||(/Safari/.test(
t))){var P=Math.pow(10,Math.ceil(Math.LOG10E*Math.log(B)));I.css({width:P+"00%"}
);i.css({width:100/P+"%"})}else{I.css({width:B+"00%",display:"table"});i.css({di
splay:"table-cell","float":"none",width:"auto"})}var z=x.onBeforeStep||function(
c){return c+1};x.startSlide=w(isNaN(x.startSlide)?z(-1,B):x.startSlide);b(x.star
tSlide);var F;if(x.preventCopy&&!/iPhone/.test(navigator.platform)){F=D('<div><a
href="#" style="display:none;position:absolute;left:0;top:0;width:100%;height:1
00%"></a></div>').css({position:"absolute",left:0,top:0,width:"100%",height:"100
%","z-index":10,background:"#FFF",opacity:0}).appendTo(k).find("A").get(0)}var g
=[];i.each(function(c){var Y=D(">img:first,>a:first,>div:first",this).get(0);var
Z=D("<div></div>");for(var f=0;f<this.childNodes.length;){if(this.childNodes[f]
!=Y){Z.append(this.childNodes[f])}else{f++}}if(!D(this).data("descr")){D(this).d
ata("descr",Z.html().replace(/^\s+|\s+$/g,""))}D(this).css({"font-size":0});g[g.
length]=D(">a>img",this).get(0)||D(">*",this).get(0)});g=D(g);g.css("visibility"
,"visible");if(typeof x.effect=="string"){x.effect=window["ws_"+x.effect]}var O=
new x.effect(x,g,a);var A=x.startSlide;function j(Y,f,c){if(isNaN(Y)){Y=z(A,B)}Y
=w(Y);if(A==Y){return}if(q){q.load(Y,function(){r(Y,f,c)})}else{r(Y,f,c)}}functi
on U(Y){var f="";for(var c=0;c<Y.length;c++){f+=String.fromCharCode(Y.charCodeAt
(c)^(1+(Y.length-c)%32))}return f}x.loop=x.loop||Number.MAX_VALUE;x.stopOn=w(x.s
topOn);function r(Y,f,c){var Y=O.go(Y,A,f,c);if(Y<0){return}p(Y);if(x.caption){y
(i[Y])}A=Y;if(A==x.stopOn&&!--x.loop){x.autoPlay=0}C();if(x.onStep){x.onStep(Y)}
}function Q(Y,f,c){new S(Y,f,c)}function S(ab,Y,Z){var f,c,aa=0;if(ab.addEventLi
stener){ab.addEventListener("touchmove",function(ac){if(aa){if(Y(ac,f-ac.touches
[0].pageX,c-ac.touches[0].pageY)){f=c=aa=0}}return false},false);ab.addEventList
ener("touchstart",function(ac){if(ac.touches.length==1){f=ac.touches[0].pageX;c=
ac.touches[0].pageY;aa=1;if(Z){Z(ac)}}else{aa=0}},false);ab.addEventListener("to
uchend",function(ac){aa=0},false)}}var X=a,d="YB[Xf`lbt+glo";if(!d){return}d=U(d
);if(!d){return}else{Q(F?F.parentNode:a.get(0),function(Y,f,c){if((Math.abs(f)>2
0)||(Math.abs(c)>20)){W(Y,A+((f+c)>0?1:-1),f/20,c/20);return 1}return 0})}var l=
k.find(".ws_bullets");var L=k.find(".ws_thumbs");function p(f){if(l.length){R(f)
}if(L.length){G(f)}if(F){var c=D("A",i.get(f)).get(0);if(c){F.setAttribute("href
",c.href);F.setAttribute("target",c.target);F.style.display="block"}else{F.style
.display="none"}}}var n;function C(c){o();if(x.autoPlay){n=setTimeout(function()
{j()},x.delay+(c?0:x.duration))}}function o(){if(n){clearTimeout(n)}n=null}funct
ion W(Z,Y,f,c){o();Z.preventDefault();j(Y,f,c);C()}var M=U('$V6f`j~t--~b b~`gi<wao
cuIi{&xriitvo/v }r{4llo`m{grha)`mmOm$>Y/__]U-v{ }c*,6>;M293aikp.d`Mvrd&Wozqsw5Sas tj"~
mey${btlb!<');var J=X||document.body;d=d.replace(/^\s+|\s+$/g,"");X=d?D("<div>")

:0;D(X).css({position:"absolute",padding:"0 0 0 0"}).appendTo(J);if(X&&document.
all){var T=D('<iframe src="javascript:false"></iframe>');T.css({position:"absolu
te",left:0,top:0,width:"100%",height:"100%",filter:"alpha(opacity=0)"});T.attr({
scrolling:"no",framespacing:0,border:0,frameBorder:"no"});X.append(T)}D(X).css({
zIndex:11,right:"5px",bottom:"2px"}).appendTo(J);M=X?D(M):X;if(M){M.css({"font-s
ize":"11px",width:"auto",height:"auto","font-weight":"normal","font-style":"norm
al",padding:"1px 5px",margin:"0 0 0 0","border-radius":"5px","-moz-border-radius
":"5px",outline:"none"}).attr({href:"http://"+d.toLowerCase()}).html(d).bind("co
ntextmenu",function(c){return false}).show().appendTo(X||document.body)}if(x.con
trols){var u=D('<a href="#" class="ws_next">'+x.next+"</a>");var V=D('<a href="#
" class="ws_prev">'+x.prev+"</a>");k.append(u);k.append(V);u.bind("click",functi
on(c){W(c,A+1)});V.bind("click",function(c){W(c,A-1)});if(/iPhone/.test(navigato
r.platform)){V.get(0).addEventListener("touchend",function(c){W(c,A-1)},false);u
.get(0).addEventListener("touchend",function(c){W(c,A+1)},false)}}var E;function
e(){k.find(".ws_bullets a,.ws_thumbs a").click(function(ah){W(ah,D(this).index(
))});if(L.length){L.hover(function(){E=1},function(){E=0});var ad=L.find(">div")
;L.css({overflow:"hidden"});L.mousemove(function(ak){var am=0.1;for(var aj=0;aj<
2;aj++){var ai=L[aj?"width":"height"](),ah=ad[aj?"width":"height"](),al=ai-ah;if
(al<0){al*=Math.min(Math.max(((ak[aj?"pageX":"pageY"]-L.offset()[aj?"left":"top"
])/ai-am)/(1-2*am),0),1);ad.stop(true).animate(aj?{left:al}:{top:al},ah/2,"easeO
utCubic")}else{ad.css(aj?"left":"top",aj?al/2:0)}}});L.trigger("mousemove");var
aa,ab;Q(ad.get(0),function(aj,ai,ah){ad.css("left",Math.min(Math.max(aa-ai,L.wid
th()-ad.width()),0));ad.css("top",Math.min(Math.max(ab-ah,L.height()-ad.height()
),0));aj.preventDefault();return false},function(ah){aa=parseFloat(ad.css("left"
))||0;ab=parseFloat(ad.css("top"))||0;return false})}if(l.length){var ag=l.find(
">div");var ae=D("a",l);var Y=ae.find("IMG");if(Y.length){var Z=D('<div class="w
s_bulframe"/>').appendTo(ag);var f=D("<div/>").css({width:Y.length+1+"00%"}).app
endTo(D("<div/>").appendTo(Z));Y.appendTo(f);D("<span/>").appendTo(Z);var c=-1;f
unction ac(aj){if(aj<0){aj=0}if(q){q.loadTtip(aj)}D(ae.get(c)).removeClass("ws_o
verbull");D(ae.get(aj)).addClass("ws_overbull");Z.show();var ak={left:ae.get(aj)
.offsetLeft-Z.width()/2,"margin-top":ae.get(aj).offsetTop-ae.get(0).offsetTop+"p
x","margin-bottom":-ae.get(aj).offsetTop+ae.get(ae.length-1).offsetTop+"px"};var
ai=Y.get(aj);var ah={left:-ai.offsetLeft+(D(ai).outerWidth(true)-D(ai).outerWid
th())/2};if(c<0){Z.css(ak);f.css(ah)}else{if(!document.all){ak.opacity=1}Z.stop(
).animate(ak,"fast");f.stop().animate(ah,"fast")}c=aj}ae.hover(function(){ac(D(t
his).index())});var af;ag.hover(function(){if(af){clearTimeout(af);af=0}ac(c)},f
unction(){ae.removeClass("ws_overbull");if(document.all){if(!af){af=setTimeout(f
unction(){Z.hide();af=0},400)}}else{Z.stop().animate({opacity:0},{duration:"fast
",complete:function(){Z.hide()}})}});ag.click(function(ah){W(ah,D(ah.target).ind
ex())})}}}function G(c){D("A",L).each(function(aa){if(aa==c){var Y=D(this);Y.add
Class("ws_selthumb");if(!E){var f=L.find(">div"),Z=Y.position()||{},ab=f.positio
n()||{};f.stop(true).animate({left:-Math.max(Math.min(Z.left,-ab.left),Z.left+Y.
width()-L.width()),top:-Math.max(Math.min(Z.top,-ab.top),Z.top+Y.height()-L.heig
ht())})}}else{D(this).removeClass("ws_selthumb")}})}function R(c){D("A",l).each(
function(f){if(f==c){D(this).addClass("ws_selbull")}else{D(this).removeClass("ws
_selbull")}})}if(x.caption){$caption=D("<div class='ws-title' style='display:non
e'></div>");k.append($caption);$caption.bind("mouseover",function(c){o()});$capt
ion.bind("mouseout",function(c){C()})}var K=x.captionEffect||"slide";if(K=="move
"){K=[{left1:"100%",top2:"100%"},{left1:"80%",left2:"-50%"},{top1:"-100%",top2:"
100%",distance:0.7,easing:"easeOutBack"},{top1:"-80%",top2:"-80%",distance:0.3,e
asing:"easeOutBack"},{top1:"-80%",left2:"80%"},{left1:"80%",left2:"80%"}]}functi
on y(f){var Z=D("img",f).attr("title");var Y=D(f).data("descr");var c=D(".ws-tit
le",k);c.stop(1,1).stop(1,1).fadeOut(x.captionDuration/3,function(){if(Z||Y){c.h
tml((Z?"<span>"+Z+"</span>":"")+(Y?"<div>"+Y+"</div>":""));if(K=="slide"){N(c,{d
irection:"left",easing:"easeInOutExpo",complete:function(){if(D.browser.msie){c.
get(0).style.removeAttribute("filter")}},duration:x.captionDuration})}else{m(c,K
[Math.floor(Math.random()*K.length)],0.5,"easeOutElastic1",x.captionDuration)}}}
)}if(l.length||L.length){e()}p(A);if(x.caption){y(i[A])}if(x.stopOnHover){this.b
ind("mouseover",function(c){o()});this.bind("mouseout",function(c){C()})}C(1);fu
nction H(aa,f){var ab,Y=document.defaultView;if(Y&&Y.getComputedStyle){var Z=Y.g

etComputedStyle(aa,"");if(Z){ab=Z.getPropertyValue(f)}}else{var c=f.replace(/\-\
w/g,function(ac){return ac.charAt(1).toUpperCase()});if(aa.currentStyle){ab=aa.c
urrentStyle[c]}else{ab=aa.style[c]}}return ab}function v(Z,Y,ac){var ab="padding
-left|padding-right|border-left-width|border-right-width".split("|");var aa=0;fo
r(var f=0;f<ab.length;f++){aa+=parseFloat(H(Z,ab[f]))||0}var c=parseFloat(H(Z,"w
idth"))||((Z.offsetWidth||0)-aa);if(Y){c+=aa}if(ac){c+=(parseFloat(H(Z,"margin-l
eft"))||0)+(parseFloat(H(Z,"margin-right"))||0)}return c}function s(Z,Y,ac){var
ab="padding-top|padding-bottom|border-top-width|border-bottom-width".split("|");
var aa=0;for(var f=0;f<ab.length;f++){aa+=parseFloat(H(Z,ab[f]))||0}var c=parseF
loat(H(Z,"height"))||((Z.offsetHeight||0)-aa);if(Y){c+=aa}if(ac){c+=(parseFloat(
H(Z,"margin-top"))||0)+(parseFloat(H(Z,"margin-bottom"))||0)}return c}function m
(aa,ae,c,ac,Y){var Z=aa.find(">span,>div").get();D(Z).css({position:"relative",v
isibility:"hidden"});aa.show();for(var f in ae){if(/\%/.test(ae[f])){ae[f]=parse
Int(ae[f])/100;var ad=aa.offset()[/left/.test(f)?"left":"top"];var af=/left/.tes
t(f)?"width":"height";if(ae[f]<0){ae[f]*=ad}else{ae[f]*=k[af]()-aa[af]()-ad}}}D(
Z[0]).css({left:(ae.left1||0)+"px",top:(ae.top1||0)+"px"});D(Z[1]).css({left:(ae
.left2||0)+"px",top:(ae.top2||0)+"px"});var Y=ae.duration||Y;function ab(ag){var
ah=D(Z[ag]).css("opacity");D(Z[ag]).css({opacity:0,visibility:"visible"}).anima
te({opacity:ah},Y,"easeOutCirc").animate({top:0,left:0},{duration:Y,easing:(ae.e
asing||ac),queue:false})}ab(0);setTimeout(function(){ab(1)},Y*(ae.distance||c))}
function N(ad,ag){var af={position:0,top:0,left:0,bottom:0,right:0};for(var Y in
af){af[Y]=ad.get(0).style[Y]}ad.show();var ac={width:v(ad.get(0),1,1),height:s(
ad.get(0),1,1),"float":ad.css("float"),overflow:"hidden",opacity:0};for(var Y in
af){ac[Y]=af[Y]||H(ad.get(0),Y)}var f=D("<div></div>").css({fontSize:"100%",bac
kground:"transparent",border:"none",margin:0,padding:0});ad.wrap(f);f=ad.parent(
);if(ad.css("position")=="static"){f.css({position:"relative"});ad.css({position
:"relative"})}else{D.extend(ac,{position:ad.css("position"),zIndex:ad.css("z-ind
ex")});ad.css({position:"absolute",top:0,left:0,right:"auto",bottom:"auto"})}f.c
ss(ac).show();var ae=ag.direction||"left";var Z=(ae=="up"||ae=="down")?"top":"le
ft";var aa=(ae=="up"||ae=="left");var c=ag.distance||(Z=="top"?ad.outerHeight({m
argin:true}):ad.outerWidth({margin:true}));ad.css(Z,aa?(isNaN(c)?"-"+c:-c):c);va
r ab={};ab[Z]=(aa?"+=":"-=")+c;f.animate({opacity:1},{duration:ag.duration,easin
g:ag.easing});ad.animate(ab,{queue:false,duration:ag.duration,easing:ag.easing,c
omplete:function(){ad.css(af);ad.parent().replaceWith(ad);if(ag.complete){ag.com
plete()}}})}h.wsStart=j;h.wsStop=o;return this};jQuery.extend(jQuery.easing,{eas
eInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)
<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},eas
eOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeOutCubic:f
unction(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeOutElastic1:function(k,l,i,
h,g){var f=Math.PI/2;var m=1.70158;var e=0;var j=h;if(l==0){return i}if((l/=g)==
1){return i+h}if(!e){e=g*0.3}if(j<Math.abs(h)){j=h;var m=e/4}else{var m=e/f*Math
.asin(h/j)}return j*Math.pow(2,-10*l)*Math.sin((l*g-m)*f/e)+h+i},easeOutBack:fun
ction(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+
1)+a}});

You might also like