Changeset 50066 in spip-zone


Ignore:
Timestamp:
Jul 29, 2011, 12:00:54 PM (10 years ago)
Author:
joseph@…
Message:

Mise à jour de anythingslider en version 1.7.5

Location:
_plugins_/anythingslider
Files:
5 added
7 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/anythingslider/README.textile

    r46175 r50066  
    77This new AnythingSlider is an attempt at bringing together the functionality of all of those previous sliders and adding new features. In other words, to create a really “full featured” slider that could be widely useful. This is the first time (on CSS-Tricks) that one of these sliders is an actual plugin as well, which should make implementing it and customizing it much easier.
    88
    9 * "Documentation":https://github.com/ProLoser/AnythingSlider/wiki now maintained in the wiki pages (and the demo for now).
    10 * "Demo!":http://proloser.github.com/AnythingSlider/
     9* "Documentation Wiki":https://github.com/ProLoser/AnythingSlider/wiki
    1110* "Keep Reading":http://css-tricks.com/anythingslider-1-4/
     11* "Main Demo":http://proloser.github.com/AnythingSlider/
     12* "More Demos":https://github.com/ProLoser/AnythingSlider/wiki
     13* Having an issue? Submit it "here":https://github.com/ProLoser/AnythingSlider/issues
  • _plugins_/anythingslider/anythingslider_pipelines.php

    r46175 r50066  
    55
    66function anythingslider_anythingslider_charger_fx($flux){return $flux;}
     7function anythingslider_anythingslider_charger_video($flux){return $flux;}
    78
    89function anythingslider_insert_head($flux){
     
    1920                $flux .= "\n<script type='text/javascript' src='$js'></script>\n";
    2021        }
     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        }
    2126        return $flux;
    2227}
    2328
    2429
     30
     31
     32jquery.anythingslider.video.min.js
     33
    2534?>
  • _plugins_/anythingslider/css/anythingslider.css

    r46833 r50066  
    11/*
    2     AnythingSlider v1.4.1+ Default (base) theme
    3 
    4     By Chris Coyier: http://css-tricks.com
    5     with major improvements by Doug Neiner: http://pixelgraphics.us/
    6     based on work by Remy Sharp: http://jqueryfordesigners.com/
     2        AnythingSlider v1.7+ Default (base) theme
     3        By Chris Coyier: http://css-tricks.com
     4        with major improvements by Doug Neiner: http://pixelgraphics.us/
     5        based on work by Remy Sharp: http://jqueryfordesigners.com/
    76*/
    87
    9 /******* SET DEFAULT DIMENSIONS HERE ********/
    10 div.anythingSlider {
     8/*****************************
     9  SET DEFAULT DIMENSIONS HERE
     10 *****************************/
     11/* change the ID to match your slider */
     12#slider {
    1113        width: 700px;
    1214        height: 390px;
    13         margin: 0 auto;
    14         overflow: hidden; /* needed for Opera and Safari */
     15        list-style: none;
    1516}
     17/* Opera width restriction */
     18.anythingBase { max-width: 32766px; }
    1619
    17 /****** SET COLORS HERE *******/
    18 /* Default State */
    19 div.anythingSlider .thumbNav a.cur, div.anythingSlider .thumbNav a {
    20         background: #777;
    21         color: #000;
    22 }
     20/*****************
     21  SET COLORS HERE
     22 *****************/
     23/**** Default state (no keyboard focus) ****/
     24/* slider window - top & bottom borders, default state */
    2325div.anythingSlider .anythingWindow {
    2426        border-top: 3px solid #777;
    2527        border-bottom: 3px solid #777;
    2628}
     29/* Navigation buttons, default state */
     30div.anythingSlider .anythingControls ul a.cur, div.anythingSlider .anythingControls ul a {
     31        background: #777;
     32        color: #000;
     33}
     34/* start-stop button, stopped, default state */
    2735div.anythingSlider .start-stop {
    2836        background-color: #040;
    2937        color: #fff;
    3038}
     39/* start-stop button, playing, default state */
    3140div.anythingSlider .start-stop.playing {
    3241        background-color: #800;
    3342}
     43/* start-stop button, default hovered text color (when visible) */
    3444div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
    3545        color: #ddd;
    3646}
    3747
    38 /* Active State */
     48/**** Active State (slider has keyboard focus) ****/
     49/* slider window - top & bottom borders, active state */
    3950div.anythingSlider.activeSlider .anythingWindow {
    4051        border-color: #7C9127;
    4152}
    42 div.anythingSlider.activeSlider .thumbNav a.cur, div.anythingSlider.activeSlider .thumbNav a {
     53/* Navigation buttons, active state */
     54div.anythingSlider.activeSlider .anythingControls ul a.cur, div.anythingSlider.activeSlider .anythingControls ul a {
    4355        background-color: #7C9127;
    4456}
     57/* start-stop button, stopped, active state */
    4558div.anythingSlider .start-stop {
    4659        background-color: #080;
    4760        color: #fff;
    4861}
     62/* start-stop button, playing, active state */
    4963div.anythingSlider .start-stop.playing {
    5064        background-color: #d00;
    5165}
     66/* start-stop button, active slider hovered text color (when visible) */
    5267div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
    5368        color: #fff;
    5469}
    5570
    56 /**** DO NOT CHANGE BELOW THIS LINE ****/
     71/***********************
     72  COMMON SLIDER STYLING
     73 ***********************/
     74/* Overall Wrapper: 45px right & left padding for the arrows, 28px @ bottom for navigation */
     75div.anythingSlider {
     76        display: block;
     77        margin: 0 auto;
     78        overflow: visible !important; /* needed for Opera and Safari */
     79        position: relative;
     80        padding: 0 45px 28px 45px;
     81}
    5782/* anythingSlider viewport window */
    5883div.anythingSlider .anythingWindow {
     
    6287        height: 100%;
    6388}
    64 /* wrapper: 45px right & left padding for the arrows, 28px @ bottom for navigation */
    65 div.anythingSlider {
    66         position: relative;
    67         padding: 0 45px 28px 45px;
    68 }
    69 /* anythingSlider base UL */
    70 ul.anythingBase {
     89/* anythingSlider base (original element) */
     90.anythingBase {
    7191        background: transparent;
    7292        list-style: none;
     
    7797        padding: 0;
    7898}
    79 ul.anythingBase li.panel {
     99/* all panels inside the slider */
     100.anythingBase .panel {
    80101        background: transparent;
    81102        display: block;
     
    94115div.anythingSlider .arrow a {
    95116        display: block;
    96         height: 120px;
    97         margin: -60px 0 0 0;
     117        height: 140px;
     118        margin: -70px 0 0 0; /* half height of image */
    98119        width: 45px;
    99120        text-align: center;
    100121        outline: 0;
    101         background: url(../images/arrows-default.png) no-repeat;
    102         text-indent: -9999px;
     122        background: url(../images/default.png) no-repeat;
    103123}
     124/* hide text, target the span so IE7 doesn't text-indent the link */
     125div.anythingSlider .arrow a span { display: block; text-indent: -9999px; }
     126/* back arrow */
     127div.anythingSlider .back { left: 0; }
     128div.anythingSlider .back a { background-position: left top; }
     129div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: left -140px; }
     130div.anythingSlider .back.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
     131/* forward arrow */
    104132div.anythingSlider .forward { right: 0; }
    105 div.anythingSlider .back { left: 0; }
    106 div.anythingSlider .forward a { background-position: 0 -40px; }
    107 div.anythingSlider .back a { background-position: -88px -40px; }
    108 div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: 0 -240px; }
    109 div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: -88px -240px; }
     133div.anythingSlider .forward a { background-position: right top; }
     134div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: right -140px; }
    110135div.anythingSlider .forward.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
    111 div.anythingSlider .back.disabled { display: none; }
    112136
    113137/* Navigation Links */
    114138div.anythingSlider .anythingControls { outline: 0; display: none; }
    115 div.anythingSlider .thumbNav { margin: 0; }
    116 div.anythingSlider .thumbNav li { display: inline; }
    117 div.anythingSlider .thumbNav a {
     139div.anythingSlider .anythingControls ul { margin: 0; padding: 0; float: left; }
     140div.anythingSlider .anythingControls ul li { display: inline; }
     141div.anythingSlider .anythingControls ul a {
    118142        font: 11px/18px Georgia, Serif;
    119143        display: inline-block;
     
    122146        height: 18px;
    123147        margin: 0 5px 0 0;
    124         background-image: url(../images/cellshade.png);
     148        background-image: url(../images/default.png);
     149        background-position: center -288px ;
    125150        background-repeat: repeat-x;
    126151        text-align: center;
     
    130155        -webkit-border-radius: 0 0 5px 5px;
    131156}
    132 div.anythingSlider .thumbNav a:hover {
     157div.anythingSlider .anythingControls ul a:hover {
    133158        background-image: none;
    134159}
     160/* Navigation size window */
     161div.anythingSlider .anythingControls .anythingNavWindow { overflow: hidden; float: left; }
    135162
    136163/* slider autoplay right-to-left, reverse order of nav links to look better */
    137 div.anythingSlider.rtl .thumbNav a { float: right; } /* reverse order of nav links */
    138 div.anythingSlider.rtl .thumbNav { float: left; }    /* move nav link group to left */
     164div.anythingSlider.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
     165div.anythingSlider.rtl .anythingControls ul { float: left; }    /* move nav link group to left */
    139166div.anythingSlider.rtl .anythingWindow {
    140167        direction: ltr;
     
    145172/* Autoplay Start/Stop button */
    146173div.anythingSlider .start-stop {
    147         background-image: url(../images/cellshade.png);
     174        background-image: url(../images/default.png);
     175        background-position: center -288px;
    148176        background-repeat: repeat-x;
    149         background-position: center top;
    150177        padding: 2px 5px;
    151178        width: 40px;
     
    159186        -webkit-border-radius: 0 0 5px 5px;
    160187}
     188/* hide cell shading on hover - makes the button appear to come forward */
    161189div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover { background-image: none; }
    162190
    163 div.anythingSlider, div.anythingSlider .anythingWindow, div.anythingSlider .thumbNav a, div.anythingSlider .arrow a, div.anythingSlider .start-stop {
     191/* probably not necessary, but added just in case */
     192div.anythingSlider, div.anythingSlider .anythingWindow, div.anythingSlider .anythingControls ul a, div.anythingSlider .arrow a, div.anythingSlider .start-stop {
    164193        transition-duration: 0;
    165194        -o-transition-duration: 0;
  • _plugins_/anythingslider/css/theme-construction.css

    r46833 r50066  
    1 /* AnythingSlider v1.41 Construction Theme
    2    By Rob Garrison
     1/*
     2        AnythingSlider v1.5.10 Construction Theme
     3        By Rob Garrison
    34*/
    45
     
    910        border-bottom: 3px solid #333;
    1011}
    11 div.anythingSlider-construction .start-stop.playing, div.anythingSlider-construction .start-stop.playing.hover {
    12         background: transparent url(../images/nav-construction.png) center -30px no-repeat;
    13 }
    14 div.anythingSlider-construction .start-stop:hover {
    15         background: transparent url(../images/nav-construction.png) center bottom no-repeat;
    16 }
    17 div.anythingSlider-construction .start-stop.hover {
    18         background: transparent url(../images/nav-construction.png) center top no-repeat;
    19 }
     12
    2013/* Active State */
    2114div.anythingSlider-construction.activeSlider .anythingWindow {
    2215        border-color: #d0aa0d;
    2316}
    24 div.anythingSlider-construction.activeSlider .thumbNav a:hover, div.anythingSlider-construction.activeSlider .thumbNav a.cur {
     17div.anythingSlider-construction.activeSlider .anythingControls ul a:hover, div.anythingSlider-construction.activeSlider .anythingControls ul a {
    2518 background-color: transparent;
    2619}
     
    3932        width: 45px;
    4033        outline: 0;
    41         background: url(../images/arrows-construction.gif) no-repeat;
    42         text-indent: -9999px;
     34        background: url(../images/construction.gif) no-repeat;
    4335}
    4436
     
    5749div.anythingSlider-construction .forward { right: 0; }
    5850div.anythingSlider-construction .back { left: 0; }
    59 div.anythingSlider-construction .forward a { background-position: right bottom; }
    60 div.anythingSlider-construction .back a { background-position: left bottom; }
     51div.anythingSlider-construction .forward a { background-position: right top; }
     52div.anythingSlider-construction .back a { background-position: left top; }
    6153div.anythingSlider-construction .forward a:hover, div.anythingSlider-construction .forward a.hover { background-position: -50px top; }
    6254div.anythingSlider-construction .back a:hover, div.anythingSlider-construction .back a.hover { background-position: -5px top; }
     
    6456/* Navigation Links */
    6557div.anythingSlider-construction .anythingControls {
     58        float: right;
    6659        position: absolute;
    67         width: 80%;
    6860        bottom: 0;
    6961        right: 15%;
     
    7264        filter: alpha(opacity=90);
    7365}
    74 div.anythingSlider-construction .thumbNav {
    75         float: right;
     66div.anythingSlider-construction .anythingControls ul {
    7667        margin: 0;
    7768        z-index: 100;
    7869}
    79 div.anythingSlider-construction .thumbNav li {
     70div.anythingSlider-construction .anythingControls ul li {
    8071        display: block;
    8172        float: left;
    8273}
    83 div.anythingSlider-construction .thumbNav a, div.anythingSlider-construction.activeSlider .thumbNav a {
     74div.anythingSlider-construction .anythingControls ul a, div.anythingSlider-construction.activeSlider .anythingControls ul a,
     75div.anythingSlider-construction .anythingControls a.start-stop {
    8476        display: block;
    85         background: transparent url(../images/nav-construction.png) center -60px no-repeat;
     77        background: transparent url(../images/construction.gif) -36px -301px no-repeat;
    8678        border: 0;
    87         height: 30px;
    88         width: 30px;
    89         margin: 3px;
     79        height: 15px;
     80        width: 15px;
     81        margin: 2px;
    9082        padding: 0;
    91         text-indent: -9999px;
    9283        outline: 0;
    9384}
    94 div.anythingSlider-construction .thumbNav a:hover, div.anythingSlider-construction .thumbNav a.cur {
    95         background: transparent url(../images/nav-construction.png) center bottom no-repeat;
     85div.anythingSlider-construction div.anythingControls a:hover, div.anythingSlider-construction .anythingControls ul a.cur,
     86div.anythingSlider-construction.activeSlider .anythingControls ul a.cur {
     87        background: transparent url(../images/construction.gif) -21px -301px no-repeat;
     88}
     89
     90/* Navigation size window arrows */
     91div.anythingSlider-construction .anythingControls li.next a, div.anythingSlider-construction .anythingControls li.prev a {
     92        height: 12px;
     93        width: 12px;
     94        margin-top: 3px;
     95        border-radius: 0;
     96        -moz-border-radius: 0;
     97        -webkit-border-radius: 0;
     98        background: transparent url(../images/construction.gif) no-repeat;
     99}
     100div.anythingSlider-construction .anythingControls li.next a {
     101        background-position: -78px -144px;
     102}
     103div.anythingSlider-construction .anythingControls li.prev a {
     104        background-position: -12px -144px;
     105}
     106div.anythingSlider-construction .anythingControls li.next a:hover {
     107        background: transparent url(../images/construction.gif) -76px -144px no-repeat;
     108}
     109div.anythingSlider-construction .anythingControls li.prev a:hover {
     110        background: transparent url(../images/construction.gif) -14px -144px no-repeat;
    96111}
    97112
    98113/* slider autoplay right-to-left, reverse order of nav links to look better */
    99 div.anythingSlider-construction.rtl .thumbNav a { float: right; } /* reverse order of nav links */
    100 div.anythingSlider-construction.rtl .thumbNav { float: left; }    /* move nav link group to left */
     114div.anythingSlider-construction.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
     115div.anythingSlider-construction.rtl .anythingControls ul { float: left; }    /* move nav link group to left */
    101116/* div.anythingSlider-construction.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
    102117
    103118/* Autoplay Start/Stop button */
    104 div.anythingSlider-construction .start-stop {
     119div.anythingSlider-construction .anythingControls a.start-stop {
    105120        display: inline-block;
    106         background: transparent url(../images/nav-construction.png) center top no-repeat;
    107         border: 0;
    108         height: 30px;
    109         width: 30px;
    110         margin: 3px;
    111         padding: 0;
    112         text-indent: -9999px;
    113         outline: 0;
     121        background: transparent url(../images/construction.gif) -66px -301px no-repeat;
    114122        z-index: 100;
    115123        float: right;
     124}
     125div.anythingSlider-construction .anythingControls a.start-stop.playing, div.anythingSlider-construction.activeSlider .anythingControls a.start-stop.playing  {
     126        background-position: -51px -301px;
     127}
     128div.anythingSlider-construction .anythingControls a.start-stop:hover, div.anythingSlider-construction .anythingControls a.start-stop.playing:hover {
     129        background-position: -21px -301px;
    116130}
    117131
     
    120134        padding: 6px 45px;
    121135}
     136
     137/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
     138div.anythingSlider-construction .arrow a span, div.anythingSlider-construction .anythingControls ul a span, div.anythingSlider-construction .start-stop span {
     139        display: block;
     140        line-height: 1px; /* needed for IE7 */
     141        text-indent: -9999px;
     142}
  • _plugins_/anythingslider/css/theme-cs-portfolio.css

    r46175 r50066  
    1 /* AnythingSlider v1.41 cs-portfolio
    2    By Curtis Scott (http://www.curtisscott.com/portfolio.html)
    3    updated to work with the new themes
     1/*
     2        AnythingSlider v1.5.10 cs-portfolio
     3        By Curtis Scott (http://www.curtisscott.com/portfolio.html)
     4        updated to work with the new themes
    45*/
    56
     
    910/****** SET COLORS HERE *******/
    1011/* Default/Acitve State */
    11 div.anythingSlider-cs-portfolio .thumbNav a, div.anythingSlider-cs-portfolio.activeSlider .thumbNav a {
     12div.anythingSlider-cs-portfolio .anythingControls ul a, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a {
    1213        background-color: #fff;
    1314}
    14 div.anythingSlider-cs-portfolio .thumbNav a:hover, div.anythingSlider-cs-portfolio .thumbNav a.cur,
    15 div.anythingSlider-cs-portfolio.activeSlider .thumbNav a:hover, div.anythingSlider-cs-portfolio.activeSlider .thumbNav a.cur {
     15div.anythingSlider-cs-portfolio .anythingControls ul a:hover, div.anythingSlider-cs-portfolio .anythingControls ul a.cur,
     16div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a:hover, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a.cur {
    1617        background-color: #0d5c9f;
    1718}
     
    3031
    3132/* Overall */
    32 div.anythingSlider-cs-portfolio {
    33         /*margin-bottom: 50px;  add 50px to fit bar below the slider */
    34 }
     33div.anythingSlider-cs-portfolio {}
    3534div.anythingSlider-cs-portfolio .anythingWindow, div.anythingSlider-cs-portfolio.activeSlider .anythingWindow {
    3635        border: 0;
     
    3938div.anythingSlider-cs-portfolio .arrow {
    4039        display: block;
    41         bottom: -43px;
     40        bottom: 7px; /* this is -18px for IE7 */
    4241        position: absolute;
    4342        z-index: 100;
     
    4544div.anythingSlider-cs-portfolio .arrow a {
    4645        display: block;
    47         bottom: 50px;
     46        bottom: 5px;
    4847        position: absolute;
    49         height: 35px;
    50         width: 35px;
     48        height: 27px;
     49        width: 26px;
    5150        outline: 0;
    52         background: url(../images/arrows-cs-portfolio.jpg) no-repeat;
    53         text-indent: -9999px;
     51        background: url(../images/cs-portfolio.png) no-repeat;
    5452}
    5553div.anythingSlider-cs-portfolio .forward { right: 70px; }
    56 div.anythingSlider-cs-portfolio .back { left: 50px; }
    57 div.anythingSlider-cs-portfolio .forward a { background-position: left top; }
    58 div.anythingSlider-cs-portfolio .back a { background-position: right top; }
    59 div.anythingSlider-cs-portfolio .forward a:hover, div.anythingSlider-cs-portfolio .forward a.hover { background-position: left bottom; }
    60 div.anythingSlider-cs-portfolio .back a:hover, div.anythingSlider-cs-portfolio .back a.hover { background-position: right bottom; }
     54div.anythingSlider-cs-portfolio .back { left: 20px; }
     55div.anythingSlider-cs-portfolio .forward a { background-position: -24px top; }
     56div.anythingSlider-cs-portfolio .back a { background-position: left top; }
     57div.anythingSlider-cs-portfolio .forward a:hover, div.anythingSlider-cs-portfolio .forward a.hover { background-position: -24px -27px; }
     58div.anythingSlider-cs-portfolio .back a:hover, div.anythingSlider-cs-portfolio .back a.hover { background-position: left -27px; }
    6159
    6260/* Navigation Links */
    6361div.anythingSlider-cs-portfolio .anythingControls {
    64         background: url(../images/bg-cs-portfolio.jpg) repeat-x bottom center;
    65         height: 50px;
    66         margin: 0 auto 50px auto;
     62        background: url(../images/cs-portfolio.png) repeat-x bottom center;
     63        height: 49px;
     64        margin: 0 auto 49px auto;
     65        padding-left: 150px;
    6766        text-align: center;
    6867        z-index: 100;
    6968}
    70 div.anythingSlider-cs-portfolio .thumbNav {
    71         float: none;
     69div.anythingSlider-cs-portfolio .anythingControls ul {
    7270        margin: 0;
    7371        z-index: 100;
    7472}
    75 div.anythingSlider-cs-portfolio .thumbNav li {
     73div.anythingSlider-cs-portfolio .anythingControls ul li {
     74        padding: 0;
    7675        display: inline;
    7776}
    7877
    79 div.anythingSlider-cs-portfolio .thumbNav a, div.anythingSlider-cs-portfolio.activeSlider .thumbNav a {
     78div.anythingSlider-cs-portfolio .anythingControls ul a, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a {
    8079        display: inline-block;
    81         width: 18px;
    82         height: 15px;
    83         margin: 20px 5px 0 0;
     80        width: 17px;
     81        height: 17px;
     82        margin: 18px 5px 0 0;
    8483        padding: 0;
    85         text-indent: -9999px;
    8684        outline: 0;
    8785        border: 0;
    8886}
    8987
    90 div.anythingSlider-cs-portfolio .thumbNav a, div.anythingSlider-cs-portfolio.activeSlider .thumbNav a,
    91 div.anythingSlider-cs-portfolio .thumbNav a:hover, div.anythingSlider-cs-portfolio .thumbNav a.cur,
    92 div.anythingSlider-cs-portfolio.activeSlider .thumbNav a:hover, div.anythingSlider-cs-portfolio.activeSlider .thumbNav a.cur {
    93         background-image: url(../images/nav-cs-portfolio.png);
    94         background-position: center top;
     88div.anythingSlider-cs-portfolio .anythingControls ul a, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a,
     89div.anythingSlider-cs-portfolio .anythingControls ul a:hover, div.anythingSlider-cs-portfolio .anythingControls ul a.cur,
     90div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a:hover, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a.cur {
     91        background-image: url(../images/cs-portfolio.png);
     92        background-position: right -20px;
    9593        background-repeat: no-repeat;
    9694}
    9795
     96/* Navigation size window arrows */
     97div.anythingSlider-cs-portfolio .anythingControls li.next a, div.anythingSlider-cs-portfolio .anythingControls li.prev a,
     98div.anythingSlider-cs-portfolio .anythingControls li.next a:hover, div.anythingSlider-cs-portfolio .anythingControls li.prev a:hover {
     99        width: 16px;
     100        height: 15px;
     101        background: url(../images/cs-portfolio.png) -25px -54px no-repeat;
     102        margin: 19px 5px 0 5px;
     103}
     104div.anythingSlider-cs-portfolio .anythingControls li.prev a {
     105        background-position: -9px -54px;
     106}
     107div.anythingSlider-cs-portfolio .anythingControls li.next a:hover {
     108        background-position: -56px -54px;
     109}
     110div.anythingSlider-cs-portfolio .anythingControls li.prev a:hover {
     111        background-position: -41px -54px;
     112}
     113
    98114/* slider autoplay right-to-left, reverse order of nav links to look better */
    99 div.anythingSlider-cs-portfolio.rtl .thumbNav a { float: right; } /* reverse order of nav links */
    100 div.anythingSlider-cs-portfolio.rtl .thumbNav { float: left; }    /* move nav link group to left */
     115div.anythingSlider-cs-portfolio.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
     116div.anythingSlider-cs-portfolio.rtl .anythingControls ul { float: left; }    /* move nav link group to left */
    101117/* div.anythingSlider-cs-portfolio.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
    102118
    103119/* Autoplay Start/Stop button */
    104120div.anythingSlider-cs-portfolio .start-stop, div.anythingSlider-cs-portfolio .start-stop.hover {
    105         margin: 18px 50px 0 0;
     121        margin: 15px 50px 0 0;
    106122        padding: 0;
    107123        display: inline-block;
    108124        text-align: center;
    109         width: 18px;
    110         height: 18px;
     125        width: 20px;
     126        height: 20px;
    111127        z-index: 100;
    112         text-indent: -9999px;
    113128        border: 0;
    114129}
     
    116131div.anythingSlider-cs-portfolio .start-stop:hover, div.anythingSlider-cs-portfolio .start-stop.playing,
    117132div.anythingSlider-cs-portfolio .start-stop.playing:hover {
    118         background-image: url(../images/nav-cs-portfolio.png);
    119         background-position: center bottom;
     133        background-image: url(../images/cs-portfolio.png);
     134        background-position: right top;
    120135        background-repeat: no-repeat;
    121136}
     
    125140        padding: 0 23px 50px 0;
    126141}
     142
     143/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
     144div.anythingSlider-cs-portfolio .arrow a span, div.anythingSlider-cs-portfolio .anythingControls ul a span, div.anythingSlider-cs-portfolio .start-stop span {
     145        display: block;
     146        line-height: 1px; /* needed for IE7 */
     147        text-indent: -9999px;
     148}
  • _plugins_/anythingslider/css/theme-metallic.css

    r46833 r50066  
    1 /* AnythingSlider v1.41 Metallic Theme
    2    By Rob Garrison
     1/*
     2        AnythingSlider v1.5.10 Metallic Theme
     3        By Rob Garrison
    34*/
    45
     
    910        border-bottom: 3px solid #333;
    1011}
    11 div.anythingSlider-metallic .thumbNav a {
     12div.anythingSlider-metallic .anythingControls ul a {
    1213        border: 1px solid #000;
    1314}
     
    2627        border-color: #0355a3;
    2728}
    28 div.anythingSlider-metallic.activeSlider .thumbNav a {
     29div.anythingSlider-metallic.activeSlider .anythingControls ul a {
    2930        background-color: transparent;
    3031        background-position: -68px -40px;
    3132}
    32 div.anythingSlider-metallic.activeSlider .thumbNav a:hover, div.anythingSlider-metallic.activeSlider .thumbNav a.cur {
     33div.anythingSlider-metallic.activeSlider .anythingControls ul a:hover, div.anythingSlider-metallic.activeSlider .anythingControls ul a.cur {
    3334        background-position: -76px -57px;
    3435/*      background: #fff; */
     
    5556        outline: 0;
    5657        background: url(../images/arrows-metallic.png) no-repeat;
    57         text-indent: -9999px;
    5858}
     59
    5960div.anythingSlider-metallic .forward { right: 0; }
    6061div.anythingSlider-metallic .back { left: 0; }
     
    6667/* Navigation Links */
    6768div.anythingSlider-metallic .anythingControls {
     69        float: right;
    6870        position: absolute;
    69         width: 80%;
    7071        bottom: 0;
    7172        right: 15%;
     
    7475        filter: alpha(opacity=90);
    7576}
    76 div.anythingSlider-metallic .thumbNav {
    77         float: right;
     77div.anythingSlider-metallic .anythingControls ul {
    7878        margin: 0;
    7979        z-index: 100;
    8080}
    81 div.anythingSlider-metallic .thumbNav li {
     81div.anythingSlider-metallic .anythingControls ul li {
    8282        display: block;
    8383        float: left;
    8484}
    85 div.anythingSlider-metallic .thumbNav a {
     85div.anythingSlider-metallic .anythingControls ul a {
    8686        display: block;
    8787        background: transparent url(../images/arrows-metallic.png) -68px -136px no-repeat;
     
    9090        margin: 3px;
    9191        padding: 0;
    92         text-indent: -9999px;
    9392        outline: 0;
    9493        border-radius: 5px;
     
    9695        -webkit-border-radius: 5px;
    9796}
    98 div.anythingSlider-metallic .thumbNav a:hover, div.anythingSlider-metallic .thumbNav a.cur {
     97
     98div.anythingSlider-metallic .anythingControls ul a:hover, div.anythingSlider-metallic .anythingControls ul a.cur {
    9999        background: transparent url(../images/arrows-metallic.png) -76px -57px no-repeat;
    100100}
    101101
     102/* Navigation size window arrows */
     103div.anythingSlider-metallic .anythingControls li.next a span, div.anythingSlider-metallic .anythingControls li.prev a span {
     104        text-indent: 1px;
     105        margin-top: 3px;
     106}
     107div.anythingSlider-metallic .anythingControls li.prev a, div.anythingSlider-metallic .anythingControls li.next a {
     108        color: #ddd;
     109}
     110div.anythingSlider-metallic .anythingControls li.next a:hover, div.anythingSlider-metallic .anythingControls li.prev a:hover {
     111        color: #000;
     112}
     113
    102114/* slider autoplay right-to-left, reverse order of nav links to look better */
    103 div.anythingSlider-metallic.rtl .thumbNav a { float: right; } /* reverse order of nav links */
    104 div.anythingSlider-metallic.rtl .thumbNav { float: left; }    /* move nav link group to left */
     115div.anythingSlider-metallic.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
     116div.anythingSlider-metallic.rtl .anythingControls ul { float: left; }    /* move nav link group to left */
    105117/* div.anythingSlider-metallic.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
    106118
     
    116128        left: 0;
    117129        z-index: 100;
    118         text-indent: -9999px;
    119130        float: right;
    120131        border-radius: 7px;
     
    127138        padding: 6px 23px;
    128139}
     140
     141/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
     142div.anythingSlider-metallic .arrow a span, div.anythingSlider-metallic .anythingControls ul a span, div.anythingSlider-metallic .start-stop span {
     143        display: block;
     144        line-height: 1px; /* needed for IE7 */
     145        text-indent: -9999px;
     146}
  • _plugins_/anythingslider/css/theme-minimalist-round.css

    r46833 r50066  
    11/*
    2         AnythingSlider v1.41 Minimalist Round Theme
     2        AnythingSlider v1.5.10 Minimalist Round Theme
    33        By Rob Garrison
    44*/
     
    1010        border-bottom: 3px solid #333;
    1111}
    12 div.anythingSlider-minimalist-round .thumbNav a {
     12div.anythingSlider-minimalist-round .anythingControls ul a {
    1313        border: 1px solid #000;
    1414        background: #333;
    1515}
    16 div.anythingSlider-minimalist-round .thumbNav a:hover, div.anythingSlider-minimalist-round .thumbNav a.cur {
     16div.anythingSlider-minimalist-round .anythingControls ul a:hover, div.anythingSlider-minimalist-round .anythingControls ul a.cur {
    1717        background: #777;
    1818}
    1919div.anythingSlider-minimalist-round .start-stop {
    2020        border: 1px solid #000;
    21         text-indent: -9999px;
    2221}
    2322div.anythingSlider-minimalist-round .start-stop.playing {
     
    3231        border-color: #164054;
    3332}
    34 div.anythingSlider-minimalist-round.activeSlider .thumbNav a {
     33div.anythingSlider-minimalist-round.activeSlider .anythingControls ul a {
    3534        background-color: #164054;
    3635}
    37 div.anythingSlider-minimalist-round.activeSlider .thumbNav a:hover, div.anythingSlider-minimalist-round.activeSlider .thumbNav a.cur {
     36div.anythingSlider-minimalist-round.activeSlider .anythingControls ul a:hover, div.anythingSlider-minimalist-round.activeSlider .anythingControls ul a.cur {
    3837        background: #fff;
    3938}
     
    5958        outline: 0;
    6059        background: url(../images/arrows-minimalist.png) no-repeat;
    61         text-indent: -9999px;
    6260}
    6361div.anythingSlider-minimalist-round .forward { right: 0; }
     
    7068/* Navigation Links */
    7169div.anythingSlider-minimalist-round .anythingControls {
     70        float: right;
    7271        position: absolute;
    73         width: 80%;
    7472        bottom: 0;
    7573        right: 15%;
     
    7876        filter: alpha(opacity=90);
    7977}
    80 div.anythingSlider-minimalist-round .thumbNav {
    81         float: right;
     78div.anythingSlider-minimalist-round .anythingControls ul {
    8279        margin: 0;
    8380        z-index: 100;
    8481}
    85 div.anythingSlider-minimalist-round .thumbNav li {
     82div.anythingSlider-minimalist-round .anythingControls ul li {
    8683        display: block;
    8784        float: left;
    8885}
    89 div.anythingSlider-minimalist-round .thumbNav a {
     86div.anythingSlider-minimalist-round .anythingControls ul a {
    9087        display: block;
    9188        height: 10px;
     
    9390        margin: 3px;
    9491        padding: 0;
    95         text-indent: -9999px;
    9692        outline: 0;
    9793        border-radius: 5px;
     
    10096}
    10197
     98/* Navigation size window arrows */
     99div.anythingSlider-minimalist-round .anythingControls li.next a span, div.anythingSlider-minimalist-round .anythingControls li.prev a span {
     100        text-indent: 1px;
     101        margin-top: 3px;
     102}
     103div.anythingSlider-minimalist-round .anythingControls li.prev a, div.anythingSlider-minimalist-round .anythingControls li.next a {
     104        color: #ddd;
     105}
     106div.anythingSlider-minimalist-round .anythingControls li.next a:hover, div.anythingSlider-minimalist-round .anythingControls li.prev a:hover {
     107        color: #000;
     108}
     109
    102110/* slider autoplay right-to-left, reverse order of nav links to look better */
    103 div.anythingSlider-minimalist-round.rtl .thumbNav a { float: right; } /* reverse order of nav links */
    104 div.anythingSlider-minimalist-round.rtl .thumbNav { float: left; }    /* move nav link group to left */
     111div.anythingSlider-minimalist-round.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
     112div.anythingSlider-minimalist-round.rtl .anythingControls ul { float: left; }    /* move nav link group to left */
    105113/* div.anythingSlider-minimalist-round.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
    106114
     
    128136        padding: 6px 30px;
    129137}
     138
     139/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
     140div.anythingSlider-minimalist-round .arrow a span, div.anythingSlider-minimalist-round .anythingControls ul a span, div.anythingSlider-minimalist-round .start-stop span {
     141        display: block;
     142        line-height: 1px; /* needed for IE7 */
     143        text-indent: -9999px;
     144}
  • _plugins_/anythingslider/css/theme-minimalist-square.css

    r46833 r50066  
    11/*
    2     AnythingSlider v1.41 Minimalist Square Theme
    3     By Rob Garrison
     2        AnythingSlider v1.5.10 Minimalist Square Theme
     3        By Rob Garrison
    44*/
    55
     
    1010        border-bottom: 3px solid #333;
    1111}
    12 div.anythingSlider-minimalist-square .thumbNav a {
     12div.anythingSlider-minimalist-square .anythingControls ul a {
    1313        border: 1px solid #000;
    1414        background: #333;
    1515}
    16 div.anythingSlider-minimalist-square .thumbNav a:hover, div.anythingSlider-minimalist-square .thumbNav a.cur {
     16div.anythingSlider-minimalist-square .anythingControls ul a:hover, div.anythingSlider-minimalist-square .anythingControls ul a.cur {
    1717        background: #777;
    1818}
    1919div.anythingSlider-minimalist-square .start-stop {
    2020        border: 1px solid #000;
    21         text-indent: -9999px;
    2221}
    2322div.anythingSlider-minimalist-square .start-stop.playing {
     
    3231        border-color: #164054;
    3332}
    34 div.anythingSlider-minimalist-square.activeSlider .thumbNav a {
     33div.anythingSlider-minimalist-square.activeSlider .anythingControls ul a {
    3534        background-color: #164054;
    3635}
    37 div.anythingSlider-minimalist-square.activeSlider .thumbNav a:hover, div.anythingSlider-minimalist-square.activeSlider .thumbNav a.cur {
     36div.anythingSlider-minimalist-square.activeSlider .anythingControls ul a:hover, div.anythingSlider-minimalist-square.activeSlider .anythingControls ul a.cur {
    3837        background: #fff;
    3938}
     
    5958        outline: 0;
    6059        background: url(../images/arrows-minimalist.png) no-repeat;
    61         text-indent: -9999px;
    6260}
    6361div.anythingSlider-minimalist-square .forward { right: 0; }
     
    7068/* Navigation Links */
    7169div.anythingSlider-minimalist-square .anythingControls {
     70        float: right;
    7271        position: absolute;
    73         width: 80%;
    7472        bottom: 0;
    7573        right: 15%;
     
    7876        filter: alpha(opacity=75);
    7977}
    80 div.anythingSlider-minimalist-square .thumbNav {
    81         float: right;
     78div.anythingSlider-minimalist-square .anythingControls ul {
    8279        margin: 0;
    8380        z-index: 100;
    8481}
    85 div.anythingSlider-minimalist-square .thumbNav li {
     82div.anythingSlider-minimalist-square .anythingControls ul li {
    8683        display: block;
    8784        float: left;
    8885}
    89 div.anythingSlider-minimalist-square .thumbNav a {
     86div.anythingSlider-minimalist-square .anythingControls ul a {
    9087        display: block;
    9188        height: 10px;
     
    9390        margin: 3px;
    9491        padding: 0;
    95         text-indent: -9999px;
    9692        outline: 0;
    9793        border-radius: 0;
     
    10096}
    10197
     98/* Navigation size window arrows */
     99div.anythingSlider-minimalist-square .anythingControls li.next a span, div.anythingSlider-minimalist-square .anythingControls li.prev a span {
     100        text-indent: 1px;
     101        margin-top: 3px;
     102}
     103div.anythingSlider-minimalist-square .anythingControls li.prev a, div.anythingSlider-minimalist-square .anythingControls li.next a {
     104        color: #ddd;
     105}
     106div.anythingSlider-minimalist-square .anythingControls li.next a:hover, div.anythingSlider-minimalist-square .anythingControls li.prev a:hover {
     107        color: #000;
     108}
     109
    102110/* slider autoplay right-to-left, reverse order of nav links to look better */
    103 div.anythingSlider-minimalist-square.rtl .thumbNav a { float: right; } /* reverse order of nav links */
    104 div.anythingSlider-minimalist-square.rtl .thumbNav { float: left; }    /* move nav link group to left */
     111div.anythingSlider-minimalist-square.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
     112div.anythingSlider-minimalist-square.rtl .anythingControls ul { float: left; }    /* move nav link group to left */
    105113/* div.anythingSlider-minimalist-square.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
    106114
     
    128136        padding: 6px 30px;
    129137}
     138
     139/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
     140div.anythingSlider-minimalist-square .arrow a span, div.anythingSlider-minimalist-square .anythingControls ul a span, div.anythingSlider-minimalist-square .start-stop span {
     141        display: block;
     142        line-height: 1px; /* needed for IE7 */
     143        text-indent: -9999px;
     144}
  • _plugins_/anythingslider/js/jquery.anythingslider.fx.min.js

    r46833 r50066  
    11/*
    2  * AnythingSlider Slide FX 1.2 minified for AnythingSlider v1.5.8+
     2 * AnythingSlider Slide FX 1.5 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(h){h.fn.anythingSliderFx=function(e){var l=h(this).closest(".anythingSlider"),i=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||i)}}],right:[{inFx:{right:0},outFx:{right:a||i}}],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|| i,opacity:0},{left:"-"+(a||i),opacity:0}],selector:[":odd",":even"]}],listRL:[{inFx:{left:0,opacity:1},outFx:[{left:a||i,opacity:0},{left:"-"+(a||i),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=o(),k={easing:"swing",timeIn:400,timeOut:350},i=function(c){c.each(function(){h(this).closest(".panel").is(".activePage")||h(this).css("visibility","hidden")})},m=function(c,a,d){if(!(c.length===0||typeof a==="undefined")){var b=a[0]||a,g=b[1]||"",h=parseInt(g===""?b.duration:b[0].duration,10);if(d&&(c.css("position")!=="absolute"&&c.css({position:"relative"}),c.stop(),g!=="")){c.filter(a[1][0]).animate(b[0],{queue:!1,duration:h,easing:b[0].easing});c.filter(a[1][1]).animate(g, {queue:!1,duration:h,easing:b[0].easing,complete:function(){setTimeout(function(){i(c)},k.timeOut)}});return}d||c.css("visibility","visible");c.animate(b,{queue:!1,duration:h,easing:b.easing,complete:function(){d&&setTimeout(function(){i(c)},k.timeOut)}})}},l=function(c,f){var d,b,g=f?"outFx":"inFx",e={},i=f?k.timeOut:k.timeIn,j=h.trim(c[0].replace(/\s+/g," ")).split(" ");if(f&&j.length===1&&a.hasOwnProperty(j)&&typeof a[j][0].selector!=="undefined")return b=a[j][0].outFx,b[0].duration=c[2]||k.timeOut, b[0].easing=c[3]||k.easing,[b,a[j][0].selector||[]];h.each(j,function(b,f){if(a.hasOwnProperty(f)){var j=f==="fade"?1:2;d=typeof c[1]==="undefined"?a:o(c[1]);h.extend(!0,e,d[f][0][g]);e.duration=c[j]||e.duration||i;e.easing=c[j+1]||k.easing}});return[e]};h(this).bind("slide_init",function(a,f){var d,b,g=f.$lastPage.add(f.$items.eq(f.exactPage)[0]);g=g.find("*").andSelf();for(d in e)if(d==="outFx")for(b in e.outFx)m(g.filter(b),e.outFx[b],!0);else d!=="inFx"&&h.isArray(e[d])&&m(g.filter(d),l(e[d], !0),!0)}).bind("slide_complete",function(a,f){var d,b,g=f.$currentPage.add(f.$items.eq(f.exactPage)[0]);g=g.find("*").andSelf();for(d in e)if(d==="inFx")for(b in e.inFx)m(g.filter(b),e.inFx[b],!1);else d!=="outFx"&&h.isArray(e[d])&&m(g.filter(d),l(e[d],!1),!1)})})}})(jQuery);
     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);
  • _plugins_/anythingslider/js/jquery.anythingslider.min.js

    r46833 r50066  
    1 /*
    2  AnythingSlider v1.5.9 minified using Google Closure Compiler
    3  By Chris Coyier: http://css-tricks.com
    4  with major improvements by Doug Neiner: http://pixelgraphics.us/
    5  based on work by Remy Sharp: http://jqueryfordesigners.com/
     1/*
     2 AnythingSlider v1.7.5 minified using Google Closure Compiler
     3 Original by Chris Coyier: http://css-tricks.com
     4 Get the latest version: https://github.com/ProLoser/AnythingSlider
    65*/
    76
    8 (function(c){c.anythingSlider=function(h,i){var a=this;a.$el=c(h).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');a.$el.data("AnythingSlider",a);a.init=function(){a.options=c.extend({},c.anythingSlider.defaults,i);c.isFunction(a.options.onBeforeInitialize)&&a.$el.bind("before_initialize",a.options.onBeforeInitialize);a.$el.trigger("before_initialize",a);a.$wrapper=a.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+a.options.theme); a.$window=a.$el.closest("div.anythingWindow");a.$controls=c('<div class="anythingControls"></div>').appendTo(a.options.appendControlsTo!==null&&c(a.options.appendControlsTo).length?c(a.options.appendControlsTo):a.$wrapper);a.win=window;a.$win=c(a.win);a.$nav=c('<ul class="thumbNav" />').appendTo(a.$controls);a.timer=null;a.flag=!1;a.playing=!1;a.hovered=!1;a.panelSize=[];a.currentPage=a.options.startPanel;a.adjustLimit=a.options.infiniteSlides?0:1;a.options.playRtl&&a.$wrapper.addClass("rtl");a.options.easing!== "swing"&&a.$el.css("margin-left","100px");a.original=[a.options.autoPlay,a.options.buildNavigation,a.options.buildArrows];a.updateSlider();a.$lastPage=a.$currentPage;a.runTimes=c("div.anythingSlider").index(a.$wrapper)+1;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");if(!c.isFunction(c.easing[a.options.easing]))a.options.easing="swing";a.options.theme!=="default"&&!c("link[href*="+a.options.theme+"]").length&&c("head").append('<link rel="stylesheet" href="'+a.options.themeDirectory.replace(/\{themeName\}/g, a.options.theme)+'" type="text/css" />');a.options.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 b,e=a.options.hashTags?a.gotoHash()||a.options.startPanel:a.options.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)});a.options.enableKeyboard&& c(document).keyup(function(b){if(a.$wrapper.is(".activeSlider")&&!b.target.tagName.match("TEXTAREA|INPUT|SELECT"))switch(b.which){case 39:a.goForward();break;case 37:a.goBack()}});b="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");c.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(e,f){c.isFunction(a.options[f])&&a.$el.bind(b[e],a.options[f])}); c.isFunction(a.options.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){a.options.onSlideComplete(a)},0)});a.$el.trigger("initialized",a)};a.updateSlider=function(){a.$el.find("li.cloned").remove();a.$nav.empty();a.$items=a.$el.find("> li");a.pages=a.$items.length;a.options.resizeContents&&(a.options.width&&a.$wrapper.add(a.$items).css("width",a.options.width),a.options.height&&a.$wrapper.add(a.$items).css("height",a.options.height));a.pages===1?(a.options.autoPlay=!1, a.options.buildNavigation=!1,a.options.buildArrows=!1,a.$controls.hide(),a.$nav.hide(),a.$forward&&a.$forward.add(a.$back).hide()):(a.options.autoPlay=a.original[0],a.options.buildNavigation=a.original[1],a.options.buildArrows=a.original[2],a.$controls.show(),a.$nav.show(),a.$forward&&a.$forward.add(a.$back).show());a.buildNavigation();if(a.options.autoPlay)a.playing=!a.options.startStopped,a.buildAutoPlay();a.options.buildArrows&&a.buildNextBackButtons();a.$el.prepend(a.options.infiniteSlides?a.$items.filter(":last").clone().addClass("cloned").removeAttr("id"): c('<li class="cloned" />'));a.$el.append(a.options.infiniteSlides?a.$items.filter(":first").clone().addClass("cloned").removeAttr("id"):c('<li class="cloned" />'));a.$el.find("li.cloned").each(function(){c(this).html(c(this).html().replace(/<a/gi,"<span").replace(/\/a>/gi,"/span>"));c(this).find("[id]").removeAttr("id")});a.$items=a.$el.find("> li").addClass("panel");a.setDimensions();a.options.resizeContents||a.$win.load(function(){a.setDimensions()});if(a.currentPage>a.pages)a.currentPage=a.pages, a.setCurrentPage(a.pages,!1);a.$nav.find("a").eq(a.currentPage-1).addClass("cur");a.$controls.show();a.hasEmb=a.$items.find("embed[src*=youtube]").length;a.hasSwfo=typeof swfobject!=="undefined"&&swfobject.hasOwnProperty("embedSWF")&&c.isFunction(swfobject.embedSWF)?!0:!1;a.hasEmb&&a.hasSwfo&&a.$items.find("embed[src*=youtube]").each(function(b){var e=c(this).parent()[0].tagName==="OBJECT"?c(this).parent():c(this);e.wrap('<div id="ytvideo'+b+'"></div>');swfobject.embedSWF(c(this).attr("src")+"&enablejsapi=1&version=3&playerapiid=ytvideo"+ b,"ytvideo"+b,e.attr("width"),e.attr("height"),"10",null,null,{allowScriptAccess:"always",wmode:a.options.addWmodeToObject,allowfullscreen:!0},{"class":e.attr("class"),style:e.attr("style")},function(){b>=a.hasEmb-1&&a.$el.trigger("swf_completed",a)})});a.$items.find("a").unbind("focus").bind("focus",function(b){a.$items.find(".focusedLink").removeClass("focusedLink");c(this).addClass("focusedLink");var e=c(this).closest(".panel");e.is(".activePage")||(a.gotoPage(a.$items.index(e)),b.preventDefault())})}; a.buildNavigation=function(){var b,e,d;a.options.buildNavigation&&a.pages>1&&a.$items.filter(":not(.cloned)").each(function(f){var g=f+1;e=(g===1?"first":"")+(g===a.pages?"last":"");d=c('<a href="#"></a>').addClass("panel"+g).wrap('<li class="'+e+'" />');a.$nav.append(d.parent());c.isFunction(a.options.navigationFormatter)?(b=a.options.navigationFormatter(g,c(this)),d.html(b),parseInt(d.css("text-indent"),10)<0&&d.addClass(a.options.tooltipClass).attr("title",b)):d.text(g);d.bind(a.options.clickControls, function(b){if(!a.flag&&a.options.enableNavigation)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.gotoPage(g),a.options.hashTags&&a.setHash(g);b.preventDefault()})})};a.buildNextBackButtons=function(){if(!a.$forward)a.$forward=c('<span class="arrow forward"><a href="#">'+a.options.forwardText+"</a></span>"),a.$back=c('<span class="arrow back"><a href="#">'+a.options.backText+"</a></span>"),a.$back.bind(a.options.clickArrows,function(b){a.goBack();b.preventDefault()}),a.$forward.bind(a.options.clickArrows, function(b){a.goForward();b.preventDefault()}),a.$back.add(a.$forward).find("a").bind("focusin focusout",function(){c(this).toggleClass("hover")}),a.$wrapper.prepend(a.$forward).prepend(a.$back),a.$arrowWidth=a.$forward.width()};a.buildAutoPlay=function(){if(!a.$startStop)a.$startStop=c("<a href='#' class='start-stop'></a>").html(a.playing?a.options.stopText:a.options.startText),a.$controls.prepend(a.$startStop),a.$startStop.bind(a.options.clickSlideshow,function(b){a.options.enablePlay&&(a.startStop(!a.playing), a.playing&&(a.options.playRtl?a.goBack(!0):a.goForward(!0)));b.preventDefault()}).bind("focusin focusout",function(){c(this).toggleClass("hover")}),a.startStop(a.playing)};a.setDimensions=function(){var b,e,d,f,g,h=parseInt(a.$el.css("margin-left"),10),i=a.$window.width(),j=a.$win.width();a.$items.each(function(k){d=c(this).children("*");a.options.resizeContents?(b=parseInt(a.options.width,10)||i,e=parseInt(a.options.height,10)||a.$window.height(),c(this).css({width:b,height:e}),d.length===1&&(d.css({width:"100%", height:"100%"}),d[0].tagName==="OBJECT"&&d.find("embed").andSelf().attr({width:"100%",height:"100%"}))):(b=c(this).width(),g=b>=j?!0:!1,d.length===1&&g&&(f=d.width()>=j?i:d.width(),c(this).css("width",f),d.css("max-width",f),b=f),b=g?a.options.width||i:b,c(this).css("width",b),e=c(this).outerHeight(),c(this).css("height",e));a.panelSize[k]=[b,e,h];h+=b});a.$el.css("width",h<a.options.maxOverallWidth?h:a.options.maxOverallWidth)};a.gotoPage=function(b,c,d){if(a.pages!==1){a.$lastPage=a.$currentPage; if(typeof b!=="number")b=a.options.startPage,a.setCurrentPage(a.options.startPage);if(!a.hasEmb||!a.checkVideo(a.playing))b>a.pages+1-a.adjustLimit&&(b=!a.options.infiniteSlides&&!a.options.stopAtEnd?1:a.pages),b<a.adjustLimit&&(b=!a.options.infiniteSlides&&!a.options.stopAtEnd?a.pages:1),a.currentPage=b>a.pages?a.pages:b<1?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-1),a.exactPage=b,a.$el.trigger("slide_init",a),a.slideControls(!0,!1),c!==!0&&(c=!1),(!c||a.options.stopAtEnd&&b===a.pages)&& a.startStop(!1),a.$el.trigger("slide_begin",a),a.options.resizeContents||a.$wrapper.filter(":not(:animated)").animate({width:a.panelSize[b][0],height:a.panelSize[b][1]},{queue:!1,duration:a.options.animationTime,easing:a.options.easing}),a.$window.filter(":not(:animated)").animate({scrollLeft:a.panelSize[b][2]},{queue:!1,duration:a.options.animationTime,easing:a.options.easing,complete:function(){a.endAnimation(b,d)}})}};a.endAnimation=function(b,e){b===0?(a.$window.scrollLeft(a.panelSize[a.pages][2]), b=a.pages):b>a.pages&&(a.$window.scrollLeft(a.panelSize[1][2]),b=1);a.exactPage=b;a.setCurrentPage(b,!1);a.$items.removeClass("activePage").eq(b).addClass("activePage");a.hovered||a.slideControls(!1);if(a.hasEmb){var d=a.$currentPage.find("object[id*=ytvideo], embed[id*=ytvideo]");d.length&&c.isFunction(d[0].getPlayerState)&&d[0].getPlayerState()>0&&d[0].getPlayerState()!==5&&d[0].playVideo()}a.$el.trigger("slide_complete",a);typeof e==="function"&&e(a);a.options.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(!0)}, a.options.resumeDelay-a.options.delay)};a.setCurrentPage=function(b,e){b>a.pages+1-a.adjustLimit&&(b=a.pages-a.adjustLimit);b<a.adjustLimit&&(b=1);a.options.buildNavigation&&(a.$nav.find(".cur").removeClass("cur"),a.$nav.find("a").eq(b-1).addClass("cur"));!a.options.infiniteSlides&&a.options.stopAtEnd&&(a.$wrapper.find("span.forward")[b===a.pages?"addClass":"removeClass"]("disabled"),a.$wrapper.find("span.back")[b===1?"addClass":"removeClass"]("disabled"),b===a.pages&&a.playing&&a.startStop());e|| (a.$wrapper.css({width:a.panelSize[b][0],height:a.panelSize[b][1]}),a.$wrapper.scrollLeft(0),a.$window.scrollLeft(a.panelSize[b][2]));a.currentPage=b;a.$currentPage=a.$items.eq(b).addClass("activePage");a.$wrapper.is(".activeSlider")||(c(".activeSlider").removeClass("activeSlider"),a.$wrapper.addClass("activeSlider"))};a.goForward=function(b){b!==!0&&(b=!1,a.startStop(!1));a.gotoPage(a.currentPage+1,b)};a.goBack=function(b){b!==!0&&(b=!1,a.startStop(!1));a.gotoPage(a.currentPage-1,b)};a.gotoHash= function(){var b=a.win.location.hash.match(a.regex);return b===null?"":parseInt(b[1],10)};a.setHash=function(b){var c="panel"+a.runTimes+"-",d=a.win.location.hash;if(typeof d!=="undefined")a.win.location.hash=d.indexOf(c)>0?d.replace(a.regex,c+b):d+"&"+c+b};a.slideControls=function(b){var c=b?0:a.options.animationTime,d=b?a.options.animationTime:0,f=b?1:0,g=b?0:1;a.options.toggleControls&&a.$controls.stop(!0,!0).delay(c)[b?"slideDown":"slideUp"](a.options.animationTime/2).delay(d);a.options.buildArrows&& a.options.toggleArrows&&(!a.hovered&&a.playing&&(g=1,f=0),a.$forward.stop(!0,!0).delay(c).animate({right:g*a.$arrowWidth,opacity:f},a.options.animationTime/2),a.$back.stop(!0,!0).delay(c).animate({left:g*a.$arrowWidth,opacity:f},a.options.animationTime/2))};a.clearTimer=function(b){a.timer&&(a.win.clearInterval(a.timer),b||a.$el.trigger("slideshow_stop",a))};a.startStop=function(b,c){b!==!0&&(b=!1);b&&!c&&a.$el.trigger("slideshow_start",a);a.playing=b;a.options.autoPlay&&(a.$startStop.toggleClass("playing", b).html(b?a.options.stopText:a.options.startText),parseInt(a.$startStop.css("text-indent"),10)<0&&a.$startStop.addClass(a.options.tooltipClass).attr("title",b?"Stop":"Start"));b?(a.clearTimer(!0),a.timer=a.win.setInterval(function(){if(!a.hasEmb||!a.checkVideo(b))a.options.playRtl?a.goBack(!0):a.goForward(!0)},a.options.delay)):a.clearTimer()};a.checkVideo=function(b){var e,d,f=!1;a.$items.find("object[id*=ytvideo], embed[id*=ytvideo]").each(function(){e=c(this);e.length&&c.isFunction(e[0].getPlayerState)&& (d=e[0].getPlayerState(),b&&(d===1||d>2)&&a.$items.index(e.closest("li.panel"))===a.currentPage&&a.options.resumeOnVideoEnd?f=!0:d>0&&e[0].pauseVideo())});return f};a.init()};c.anythingSlider.defaults={width:null,height:null,resizeContents:!0,tooltipClass:"tooltip",theme:"default",themeDirectory:"css/theme-{themeName}.css",startPanel:1,hashTags:!0,infiniteSlides:!0,enableKeyboard:!0,buildArrows:!0,toggleArrows:!1,buildNavigation:!0,enableNavigation:!0,toggleControls:!1,appendControlsTo:null,navigationFormatter:null, forwardText:"&raquo;",backText:"&laquo;",enablePlay:!0,autoPlay:!0,autoPlayLocked:!1,startStopped:!1,pauseOnHover:!0,resumeOnVideoEnd:!0,stopAtEnd:!1,playRtl:!1,startText:"Start",stopText:"Stop",delay:3E3,resumeDelay:15E3,animationTime:600,easing:"swing",clickArrows:"click",clickControls:"click focusin",clickSlideshow:"click",addWmodeToObject:"opaque",maxOverallWidth:32766};c.fn.anythingSlider=function(h,i){return this.each(function(){var a,b=c(this).data("AnythingSlider");(typeof h).match("object|undefined")? b?b.updateSlider():new c.anythingSlider(this,h):/\d/.test(h)&&!isNaN(h)&&b&&(a=typeof h==="number"?h:parseInt(c.trim(h),10),a>=1&&a<=b.pages&&b.gotoPage(a,!1,i))})}})(jQuery);
     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);
  • _plugins_/anythingslider/plugin.xml

    r46955 r50066  
    44        <icon>images/anythingslider.png</icon>
    55        <licence>GNU/GPL</licence>
    6         <version>0.1.3</version>
     6        <version>0.2.0</version>
    77        <etat>test</etat>
    8         <description>Permets d'utiliser le plugin jQuery [AnythingSlider->https://github.com/ProLoser/AnythingSlider/wiki] dans les squelettes.</description>
     8        <description>Permets d'utiliser le plugin jQuery [AnythingSlider->https://github.com/ProLoser/AnythingSlider/wiki] (v1.7.5) dans les squelettes.</description>
    99        <lien>http://www.spip-contrib.net/?article3783</lien>
    1010        <prefix>anythingslider</prefix>
    1111        <pipeline>
    1212                <nom>anythingslider_charger_fx</nom>
     13                <inclure>anythingslider_pipelines.php</inclure>
     14        </pipeline>
     15        <pipeline>
     16                <nom>anythingslider_charger_video</nom>
    1317                <inclure>anythingslider_pipelines.php</inclure>
    1418        </pipeline>
Note: See TracChangeset for help on using the changeset viewer.