Changeset 50153 in spip-zone


Ignore:
Timestamp:
Aug 1, 2011, 3:26:14 PM (10 years ago)
Author:
joseph@…
Message:

Nouvelle version du plugin qui embarque AnythingSlider? en version 1.7.6

Les scripts additionnels et les thèmes se chargent dorénavant via un formulaire de configuration et via un nouveau pipeline anythingslider_charger sur le modèle de fonction du plugin jQuery UI.

Location:
_plugins_/anythingslider/trunk
Files:
9 added
5 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/anythingslider/trunk/anythingslider_pipelines.php

    r50142 r50153  
    44if (!defined("_ECRIRE_INC_VERSION")) return;
    55
    6 function anythingslider_anythingslider_charger_fx($flux){return $flux;}
    7 function anythingslider_anythingslider_charger_video($flux){return $flux;}
     6function anythingslider_anythingslider_charger($flux){return $flux;}
    87
    98function anythingslider_insert_head($flux){
     9        // Chargement de la CSS et du JS d'AnythingSlider
    1010        $css = find_in_path('css/anythingslider.css');
    1111        $flux .= "\n<link rel='stylesheet' href='$css' type='text/css' />\n";
    1212        $js = find_in_path('js/jquery.anythingslider.min.js');
    13         $flux .= "\n<script type='text/javascript' src='$js'></script>\n";
    14         if (pipeline('anythingslider_charger_fx',false)) {
    15                 $js = find_in_path('js/jquery.anythingslider.fx.min.js');
    16                 $flux .= "\n<script type='text/javascript' src='$js'></script>\n";
    17                 $js = find_in_path('js/jquery.easing.1.2.js');
    18                 $flux .= "\n<script type='text/javascript' src='$js'></script>\n";
    19                 $js = find_in_path('js/swfobject.js');
    20                 $flux .= "\n<script type='text/javascript' src='$js'></script>\n";
     13        $flux .= "<script type='text/javascript' src='$js'></script>\n";
     14        // Chargement optionnels de scripts et/ou de thèmes
     15        $config = unserialize($GLOBALS['meta']['anythingslider']);;
     16        if (!is_array($config))
     17                $config = array();
     18        $config = array_unique(pipeline('anythingslider_charger',$config));
     19        foreach ($config as $script) {
     20                $ext = substr(strrchr($script, "."), 1);
     21                if ($fichier = find_in_path($ext.'/'.$script)) {
     22                        if ($ext=='css')
     23                                $flux .= "<link rel='stylesheet' href='$fichier' type='text/css' />\n";
     24                        else
     25                                $flux .= "<script type='text/javascript' src='$fichier'></script>\n";
     26                }
    2127        }
    22         if (pipeline('anythingslider_charger_video',false)) {
    23                 $js = find_in_path('js/jquery.anythingslider.video.min.js');
    24                 $flux .= "\n<script type='text/javascript' src='$js'></script>\n";
    25         }
     28        // Script pour internet explorer, doit être placé en dernier.
     29        $css = find_in_path('css/anythingslider-ie.css');
     30        $flux .= "<!--[if lte IE 7]>\n";
     31        $flux .= "<link rel='stylesheet' href='$css' type='text/css' />\n";
     32        $flux .= "<![endif]-->\n";
    2633        return $flux;
    2734}
    2835
    29 
    30 
    31 
    32 jquery.anythingslider.video.min.js
    33 
    3436?>
  • _plugins_/anythingslider/trunk/js/jquery.anythingslider.fx.min.js

    r50066 r50153  
    11/*
    2  * AnythingSlider Slide FX 1.5 minified for AnythingSlider v1.5.8+
     2 * AnythingSlider Slide FX 1.5.1 minified for AnythingSlider v1.5.8+
    33 * By Rob Garrison (aka Mottie & Fudgey)
    44 * Dual licensed under the MIT and GPL licenses.
    55 */
    6 (function(k){k.fn.anythingSliderFx=function(f){var l=k(this).closest(".anythingSlider"),h=l.width(),m=l.height(),n=function(a){return{top:[{inFx:{top:0},outFx:{top:"-"+(a||m)}}],bottom:[{inFx:{bottom:0},outFx:{bottom:a||m}}],left:[{inFx:{left:0},outFx:{left:"-"+(a||h)}}],right:[{inFx:{right:0},outFx:{right:a||h}}],fade:[{inFx:{opacity:1},outFx:{opacity:0}}],expand:[{inFx:{width:"100%",top:"0%",left:"0%"},outFx:{width:a||"10%",top:"50%",left:"50%"}}],listLR:[{inFx:{left:0,opacity:1},outFx:[{left:a|| h,opacity:0},{left:"-"+(a||h),opacity:0}],selector:[":odd",":even"]}],listRL:[{inFx:{left:0,opacity:1},outFx:[{left:a||h,opacity:0},{left:"-"+(a||h),opacity:0}],selector:[":even",":odd"]}],"caption-Top":[{inFx:{top:0,opacity:0.8},outFx:{top:"-"+a||-50,opacity:0}}],"caption-Right":[{inFx:{right:0,opacity:0.8},outFx:{right:"-"+a||-150,opacity:0}}],"caption-Bottom":[{inFx:{bottom:0,opacity:0.8},outFx:{bottom:"-"+a||-50,opacity:0}}],"caption-Left":[{inFx:{left:0,opacity:0.8},outFx:{left:"-"+a||-150,opacity:0}}]}}; return this.each(function(){var a=n(),h={easing:"swing",timeIn:400,timeOut:350},j=function(a,b,d,c){if(!(a.length===0||typeof b==="undefined")){var e=b[0]||b,g=e[1]||"",c=c||parseInt(g===""?e.duration:e[0].duration,10);if(d&&(a.css("position")!=="absolute"&&a.css({position:"relative"}),a.stop(),g!=="")){a.filter(b[1][0]).animate(e[0],{queue:!1,duration:c,easing:e[0].easing});a.filter(b[1][1]).animate(g,{queue:!0,duration:c,easing:e[0].easing});return}a.animate(e,{queue:!0,duration:c,easing:e.easing})}}, l=function(f,b){var d,c,e=b?"outFx":"inFx",g={},l=b?h.timeOut:h.timeIn,i=k.trim(f[0].replace(/\s+/g," ")).split(" ");if(b&&i.length===1&&a.hasOwnProperty(i)&&typeof a[i][0].selector!=="undefined")return c=a[i][0].outFx,c[0].duration=f[2]||h.timeOut,c[0].easing=f[3]||h.easing,[c,a[i][0].selector||[]];k.each(i,function(c,i){if(a.hasOwnProperty(i)){var j=typeof f[1]==="undefined",m=i==="fade"?1:2;d=j?a:n(f[1]);k.extend(!0,g,d[i][0][e]);j=f[m]||g.duration||l;g.duration=b?j/2:j;g.easing=f[m+1]||h.easing}}); return[g]};k(this).bind("slide_init",function(a,b){var d,c,e,g=b.$lastPage.add(b.$items.eq(b.exactPage)).add(b.$targetPage);b.exactPage===0&&(g=g.add(b.$items.eq(b.pages)));b.options.animationTime<h.timeOut&&(e=b.options.animationTime||1);g=g.find("*").andSelf();for(d in f)if(d==="outFx")for(c in f.outFx)g.filter(c).length&&j(g.filter(c),f.outFx[c],!0);else d!=="inFx"&&k.isArray(f[d])&&g.filter(d).length&&j(g.filter(d),l(f[d],!0),!0,e)}).bind("slide_complete",function(a,b){var d,c,e=b.$currentPage.add(b.$items.eq(b.exactPage)), e=e.find("*").andSelf();for(d in f)if(d==="inFx")for(c in f.inFx)e.filter(c).length&&j(e.filter(c),f.inFx[c],!1);else d!=="outFx"&&k.isArray(f[d])&&e.filter(d).length&&j(e.filter(d),l(f[d],!1),!1)})})}})(jQuery);
     6(function(j){j.fn.anythingSliderFx=function(f,p){var l=j(this).closest(".anythingSlider"),h=l.width(),n=l.height(),o=function(a){return{top:[{inFx:{top:0},outFx:{top:"-"+(a||n)}}],bottom:[{inFx:{bottom:0},outFx:{bottom:a||n}}],left:[{inFx:{left:0},outFx:{left:"-"+(a||h)}}],right:[{inFx:{right:0},outFx:{right:a||h}}],fade:[{inFx:{opacity:1},outFx:{opacity:0}}],expand:[{inFx:{width:"100%",top:"0%",left:"0%"},outFx:{width:a||"10%",top:"50%",left:"50%"}}],listLR:[{inFx:{left:0,opacity:1},outFx:[{left:a|| h,opacity:0},{left:"-"+(a||h),opacity:0}],selector:[":odd",":even"]}],listRL:[{inFx:{left:0,opacity:1},outFx:[{left:a||h,opacity:0},{left:"-"+(a||h),opacity:0}],selector:[":even",":odd"]}],"caption-Top":[{inFx:{top:0,opacity:0.8},outFx:{top:"-"+a||-50,opacity:0}}],"caption-Right":[{inFx:{right:0,opacity:0.8},outFx:{right:"-"+a||-150,opacity:0}}],"caption-Bottom":[{inFx:{bottom:0,opacity:0.8},outFx:{bottom:"-"+a||-50,opacity:0}}],"caption-Left":[{inFx:{left:0,opacity:0.8},outFx:{left:"-"+a||-150,opacity:0}}]}}; return this.each(function(){var a=j.extend({easing:"swing",timeIn:400,timeOut:350},p),h=o(),k=function(a,b,d,c){if(!(a.length===0||typeof b==="undefined")){var e=b[0]||b,g=e[1]||"",c=c||parseInt(g===""?e.duration:e[0].duration,10);if(d&&(a.css("position")!=="absolute"&&a.css({position:"relative"}),a.stop(),g!=="")){a.filter(b[1][0]).animate(e[0],{queue:!1,duration:c,easing:e[0].easing});a.filter(b[1][1]).animate(g,{queue:!0,duration:c,easing:e[0].easing});return}a.animate(e,{queue:!0,duration:c,easing:e.easing})}}, l=function(f,b){var d,c,e=b?"outFx":"inFx",g={},l=b?a.timeOut:a.timeIn,i=j.trim(f[0].replace(/\s+/g," ")).split(" ");if(b&&i.length===1&&h.hasOwnProperty(i)&&typeof h[i][0].selector!=="undefined")return c=h[i][0].outFx,c[0].duration=f[2]||a.timeOut,c[0].easing=f[3]||a.easing,[c,h[i][0].selector||[]];j.each(i,function(c,i){if(h.hasOwnProperty(i)){var k=typeof f[1]==="undefined",m=i==="fade"?1:2;d=k?h:o(f[1]);j.extend(!0,g,d[i][0][e]);k=f[m]||g.duration||l;g.duration=b?k/2:k;g.easing=f[m+1]||a.easing}}); return[g]},m=j(this).bind("slide_init",function(h,b){var d,c,e,g=b.$lastPage.add(b.$items.eq(b.exactPage)).add(b.$targetPage);b.exactPage===0&&(g=g.add(b.$items.eq(b.pages)));b.options.animationTime<a.timeOut&&(e=b.options.animationTime||1);g=g.find("*").andSelf();for(d in f)if(d==="outFx")for(c in f.outFx)g.filter(c).length&&k(g.filter(c),f.outFx[c],!0);else d!=="inFx"&&j.isArray(f[d])&&g.filter(d).length&&k(g.filter(d),l(f[d],!0),!0,e)}).bind("slide_complete",function(a,b){var d,c,e=b.$currentPage.add(b.$items.eq(b.exactPage)), e=e.find("*").andSelf();for(d in f)if(d==="inFx")for(c in f.inFx)e.filter(c).length&&k(e.filter(c),f.inFx[c],!1);else d!=="outFx"&&j.isArray(f[d])&&e.filter(d).length&&k(e.filter(d),l(f[d],!1),!1)}).data("AnythingSlider");m.gotoPage(m.currentPage,m.playing)})}})(jQuery);
  • _plugins_/anythingslider/trunk/js/jquery.anythingslider.min.js

    r50066 r50153  
    11/*
    2  AnythingSlider v1.7.5 minified using Google Closure Compiler
     2 AnythingSlider v1.7.6 minified using Google Closure Compiler
    33 Original by Chris Coyier: http://css-tricks.com
    44 Get the latest version: https://github.com/ProLoser/AnythingSlider
    55*/
    66
    7 (function(d){d.anythingSlider=function(h,j){var a=this,b;a.$el=d(h).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');a.$el.data("AnythingSlider",a);a.init=function(){a.options=b=d.extend({},d.anythingSlider.defaults,j);a.initialized=!1;d.isFunction(b.onBeforeInitialize)&&a.$el.bind("before_initialize",b.onBeforeInitialize);a.$el.trigger("before_initialize",a);a.$wrapper=a.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+b.theme); a.$window=a.$el.closest("div.anythingWindow");a.win=window;a.$win=d(a.win);a.$controls=d('<div class="anythingControls"></div>').appendTo(b.appendControlsTo!==null&&d(b.appendControlsTo).length?d(b.appendControlsTo):a.$wrapper);a.$startStop=d('<a href="#" class="start-stop"></a>');b.buildStartStop&&a.$startStop.appendTo(b.appendStartStopTo!==null&&d(b.appendStartStopTo).length?d(b.appendStartStopTo):a.$controls);a.$nav=d('<ul class="thumbNav" />').appendTo(b.appendNavigationTo!==null&&d(b.appendNavigationTo).length? d(b.appendNavigationTo):a.$controls);a.flag=!1;a.playing=b.autoPlay;a.slideshow=!1;a.hovered=!1;a.panelSize=[];a.currentPage=b.startPanel=parseInt(b.startPanel,10)||1;a.adj=b.infiniteSlides?0:1;a.width=a.$el.width();a.height=a.$el.height();a.outerPad=[a.$wrapper.innerWidth()-a.$wrapper.width(),a.$wrapper.innerHeight()-a.$wrapper.height()];b.playRtl&&a.$wrapper.addClass("rtl");if(b.expand)a.$outer=a.$wrapper.parent(),a.$window.css({width:"100%",height:"100%"}),a.checkResize();b.buildStartStop&&a.buildAutoPlay(); b.buildArrows&&a.buildNextBackButtons();if(!b.autoPlay)b.autoPlayLocked=!1;a.updateSlider();a.$lastPage=a.$currentPage;a.runTimes=d("div.anythingSlider").index(a.$wrapper)+1;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");a.runTimes===1&&a.makeActive();if(!d.isFunction(d.easing[b.easing]))b.easing="swing";b.pauseOnHover&&a.$wrapper.hover(function(){a.playing&&(a.$el.trigger("slideshow_paused",a),a.clearTimer(!0))},function(){a.playing&&(a.$el.trigger("slideshow_unpaused",a),a.startStop(a.playing, !0))});var c,e=b.hashTags?a.gotoHash()||b.startPanel:b.startPanel;a.setCurrentPage(e,!1);a.slideControls(!1);a.$wrapper.bind("mouseenter mouseleave",function(b){a.hovered=b.type==="mouseenter"?!0:!1;a.slideControls(a.hovered,!1)});d(document).keyup(function(c){if(b.enableKeyboard&&a.$wrapper.is(".activeSlider")&&!c.target.tagName.match("TEXTAREA|INPUT|SELECT"))switch(c.which){case 39:a.goForward();break;case 37:a.goBack()}});a.$items.delegate("a","focus.AnythingSlider",function(c){var e=d(this).closest(".panel"), i=a.$items.index(e)+a.adj;a.$items.find(".focusedLink").removeClass("focusedLink");d(this).addClass("focusedLink");a.$window.scrollLeft(0);!e.is(".activePage")&&a.currentPage+b.showMultiple-1>i&&(a.gotoPage(i),c.preventDefault())});c="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");d.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(e,f){d.isFunction(b[f])&& a.$el.bind(c[e],b[f])});d.isFunction(b.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){b.onSlideComplete(a)},0)});a.initialized=!0;a.$el.trigger("initialized",a);a.startStop(a.playing)};a.updateSlider=function(){a.$el.children(".cloned").remove();a.$nav.empty();a.currentPage=a.currentPage||1;a.$items=a.$el.children();a.pages=a.$items.length;b.showMultiple=parseInt(b.showMultiple,10)||1;if(b.showMultiple>1){if(b.showMultiple>a.pages)b.showMultiple=a.pages;a.adjustMultiple= b.infiniteSlides&&a.pages>1?0:b.showMultiple-1;a.pages=a.$items.length-a.adjustMultiple}a.$controls.add(a.$nav).add(a.$startStop).add(a.$forward).add(a.$back)[a.pages<=1?"hide":"show"]();a.pages>1&&a.buildNavigation();b.infiniteSlides&&a.pages>1&&(a.$el.prepend(a.$items.filter(":last").clone().removeAttr("id").addClass("cloned")),b.showMultiple>1?a.$el.append(a.$items.filter(":lt("+b.showMultiple+")").clone().removeAttr("id").addClass("cloned").addClass("multiple")):a.$el.append(a.$items.filter(":first").clone().removeAttr("id").addClass("cloned")), a.$el.find(".cloned").each(function(){d(this).find("a,input,textarea,select,button,area").attr("disabled","disabled");d(this).find("[id]").removeAttr("id")}));a.$items=a.$el.children().addClass("panel");a.setDimensions();b.resizeContents?(a.$items.css("width",a.width),a.$wrapper.css("width",a.getDim(a.currentPage)[0]),a.$wrapper.add(a.$items).css("height",a.height)):a.$win.load(function(){a.setDimensions()});if(a.currentPage>a.pages)a.currentPage=a.pages;a.setCurrentPage(a.currentPage,!1);a.$nav.find("a").eq(a.currentPage- 1).addClass("cur")};a.buildNavigation=function(){if(b.buildNavigation&&a.pages>1){var c,e;a.$items.filter(":not(.cloned)").each(function(g){var f=g+1;c=(f===1?"first":"")+(f===a.pages?"last":"");e=d('<a href="#"></a>').addClass("panel"+f).wrap('<li class="'+c+'" />');a.$nav.append(e.parent());d.isFunction(b.navigationFormatter)?(c=b.navigationFormatter(f,d(this)),e.html("<span>"+c+"</span>"),parseInt(e.find("span").css("text-indent"),10)<0&&e.addClass(b.tooltipClass).attr("title",c)):e.html("<span>"+ f+"</span>");e.bind(b.clickControls,function(c){if(!a.flag&&b.enableNavigation)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.gotoPage(f),b.hashTags&&a.setHash(f);c.preventDefault()})});if(b.navigationSize!==!1&&parseInt(b.navigationSize,10)<a.pages)a.$controls.find(".anythingNavWindow").length||a.$nav.before('<ul><li class="prev"><a href="#"><span>'+b.backText+"</span></a></li></ul>").after('<ul><li class="next"><a href="#"><span>'+b.forwardText+"</span></a></li></ul>").wrap('<div class="anythingNavWindow"></div>'), a.navWidths=a.$nav.find("li").map(function(){return d(this).innerWidth()}).get(),a.navLeft=1,a.$nav.width(a.navWidth(1,a.pages+1)+5),a.$controls.find(".anythingNavWindow").width(a.navWidth(1,b.navigationSize+1)).end().find(".prev,.next").bind(b.clickControls,function(c){if(!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},200),a.navWindow(a.navLeft+b.navigationSize*(d(this).is(".prev")?-1:1));c.preventDefault()})}};a.navWidth=function(b,e){for(var d=Math.min(b,e),f=Math.max(b,e),i=0;d<f;d++)i+=a.navWidths[d- 1]||0;return i};a.navWindow=function(c){var e=a.pages-b.navigationSize+1,c=c<=1?1:c>1&&c<e?c:e;if(c!==a.navLeft)a.$controls.find(".anythingNavWindow").animate({scrollLeft:a.navWidth(1,c),width:a.navWidth(c,c+b.navigationSize)},{queue:!1,duration:b.animationTime}),a.navLeft=c};a.buildNextBackButtons=function(){a.$forward=d('<span class="arrow forward"><a href="#"><span>'+b.forwardText+"</span></a></span>");a.$back=d('<span class="arrow back"><a href="#"><span>'+b.backText+"</span></a></span>");a.$back.bind(b.clickBackArrow, function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goBack();c.preventDefault()});a.$forward.bind(b.clickForwardArrow,function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goForward();c.preventDefault()});a.$back.add(a.$forward).find("a").bind("focusin focusout",function(){d(this).toggleClass("hover")});a.$forward.appendTo(b.appendForwardTo!==null&&d(b.appendForwardTo).length?d(b.appendForwardTo):a.$wrapper);a.$back.appendTo(b.appendBackTo!== null&&d(b.appendBackTo).length?d(b.appendBackTo):a.$wrapper);a.$arrowWidth=a.$forward.width()};a.buildAutoPlay=function(){a.$startStop.html("<span>"+(a.playing?b.stopText:b.startText)+"</span>").bind(b.clickSlideshow,function(c){b.enableStartStop&&(a.startStop(!a.playing),a.makeActive(),a.playing&&!b.autoPlayDelayed&&a.goForward(!0));c.preventDefault()}).bind("focusin focusout",function(){d(this).toggleClass("hover")})};a.checkResize=function(c){clearTimeout(a.resizeTimer);a.resizeTimer=setTimeout(function(){var e= a.$outer.width()-a.outerPad[0],d=(a.$outer[0].tagName==="BODY"?a.$win.height():a.$outer.height())-a.outerPad[1];if(a.width*b.showMultiple!==e||a.height!==d)a.setDimensions(),a.gotoPage(a.currentPage,a.playing,null,1);typeof c==="undefined"&&a.checkResize()},500)};a.setDimensions=function(){var c,e,g,f=0,i=b.showMultiple>1?a.width||a.$window.width()/b.showMultiple:a.$window.width(),h=a.$win.width();if(b.expand)c=a.$outer.width()-a.outerPad[0],a.height=e=a.$outer.height()-a.outerPad[1],a.$wrapper.add(a.$window).add(a.$items).css({width:c, height:e}),a.width=i=b.showMultiple>1?c/b.showMultiple:c;a.$items.each(function(j){g=d(this).children();b.resizeContents?(c=a.width,d(this).css({width:c,height:a.height}),g.length&&g[0].tagName==="EMBED"&&g.attr({width:"100%",height:"100%"}),g.length===1&&g.css({width:"100%",height:"100%"})):(c=d(this).width(),g.length===1&&c>=h&&(c=g.width()>=h?i:g.width(),g.css("max-width",c)),d(this).css("width",c),e=d(this).outerHeight(),d(this).css("height",e));a.panelSize[j]=[c,e,f];f+=c});a.$el.css("width", f)};a.getDim=function(c){if(a.pages<1)return[a.width,a.height];var c=b.infiniteSlides&&a.pages>1?c:c-1,e,d=a.panelSize[c][0],f=a.panelSize[c][1];if(b.showMultiple>1)for(e=1;e<b.showMultiple;e++)d+=a.panelSize[(c+e)%b.showMultiple][0],f=Math.max(f,a.panelSize[c+e][1]);return[d,f]};a.goForward=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?-1:1),c)};a.goBack=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?1:-1),c)};a.gotoPage=function(c,d,g,f){d!==!0&& (d=!1,a.startStop(!1),a.makeActive());b.changeBy!==1&&(c<0&&(c+=a.pages),c>a.pages&&(c-=a.pages));if(!(a.pages<=1)){a.$lastPage=a.$currentPage;if(typeof c!=="number")c=b.startPanel,a.setCurrentPage(c);if(!d||!b.isVideoPlaying(a))c>a.pages+1-a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?1:a.pages),c<a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?a.pages:1),a.currentPage=c>a.pages?a.pages:c<1?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-a.adj),a.exactPage=c,a.$targetPage=a.$items.eq(c===0?a.pages- a.adj:c>a.pages?1-a.adj:c-a.adj),f=f||b.animationTime,f>1&&a.$el.trigger("slide_init",a),a.slideControls(!0,!1),d!==!0&&(d=!1),(!d||b.stopAtEnd&&c===a.pages)&&a.startStop(!1),f>1&&a.$el.trigger("slide_begin",a),b.resizeContents||(d=a.getDim(c),a.$wrapper.filter(":not(:animated)").animate({width:d[0]||a.width,height:d[1]||a.height},{queue:!1,duration:f,easing:b.easing})),a.$el.filter(":not(:animated)").animate({left:-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2]},{queue:!1,duration:f,easing:b.easing, complete:function(){a.endAnimation(c,g,f)}})}};a.endAnimation=function(c,d,g){c===0?(a.$el.css("left",-a.panelSize[a.pages][2]),c=a.pages):c>a.pages&&(a.$el.css("left",-a.panelSize[1][2]),c=1);a.exactPage=c;a.setCurrentPage(c,!1);a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage");a.hovered||a.slideControls(!1);g>1&&a.$el.trigger("slide_complete",a);typeof d==="function"&&d(a);b.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(!0)},b.resumeDelay-(b.autoPlayDelayed?b.delay: 0))};a.setCurrentPage=function(c,d){c=parseInt(c,10);if(!(a.pages<1||c===0)){c>a.pages+1-a.adj&&(c=a.pages-a.adj);c<a.adj&&(c=1);b.buildNavigation&&a.$nav.find(".cur").removeClass("cur").end().find("a").eq(c-1).addClass("cur");!b.infiniteSlides&&b.stopAtEnd&&(a.$wrapper.find("span.forward")[c===a.pages?"addClass":"removeClass"]("disabled").end().find("span.back")[c===1?"addClass":"removeClass"]("disabled"),c===a.pages&&a.playing&&a.startStop());if(!d){var g=a.getDim(c);a.$wrapper.css({width:g[0], height:g[1]}).add(a.$window).scrollLeft(0);a.$el.css("left",-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2])}a.currentPage=c;a.$currentPage=a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage")}};a.makeActive=function(){a.$wrapper.is(".activeSlider")||(d(".activeSlider").removeClass("activeSlider"),a.$wrapper.addClass("activeSlider"))};a.gotoHash=function(){var b=a.win.location.hash.match(a.regex);return b===null?"":parseInt(b[1],10)};a.setHash=function(b){var d="panel"+a.runTimes+ "-",g=a.win.location.hash;if(typeof g!=="undefined")a.win.location.hash=g.indexOf(d)>0?g.replace(a.regex,d+b):g+"&"+d+b};a.slideControls=function(c){var d=c?0:b.animationTime,g=c?b.animationTime:0,f=c?1:0,h=c?0:1;b.toggleControls&&a.$controls.stop(!0,!0).delay(d)[c?"slideDown":"slideUp"](b.animationTime/2).delay(g);b.buildArrows&&b.toggleArrows&&(!a.hovered&&a.playing&&(h=1,f=0),a.$forward.stop(!0,!0).delay(d).animate({right:h*a.$arrowWidth,opacity:f},b.animationTime/2),a.$back.stop(!0,!0).delay(d).animate({left:h* a.$arrowWidth,opacity:f},b.animationTime/2))};a.clearTimer=function(b){if(a.timer&&(a.win.clearInterval(a.timer),!b&&a.slideshow))a.$el.trigger("slideshow_stop",a),a.slideshow=!1};a.startStop=function(c,d){c!==!0&&(c=!1);if((a.playing=c)&&!d)a.$el.trigger("slideshow_start",a),a.slideshow=!0;b.buildStartStop&&(a.$startStop.toggleClass("playing",c).find("span").html(c?b.stopText:b.startText),parseInt(a.$startStop.find("span").css("text-indent"),10)<0&&a.$startStop.addClass(b.tooltipClass).attr("title", c?b.stopText:b.startText));c?(a.clearTimer(!0),a.timer=a.win.setInterval(function(){b.isVideoPlaying(a)?b.resumeOnVideoEnd||a.startStop():a.goForward(!0)},b.delay)):a.clearTimer()};a.init()};d.anythingSlider.defaults={theme:"default",expand:!1,resizeContents:!0,showMultiple:!1,easing:"swing",buildArrows:!0,buildNavigation:!0,buildStartStop:!0,appendForwardTo:null,appendBackTo:null,appendControlsTo:null,appendNavigationTo:null,appendStartStopTo:null,toggleArrows:!1,toggleControls:!1,startText:"Start", stopText:"Stop",forwardText:"&raquo;",backText:"&laquo;",tooltipClass:"tooltip",enableArrows:!0,enableNavigation:!0,enableStartStop:!0,enableKeyboard:!0,startPanel:1,changeBy:1,hashTags:!0,infiniteSlides:!0,navigationFormatter:null,navigationSize:!1,autoPlay:!1,autoPlayLocked:!1,autoPlayDelayed:!1,pauseOnHover:!0,stopAtEnd:!1,playRtl:!1,delay:3E3,resumeDelay:15E3,animationTime:600,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",resumeOnVideoEnd:!0, addWmodeToObject:"opaque",isVideoPlaying:function(){return!1}};d.fn.anythingSlider=function(h,j){return this.each(function(){var a,b=d(this).data("AnythingSlider");(typeof h).match("object|undefined")?b?b.updateSlider():new d.anythingSlider(this,h):/\d/.test(h)&&!isNaN(h)&&b&&(a=typeof h==="number"?h:parseInt(d.trim(h),10),a>=1&&a<=b.pages&&b.gotoPage(a,!1,j))})}})(jQuery);
     7(function(d){d.anythingSlider=function(g,i){var a=this,b;a.el=g;a.$el=d(g).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');a.$el.data("AnythingSlider",a);a.init=function(){a.options=b=d.extend({},d.anythingSlider.defaults,i);a.initialized=!1;d.isFunction(b.onBeforeInitialize)&&a.$el.bind("before_initialize",b.onBeforeInitialize);a.$el.trigger("before_initialize",a);a.$wrapper=a.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+ b.theme);a.$window=a.$el.closest("div.anythingWindow");a.win=window;a.$win=d(a.win);a.$controls=d('<div class="anythingControls"></div>').appendTo(b.appendControlsTo!==null&&d(b.appendControlsTo).length?d(b.appendControlsTo):a.$wrapper);a.$startStop=d('<a href="#" class="start-stop"></a>');b.buildStartStop&&a.$startStop.appendTo(b.appendStartStopTo!==null&&d(b.appendStartStopTo).length?d(b.appendStartStopTo):a.$controls);a.$nav=d('<ul class="thumbNav" />').appendTo(b.appendNavigationTo!==null&&d(b.appendNavigationTo).length? d(b.appendNavigationTo):a.$controls);a.flag=!1;a.playing=b.autoPlay;a.slideshow=!1;a.hovered=!1;a.panelSize=[];a.currentPage=b.startPanel=parseInt(b.startPanel,10)||1;a.adj=b.infiniteSlides?0:1;a.width=a.$el.width();a.height=a.$el.height();a.outerPad=[a.$wrapper.innerWidth()-a.$wrapper.width(),a.$wrapper.innerHeight()-a.$wrapper.height()];b.playRtl&&a.$wrapper.addClass("rtl");if(b.expand)a.$outer=a.$wrapper.parent(),a.$window.css({width:"100%",height:"100%"}),a.checkResize();b.buildStartStop&&a.buildAutoPlay(); b.buildArrows&&a.buildNextBackButtons();if(!b.autoPlay)b.autoPlayLocked=!1;a.updateSlider();a.$lastPage=a.$currentPage;a.runTimes=d("div.anythingSlider").index(a.$wrapper)+1;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");a.runTimes===1&&a.makeActive();if(!d.isFunction(d.easing[b.easing]))b.easing="swing";b.pauseOnHover&&a.$wrapper.hover(function(){a.playing&&(a.$el.trigger("slideshow_paused",a),a.clearTimer(!0))},function(){a.playing&&(a.$el.trigger("slideshow_unpaused",a),a.startStop(a.playing, !0))});a.setCurrentPage(a.gotoHash()||b.startPage,!1);a.slideControls(!1);a.$wrapper.bind("mouseenter mouseleave",function(b){a.hovered=b.type==="mouseenter"?!0:!1;a.slideControls(a.hovered,!1)});d(document).keyup(function(c){if(b.enableKeyboard&&a.$wrapper.is(".activeSlider")&&!c.target.tagName.match("TEXTAREA|INPUT|SELECT"))switch(c.which){case 39:a.goForward();break;case 37:a.goBack()}});a.$items.delegate("a","focus.AnythingSlider",function(c){var e=d(this).closest(".panel"),f=a.$items.index(e)+ a.adj;a.$items.find(".focusedLink").removeClass("focusedLink");d(this).addClass("focusedLink");a.$window.scrollLeft(0);!e.is(".activePage")&&a.currentPage+b.showMultiple-1>f&&(a.gotoPage(f),c.preventDefault())});var c="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");d.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(h,e){d.isFunction(b[e])&& a.$el.bind(c[h],b[e])});d.isFunction(b.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){b.onSlideComplete(a)},0)});a.initialized=!0;a.$el.trigger("initialized",a);a.startStop(a.playing)};a.updateSlider=function(){a.$el.children(".cloned").remove();a.$nav.empty();a.currentPage=a.currentPage||1;a.$items=a.$el.children();a.pages=a.$items.length;b.showMultiple=parseInt(b.showMultiple,10)||1;if(b.showMultiple>1){if(b.showMultiple>a.pages)b.showMultiple=a.pages;a.adjustMultiple= b.infiniteSlides&&a.pages>1?0:b.showMultiple-1;a.pages=a.$items.length-a.adjustMultiple}a.$controls.add(a.$nav).add(a.$startStop).add(a.$forward).add(a.$back)[a.pages<=1?"hide":"show"]();a.pages>1&&a.buildNavigation();b.infiniteSlides&&a.pages>1&&(a.$el.prepend(a.$items.filter(":last").clone().removeAttr("id").addClass("cloned")),b.showMultiple>1?a.$el.append(a.$items.filter(":lt("+b.showMultiple+")").clone().removeAttr("id").addClass("cloned").addClass("multiple")):a.$el.append(a.$items.filter(":first").clone().removeAttr("id").addClass("cloned")), a.$el.find(".cloned").each(function(){d(this).find("a,input,textarea,select,button,area").attr("disabled","disabled");d(this).find("[id]").removeAttr("id")}));a.$items=a.$el.children().addClass("panel");a.setDimensions();b.resizeContents?(a.$items.css("width",a.width),a.$wrapper.css("width",a.getDim(a.currentPage)[0]),a.$wrapper.add(a.$items).css("height",a.height)):a.$win.load(function(){a.setDimensions()});if(a.currentPage>a.pages)a.currentPage=a.pages;a.setCurrentPage(a.currentPage,!1);a.$nav.find("a").eq(a.currentPage- 1).addClass("cur")};a.buildNavigation=function(){if(b.buildNavigation&&a.pages>1){var c,h;a.$items.filter(":not(.cloned)").each(function(e){var f=e+1;c=(f===1?"first":"")+(f===a.pages?"last":"");h=d('<a href="#"></a>').addClass("panel"+f).wrap('<li class="'+c+'" />');a.$nav.append(h.parent());d.isFunction(b.navigationFormatter)?(c=b.navigationFormatter(f,d(this)),h.html("<span>"+c+"</span>"),parseInt(h.find("span").css("text-indent"),10)<0&&h.addClass(b.tooltipClass).attr("title",c)):h.html("<span>"+ f+"</span>");h.bind(b.clickControls,function(c){if(!a.flag&&b.enableNavigation)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.gotoPage(f),b.hashTags&&a.setHash(f);c.preventDefault()})});if(b.navigationSize!==!1&&parseInt(b.navigationSize,10)<a.pages)a.$controls.find(".anythingNavWindow").length||a.$nav.before('<ul><li class="prev"><a href="#"><span>'+b.backText+"</span></a></li></ul>").after('<ul><li class="next"><a href="#"><span>'+b.forwardText+"</span></a></li></ul>").wrap('<div class="anythingNavWindow"></div>'), a.navWidths=a.$nav.find("li").map(function(){return d(this).innerWidth()}).get(),a.navLeft=1,a.$nav.width(a.navWidth(1,a.pages+1)+5),a.$controls.find(".anythingNavWindow").width(a.navWidth(1,b.navigationSize+1)).end().find(".prev,.next").bind(b.clickControls,function(c){if(!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},200),a.navWindow(a.navLeft+b.navigationSize*(d(this).is(".prev")?-1:1));c.preventDefault()})}};a.navWidth=function(c,b){for(var d=Math.min(c,b),f=Math.max(c,b),g=0;d<f;d++)g+=a.navWidths[d- 1]||0;return g};a.navWindow=function(c){var d=a.pages-b.navigationSize+1,c=c<=1?1:c>1&&c<d?c:d;if(c!==a.navLeft)a.$controls.find(".anythingNavWindow").animate({scrollLeft:a.navWidth(1,c),width:a.navWidth(c,c+b.navigationSize)},{queue:!1,duration:b.animationTime}),a.navLeft=c};a.buildNextBackButtons=function(){a.$forward=d('<span class="arrow forward"><a href="#"><span>'+b.forwardText+"</span></a></span>");a.$back=d('<span class="arrow back"><a href="#"><span>'+b.backText+"</span></a></span>");a.$back.bind(b.clickBackArrow, function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goBack();c.preventDefault()});a.$forward.bind(b.clickForwardArrow,function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goForward();c.preventDefault()});a.$back.add(a.$forward).find("a").bind("focusin focusout",function(){d(this).toggleClass("hover")});a.$back.appendTo(b.appendBackTo!==null&&d(b.appendBackTo).length?d(b.appendBackTo):a.$wrapper);a.$forward.appendTo(b.appendForwardTo!== null&&d(b.appendForwardTo).length?d(b.appendForwardTo):a.$wrapper);a.$arrowWidth=a.$forward.width()};a.buildAutoPlay=function(){a.$startStop.html("<span>"+(a.playing?b.stopText:b.startText)+"</span>").bind(b.clickSlideshow,function(c){b.enableStartStop&&(a.startStop(!a.playing),a.makeActive(),a.playing&&!b.autoPlayDelayed&&a.goForward(!0));c.preventDefault()}).bind("focusin focusout",function(){d(this).toggleClass("hover")})};a.checkResize=function(c){clearTimeout(a.resizeTimer);a.resizeTimer=setTimeout(function(){var d= a.$outer.width()-a.outerPad[0],e=(a.$outer[0].tagName==="BODY"?a.$win.height():a.$outer.height())-a.outerPad[1];if(a.width*b.showMultiple!==d||a.height!==e)a.setDimensions(),a.gotoPage(a.currentPage,a.playing,null,1);typeof c==="undefined"&&a.checkResize()},500)};a.setDimensions=function(){var c,h,e,f=0,g=b.showMultiple>1?a.width||a.$window.width()/b.showMultiple:a.$window.width(),i=a.$win.width();if(b.expand)c=a.$outer.width()-a.outerPad[0],a.height=h=a.$outer.height()-a.outerPad[1],a.$wrapper.add(a.$window).add(a.$items).css({width:c, height:h}),a.width=g=b.showMultiple>1?c/b.showMultiple:c;a.$items.each(function(j){e=d(this).children();b.resizeContents?(c=a.width,d(this).css({width:c,height:a.height}),e.length&&e[0].tagName==="EMBED"&&e.attr({width:"100%",height:"100%"}),e.length===1&&e.css({width:"100%",height:"100%"})):(c=d(this).width(),e.length===1&&c>=i&&(c=e.width()>=i?g:e.width(),e.css("max-width",c)),d(this).css("width",c),h=d(this).outerHeight(),d(this).css("height",h));a.panelSize[j]=[c,h,f];f+=c});a.$el.css("width", f)};a.getDim=function(c){if(a.pages<1||isNaN(c))return[a.width,a.height];var c=b.infiniteSlides&&a.pages>1?c:c-1,d,e=a.panelSize[c][0],f=a.panelSize[c][1];if(b.showMultiple>1)for(d=1;d<b.showMultiple;d++)e+=a.panelSize[(c+d)%b.showMultiple][0],f=Math.max(f,a.panelSize[c+d][1]);return[e,f]};a.goForward=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?-1:1),c)};a.goBack=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?1:-1),c)};a.gotoPage=function(c,d,e, f){d!==!0&&(d=!1,a.startStop(!1),a.makeActive());b.changeBy!==1&&(c<0&&(c+=a.pages),c>a.pages&&(c-=a.pages));if(!(a.pages<=1)){a.$lastPage=a.$currentPage;if(typeof c!=="number")c=b.startPanel,a.setCurrentPage(c);if(!d||!b.isVideoPlaying(a))c>a.pages+1-a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?1:a.pages),c<a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?a.pages:1),a.currentPage=c>a.pages?a.pages:c<1?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-a.adj),a.exactPage=c,a.$targetPage=a.$items.eq(c=== 0?a.pages-a.adj:c>a.pages?1-a.adj:c-a.adj),f=f||b.animationTime,f>1&&a.$el.trigger("slide_init",a),a.slideControls(!0,!1),d!==!0&&(d=!1),(!d||b.stopAtEnd&&c===a.pages)&&a.startStop(!1),f>1&&a.$el.trigger("slide_begin",a),b.resizeContents||(d=a.getDim(c),a.$wrapper.filter(":not(:animated)").animate({width:d[0]||a.width,height:d[1]||a.height},{queue:!1,duration:f,easing:b.easing})),a.$el.filter(":not(:animated)").animate({left:-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2]},{queue:!1,duration:f, easing:b.easing,complete:function(){a.endAnimation(c,e,f)}})}};a.endAnimation=function(c,d,e){c===0?(a.$el.css("left",-a.panelSize[a.pages][2]),c=a.pages):c>a.pages&&(a.$el.css("left",-a.panelSize[1][2]),c=1);a.exactPage=c;a.setCurrentPage(c,!1);a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage");a.hovered||a.slideControls(!1);e>1&&a.$el.trigger("slide_complete",a);typeof d==="function"&&d(a);b.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(!0)},b.resumeDelay-(b.autoPlayDelayed? b.delay:0))};a.setCurrentPage=function(c,d){c=parseInt(c,10);if(!(a.pages<1||c===0||isNaN(c))){c>a.pages+1-a.adj&&(c=a.pages-a.adj);c<a.adj&&(c=1);b.buildNavigation&&a.$nav.find(".cur").removeClass("cur").end().find("a").eq(c-1).addClass("cur");!b.infiniteSlides&&b.stopAtEnd&&(a.$wrapper.find("span.forward")[c===a.pages?"addClass":"removeClass"]("disabled").end().find("span.back")[c===1?"addClass":"removeClass"]("disabled"),c===a.pages&&a.playing&&a.startStop());if(!d){var e=a.getDim(c);a.$wrapper.css({width:e[0], height:e[1]}).add(a.$window).scrollLeft(0);a.$el.css("left",-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2])}a.currentPage=c;a.$currentPage=a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage")}};a.makeActive=function(){a.$wrapper.is(".activeSlider")||(d(".activeSlider").removeClass("activeSlider"),a.$wrapper.addClass("activeSlider"))};a.gotoHash=function(){var c=a.win.location.hash,h=c.indexOf("&"),e=c.match(a.regex);e===null&&!/^#&/.test(c)?(c=c.substring(0,h>=0?h:c.length),e= d(c).closest(".anythingBase")[0]===a.el?d(c).closest(".panel").index():null):e!==null&&(e=b.hashTags?parseInt(e[1],10):null);return e};a.setHash=function(b){var d="panel"+a.runTimes+"-",e=a.win.location.hash;if(typeof e!=="undefined")a.win.location.hash=e.indexOf(d)>0?e.replace(a.regex,d+b):e+"&"+d+b};a.slideControls=function(c){var d=c?0:b.animationTime,e=c?b.animationTime:0,f=c?1:0,g=c?0:1;b.toggleControls&&a.$controls.stop(!0,!0).delay(d)[c?"slideDown":"slideUp"](b.animationTime/2).delay(e);b.buildArrows&& b.toggleArrows&&(!a.hovered&&a.playing&&(g=1,f=0),a.$forward.stop(!0,!0).delay(d).animate({right:g*a.$arrowWidth,opacity:f},b.animationTime/2),a.$back.stop(!0,!0).delay(d).animate({left:g*a.$arrowWidth,opacity:f},b.animationTime/2))};a.clearTimer=function(b){if(a.timer&&(a.win.clearInterval(a.timer),!b&&a.slideshow))a.$el.trigger("slideshow_stop",a),a.slideshow=!1};a.startStop=function(c,d){c!==!0&&(c=!1);if((a.playing=c)&&!d)a.$el.trigger("slideshow_start",a),a.slideshow=!0;b.buildStartStop&&(a.$startStop.toggleClass("playing", c).find("span").html(c?b.stopText:b.startText),parseInt(a.$startStop.find("span").css("text-indent"),10)<0&&a.$startStop.addClass(b.tooltipClass).attr("title",c?b.stopText:b.startText));c?(a.clearTimer(!0),a.timer=a.win.setInterval(function(){b.isVideoPlaying(a)?b.resumeOnVideoEnd||a.startStop():a.goForward(!0)},b.delay)):a.clearTimer()};a.init()};d.anythingSlider.defaults={theme:"default",expand:!1,resizeContents:!0,showMultiple:!1,easing:"swing",buildArrows:!0,buildNavigation:!0,buildStartStop:!0, appendForwardTo:null,appendBackTo:null,appendControlsTo:null,appendNavigationTo:null,appendStartStopTo:null,toggleArrows:!1,toggleControls:!1,startText:"Start",stopText:"Stop",forwardText:"&raquo;",backText:"&laquo;",tooltipClass:"tooltip",enableArrows:!0,enableNavigation:!0,enableStartStop:!0,enableKeyboard:!0,startPanel:1,changeBy:1,hashTags:!0,infiniteSlides:!0,navigationFormatter:null,navigationSize:!1,autoPlay:!1,autoPlayLocked:!1,autoPlayDelayed:!1,pauseOnHover:!0,stopAtEnd:!1,playRtl:!1,delay:3E3, resumeDelay:15E3,animationTime:600,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",resumeOnVideoEnd:!0,addWmodeToObject:"opaque",isVideoPlaying:function(){return!1}};d.fn.anythingSlider=function(g,i){return this.each(function(){var a,b=d(this).data("AnythingSlider");(typeof g).match("object|undefined")?b?b.updateSlider():new d.anythingSlider(this,g):/\d/.test(g)&&!isNaN(g)&&b&&(a=typeof g==="number"?g:parseInt(d.trim(g),10),a>=1&&a<=b.pages&&b.gotoPage(a, !1,i))})}})(jQuery);
  • _plugins_/anythingslider/trunk/plugin.xml

    r50143 r50153  
    66        <version>1.0.0</version>
    77        <etat>dev</etat>
    8         <description>Permets d'utiliser le plugin jQuery [AnythingSlider->https://github.com/ProLoser/AnythingSlider/wiki] (v1.7.5) dans les squelettes.</description>
     8        <description>Permets d'utiliser le plugin jQuery [AnythingSlider->https://github.com/ProLoser/AnythingSlider/wiki] (v1.7.6) dans les squelettes.</description>
    99        <lien>http://www.spip-contrib.net/?article3783</lien>
    1010        <prefix>anythingslider</prefix>
    1111        <pipeline>
    12                 <nom>anythingslider_charger_fx</nom>
    13                 <inclure>anythingslider_pipelines.php</inclure>
    14         </pipeline>
    15         <pipeline>
    16                 <nom>anythingslider_charger_video</nom>
     12                <nom>anythingslider_charger</nom>
    1713                <inclure>anythingslider_pipelines.php</inclure>
    1814        </pipeline>
     
    2117                <inclure>anythingslider_pipelines.php</inclure>
    2218        </pipeline>
     19        <bouton id='anythingslider_2' parent='configuration'>
     20                <icone>images/anythingslider-24.png</icone>
     21                <titre>anythingslider:anythingslider</titre>
     22                <url>configurer_anythingslider</url>
     23        </bouton>
     24        <bouton id='anythingslider' parent='bando_squelette'>
     25                <icone>images/anythingslider-16.png</icone>
     26                <titre>anythingslider:anythingslider</titre>
     27                <url>configurer_anythingslider</url>
     28        </bouton>
    2329        <categorie>multimedia</categorie>
    2430</plugin>
  • _plugins_/anythingslider/trunk/saisies/themes_anythingslider.html

    r46217 r50153  
    33  - class : classe(s) css ajoutes au select
    44]
     5[(#SET{dispos,[(#PIPELINE{anythingslider_charger,[(#CONFIG{anythingslider}|unserialize|sinon{#ARRAY})]})]})]
    56<select name="#ENV{nom}" id="champ_#ENV{nom}"[ class="(#ENV{class})"][ disabled="(#ENV{disable})"][ readonly="(#ENV{readonly})"]>
    67        <option value="default"[(#ENV{valeur,#ENV{defaut}}|=={default}|oui)selected="selected"]>Default</option>
    7         <option value="minimalist-round"[(#ENV{valeur,#ENV{defaut}}|=={minimalist-round}|oui)selected="selected"]>Minimalist-Round</option>
    8         <option value="minimalist-square"[(#ENV{valeur,#ENV{defaut}}|=={minimalist-square}|oui)selected="selected"]>Minimalist-Square</option>
    9         <option value="metallic"[(#ENV{valeur,#ENV{defaut}}|=={metallic}|oui)selected="selected"]>Metallic</option>
    10         <option value="construction"[(#ENV{valeur,#ENV{defaut}}|=={construction}|oui)selected="selected"]>Construction</option>
    11         <option value="cs-portfolio"[(#ENV{valeur,#ENV{defaut}}|=={cs-portfolio}|oui)selected="selected"]>CS-Portfolio</option>
    12         <option value="simple"[(#ENV{valeur,#ENV{defaut}}|=={simple}|oui)selected="selected"]>Simple</option>
     8        [(#VAL{theme-minimalist-round.css}|in_array{#GET{dispos}})<option value="minimalist-round"[(#ENV{valeur,#ENV{defaut}}|=={minimalist-round}|oui)selected="selected"]>Minimalist-Round</option>]
     9        [(#VAL{theme-minimalist-square.css}|in_array{#GET{dispos}})<option value="minimalist-square"[(#ENV{valeur,#ENV{defaut}}|=={minimalist-square}|oui)selected="selected"]>Minimalist-Square</option>]
     10        [(#VAL{theme-metallic.css}|in_array{#GET{dispos}})<option value="metallic"[(#ENV{valeur,#ENV{defaut}}|=={metallic}|oui)selected="selected"]>Metallic</option>]
     11        [(#VAL{theme-construction.css}|in_array{#GET{dispos}})<option value="construction"[(#ENV{valeur,#ENV{defaut}}|=={construction}|oui)selected="selected"]>Construction</option>]
     12        [(#VAL{theme-cs-portfolio.css}|in_array{#GET{dispos}})<option value="cs-portfolio"[(#ENV{valeur,#ENV{defaut}}|=={cs-portfolio}|oui)selected="selected"]>CS-Portfolio</option>]
     13        [(#VAL{theme-simple.css}|in_array{#GET{dispos}})<option value="simple"[(#ENV{valeur,#ENV{defaut}}|=={simple}|oui)selected="selected"]>Simple</option>]
    1314</select>
Note: See TracChangeset for help on using the changeset viewer.