From 3b7c50cb180f371b83811b13569b35028473c394 Mon Sep 17 00:00:00 2001 From: Pushpendra Singh Chouhan Date: Wed, 25 Feb 2015 10:04:53 +0530 Subject: [PATCH] removed plugins folder removed plugins folder --- js/tiksluscarousel.min.js | 1 - plugins/ajax-loader.gif | Bin 3720 -> 0 bytes plugins/animate.css | 2847 -------------------------------- plugins/fullscreen.png | Bin 1405 -> 0 bytes plugins/fullscreen_exit.png | Bin 1406 -> 0 bytes plugins/pause.png | Bin 794 -> 0 bytes plugins/resume.png | Bin 798 -> 0 bytes plugins/tiksluscarousel.css | 408 ----- plugins/tiksluscarousel.js | 820 --------- plugins/tiksluscarousel.min.js | 1 - 10 files changed, 4077 deletions(-) delete mode 100644 js/tiksluscarousel.min.js delete mode 100644 plugins/ajax-loader.gif delete mode 100644 plugins/animate.css delete mode 100644 plugins/fullscreen.png delete mode 100644 plugins/fullscreen_exit.png delete mode 100644 plugins/pause.png delete mode 100644 plugins/resume.png delete mode 100644 plugins/tiksluscarousel.css delete mode 100644 plugins/tiksluscarousel.js delete mode 100644 plugins/tiksluscarousel.min.js diff --git a/js/tiksluscarousel.min.js b/js/tiksluscarousel.min.js deleted file mode 100644 index 2509c0e..0000000 --- a/js/tiksluscarousel.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){var b=function(m,v){var h=a(m);var e=this;var x={current:1,prev:"«",next:"»",type:"slide",autoplayInterval:10000,animationInterval:800,dotRatio:0.02,loader:"ajax-loader.gif",customAnimationClassIn:"",customAnimationClassOut:"",customAnimationCaption:"",captionAnimationInterval:100,captionFontRatio:0.15,width:0,height:0,nav:"dots",navIcons:true};v=a.extend(x,v);var r=v.current;var G=h.find("li").length;var z;var f;var N=false;var n=["slide","rotate","zoom","dots","thumbnails"];var u;h.find("ul").addClass("carousel");var B=h.find("ul.carousel");B.find("img").addClass("tslider");var d=B.find("li:first").width();B.hide();h.append("

Loading Images

");h.find(".preload").css({position:"absolute",top:"48%",left:"35%",backgroudColor:"#fff",textAlign:"center",color:"#000",padding:"0.5em"}).show();var s=function(){var P=h.find("ul.carousel").find("li");P.each(function(){if(a(this).find("img").attr("caption")){var Q=a(this).find("img").attr("caption");a(this).append("
");a(this).find(".caption").css({left:a(this).position().left+a(this).width()+a(this).find(".caption").width()+"px",width:100/G+"%","word-wrap":"break-word"}).html(Q).hide()}})};var g=function(T){var Q=h.find("li:nth-child("+T+")");var S=Q.find(".caption");var P=100/G;if(S.hasClass("animated")){S.removeClass("animated").removeClass(v.customAnimationCaption)}if(v.customAnimationCaption!=""){var R=Q.position().left;Q.find(".caption").css({left:R+"px",fontSize:h.width()*v.captionFontRatio+"%"});Q.find(".caption").addClass(v.customAnimationCaption).addClass("animated").show()}else{Q.find(".caption").css({left:101+"%",fontSize:h.width()*v.captionFontRatio+"%"}).show().animate({left:(v.current*P-P)+"%"},1500)}};var F=function(P){if(P.requestFullscreen){P.requestFullscreen()}else{if(P.webkitRequestFullscreen){P.webkitRequestFullscreen()}else{if(P.mozRequestFullScreen){P.mozRequestFullScreen()}else{if(P.msRequestFullscreen){P.msRequestFullscreen()}}}}h.find(".op .fullscreenbutton").addClass("exit_fullscreenbutton");h.addClass("fullscreen");h.find(".block").remove();B.find(".tslider").css({maxWidth:"100%"});h.find(".thumbnails_wrapper").addClass("fullscreen_thumbnails")};var w=function(){if(document.exitFullscreen){document.exitFullscreen()}else{if(document.webkitExitFullscreen){document.webkitExitFullscreen()}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{if(document.msExitFullscreen){document.msExitFullscreen()}}}}if(h.hasClass("fullscreen")){J();h.removeClass("fullscreen");h.find(".thumbnails_wrapper").removeClass("fullscreen_thumbnails");h.find(".op .fullscreenbutton").removeClass("exit_fullscreenbutton")}};var c=function(R){if(R==v.current){return false}if(v.customAnimationClassIn!=""||v.customAnimationClassOut!=""){var P=B.find("li:nth-child("+v.current+")");var Q=B.find("li:nth-child("+R+")");Q.css({left:0,display:"block"});P.removeClass().addClass("animated").addClass(v.customAnimationClassOut);setTimeout(function(){P.hide();Q.removeClass().addClass("animated").addClass(v.customAnimationClassIn)},1000)}else{P.fadeOut("fast");Q.fadeIn("slow")}v.current=R;if(v.current>G){v.current=1}o();l()};var I=function(Q){var P=B.find("li:nth-child("+v.current+")");var R=B.find("li:nth-child("+Q+")");P.fadeOut("fast");R.fadeIn("slow");v.current=Q;if(v.current>G){v.current=1}o();l()};var O=function(){h.find("ul.carousel>li").css({ken:0,"-webkit-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)"});h.find("li").stop(true,false);window.clearInterval(u);B.stop(true,false)};var M=function(R){B.stop();B.find("> li").show();var P=B.find("li:nth-child("+R+")");P.fadeIn("fast");var Q=(Math.random()*1)+1;P.css({ken:1});P.animate({ken:Q},{start:function(){},step:function(S,T){a(this).css({"-webkit-transform":"scale("+S+")",transform:"scale("+S+")","-ms-transform":"scale("+S+")"})},duration:v.autoplayInterval/2,complete:function(){P.animate({ken:1},{step:function(S,T){a(this).css({"-webkit-transform":"scale("+S+")",transform:"scale("+S+")","-ms-transform":"scale("+S+")"})},duration:v.autoplayInterval/3,complete:function(S,T){P.css({ken:0});h.find("ul.carousel > li").css({"-webkit-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)"})}})}});i(R)};var H=function(){var P=h.find(".progress");var Q=P.width();P.stop().animate({width:h.width()},v.autoplayInterval,function(){k()})};var k=function(){var P=h.find(".progress");P.css({width:0})};var C=function(){var P=h.find(".progress");P.stop(true,false)};var i=function(S){var P=B.find("li:nth-child("+(S)+")");if(v.current==S){return false}var R=(S*100)-100;R=R*-1;var Q=P.find("img").attr("caption");a(".caption").hide();B.stop(true,true).animate({left:R+"%"},v.animationInterval);o();l()};this.scrollTo=function(Q){if(N==true){return false}Q=parseInt(Q);k();O();var P=B.find("li:nth-child('"+Q+"')");H();switch(v.type){case"slide":i(Q);break;case"rotate":I(Q);break;case"custom":c(Q);break;case"zoom":M(Q);break;default:I(Q)}setTimeout(function(){g(Q)},v.captionAnimationInterval*v.current);v.current=Q;if(v.current>G){v.current=G}t();E();u=setInterval(y,v.autoplayInterval);D()};var p=function(){var P=v.current+1;if(P>G){P=1}e.scrollTo(P)};var L=function(){var P=v.current-1;if(P<1){P=1}e.scrollTo(P)};var y=function(){var P=v.current+1;if(P>G){P=1}e.scrollTo(P)};var l=function(){if(v.nav=="dots"){z.find(".nav").removeClass("selected");z.find(".nav:nth-child("+(v.current+1)+")").addClass("selected")}};var o=function(){if(v.current<=1){h.find(".nav_left").hide();return false}if(v.current>=G){h.find(".nav_right").hide();return false}h.find(".nav_left").show();h.find(".nav_right").show()};var J=function(){if(v.width>0){h.css({"max-width":v.width+"px"});B.find("img").css({"max-width":v.width+"px",width:"100%",height:"auto"})}};var E=function(){h.find(".stats").html(v.current+" of "+G)};var K=function(Q){var S=Q;var R=S.find(".thumbnails");var P=R.find("li:first").width();S.scrollLeft(R.outerWidth());S.bind("mousemove",function(W){var T=S.width();var U=R.outerWidth()+2*P;var V=(W.pageX-S.offset().left)*(U-T)/T-P;S.scrollLeft(V)})};var t=function(){var R=h.find(".nav_left");var Q=h.find(".nav_right");if(v.current<=1){R.hide()}else{R.show()}if(v.current>=G){Q.hide()}else{Q.show()}if(v.navIcons==true){Q.find("span").hide();R.find("span").hide();if(!Q.hasClass("navIcons")){Q.addClass("navIcons")}if(!R.hasClass("navIcons")){R.addClass("navIcons")}if(v.current1){var S=parseInt(v.current-1);if(!R.hasClass("navIcons_prev")){R.addClass("navIcons_prev")}R.html("").append(B.find("li:nth-child("+(S)+")").html());R.find("img.tslider").removeClass("tslider")}}};var A=function(R,Q){var P=h.find(".msg");P.html("");switch(Q){case"info":P.html(R).removeClass().addClass("msg").addClass("info");break;case"error":P.html(R).removeClass().addClass("msg").addClass("error");break;default:P.html(R).removeclass().addClass("msg").addClass("info")}P.css({top:0}).slideDown("fast")};var D=function(){h.find(".msg").hide().css({top:"-100px"})};var q=function(){J();h.addClass("tiksluscarousel").css({position:"relative",height:"auto"});B.css({width:100*G+"%",height:"100%"});B.find("li").css({width:100/G+"%",height:"100%"});h.append("
");if(v.nav=="dots"){h.append("
    ");z=h.find(".slider_nav");for(var Q=0;Q");h.find(".slider_nav").find(".nav").css({width:h.width()*v.dotRatio+"px",height:h.width()*v.dotRatio+"px"})}var P=h.find(".slider_nav");P.css("right","1%")}h.append("
    ");h.append("");h.append("
    ");if(v.current>G||v.current<0){v.current=1;r=1;A("Invalid Current value. Reset to 1","error")}if(a.inArray(v.type,n)<=-1){A("Invalid type value. Reset to rotate","error")}if(a.inArray(v.nav,n,4)<=-1){A("Invalid nav value. Must be dots or thumbnails","error")}if(isNaN(v.animationInterval)||v.animationInterval<=0){A("Invalid animationInterval value. Must be > 0","error")}if(isNaN(v.dotRatio)||(v.dotRatio<0.01&&v.dotRatio>0.1)){A("Invalid dotRatio value. Must be > 0.01 and < 0.1","error")}if(isNaN(v.captionFontRatio)||(v.captionFontRatio<0.1&&v.captionFontRatio>1)){A("Invalid captionFontRatio value. Must be >= 0.1 and <= 1","error")}if(isNaN(v.width)||v.width<0){A("Invalid width value. Must be >= 0","error")}if(isNaN(v.height)||v.height<0){A("Invalid height value. Must be > 0","error")}if(isNaN(v.captionAnimationInterval)||v.captionAnimationInterval<=0){A("Invalid captionAnimationInterval value. Must be > 0","error")}if(v.autoPlayInterval<=0){A("Invalid autoPlayInterval value. Must be > 0","error")}a(".slider_nav").hide();B.find("img").each(function(S){var T=new Image();T.src=a(this).attr("src");T.onload=function(){}});h.find(".preload").remove();if(v.nav=="thumbnails"){h.append("
      ");var R=h.find(".thumbnails_wrapper .thumbnails");B.find("li").each(function(T){f=d/10;R.append("
    • "+a(this).html()+"
    • ");var S=h.find(".thumbnails .thumb:eq("+T+")");S.css({width:f+"px",display:"block"});S.find("img").removeClass("tslider").addClass("responsive_img");R.css({width:G*f+f+"px"})})}B.show();a(".slider_nav").show();s();if(v.current>=1){if(v.type=="slide"){B.css({left:((r*100)-100)*-1+"%"})}else{h.find("ul.carousel >li").hide();h.find("ul.carousel >li:nth-child("+r+")").fadeIn("fast")}}l();o();g(v.current);K(h.find(".thumbnails_wrapper"));t();E();u=setInterval(y,v.autoplayInterval);H()};q();if(v.nav=="dots"){z.find(".nav").click(function(Q){var P=a(this).parent().children().index(this);e.scrollTo(P)})}h.find(".nav_left").click(function(P){if(v.current==1){return false}N=false;h.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton");e.scrollTo(v.current-1)});h.find(".nav_right").click(function(P){if(v.current==G){return false}N=false;h.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton");e.scrollTo(parseInt(v.current+1))});h.find(".tslider").click(function(Q){var P=h.width()/2;if(Q.pageX<=P){if(v.current>1){e.scrollTo(v.current-1)}}if(Q.pageX>=P){if(v.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 LNkvXXu0mjfYBzp> diff --git a/plugins/fullscreen_exit.png b/plugins/fullscreen_exit.png deleted file mode 100644 index 2fc37017627f92769ddc5e20412b15938aa7a954..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1406 zcmV-^1%djBP)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZ=^hrcPRCwBA{Qv(y!$1On0AgYoU;q$6Ebo8+<2?W2 zhr+-A3@kuCw&36;V8&-;jyyN(3l(nGHw-uo1A%|gP-kLfWB>>tmPvO$4xG7Jj{%L zftnb}2}+>b|IfVlG3(;TpL#$;n7|Ie;sSIbfB<3v+V)?Bo%yY&IM;qk<8#le@6H#1 z4#2Mp)d>Ir!~%&E2Bts%7?@a?hzmBXApnYkfB#t-aYsE+0#gbgfasPB{^M{LKmcJl zfELBVf82q>01!Y}Lx31Z{D(vxMV5mAKmg&)VjxE_GUASJ5dKR*9Wx_LHEsY9KrG}W zwtHWH3%>aASK3OL;|jKX3$*zEhu{CWE`IzWhuaB^|Frnno&W?8UI(B@1ryLDpvA&* zr(Z0&_4$|4Qgg{5S23=m|1ll#_tg6zRvw3+?8X*C{~=lLcd4du6F>lw90E_i|B*lU z;iu#GpMTg>&%Io<&O*w`NPztzYEjF;B*V#aJzGUE3mO9dkuB!~=JzF!J~jXgK^cGm zBFO5i91i@Ys+&k7;N(D*su)VzV{)cY(iD#S6e)uWR$;9~c&;S3dgvmO<%jGSfw0*DC~N5D$qA1t8}gF(PTh~vaITN!tCLG~Nh-~H5G{P0sUuufUa&dl%= zX4aM$U!C^9`R0tvLjVE90!pOc{{G{-{P~wWs0IVNnxxv0lbP{dpT1af*7=t!?|=HK z*mV6}hc+MEMJr*>E7w2$Qb|1hVr8q2NF7k=UXTx&(ewiZ5Q`)`^Sc}Gf2vvRe{_S9 z=sFCNw?Sfm|Nm!F=V7}ZD#N>Q;loeqPd@*WNj>*!(FA?boSs|n8sB{VEdun^UtHw@ zKmf56s0vOu6kxv!j3+h%^*zY9zd&{U&ws!K^dBMq=ih&34L-K(9unO9KxM?Wk3S9l zjy*f@sUj1kn|04ikq z^XEU43J=R|TxJ3U5Xp4`y6<5=1J;Zu_uI+ZA(i`#(2^6R^#6Yxxd0%5NOk}dw7^0) zjE#};H;$Z((IR058Uk}DKmf6jQV)P?IZ&bX@%KM|Q2r;YD+X*UfYJxBE?@^0dH?~$ zf-6|j0Wd55m*il1G5`Ljq)pGi2K@g|UjG3GUVi^0YOKPs2OxkLLA?i11pQ|~l=0YF zK_GDX(@z~>@v8nGw^E`*lbM0>ubB|XX@CG?9O&LLKmZMR?-(G!0I44aG1zvjF8}}l M07*qoM6N<$f>yeVmjD0& diff --git a/plugins/pause.png b/plugins/pause.png deleted file mode 100644 index 22646e18309c3e70e149f336c63088ed4fc879ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 794 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?3oVGw3ym^DWND9DoT z=;%FY3Kax43qRaA-(e49 zhjrr*8#{Ie7J-Et39OI26ztfJ2)aa_V+a-JJL2BBgRkRefhG%wLJi*orbn(0ci2)V zGg~z75bT)FXsB<-%D{M}>G<>RMvD%wOkD{nu0)4F%#lnA4F#jZ-Mrx>1fWBd!PqVZsDfRet=sG zN7mmD4mWEYbXwK)xsNmjn0d^#;Vb^e z^sx}6YQxhezAswBTvHl$$ab7@$TWs&1tYww!89T#sLNg21CA*=OPLXYIaz(8O!y+oMSb3vG8b$_LBxMhBX<(Y#!|JX-&iUZue4OtbzGI9bHCP%U1%Ti* zy)KJK+FzuY@7AiS2_6D0`dlkOV3@xUv^nKGNtCEF)c~FK)xS2K_A83@S(yM;F#zll zfFFN(90u680>D=Yu%;Ctyu7L4VG4ktIZda|u6$)Q7?71~E6EF?Tn&?Pmx+%93`JIUJyk9;=81hM&wXa{ zb0|Oh6^iNnBg?%@!NuG-*(gE+asWNRU8Fr(ZkFiIRgm2T__0G6!w-Qi85N z_e+wC&9;zUgNOyeYLC!^toEL; zO3hPQwUG9aPF?eJ(b^^>KvZ{`GeR{YOg|q{3LNGN%V_2AY-#d0t@&wU@kqMgy1L zUMEfTl>I-yc02V#vsRY#DmLd(i5&}6?GKG zc17g;i71`SHK|#6uq9kU7|ZE<8OcwUYkSw(WBEVbR-S*3M}kIQ&$v881x&oNeTNbF z2Sib(fj-r(Ij`PD%c^UAdurQk@f-NS)U^(U9xr-hO*g;J7hhhcu9#BL9=Nmc;OuzC Rrzk$lkd|!Fb!ZA}{s9_c8L$8V diff --git a/plugins/tiksluscarousel.css b/plugins/tiksluscarousel.css deleted file mode 100644 index 1a1c597..0000000 --- a/plugins/tiksluscarousel.css +++ /dev/null @@ -1,408 +0,0 @@ - .tiksluscarousel{ - position:relative; - overflow:hidden; - display:block; - - } - .tiksluscarousel ul.carousel{ - list-style:none; - padding:0; - margin:0; - left:0px; - position:relative; - overflow:hidden; - - } - .tiksluscarousel ul li{ - float:left; - overflow: hidden; - - } - .tiksluscarousel .slider_nav{ - position:absolute; - z-index:5000; - bottom:1%; - } - .tiksluscarousel .slider_nav div.nav{ - float:left; - margin:5px; - width: 0.7em; - height:0.7em; - background-color:#000; - border-radius:50%; - border:1px solid #fff; - opacity:0.5; - cursor:pointer; - z-index:95400; - } - .tiksluscarousel .slider_nav .selected{ - background-color:#fff !important; - border:1px solid #000 !important; - } - - .tiksluscarousel .slider_nav div.nav:hover{ - background-color:#fff; - border:1px solid #000; - } - - .tiksluscarousel .nav_left{ - position:absolute; - width:27px; - height:27px; - background-color:#000; - opacity:.5; - text-align:center; - font-size:1em; - border-radius:12px; - cursor:pointer; - z-index:95400; - top:45%; - left:1%; - } - .tiksluscarousel .nav_left span,.tiksluscarousel .nav_right span{ - font-size:1em; - color:#fff; - font-weight:bold; - - text-align:center; - - } - - .tiksluscarousel .nav_right{ - position:absolute; - width:27px; - height:27px; - background-color:#000; - opacity:.5; - text-align:center; - font-size:1em; - border-radius:12px; - cursor:pointer; - right:1%; - top:45%; - } - - - - #tslide1{ - - position: relative; - - /* max-width:640px;*/ - height:auto; - - } - - .tslider { - /* - width: auto; - max-width: 100%; - height: auto; - max-height: 100%; - */ - - } - .tiksluscarousel .caption{ - position:absolute; - bottom:2.3em; - background-color:#000; - opacity:0.5; - font-size:1.2em; - color: #fff; - padding:0.6em; - margin:auto; - display:none; - } - - .tiksluscarousel ul li img{ - - - /* max-width:640px;*/ - height:auto; - width:100%; - } - - .thumbnails_wrapper{ - width:100%; - display:block; - position:relative; - - float:left; - background-color:#000; - overflow:hidden; - } - - - - - .thumbnails_wrapper .thumbnails { - list-style:none; - padding:0; - margin:0; - } - - .thumbnails_wrapper .thumbnails li.thumb{ - float:left; - display:block; - margin:1px; - - - } - - .thumbnails_wrapper .thumbnails li.thumb a{ - display:block; - opacity:0.8; - - - } - - .thumbnails_wrapper .thumbnails li.thumb a:hover{ - -webkit-transform: scale(1.1); - -moz-transform: scale(1.1); - -o-transform: scale(1.1); - opacity:1; - } - - .thumbnails_wrapper .thumbnails li img{ - max-width:100%; - display:block; - height:auto; - - } - - .matrix{ - width:100%; - height:100%; - } - - .block{ - position:absolute; - z-index:95000; - } - .responsive_img{ - max-width:100%; - height:auto; - display:block; - } - .volunteer{ - position:absolute; - top:0; - left:0; - display:block; - } - - .responsive_img{ - max-width:100%; - height:auto; - display:block; - } - .rotate { --webkit-animation: roate 4.6523s 1 ease; --moz-animation: roate 4.6523s 1 ease; --o-animation: roate 4.6523s 1 ease; -} -@-webkit-keyframes roate { -from { -webkit-transform: rotate(0deg) scale(1) skew(1deg) translate(0px); } -to { -webkit-transform: rotate(360deg) scale(1) skew(1deg) translate(0px); } -} -@-moz-keyframes roate { -from { -moz-transform: rotate(0deg) scale(1) skew(1deg) translate(0px); } -to { -moz-transform: rotate(360deg) scale(1) skew(1deg) translate(0px); } -} -@-o-keyframes roate { -from { -o-transform: rotate(0deg) scale(1) skew(1deg) translate(0px); } -to { -o-transform: rotate(360deg) scale(1) skew(1deg) translate(0px); } -} - - -.scale { --webkit-animation: scale 2s 1 ease; --moz-animation: scale 1s 1 ease; --o-animation: scale 1s 1 ease; -} -@-webkit-keyframes scale { -from { -webkit-transform: scale(0); } -to { -webkit-transform: scale(1) ; } -} -@-moz-keyframes scale { -from { -moz-transform: scale(0); } -to { -moz-transform: scale(1); } -} -@-o-keyframes scale { -from { -o-transform: scale(0) ; } -to { -o-transform: scale(1) ; } -} - -.translate { --webkit-animation: translate 1s 1 ease; --moz-animation: translate 1s 1 ease; --o-animation: translate 1s 1 ease; -} -@-webkit-keyframes translate { -from { -webkit-transform: scale(0.5) rotate(0deg) translate(100%); } -to { -webkit-transform: scale(1) rotate(360deg) translate(0%); } -} -@-moz-keyframes translate { -from { -moz-transform: scale(0.5) translate(100%); } -to { -moz-transform: scale(1) translate(0%); } -} -@-o-keyframes translate { -from { -o-transform: scale(0.5) translate(100%); } -to { -o-transform: scale(1) translate(0%); } -} - -.op{ -position:absolute; -top:1%; -right:1%; -background-color:#fff; -opacity:0.8; -margin:1em; -display:none; -z-index:95400; -} -.op ul{ -list-style:none; -margin:0; -padding:0; -} -.op ul li{ -float:left; -padding:0.2em; -margin:0.2em; -border:1px solid #04AEDA; -margin:0.3em; -} -.op a{ -display:block; -width:2em; -height:2em; -max-width:100%; -z-index:50000; - -} -.op .stats{ -color:#00A9EC; -background-color:#fff; -padding:0.8em; -font-size:0.8em; -text-align:center; -} -.op .fullscreenbutton{ -background-image:url('fullscreen.png'); -background-repeat:no-repeat; -background-position:center; -} - -.op .exit_fullscreenbutton{ -background-image:url('fullscreen_exit.png'); -background-repeat:no-repeat; -background-position:center; -} - - -.op .pausebutton{ -background-image:url('pause.png'); -background-repeat:no-repeat; -background-position:center; - -} - -.op .resumebutton{ -background-image:url('resume.png'); -background-repeat:no-repeat; -background-position:center; -} - - -:-webkit-full-screen { -background-color:#000; - -} - -:-moz-full-screen { -background-color:#000; - -} - -:-ms-fullscreen { -background-color:#000; - -} - -:fullscreen { -background-color:#000; - -} - -.fullscreen{ -width:100% !important; -height:auto; -max-width:100% !important; -} - -.fullscreen_thumbnails{ -position:absolute; -bottom:0; -} - - -.navIcons{ -width:15% !important; -height:15% !important; -opacity:0.8 !important; -background-color:#000; - - -webkit-border-radius: 1em !important; --moz-border-radius:1em !important; -border-radius: 1em !important; - -top:30% !important; padding: 0.2%; -} - -.navIcons img{ -/*border-radius:50% !important;*/ -width:100% !important; -height:100% !important; - -webkit-border-radius: 1em !important; --moz-border-radius:1em !important; -border-radius: 1em !important; - -} -.tiksluscarousel .navIcons_prev{ -left:-20px; -} -.tiksluscarousel .navIcons_next{ -right:-20px; -} - -.tiksluscarousel .progress{ -position:absolute; -top:0; -left:0; -height:1%; -background-color:#00A9EC; -width:0; -opacity:0.5; -} - -.tiksluscarousel .msg{ -position:absolute; -top:0; -left:0; -opacity:0.8; -background-color:#fff; -width:100%; -text-align:center; -} -.tiksluscarousel .info{ -color:#00A9EC; -font-size:0.8em; -padding:0.5em; -} - -.tiksluscarousel .error{ -color:#ff0000; -font-size:0.8em; -padding:0.5em; -} \ No newline at end of file diff --git a/plugins/tiksluscarousel.js b/plugins/tiksluscarousel.js deleted file mode 100644 index f40a367..0000000 --- a/plugins/tiksluscarousel.js +++ /dev/null @@ -1,820 +0,0 @@ -/* tikslus carousel (a fully resposive carousel) by Pushpendra Singh Chouhan : pushpendra.as400@gmail.com -version: 2.0.0 -version 2 release date: 3 june 2014 -http://tikslus.com -New Features in version 2.0 -1. Thumbnails view -2. Full Screen option (button gets visible on hover) -3. Added new effect: zoom -4. Added NavIcons -5. Added a progress bar -6. Added button to pause and resume slideshow (button gets visible on hover) -7. Shows current slide number (visible on hover) -*/ -(function($){ - var TikslusCaraousel = function(element, options) - { - var carousel = $(element); - // var animating=false; //used in zoom effect - var obj=this; - var defaults = { - - - current: 1, - prev: "«", - - next: "»", - type: 'slide', // can rotate,slide and zoom (zoom is new in version 2.0) - autoplayInterval: 10000, - animationInterval: 800, - dotRatio: 0.02, //always in percentage a whole number 2% by default - loader:'ajax-loader.gif', - customAnimationClassIn: '', - customAnimationClassOut: '', - customAnimationCaption: '', - captionAnimationInterval: 100, - captionFontRatio:0.15,//always in percentage a whole number 15% by default - width:0, - height:0, - nav:'dots', //can be dots or thumbnails (thumbnails new in version 2.0) - navIcons:true // new in version 2.0 - - }; - -// Extend our default options with those provided. - options = $.extend(defaults, options); - - - var current=options.current; -var count=carousel.find("li").length; -var slider_nav; -var thumb_wt; -var paused=false; -var arr=['slide','rotate','zoom','dots','thumbnails']; -var autoPlayHandler; -carousel.find("ul").addClass("carousel"); -var ul = carousel.find("ul.carousel"); -ul.find("img").addClass("tslider"); -var wrapper_wt=ul.find("li:first").width(); - -ul.hide(); //hide all li's until all images are loaded -carousel.append("

      Loading Images

      "); //create loader image - -carousel.find(".preload").css({position:'absolute',top:"48%",left:"35%",backgroudColor:'#fff',textAlign:"center",color:'#000',padding:'0.5em'}).show(); - - - - - var addCaptions = function() { - // var li = carousel.find("ul").find("li"); - var li = carousel.find("ul.carousel").find("li"); - li.each(function() { - if ($(this).find("img").attr("caption")) { - var caption_html = $(this).find("img").attr("caption"); - $(this).append("
      "); - $(this).find(".caption").css({left: $(this).position().left + $(this).width() + $(this).find(".caption").width() + "px",width:100/count +"%","word-wrap":"break-word"}).html(caption_html).hide(); - //we have set the caption font size in % which is 10% of the wrapper div - //here caption div width is always same as of parent li - } - }); - }; - - var showCaption = function(n) { - - var li = carousel.find("li:nth-child(" + n + ")"); - var caption = li.find(".caption"); - var slideleft=100/count; - if (caption.hasClass("animated")) { - caption.removeClass("animated").removeClass(options.customAnimationCaption); - } - - if (options.customAnimationCaption != '') { - var l=li.position().left; - li.find(".caption").css({left:l+"px",fontSize:carousel.width()*options.captionFontRatio + "%"}); - li.find(".caption").addClass(options.customAnimationCaption).addClass("animated").show(); - - - }else{ - - - li.find(".caption").css({left: 101+"%",fontSize:carousel.width()*options.captionFontRatio + "%"}).show().animate({left: (options.current*slideleft - slideleft) + "%"}, 1500); - - - } - }; - - // Function to toggle fullscreen -var toggleFullScreen = function(i) { - - if (i.requestFullscreen) { - i.requestFullscreen(); -} else if (i.webkitRequestFullscreen) { - i.webkitRequestFullscreen(); -} else if (i.mozRequestFullScreen) { - i.mozRequestFullScreen(); -} else if (i.msRequestFullscreen) { - i.msRequestFullscreen(); -} - -carousel.find(".op .fullscreenbutton").addClass("exit_fullscreenbutton"); - carousel.addClass("fullscreen"); - carousel.find(".block").remove(); - ul.find(".tslider").css({maxWidth:"100%"}); - carousel.find(".thumbnails_wrapper").addClass("fullscreen_thumbnails"); - -}; -// End Toggle Full Screen - -var cancelFullScreen = function(){ -if (document.exitFullscreen) { - document.exitFullscreen(); -} else if (document.webkitExitFullscreen) { - document.webkitExitFullscreen(); -} else if (document.mozCancelFullScreen) { - document.mozCancelFullScreen(); -} else if (document.msExitFullscreen) { - document.msExitFullscreen(); -} - -if(carousel.hasClass("fullscreen")){ - setWidth(); - carousel.removeClass("fullscreen"); - carousel.find(".thumbnails_wrapper").removeClass("fullscreen_thumbnails"); - carousel.find(".op .fullscreenbutton").removeClass("exit_fullscreenbutton"); - } - - -}; - - - /* run any custom effect (css 3) class - for this function to call user must set options.type='custom' and provide either customaAnimationClassIn or customAnimationClassOut or both - */ - - var customEffect=function(start_from){ - if(start_from==options.current) return false; - if (options.customAnimationClassIn != '' || options.customAnimationClassOut != '') { - - - var li_current = ul.find("li:nth-child(" + options.current + ")"); - var li_to = ul.find("li:nth-child(" + start_from + ")"); - li_to.css({left: 0, display: 'block'}); - li_current.removeClass().addClass("animated").addClass(options.customAnimationClassOut); - - setTimeout(function() { - - li_current.hide(); - li_to.removeClass().addClass("animated").addClass(options.customAnimationClassIn); - - }, 1000); - - }else{ //if user has specified custom option but doesn't provide customAnimationclassIn and customAnimationClassOut paramter than just rotate the slide - li_current.fadeOut("fast"); - li_to.fadeIn("slow"); - } - options.current = start_from; - if (options.current > count) { - options.current = 1; - } - hidenavbuttons(); - highlightDot(); - }; - - /* this function is called if options.type='rotate' - */ - - var rotateTo = function(rotate_to) { - - var li_current = ul.find("li:nth-child(" + options.current + ")"); - //var li_current = ul.find("li:eq(" + (options.current - 1) + ")"); - var li_to = ul.find("li:nth-child(" + rotate_to + ")"); - li_current.fadeOut("fast"); - li_to.fadeIn("slow"); - - options.current = rotate_to; - if (options.current > count) { - options.current = 1; - } - hidenavbuttons(); - highlightDot(); - - }; - - var resetzoom=function(){ - - - carousel.find("ul.carousel>li").css({ken:0, - '-webkit-transform':'scale(1)', - 'transform':'scale(1)', - '-ms-transform':'scale(1)'}); - - carousel.find("li").stop(true,false); - window.clearInterval(autoPlayHandler); - ul.stop(true,false); - }; - - - var zoomEffect=function(rotate_to){ - - ul.stop(); - ul.find("> li").show(); - - var li_current = ul.find("li:nth-child(" + rotate_to + ")"); - li_current.fadeIn("fast"); - - - - - - - - - var rnd=(Math.random() * 1) + 1; - li_current.css({ken:1}); - - li_current.animate({ ken:rnd }, { - start:function(){ - //animating=true; - - }, - - step: function(now,fx) - { - $(this).css({ - '-webkit-transform':'scale('+now+')', - 'transform':'scale('+now+')', - '-ms-transform':'scale('+now+')'}); - },duration:options.autoplayInterval/2, -complete:function() { -li_current.animate({ ken:1 }, { - step: function(now,fx) - { - $(this).css({ - '-webkit-transform':'scale('+now+')', - 'transform':'scale('+now+')', - '-ms-transform':'scale('+now+')'}); - },duration:options.autoplayInterval/3, - complete:function(now,fx){ - - li_current.css({ken:0}); - carousel.find("ul.carousel > li").css({ - '-webkit-transform':'scale(1)', - 'transform':'scale(1)', - '-ms-transform':'scale(1)'}); - - }, - - } - - ); - - -}}); - - -slideTo(rotate_to); - }; - - - var animateProgressBar=function(){ - var progressbar=carousel.find(".progress"); - var currentProgress=progressbar.width(); - progressbar.stop().animate({width:carousel.width()},options.autoplayInterval,function(){ - - resetProgressBar(); - - } - ); - }; - - var resetProgressBar=function(){ - var progressbar=carousel.find(".progress"); - progressbar.css({width:0}); - }; - - var stopProgressBar=function(){ - var progressbar=carousel.find(".progress"); - progressbar.stop(true,false); - }; - - var slideTo=function(scroll_to){ - - var li = ul.find("li:nth-child(" + (scroll_to) + ")"); - if (options.current == scroll_to) - return false; - var left = (scroll_to * 100) -100; - - left = left * -1; - var caption = li.find("img").attr("caption"); - $(".caption").hide();//hide all captions - ul.stop(true,true).animate({left: left + "%"}, options.animationInterval); //animate sliding - - hidenavbuttons(); - highlightDot(); - - }; - - - /* public function can be called from outside */ - - this.scrollTo = function(start_from) { - - if(paused==true){return false;} - - start_from=parseInt(start_from); - resetProgressBar(); - resetzoom(); - ; - var li = ul.find("li:nth-child('" + start_from + "')"); - animateProgressBar(); - switch(options.type){ - case "slide": - slideTo(start_from); - break; - case "rotate": - rotateTo(start_from); - break; - - - case "custom": - customEffect(start_from); - break; - - case "zoom": - - zoomEffect(start_from); - break; - default: - rotateTo(start_from); - - } - - - setTimeout(function() { - showCaption(start_from); - }, options.captionAnimationInterval*options.current); - - - options.current=start_from; - if (options.current > count) { - options.current = count; - } - - navIcons(); - setStats(); - //autoscroll - autoPlayHandler = setInterval(autoScroll, options.autoplayInterval); - hide_msg_(); - }; - - var scrollNext=function(){ - var moveto=options.current + 1; - if (moveto > count) { - moveto = 1; - } - - - obj.scrollTo(moveto); - }; - var scrollPrev=function(){ - var moveto=options.current - 1; - if (moveto < 1) { - moveto = 1; - } - - - obj.scrollTo(moveto); - }; - - - - var autoScroll=function(){ - - var moveto=options.current + 1; - if (moveto > count) { - moveto = 1; - } - - - obj.scrollTo(moveto); - - }; - - - - /* highlight navigational dot */ - var highlightDot=function(){ - if(options.nav=="dots"){ - slider_nav.find(".nav").removeClass("selected"); - slider_nav.find(".nav:nth-child("+(options.current+1)+")").addClass("selected"); - } - - }; - - - //hide left nav if current slide is 1 and hide right nav if current slide is >=count - - var hidenavbuttons=function(){ - if(options.current<=1){carousel.find(".nav_left").hide(); return false;} - if (options.current >= count) { - carousel.find(".nav_right").hide(); - return false; - } - carousel.find(".nav_left").show(); - carousel.find(".nav_right").show(); - }; - - var setWidth=function(){ - //if user has provided width and height parameter appley it to image and wrapper - if(options.width>0 ){ //both parameters should be provided else only width will do the trick - carousel.css({"max-width":options.width + "px"}); - ul.find("img").css({"max-width":options.width + "px",width:"100%",height:"auto"}); - } - }; - - - var setStats=function(){ - carousel.find(".stats").html(options.current + " of " + count); - }; - - - var thumbnailsScroller = function(elem){ -var wrapper = elem; - -var thumbnails = wrapper.find('.thumbnails'); -var inactiveMargin = thumbnails.find("li:first").width(); -wrapper.scrollLeft(thumbnails.outerWidth()); -wrapper.bind('mousemove',function(e){ -var wrapperWidth = wrapper.width(); -var menuWidth = thumbnails.outerWidth() + 2 * inactiveMargin; -var left = (e.pageX - wrapper.offset().left) * (menuWidth - wrapperWidth) / wrapperWidth - inactiveMargin; -wrapper.scrollLeft(left); -}); -} ; - - -var navIcons=function(){ -var nav_left=carousel.find(".nav_left"); -var nav_right=carousel.find(".nav_right"); -if(options.current<=1){ ;nav_left.hide();}else{nav_left.show();} -if(options.current>=count){nav_right.hide();}else{nav_right.show();} -if(options.navIcons==true){ -//nav_left.show();nav_right.show(); -nav_right.find("span").hide(); -nav_left.find("span").hide(); -if(!nav_right.hasClass("navIcons")){nav_right.addClass("navIcons");} -if(!nav_left.hasClass("navIcons")){nav_left.addClass("navIcons");} -if(options.current1){ -var tp=parseInt(options.current-1); -if(!nav_left.hasClass("navIcons_prev")){nav_left.addClass("navIcons_prev");} -nav_left.html("").append(ul.find("li:nth-child("+(tp) + ")").html()); -nav_left.find("img.tslider").removeClass("tslider"); -} -} - - - - -}; - -//shows a message -var show_msg_=function(msg,type){ -var m=carousel.find('.msg'); -m.html(''); -switch(type){ -case 'info': -m.html(msg).removeClass().addClass("msg").addClass('info'); -break; -case 'error': -m.html(msg).removeClass().addClass("msg").addClass('error'); -break; -default: -m.html(msg).removeclass().addClass("msg").addClass('info'); - -} -m.css({top:0}).slideDown("fast"); - -}; - -var hide_msg_=function(){ -carousel.find('.msg').hide().css({top:"-100px"}); -}; - - -/* initialize caraousel */ - - var init_=function(){ - - setWidth(); - - - carousel.addClass("tiksluscarousel").css({"position": "relative",height:"auto"}); - //carousel.append("Only for Demo"); - - - ul.css({"width": 100 * count + "%", "height": "100%"}); - ul.find("li").css({"width": 100 / count + "%", "height": "100%"}); - - carousel.append("
      "); - - if(options.nav=="dots"){ - carousel.append("
        "); - slider_nav=carousel.find(".slider_nav"); - - for(var i=0;i"); - carousel.find(".slider_nav").find(".nav").css({width: carousel.width()*options.dotRatio + "px", height: carousel.width()*options.dotRatio + "px"}); - } - - - //position slider nav - var slider_navigation = carousel.find(".slider_nav"); - slider_navigation.css("right", "1%"); - } - carousel.append("
        "); - carousel.append(""); - carousel.append("
        "); - //position next,prev button to center - - //error handling - if(options.current>count || options.current<0){options.current=1;current=1;show_msg_("Invalid Current value. Reset to 1","error");} - if($.inArray(options.type,arr)<=-1){show_msg_("Invalid type value. Reset to rotate","error");} - if($.inArray(options.nav,arr,4)<=-1){show_msg_("Invalid nav value. Must be dots or thumbnails","error");} - - if(isNaN(options.animationInterval) || options.animationInterval<=0){show_msg_("Invalid animationInterval value. Must be > 0","error");} - if(isNaN(options.dotRatio) || (options.dotRatio<0.01 && options.dotRatio >0.1)){show_msg_("Invalid dotRatio value. Must be > 0.01 and < 0.1","error");} - if(isNaN(options.captionFontRatio) || (options.captionFontRatio<0.1 && options.captionFontRatio >1)){show_msg_("Invalid captionFontRatio value. Must be >= 0.1 and <= 1","error");} - if(isNaN(options.width) || options.width<=0){show_msg_("Invalid width value. Must be >= 0","error");} -if(isNaN(options.height) || options.height<=0){show_msg_("Invalid height value. Must be > 0","error");} -if(isNaN(options.captionAnimationInterval) || options.captionAnimationInterval<=0){show_msg_("Invalid captionAnimationInterval value. Must be > 0","error");} - if(options.autoPlayInterval<=0){show_msg_("Invalid autoPlayInterval value. Must be > 0","error");} - $(".slider_nav").hide(); - //preload all the images - - ul.find("img").each(function(i) { - var img_ = new Image(); - img_.src = $(this).attr("src"); - img_.onload = function() { - - // carousel.find(".preload span").html(i +" of " + count); - } - - }); - - - - - - carousel.find(".preload").remove(); - if(options.nav=="thumbnails"){ - carousel.append("
          "); - //create thumbs and append them - var thumbnails=carousel.find(".thumbnails_wrapper .thumbnails"); - - - - ul.find("li").each(function(i){ - - thumb_wt=wrapper_wt/10; - - thumbnails.append("
        • "+$(this).html()+"
        • "); - var lt=carousel.find(".thumbnails .thumb:eq("+i+")"); - - lt.css({width:thumb_wt + "px",display:'block'}); - lt.find("img").removeClass('tslider').addClass("responsive_img"); - thumbnails.css({width:count*thumb_wt + thumb_wt+ "px"}); - }); - - - - } - - - ul.show(); - $(".slider_nav").show(); - - - addCaptions(); - if (options.current >= 1) { - if (options.type == "slide") { - ul.css({left: ((current * 100) - 100) * -1 + "%"}); //start from current li - - } else { - carousel.find("ul.carousel >li").hide(); - carousel.find("ul.carousel >li:nth-child(" + current + ")").fadeIn("fast"); - } - - } - - highlightDot(); - - hidenavbuttons(); - - - showCaption(options.current); - thumbnailsScroller(carousel.find(".thumbnails_wrapper")); - navIcons(); - setStats(); - - autoPlayHandler = setInterval(autoScroll, options.autoplayInterval); - animateProgressBar(); - }; - - //call init_ - - init_(); - - - /* all event based funcitons here */ - - - - //click event for dots - if(options.nav=="dots"){ - slider_nav.find(".nav").click(function(e) { - - var index = $(this).parent().children().index(this); - - obj.scrollTo(index); - }); - } - - /* click event for nav left and nav right arrow buttons */ - carousel.find(".nav_left").click(function(e) { - - if(options.current==1){ - return false; - } - /* - if(animating==true){ - return false; - }*/ - paused=false; - carousel.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton"); - obj.scrollTo(options.current - 1); - }); - - - carousel.find(".nav_right").click(function(e){ - - if (options.current == count) { - return false; - } - paused=false; - carousel.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton"); - obj.scrollTo(parseInt(options.current + 1)) ; - }); - - - /* slide on image click */ - carousel.find(".tslider").click(function(e) { - var half=carousel.width()/2; - if(e.pageX<=half){ - if(options.current>1){ - obj.scrollTo(options.current-1); - } - } - if(e.pageX>=half){ - if (options.current < count) { - obj.scrollTo(options.current+1); - } - } - }); - - carousel.find(".tslider").mouseenter(function(e){ - - carousel.find(".op").fadeIn("fast"); - - - if(options.navIcons==true){ //animate navicons - carousel.find(".nav_right").stop().animate({right:0,opacity:1},1000); - carousel.find(".nav_left").stop().animate({left:0,opacity:1},1000); - } - - }).mouseleave(function(e){ - - if(e.relatedTarget.tagName=="a" || e.relatedTarget.tagName=="A"){e.preventDefault();}else{ - carousel.find(".op").fadeOut("fast");} - if(options.navIcons==true){ - carousel.find(".nav_right").stop().animate({right:-20,opacity:0.8},1000); - carousel.find(".nav_left").stop().animate({left:-20,opacity:0.8},1000); - } - - }); - - - - carousel.find(".op .fullscreenbutton").click(function(e){ - - e.preventDefault(); - var button_=$(this); - if(button_.hasClass("fullscreenbutton")){ - if(carousel.hasClass("fullscreen")){ - cancelFullScreen(); - }else{ - toggleFullScreen(element); - } - }//fullscreen - }); - - carousel.find(".op .pausebutton, .op .resumebutton").click(function(e){ - e.preventDefault(); - var button_=$(this); - if(button_.hasClass("pausebutton")){ - button_.addClass("resumebutton").removeClass("pausebutton"); - paused=true; - stopProgressBar(); - window.clearInterval(autoPlayHandler); - show_msg_("Paused","info"); - return ; - } - if(button_.hasClass("resumebutton")){ - autoPlayHandler=setInterval(autoScroll,options.autoplayInterval); - animateProgressBar(); - paused=false; - hide_msg_(); - button_.addClass("pausebutton").removeClass("resumebutton"); - return; - } - - }); - - - - - - - carousel.find(".thumbnails li a").click(function(e){ - e.preventDefault(); - var num=parseInt($(this).closest("li.thumb").attr("num")); - paused=false; - carousel.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton"); - obj.scrollTo(num); - - }); - - - - -function FullscrenONOFF() -{ - var checkFullscreen = ((typeof document.webkitIsFullScreen) !== 'undefined') ? document.webkitIsFullScreen : document.mozFullScreen; - if (!checkFullscreen) - {//fullscreen is inactive - if(carousel.hasClass("fullscreen")){ - setWidth(); - carousel.removeClass("fullscreen"); - carousel.find(".thumbnails_wrapper").removeClass("fullscreen_thumbnails"); - carousel.find(".op .fullscreenbutton").removeClass("exit_fullscreenbutton"); - } - } - else { - // code if fullscreen is active do nothing - } - -}; - - - - /* if user resizes window try to resize navigation dots,navs and captions(font size) in order to make them responsive */ - - $(window).resize(function(){ - - carousel.find(".caption").css({fontSize:carousel.width()*options.captionFontRatio + "%"}); - carousel.find(".slider_nav .nav").css({width: carousel.width()*options.dotRatio + "px", height: carousel.width()*options.dotRatio + "px"}); - //if carousel is in full screen mode and user press escape key (on pressing escape key window resizes) - - FullscrenONOFF(); - }); - - - - - - }; - - $.fn.tiksluscarousel = function(options) - { - return this.each(function() - { - var element = $(this); - - // Return early if this element already has a plugin instance - if (element.data('tiksluscaraousel')) return; - - // pass options to plugin constructor - var tiksluscaraousel = new TikslusCaraousel(this, options); - - // Store plugin object in this element's data - element.data('tiksluscaraousel', tiksluscaraousel); - }); - - }; -})(jQuery); \ No newline at end of file diff --git a/plugins/tiksluscarousel.min.js b/plugins/tiksluscarousel.min.js deleted file mode 100644 index d16e939..0000000 --- a/plugins/tiksluscarousel.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){var b=function(m,v){var h=a(m);var e=this;var x={current:1,prev:"«",next:"»",type:"slide",autoplayInterval:10000,animationInterval:800,dotRatio:0.02,loader:"ajax-loader.gif",customAnimationClassIn:"",customAnimationClassOut:"",customAnimationCaption:"",captionAnimationInterval:100,captionFontRatio:0.15,width:0,height:0,nav:"dots",navIcons:true};v=a.extend(x,v);var r=v.current;var G=h.find("li").length;var z;var f;var N=false;var n=["slide","rotate","zoom","dots","thumbnails"];var u;h.find("ul").addClass("carousel");var B=h.find("ul.carousel");B.find("img").addClass("tslider");var d=B.find("li:first").width();B.hide();h.append("

          Loading Images

          ");h.find(".preload").css({position:"absolute",top:"48%",left:"35%",backgroudColor:"#fff",textAlign:"center",color:"#000",padding:"0.5em"}).show();var s=function(){var P=h.find("ul.carousel").find("li");P.each(function(){if(a(this).find("img").attr("caption")){var Q=a(this).find("img").attr("caption");a(this).append("
          ");a(this).find(".caption").css({left:a(this).position().left+a(this).width()+a(this).find(".caption").width()+"px",width:100/G+"%","word-wrap":"break-word"}).html(Q).hide()}})};var g=function(T){var Q=h.find("li:nth-child("+T+")");var S=Q.find(".caption");var P=100/G;if(S.hasClass("animated")){S.removeClass("animated").removeClass(v.customAnimationCaption)}if(v.customAnimationCaption!=""){var R=Q.position().left;Q.find(".caption").css({left:R+"px",fontSize:h.width()*v.captionFontRatio+"%"});Q.find(".caption").addClass(v.customAnimationCaption).addClass("animated").show()}else{Q.find(".caption").css({left:101+"%",fontSize:h.width()*v.captionFontRatio+"%"}).show().animate({left:(v.current*P-P)+"%"},1500)}};var F=function(P){if(P.requestFullscreen){P.requestFullscreen()}else{if(P.webkitRequestFullscreen){P.webkitRequestFullscreen()}else{if(P.mozRequestFullScreen){P.mozRequestFullScreen()}else{if(P.msRequestFullscreen){P.msRequestFullscreen()}}}}h.find(".op .fullscreenbutton").addClass("exit_fullscreenbutton");h.addClass("fullscreen");h.find(".block").remove();B.find(".tslider").css({maxWidth:"100%"});h.find(".thumbnails_wrapper").addClass("fullscreen_thumbnails")};var w=function(){if(document.exitFullscreen){document.exitFullscreen()}else{if(document.webkitExitFullscreen){document.webkitExitFullscreen()}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{if(document.msExitFullscreen){document.msExitFullscreen()}}}}if(h.hasClass("fullscreen")){J();h.removeClass("fullscreen");h.find(".thumbnails_wrapper").removeClass("fullscreen_thumbnails");h.find(".op .fullscreenbutton").removeClass("exit_fullscreenbutton")}};var c=function(R){if(R==v.current){return false}if(v.customAnimationClassIn!=""||v.customAnimationClassOut!=""){var P=B.find("li:nth-child("+v.current+")");var Q=B.find("li:nth-child("+R+")");Q.css({left:0,display:"block"});P.removeClass().addClass("animated").addClass(v.customAnimationClassOut);setTimeout(function(){P.hide();Q.removeClass().addClass("animated").addClass(v.customAnimationClassIn)},1000)}else{P.fadeOut("fast");Q.fadeIn("slow")}v.current=R;if(v.current>G){v.current=1}o();l()};var I=function(Q){var P=B.find("li:nth-child("+v.current+")");var R=B.find("li:nth-child("+Q+")");P.fadeOut("fast");R.fadeIn("slow");v.current=Q;if(v.current>G){v.current=1}o();l()};var O=function(){h.find("ul.carousel>li").css({ken:0,"-webkit-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)"});h.find("li").stop(true,false);window.clearInterval(u);B.stop(true,false)};var M=function(R){B.stop();B.find("> li").show();var P=B.find("li:nth-child("+R+")");P.fadeIn("fast");var Q=(Math.random()*1)+1;P.css({ken:1});P.animate({ken:Q},{start:function(){},step:function(S,T){a(this).css({"-webkit-transform":"scale("+S+")",transform:"scale("+S+")","-ms-transform":"scale("+S+")"})},duration:v.autoplayInterval/2,complete:function(){P.animate({ken:1},{step:function(S,T){a(this).css({"-webkit-transform":"scale("+S+")",transform:"scale("+S+")","-ms-transform":"scale("+S+")"})},duration:v.autoplayInterval/3,complete:function(S,T){P.css({ken:0});h.find("ul.carousel > li").css({"-webkit-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)"})}})}});i(R)};var H=function(){var P=h.find(".progress");var Q=P.width();P.stop().animate({width:h.width()},v.autoplayInterval,function(){k()})};var k=function(){var P=h.find(".progress");P.css({width:0})};var C=function(){var P=h.find(".progress");P.stop(true,false)};var i=function(S){var P=B.find("li:nth-child("+(S)+")");if(v.current==S){return false}var R=(S*100)-100;R=R*-1;var Q=P.find("img").attr("caption");a(".caption").hide();B.stop(true,true).animate({left:R+"%"},v.animationInterval);o();l()};this.scrollTo=function(Q){if(N==true){return false}Q=parseInt(Q);k();O();var P=B.find("li:nth-child('"+Q+"')");H();switch(v.type){case"slide":i(Q);break;case"rotate":I(Q);break;case"custom":c(Q);break;case"zoom":M(Q);break;default:I(Q)}setTimeout(function(){g(Q)},v.captionAnimationInterval*v.current);v.current=Q;if(v.current>G){v.current=G}t();E();u=setInterval(y,v.autoplayInterval);D()};var p=function(){var P=v.current+1;if(P>G){P=1}e.scrollTo(P)};var L=function(){var P=v.current-1;if(P<1){P=1}e.scrollTo(P)};var y=function(){var P=v.current+1;if(P>G){P=1}e.scrollTo(P)};var l=function(){if(v.nav=="dots"){z.find(".nav").removeClass("selected");z.find(".nav:nth-child("+(v.current+1)+")").addClass("selected")}};var o=function(){if(v.current<=1){h.find(".nav_left").hide();return false}if(v.current>=G){h.find(".nav_right").hide();return false}h.find(".nav_left").show();h.find(".nav_right").show()};var J=function(){if(v.width>0){h.css({"max-width":v.width+"px"});B.find("img").css({"max-width":v.width+"px",width:"100%",height:"auto"})}};var E=function(){h.find(".stats").html(v.current+" of "+G)};var K=function(Q){var S=Q;var R=S.find(".thumbnails");var P=R.find("li:first").width();S.scrollLeft(R.outerWidth());S.bind("mousemove",function(W){var T=S.width();var U=R.outerWidth()+2*P;var V=(W.pageX-S.offset().left)*(U-T)/T-P;S.scrollLeft(V)})};var t=function(){var R=h.find(".nav_left");var Q=h.find(".nav_right");if(v.current<=1){R.hide()}else{R.show()}if(v.current>=G){Q.hide()}else{Q.show()}if(v.navIcons==true){Q.find("span").hide();R.find("span").hide();if(!Q.hasClass("navIcons")){Q.addClass("navIcons")}if(!R.hasClass("navIcons")){R.addClass("navIcons")}if(v.current1){var S=parseInt(v.current-1);if(!R.hasClass("navIcons_prev")){R.addClass("navIcons_prev")}R.html("").append(B.find("li:nth-child("+(S)+")").html());R.find("img.tslider").removeClass("tslider")}}};var A=function(R,Q){var P=h.find(".msg");P.html("");switch(Q){case"info":P.html(R).removeClass().addClass("msg").addClass("info");break;case"error":P.html(R).removeClass().addClass("msg").addClass("error");break;default:P.html(R).removeclass().addClass("msg").addClass("info")}P.css({top:0}).slideDown("fast")};var D=function(){h.find(".msg").hide().css({top:"-100px"})};var q=function(){J();h.addClass("tiksluscarousel").css({position:"relative",height:"auto"});B.css({width:100*G+"%",height:"100%"});B.find("li").css({width:100/G+"%",height:"100%"});h.append("
          ");if(v.nav=="dots"){h.append("
            ");z=h.find(".slider_nav");for(var Q=0;Q");h.find(".slider_nav").find(".nav").css({width:h.width()*v.dotRatio+"px",height:h.width()*v.dotRatio+"px"})}var P=h.find(".slider_nav");P.css("right","1%")}h.append("
            ");h.append("");h.append("
            ");if(v.current>G||v.current<0){v.current=1;r=1;A("Invalid Current value. Reset to 1","error")}if(a.inArray(v.type,n)<=-1){A("Invalid type value. Reset to rotate","error")}if(a.inArray(v.nav,n,4)<=-1){A("Invalid nav value. Must be dots or thumbnails","error")}if(isNaN(v.animationInterval)||v.animationInterval<=0){A("Invalid animationInterval value. Must be > 0","error")}if(isNaN(v.dotRatio)||(v.dotRatio<0.01&&v.dotRatio>0.1)){A("Invalid dotRatio value. Must be > 0.01 and < 0.1","error")}if(isNaN(v.captionFontRatio)||(v.captionFontRatio<0.1&&v.captionFontRatio>1)){A("Invalid captionFontRatio value. Must be >= 0.1 and <= 1","error")}if(isNaN(v.width)||v.width<=0){A("Invalid width value. Must be >= 0","error")}if(isNaN(v.height)||v.height<=0){A("Invalid height value. Must be > 0","error")}if(isNaN(v.captionAnimationInterval)||v.captionAnimationInterval<=0){A("Invalid captionAnimationInterval value. Must be > 0","error")}if(v.autoPlayInterval<=0){A("Invalid autoPlayInterval value. Must be > 0","error")}a(".slider_nav").hide();B.find("img").each(function(S){var T=new Image();T.src=a(this).attr("src");T.onload=function(){}});h.find(".preload").remove();if(v.nav=="thumbnails"){h.append("
              ");var R=h.find(".thumbnails_wrapper .thumbnails");B.find("li").each(function(T){f=d/10;R.append("
            • "+a(this).html()+"
            • ");var S=h.find(".thumbnails .thumb:eq("+T+")");S.css({width:f+"px",display:"block"});S.find("img").removeClass("tslider").addClass("responsive_img");R.css({width:G*f+f+"px"})})}B.show();a(".slider_nav").show();s();if(v.current>=1){if(v.type=="slide"){B.css({left:((r*100)-100)*-1+"%"})}else{h.find("ul.carousel >li").hide();h.find("ul.carousel >li:nth-child("+r+")").fadeIn("fast")}}l();o();g(v.current);K(h.find(".thumbnails_wrapper"));t();E();u=setInterval(y,v.autoplayInterval);H()};q();if(v.nav=="dots"){z.find(".nav").click(function(Q){var P=a(this).parent().children().index(this);e.scrollTo(P)})}h.find(".nav_left").click(function(P){if(v.current==1){return false}N=false;h.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton");e.scrollTo(v.current-1)});h.find(".nav_right").click(function(P){if(v.current==G){return false}N=false;h.find(".op .resumebutton").removeClass("resumebutton").addClass("pausebutton");e.scrollTo(parseInt(v.current+1))});h.find(".tslider").click(function(Q){var P=h.width()/2;if(Q.pageX<=P){if(v.current>1){e.scrollTo(v.current-1)}}if(Q.pageX>=P){if(v.current