Skip to content
Browse files

fixed all links to css-tricks; fixed fx thumbnail demo

  • Loading branch information...
1 parent e1767d0 commit 7becb1efa563cf59892546e2f95cf74a4160f717 @Mottie Mottie committed Aug 27, 2012
Showing with 64 additions and 54 deletions.
  1. +3 −3 README.textile
  2. +4 −4 css3.html
  3. +15 −13 demos.html
  4. +1 −0 demos/css/page.css
  5. +4 −4 expand.html
  6. +24 −17 index.html
  7. +1 −1 js/jquery.anythingslider.js
  8. +1 −1 js/jquery.anythingslider.min.js
  9. +3 −3 package.json
  10. +4 −4 simple.html
  11. +4 −4 video.html
View
6 README.textile
@@ -1,6 +1,6 @@
-h2. AnythingSlider jQuery Plugin
+h1. AnythingSlider jQuery Plugin
-A very robust jQuery-based slider plugin. Need to link to a specific slide? No problem. Like a choice of themes? Got it. Need callbacks for when specific slider actions happen? Sure. Need custom tab names? You got it. Need more than one slider per page? Easy.
+A very robust jQuery-based slider plugin. Need to link to a specific slide? No problem. Like a choice of themes? Got it. Need callbacks for when specific slider actions happen? Sure. Need custom tab names? You got it. Need more than one slider per page? Easy.
* Having problems with installing or getting the plugin to work? Ask your question in the "CSS-Tricks forums":http://css-tricks.com/forums/ or on "StackOverflow":http://stackoverflow.com/questions/tagged/anythingslider
* Find a bug or have an enhancement request? Submit it "here":https://github.com/CSS-Tricks/AnythingSlider/issues
@@ -23,4 +23,4 @@ CMS plugins/mods
* Wordpress plugin - "AnythingSlider-for-WordPress":https://github.com/jacobdubail/AnythingSlider-for-WordPress
* Movable Type plugin - "mt-plugin-anythingslider":https://github.com/meancode/mt-plugin-anythingslider
-* Joomla 2.5 mod - "mod_anythingslider":https://github.com/CSS-Tricks/mod_anythingslider
+* Joomla 2.5 mod - "mod_anythingslider":https://github.com/CSS-Tricks/mod_anythingslider
View
8 css3.html
@@ -91,10 +91,10 @@
<a href="video.html">Video Demo</a>
<a href="demos.html">FX Demos</a>
<a class="current" href="css3.html">CSS3 Demo</a>
- <a class="play" href="http://jsfiddle.net/Mottie/aTKzP/">Playground</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/zipball/master">Download</a>
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a><br><br>
+ <a class="play" href="http://jsfiddle.net/Mottie/ycUB6/">Playground</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/wiki">Documentation</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/zipball/master">Download</a>
+ <a class="issue" href="https://github.com/CSS-Tricks/AnythingSlider/issues">Issues</a><br><br>
</div>
<!-- End Links -->
View
28 demos.html
@@ -10,7 +10,7 @@
<!-- jQuery (required) & jQuery UI (for this demo only) -->
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css">
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
@@ -51,10 +51,10 @@
<a href="video.html">Video Demo</a>
<a class="current" href="demos.html">FX Demos</a>
<a href="css3.html">CSS3 Demo</a>
- <a class="play" href="http://jsfiddle.net/Mottie/aTKzP/">Playground</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/zipball/master">Download</a>
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
+ <a class="play" href="http://jsfiddle.net/Mottie/ycUB6/">Playground</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/wiki">Documentation</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/zipball/master">Download</a>
+ <a class="issue" href="https://github.com/CSS-Tricks/AnythingSlider/issues">Issues</a>
</div>
<h1>AnythingSlider FX Demos</h1>
@@ -102,7 +102,7 @@ <h2 class="title">Demo 1: Thumbnails &amp; A Lightbox</h2>
<h3><a href="#">Header</a></h3>
<div>
<pre class="html"> &lt;!-- jQuery --&gt;
- &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js&quot;&gt;&lt;/script&gt;
+ &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;!-- Anything Slider optional plugins --&gt;
&lt;script src=&quot;js/jquery.easing.1.2.js&quot;&gt;&lt;/script&gt;
@@ -126,8 +126,10 @@ <h2 class="title">Demo 1: Thumbnails &amp; A Lightbox</h2>
}
/* CSS to expand the image to fit inside colorbox */
#cboxPhoto { width: 100%; height: 100%; margin: 0 !important; }
- /* Change metallic theme defaults to show thumbnails -
- using #demo2 (page wrapper) to increase this CSS priority */
+ /* Change metallic theme defaults to show thumbnails */
+ div.anythingControls {
+ bottom: 25px; /* thumbnail images are larger than the original bullets; move it up */
+}
.anythingSlider-metallic .thumbNav a {
background-image: url();
height: 30px;
@@ -142,12 +144,12 @@ <h2 class="title">Demo 1: Thumbnails &amp; A Lightbox</h2>
visibility: visible; /* span changed to visibility hidden in v1.7.20 */
}
/* border around link (image) to show current panel */
- #demo2 .anythingSlider-metallic .thumbNav a:hover,
- #demo2 .anythingSlider-metallic .thumbNav a.cur {
+ .anythingSlider-metallic .thumbNav a:hover,
+ .anythingSlider-metallic .thumbNav a.cur {
border-color: #fff;
}
/* reposition the start/stop button */
- #demo2 .anythingSlider-metallic .start-stop {
+ .anythingSlider-metallic .start-stop {
margin-top: 15px;
}</pre>
<br>
@@ -305,7 +307,7 @@ <h2 class="title">Demo 2: FX Extension Panel Effects</h2>
<h3><a href="#">Header</a></h3>
<div>
<pre class="html">&lt;!-- jQuery --&gt;
- &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js&quot;&gt;&lt;/script&gt;
+ &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;!-- Anything Slider optional plugins --&gt;
&lt;script src=&quot;js/jquery.easing.1.2.js&quot;&gt;&lt;/script&gt;
@@ -500,7 +502,7 @@ <h2 class="title">Demo 3: Sliding Captions</h2>
<h3><a href="#">Header</a></h3>
<div>
<pre class="html"> &lt;!-- jQuery --&gt;
- &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js&quot;&gt;&lt;/script&gt;
+ &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;!-- Anything Slider optional plugins --&gt;
&lt;script src=&quot;js/jquery.easing.1.2.js&quot;&gt;&lt;/script&gt;
View
1 demos/css/page.css
@@ -79,6 +79,7 @@ ul li { font: 15px Georgia, Serif; margin: 0 0 8px 0; }
/* Change metallic slider defaults to show thumbnails -
using #demo2 (page wrapper) to increase this CSS priority */
+#demo2 div.anythingControls { bottom: 25px; }
#demo2 div.anythingSlider-metallic .thumbNav a { background-image: url(); height: 30px; width: 30px; border: #000 1px solid; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; }
#demo2 div.anythingSlider-metallic .thumbNav a span { visibility: visible; }
View
8 expand.html
@@ -47,10 +47,10 @@
<a href="video.html">Video Demo</a>
<a href="demos.html">FX Demos</a>
<a href="css3.html">CSS3 Demo</a>
- <a class="play" href="http://jsfiddle.net/Mottie/aTKzP/">Playground</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/zipball/master">Download</a>
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
+ <a class="play" href="http://jsfiddle.net/Mottie/ycUB6/">Playground</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/wiki">Documentation</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/zipball/master">Download</a>
+ <a class="issue" href="https://github.com/CSS-Tricks/AnythingSlider/issues">Issues</a>
</div>
<!-- End Links -->
View
41 index.html
@@ -141,14 +141,14 @@
<a href="video.html">Video Demo</a>
<a href="demos.html">FX Demos</a>
<a href="css3.html">CSS3 Demo</a>
- <a class="play" href="http://jsfiddle.net/Mottie/aTKzP/">Playground</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/zipball/master">Download</a>
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
+ <a class="play" href="http://jsfiddle.net/Mottie/ycUB6/">Playground</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/wiki">Documentation</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/zipball/master">Download</a>
+ <a class="issue" href="https://github.com/CSS-Tricks/AnythingSlider/issues">Issues</a>
</div>
<h5><a href="http://css-tricks.com/examples/AnythingSlider/">Original</a> By <a href="http://css-tricks.com">Chris Coyier</a>,
- expanded upon by <a href="https://github.com/ProLoser/AnythingSlider/wiki/Credits">many others</a></h5>
+ expanded upon by <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Credits">many others</a></h5>
<h1>AnythingSlider</h1>
@@ -263,7 +263,7 @@
<li>Use keyboard navigation or tabs that are built and added dynamically (any number of panels).</li>
<li>Link to specific slides or go forward or back one slide from static text links - go to <a href="#" id="slide-jump">Slide 4</a> (Quote #2) in second example.</li>
<li>Each panel has a hashtag (can link directly to specific panels) or use the ID of an element inside the panel.</li>
- <li>Optional custom function for <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-Options">formatting navigation text</a>.</li>
+ <li>Optional custom function for <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Navigation-Options">formatting navigation text</a>.</li>
<li>Auto-playing slideshow (optional feature, can start playing or stopped).</li>
<li>Pauses slideshow on hover (optional).</li>
<li>Optionally play the slideshow once through, stopping on the last page.</li>
@@ -275,7 +275,7 @@
<a name="default-options"></a>
<h2>Default Options</h2>
- See the documentation for complete description of these options (<a href="https://github.com/ProLoser/AnythingSlider/wiki/Appearance-Options">appearance</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-Options">navigation</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Slideshow-Options">slideshow</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Callbacks-and-Events">callbacks &amp; events</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Video">video</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Interactivity-and-Miscellaneous-Options">interativity &amp; misc</a>).<br>
+ See the documentation for complete description of these options (<a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Appearance-Options">appearance</a>, <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Navigation-Options">navigation</a>, <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Slideshow-Options">slideshow</a>, <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Callbacks-and-Events">callbacks &amp; events</a>, <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Video">video</a>, <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Interactivity-and-Miscellaneous-Options">interativity &amp; misc</a>).<br>
<br>
<blockquote>
<pre class="js">$('#slider').anythingSlider({
@@ -363,27 +363,34 @@
<a name="known-issues"></a>
<h2>Known Issues</h2>
<ul>
- <li>Please refer to the <a href="https://github.com/ProLoser/AnythingSlider/wiki">documentation</a>.</li>
+ <li>Please refer to the <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki">documentation</a>.</li>
</ul>
<a name="changelog"></a>
<h2>Changelog</h2>
- Only the latest versions will be shown here. See the <a href="https://github.com/ProLoser/AnythingSlider/wiki/Change-Log">full change log here</a>.<br>
+ Only the latest versions will be shown here. See the <a href="https://github.com/CSS-Tricks/AnythingSlider/wiki/Change-Log">full change log here</a>.<br>
<br>
+ <h3>Moved Repo!</h3>
+ <ul>
+ <li>The AnythingSlider repo was "moved" from ProLoser/AnythingSlider to CSS-Tricks/AnythingSlider.</li>
+ <li>Due to an issue, the repository was removed and all issues and links were lost, sorry for the inconvenience.</li>
+ <li>The Wiki documents have been replaced, but as all of the jsFiddle demos were targetting the files from the previous location, they are most likely all broken. I will slowly update these demos and links as time permits.</li>
+ </ul>
+
<h3>Version 1.8.6</h3>
<ul>
<li>Animation time can now be set to zero when using the API method.</li>
- <li>Fixed IE9 flashing in fade mode. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/377">issue #377</a>.</li>
+ <li>Fixed IE9 flashing in fade mode. Fix for <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/377">issue #377</a>.</li>
<li>Modified fade mode to use the <code>resumeOnVisible</code> option:
<ul>
<li>If the option is true, non-current panels will have an opacity of zero and be hidden by having a lower z-index.</li>
<li>If <code>resumeOnVisible</code> is <code>false</code> all non-current panels will be hidden. But because they are hidden (display:none), all videos will restart when they become visible again and there is no way to control it.</li>
<li>Hopefully setting the option to false will fix the issues that mobile devices are having with video.</li>
</ul>
</li>
- <li>Fade mode no longer uses css to set the opacity. Hopefully this will fix <a href="https://github.com/ProLoser/AnythingSlider/issues/379">issue #379</a>.</li>
+ <li>Fade mode no longer uses css to set the opacity. Hopefully this will fix <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/379">issue #379</a>.</li>
<li>Updated the wiki documentation to include API functions.</li>
</ul>
@@ -395,24 +402,24 @@
<li>If true, the plugin will allow the user to rapidly click on the navigation tabs or arrows to skip slides quickly. The animation will jump to the end, so it may not appear as smooth when this option is false.</li>
</ul>
</li>
- <li>When using fade mode, the links in the first panel will now work properly. Fixes <a href="https://github.com/ProLoser/AnythingSlider/issues/346">issue #346</a>.</li>
- <li>When <code>showMultiple</code> and <code>changeBy</code> are more than one, and <code>infiniteSlides</code> is false, the slider will now properly show all of the slides. Fixes <a href="https://github.com/ProLoser/AnythingSlider/issues/356">issue #356</a>. Thanks to <a href="https://github.com/NewMediaRoc">NewMediaRoc</a> for sharing the code!</li>
+ <li>When using fade mode, the links in the first panel will now work properly. Fixes <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/346">issue #346</a>.</li>
+ <li>When <code>showMultiple</code> and <code>changeBy</code> are more than one, and <code>infiniteSlides</code> is false, the slider will now properly show all of the slides. Fixes <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/356">issue #356</a>. Thanks to <a href="https://github.com/NewMediaRoc">NewMediaRoc</a> for sharing the code!</li>
</ul>
<h3>Version 1.8.4</h3>
<ul>
- <li>The anythingControls div will no longer be added to the markup when empty. Fixes <a href="https://github.com/ProLoser/AnythingSlider/issues/342">issue #342</a>.</li>
- <li>Fixed error that occurs when buildArrows is false and stopAtEnd is true. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/343">issue #343</a>. Thanks to <a href="https://github.com/lhwparis">lhwparis</a> for the code!</li>
+ <li>The anythingControls div will no longer be added to the markup when empty. Fixes <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/342">issue #342</a>.</li>
+ <li>Fixed error that occurs when buildArrows is false and stopAtEnd is true. Fix for <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/343">issue #343</a>. Thanks to <a href="https://github.com/lhwparis">lhwparis</a> for the code!</li>
</ul>
<h3>Version 1.8.3</h3>
<ul>
- <li>Fixed fade mode animation bug. It should now behave as the other modes in that rapid panel changes are ignored. Fixes <a href="https://github.com/ProLoser/AnythingSlider/issues/340">issue #340</a> (and maybe issues #338 &amp; #339?).</li>
+ <li>Fixed fade mode animation bug. It should now behave as the other modes in that rapid panel changes are ignored. Fixes <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/340">issue #340</a> (and maybe issues #338 &amp; #339?).</li>
</ul>
<h3>Version 1.8.2</h3>
<ul>
- <li>Fixed <code>autoPlay</code> option. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/331">issue #331</a>.</li>
+ <li>Fixed <code>autoPlay</code> option. Fix for <a href="https://github.com/CSS-Tricks/AnythingSlider/issues/331">issue #331</a>.</li>
<li>Removed IE conditional comments from demo files.</li>
</ul>
View
2 js/jquery.anythingslider.js
@@ -1,7 +1,7 @@
/*!
AnythingSlider v1.8.6
Original by Chris Coyier: http://css-tricks.com
- Get the latest version: https://github.com/ProLoser/AnythingSlider
+ Get the latest version: https://github.com/CSS-Tricks/AnythingSlider
To use the navigationFormatter function, you must have a function that
accepts two paramaters, and returns a string of HTML text.
View
2 js/jquery.anythingslider.min.js
@@ -1,6 +1,6 @@
/*!
AnythingSlider v1.8.6 minified using Google Closure Compiler
Original by Chris Coyier: http://css-tricks.com
- Get the latest version: https://github.com/ProLoser/AnythingSlider
+ Get the latest version: https://github.com/CSS-Tricks/AnythingSlider
*/
;(function(d){d.anythingSlider=function(i,k){var a=this,b,j;a.el=i;a.$el=d(i).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,k);a.initialized=!1;d.isFunction(b.onBeforeInitialize)&&a.$el.bind("before_initialize",b.onBeforeInitialize);a.$el.trigger("before_initialize",a);d('<\!--[if lte IE 8]><script>jQuery("body").addClass("as-oldie");<\/script><![endif]--\>').appendTo("body").remove(); 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>');a.$nav=d('<ul class="thumbNav"><li><a><span></span></a></li></ul>');a.$startStop=d('<a href="#" class="start-stop"></a>');if(b.buildStartStop||b.buildNavigation)a.$controls.appendTo(b.appendControlsTo&&d(b.appendControlsTo).length?d(b.appendControlsTo):a.$wrapper);b.buildNavigation&& a.$nav.appendTo(b.appendNavigationTo&&d(b.appendNavigationTo).length?d(b.appendNavigationTo):a.$controls);b.buildStartStop&&a.$startStop.appendTo(b.appendStartStopTo&&d(b.appendStartStopTo).length?d(b.appendStartStopTo):a.$controls);a.runTimes=d(".anythingBase").length;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");1===a.runTimes&&a.makeActive();a.flag=!1;a.playing=b.autoPlay;a.slideshow=!1;a.hovered=!1;a.panelSize=[];a.currentPage=a.targetPage=b.startPanel=parseInt(b.startPanel,10)||1;b.changeBy= parseInt(b.changeBy,10)||1;j=(b.mode||"h").toLowerCase().match(/(h|v|f)/);j=b.vertical?"v":(j||["h"])[0];b.mode="v"===j?"vertical":"f"===j?"fade":"horizontal";"f"===j&&(b.showMultiple=1,b.infiniteSlides=!1);a.adj=b.infiniteSlides?0:1;a.adjustMultiple=0;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");b.expand&&(a.$outer=a.$wrapper.parent(),a.$window.css({width:"100%", height:"100%"}),a.checkResize());b.buildStartStop&&a.buildAutoPlay();b.buildArrows&&a.buildNextBackButtons();b.autoPlay||(b.autoPlayLocked=!1);a.$lastPage=a.$targetPage=a.$currentPage;a.updateSlider();d.isFunction(d.easing[b.easing])||(b.easing="swing");b.pauseOnHover&&a.$wrapper.hover(function(){if(a.playing){a.$el.trigger("slideshow_paused",a);a.clearTimer(true)}},function(){if(a.playing){a.$el.trigger("slideshow_unpaused",a);a.startStop(a.playing,true)}});a.slideControls(!1);a.$wrapper.bind("mouseenter mouseleave", function(b){d(this)[b.type==="mouseenter"?"addClass":"removeClass"]("anythingSlider-hovered");a.hovered=b.type==="mouseenter"?true:false;a.slideControls(a.hovered)});d(document).keyup(function(c){if(b.enableKeyboard&&(a.$wrapper.hasClass("activeSlider")&&!c.target.tagName.match("TEXTAREA|INPUT|SELECT"))&&!(b.mode!=="vertical"&&(c.which===38||c.which===40)))switch(c.which){case 39:case 40:a.goForward();break;case 37:case 38:a.goBack()}});a.currentPage=a.gotoHash()||b.startPanel||1;a.gotoPage(a.currentPage, !1,null,-1);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(f,e){d.isFunction(b[e])&&a.$el.bind(c[f],b[e])});d.isFunction(b.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){b.onSlideComplete(a)},0);return false});a.initialized=!0;a.$el.trigger("initialized", a);a.startStop(b.autoPlay)};a.updateSlider=function(){a.$el.children(".cloned").remove();a.navTextVisible="hidden"!==a.$nav.find("span:first").css("visibility");a.$nav.empty();a.currentPage=a.currentPage||1;a.$items=a.$el.children();a.pages=a.$items.length;a.dir="vertical"===b.mode?"top":"left";b.showMultiple="vertical"===b.mode?1:parseInt(b.showMultiple,10)||1;b.navigationSize=!1===b.navigationSize?0:parseInt(b.navigationSize,10)||0;a.$items.find("a").unbind("focus.AnythingSlider").bind("focus.AnythingSlider", function(c){var e=d(this).closest(".panel"),e=a.$items.index(e)+a.adj;a.$items.find(".focusedLink").removeClass("focusedLink");d(this).addClass("focusedLink");a.$window.scrollLeft(0).scrollTop(0);if(-1!==e&&(e>=a.currentPage+b.showMultiple||e<a.currentPage))a.gotoPage(e),c.preventDefault()});1<b.showMultiple&&(b.showMultiple>a.pages&&(b.showMultiple=a.pages),a.adjustMultiple=b.infiniteSlides&&1<a.pages?0:b.showMultiple-1);a.$controls.add(a.$nav).add(a.$startStop).add(a.$forward).add(a.$back)[1>=a.pages? "hide":"show"]();1<a.pages&&a.buildNavigation();"fade"!==b.mode&&(b.infiniteSlides&&1<a.pages)&&(a.$el.prepend(a.$items.filter(":last").clone().addClass("cloned")),1<b.showMultiple?a.$el.append(a.$items.filter(":lt("+b.showMultiple+")").clone().addClass("cloned multiple")):a.$el.append(a.$items.filter(":first").clone().addClass("cloned")),a.$el.find(".cloned").each(function(){d(this).find("a,input,textarea,select,button,area,form").attr({disabled:"disabled",name:""});d(this).find("[id]").andSelf().removeAttr("id")})); a.$items=a.$el.addClass(b.mode).children().addClass("panel");a.setDimensions();b.resizeContents?(a.$items.css("width",a.width),a.$wrapper.css("width",a.getDim(a.currentPage)[0]).add(a.$items).css("height",a.height)):a.$win.load(function(){a.setDimensions();c=a.getDim(a.currentPage);a.$wrapper.css({width:c[0],height:c[1]});a.setCurrentPage(a.currentPage,false)});a.currentPage>a.pages&&(a.currentPage=a.pages);a.setCurrentPage(a.currentPage,!1);a.$nav.find("a").eq(a.currentPage-1).addClass("cur");if("fade"=== b.mode){var c=a.$items.eq(a.currentPage-1);b.resumeOnVisible?c.css({opacity:1}).siblings().css({opacity:0}):(a.$items.css("opacity",1),c.fadeIn(0).siblings().fadeOut(0))}};a.buildNavigation=function(){if(b.buildNavigation&&1<a.pages){var c,f,e,g,h;a.$items.filter(":not(.cloned)").each(function(m){h=d("<li/>");e=m+1;f=(1===e?" first":"")+(e===a.pages?" last":"");c='<a class="panel'+e+(a.navTextVisible?'"':" "+b.tooltipClass+'" title="@"')+' href="#"><span>@</span></a>';d.isFunction(b.navigationFormatter)? (g=b.navigationFormatter(e,d(this)),"string"===typeof g?h.html(c.replace(/@/g,g)):h=d("<li/>",g)):h.html(c.replace(/@/g,e));h.appendTo(a.$nav).addClass(f).data("index",e)});a.$nav.children("li").bind(b.clickControls,function(c){!a.flag&&b.enableNavigation&&(a.flag=!0,setTimeout(function(){a.flag=!1},100),a.gotoPage(d(this).data("index")));c.preventDefault()});b.navigationSize&&b.navigationSize<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).outerWidth(!0)+Math.ceil(parseInt(d(this).find("span").css("left"),10)/2||0)}).get(),a.navLeft=a.currentPage,a.$nav.width(a.navWidth(1,a.pages+1)+25),a.$controls.find(".anythingNavWindow").width(a.navWidth(1,b.navigationSize+1)).end().find(".prev,.next").bind(b.clickControls, function(c){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,f){var e;e=Math.min(b,f);for(var d=Math.max(b,f),h=0;e<d;e++)h+=a.navWidths[e-1]||0;return h};a.navWindow=function(c){if(b.navigationSize&&b.navigationSize<a.pages&&a.navWidths){var f=a.pages-b.navigationSize+1,c=1>=c?1:1<c&&c<f?c:f;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){b.enableArrows&&!a.flag&&(a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goBack());c.preventDefault()});a.$forward.bind(b.clickForwardArrow, function(c){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&&d(b.appendBackTo).length?d(b.appendBackTo):a.$wrapper);a.$forward.appendTo(b.appendForwardTo&&d(b.appendForwardTo).length?d(b.appendForwardTo):a.$wrapper);a.arrowWidth=a.$forward.width();a.arrowRight=parseInt(a.$forward.css("right"),10);a.arrowLeft= parseInt(a.$back.css("left"),10)};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 f=a.$outer.width()-a.outerPad[0],e=("BODY"=== a.$outer[0].tagName?a.$win.height():a.$outer.height())-a.outerPad[1];if(a.width*b.showMultiple!==f||a.height!==e)a.setDimensions(),a.gotoPage(a.currentPage,a.playing,null,-1);"undefined"===typeof c&&a.checkResize()},500)};a.setDimensions=function(){var c,f,e,g,h=0,i={width:"100%",height:"100%"},l=1<b.showMultiple?a.width||a.$window.width()/b.showMultiple:a.$window.width(),j=a.$win.width();b.expand&&(c=a.$outer.width()-a.outerPad[0],a.height=f=a.$outer.height()-a.outerPad[1],a.$wrapper.add(a.$window).add(a.$items).css({width:c, height:f}),a.width=l=1<b.showMultiple?c/b.showMultiple:c);a.$items.each(function(k){g=d(this);e=g.children();if(b.resizeContents){c=a.width;f=a.height;g.css({width:c,height:f});if(e.length){e[0].tagName==="EMBED"&&e.attr(i);e[0].tagName==="OBJECT"&&e.find("embed").attr(i);e.length===1&&e.css(i)}}else{c=g.width()||a.width;if(e.length===1&&c>=j){c=e.width()>=j?l:e.width();e.css("max-width",c)}g.css("width",c);f=e.length===1?e.outerHeight(true):g.height();if(f<=a.outerPad[1])f=a.height;g.css("height", f)}a.panelSize[k]=[c,f,h];h=h+(b.mode==="vertical"?f:c)});a.$el.css("vertical"===b.mode?"height":"width","fade"===b.mode?a.width:h)};a.getDim=function(c){var f,e=a.width,d=a.height;if(1>a.pages||isNaN(c))return[e,d];c=b.infiniteSlides&&1<a.pages?c:c-1;if(f=a.panelSize[c])e=f[0]||e,d=f[1]||d;if(1<b.showMultiple)for(f=1;f<b.showMultiple;f++)e+=a.panelSize[c+f][0],d=Math.max(d,a.panelSize[c+f][1]);return[e,d]};a.goForward=function(c){a.gotoPage(a[b.allowRapidChange?"targetPage":"currentPage"]+b.changeBy* (b.playRtl?-1:1),c)};a.goBack=function(c){a.gotoPage(a[b.allowRapidChange?"targetPage":"currentPage"]+b.changeBy*(b.playRtl?1:-1),c)};a.gotoPage=function(c,f,e,g){!0!==f&&(f=!1,a.startStop(!1),a.makeActive());/^[#|.]/.test(c)&&d(c).length&&(c=d(c).closest(".panel").index()+a.adj);if(1!==b.changeBy){var h=a.pages-a.adjustMultiple;1>c&&(c=b.stopAtEnd?1:b.infiniteSlides?a.pages+c:b.showMultiple>1-c?1:h);c>a.pages?c=b.stopAtEnd?a.pages:b.showMultiple>1-c?1:c-=h:c>=h&&(c=h)}if(!(1>=a.pages)&&(a.$lastPage= a.$currentPage,"number"!==typeof c&&(c=parseInt(c,10)||b.startPanel,a.setCurrentPage(c)),!f||!b.isVideoPlaying(a)))a.exactPage=c,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),b.infiniteSlides||(a.exactPage=c),a.currentPage=c>a.pages?a.pages:1>c?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-a.adj),a.targetPage=0===c?a.pages:c>a.pages?1:c,a.$targetPage=a.$items.eq(a.targetPage-a.adj),g="undefined"!==typeof g?g:b.animationTime, 0<=g&&a.$el.trigger("slide_init",a),0<g&&a.slideControls(!0),b.buildNavigation&&a.setNavigation(a.targetPage),!0!==f&&(f=!1),(!f||b.stopAtEnd&&c===a.pages)&&a.startStop(!1),0<=g&&a.$el.trigger("slide_begin",a),setTimeout(function(d){var f,h=true;b.allowRapidChange&&a.$wrapper.add(a.$el).add(a.$items).stop(true,true);if(!b.resizeContents){f=a.getDim(c);d={};if(a.$wrapper.width()!==f[0]){d.width=f[0]||a.width;h=false}if(a.$wrapper.height()!==f[1]){d.height=f[1]||a.height;h=false}h||a.$wrapper.filter(":not(:animated)").animate(d, {queue:false,duration:g<0?0:g,easing:b.easing})}if(b.mode==="fade")if(a.$lastPage[0]!==a.$targetPage[0]){a.fadeIt(a.$lastPage,0,g);a.fadeIt(a.$targetPage,1,g,function(){a.endAnimation(c,e,g)})}else a.endAnimation(c,e,g);else{d={};d[a.dir]=-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2];a.$el.filter(":not(:animated)").animate(d,{queue:false,duration:g<0?0:g,easing:b.easing,complete:function(){a.endAnimation(c,e,g)}})}},parseInt(b.delayBeforeAnimate,10)||0)};a.endAnimation=function(c,d,e){0===c? (a.$el.css(a.dir,"fade"===b.mode?0:-a.panelSize[a.pages][2]),c=a.pages):c>a.pages&&(a.$el.css(a.dir,"fade"===b.mode?0:-a.panelSize[1][2]),c=1);a.exactPage=c;a.setCurrentPage(c,!1);"fade"===b.mode&&a.fadeIt(a.$items.not(":eq("+(c-a.adj)+")"),0,0);a.hovered||a.slideControls(!1);b.hashTags&&a.setHash(c);0<=e&&a.$el.trigger("slide_complete",a);"function"===typeof d&&d(a);b.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(true)},b.resumeDelay-(b.autoPlayDelayed?b.delay:0))};a.fadeIt=function(a, d,e,g){e=0>e?0:e;if(b.resumeOnVisible)a.filter(":not(:animated)").fadeTo(e,d,g);else a.filter(":not(:animated)")[0===d?"fadeOut":"fadeIn"](e,g)};a.setCurrentPage=function(c,d){c=parseInt(c,10);if(!(1>a.pages||0===c||isNaN(c))){c>a.pages+1-a.adj&&(c=a.pages-a.adj);c<a.adj&&(c=1);b.buildArrows&&(!b.infiniteSlides&&b.stopAtEnd)&&(a.$forward[c===a.pages-a.adjustMultiple?"addClass":"removeClass"]("disabled"),a.$back[1===c?"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).scrollTop(0);a.$el.css(a.dir,"fade"===b.mode?0:-a.panelSize[b.infiniteSlides&&1<a.pages?c:c-1][2])}a.currentPage=c;a.$currentPage=a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage");b.buildNavigation&&a.setNavigation(c)}};a.setNavigation=function(b){a.$nav.find(".cur").removeClass("cur").end().find("a").eq(b-1).addClass("cur")};a.makeActive=function(){a.$wrapper.hasClass("activeSlider")||(d(".activeSlider").removeClass("activeSlider"), a.$wrapper.addClass("activeSlider"))};a.gotoHash=function(){var c=a.win.location.hash,f=c.indexOf("&"),e=c.match(a.regex);null===e&&!/^#&/.test(c)&&!/#!?\//.test(c)?(c=c.substring(0,0<=f?f:c.length),e=d(c).length&&d(c).closest(".anythingBase")[0]===a.el?a.$items.index(d(c).closest(".panel"))+a.adj:null):null!==e&&(e=b.hashTags?parseInt(e[1],10):null);return e};a.setHash=function(b){var d="panel"+a.runTimes+"-",e=a.win.location.hash;"undefined"!==typeof e&&(a.win.location.hash=0<e.indexOf(d)?e.replace(a.regex, d+b):e+"&"+d+b)};a.slideControls=function(c){var d=c?0:b.animationTime,e=c?b.animationTime:0,g=c?1:0,h=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&&(h=1,g=0),a.$forward.stop(!0,!0).delay(d).animate({right:a.arrowRight+h*a.arrowWidth,opacity:g},b.animationTime/2),a.$back.stop(!0,!0).delay(d).animate({left:a.arrowLeft+h*a.arrowWidth,opacity:g},b.animationTime/2))};a.clearTimer=function(b){a.timer&& (a.win.clearInterval(a.timer),!b&&a.slideshow&&(a.$el.trigger("slideshow_stop",a),a.slideshow=!1))};a.startStop=function(c,d){!0!==c&&(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),"hidden"===a.$startStop.find("span").css("visibility")&&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(true)},b.delay)):a.clearTimer()};a.init()};d.anythingSlider.defaults={theme:"default",mode:"horiz",expand:!1,resizeContents:!0,showMultiple:!1,easing:"swing",buildArrows:!0,buildNavigation:!0,buildStartStop:!0,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,delayBeforeAnimate:0,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",allowRapidChange:!1,resumeOnVideoEnd:!0,resumeOnVisible:!0,addWmodeToObject:"opaque",isVideoPlaying:function(){return!1}};d.fn.anythingSlider=function(i,k){return this.each(function(){var a,b=d(this).data("AnythingSlider"); (typeof i).match("object|undefined")?b?b.updateSlider():new d.anythingSlider(this,i):/\d/.test(i)&&!isNaN(i)&&b?(a="number"===typeof i?i:parseInt(d.trim(i),10),1<=a&&a<=b.pages&&b.gotoPage(a,!1,k)):/^[#|.]/.test(i)&&d(i).length&&b.gotoPage(i,!1,k)})}})(jQuery);
View
6 package.json
@@ -9,7 +9,7 @@
"licenses": [
{
"type": "GPL3",
- "url": "https://github.com/ProLoser/AnythingSlider/blob/master/license.txt"
+ "url": "https://github.com/CSS-Tricks/AnythingSlider/blob/master/license.txt"
}
],
"dependencies": {
@@ -23,8 +23,8 @@
"video"
],
"homepage": "http://css-tricks.com/3412-anythingslider-jquery-plugin/",
- "demo": "http://proloser.github.com/AnythingSlider/",
- "docs": "https://github.com/ProLoser/AnythingSlider/wiki",
+ "demo": "http://css-tricks.github.com/AnythingSlider/",
+ "docs": "https://github.com/CSS-Tricks/AnythingSlider/wiki",
"maintainers": [
{
"name": "Rob Garrison",
View
8 simple.html
@@ -48,10 +48,10 @@
<a href="video.html">Video Demo</a>
<a href="demos.html">FX Demos</a>
<a href="css3.html">CSS3 Demo</a>
- <a class="play" href="http://jsfiddle.net/Mottie/aTKzP/">Playground</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/zipball/master">Download</a>
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a><br><br>
+ <a class="play" href="http://jsfiddle.net/Mottie/ycUB6/">Playground</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/wiki">Documentation</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/zipball/master">Download</a>
+ <a class="issue" href="https://github.com/CSS-Tricks/AnythingSlider/issues">Issues</a><br><br>
</div>
<!-- End Links -->
View
8 video.html
@@ -51,10 +51,10 @@
<a class="current" href="video.html">Video Demo</a>
<a href="demos.html">FX Demos</a>
<a href="css3.html">CSS3 Demo</a>
- <a class="play" href="http://jsfiddle.net/Mottie/aTKzP/">Playground</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/zipball/master">Download</a>
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
+ <a class="play" href="http://jsfiddle.net/Mottie/ycUB6/">Playground</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/wiki">Documentation</a>
+ <a class="git" href="https://github.com/CSS-Tricks/AnythingSlider/zipball/master">Download</a>
+ <a class="issue" href="https://github.com/CSS-Tricks/AnythingSlider/issues">Issues</a>
</div>
<br><br>

0 comments on commit 7becb1e

Please sign in to comment.
Something went wrong with that request. Please try again.