Skip to content

Commit

Permalink
external link-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Strange committed Feb 12, 2012
1 parent 85dffb2 commit 5a118ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ <h1 class="site_title">magic-slider</h1>


<hr/>
<p><strong>default</strong> Settings</p>
<p>
<strong>default</strong> Settings &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="xtrig" href="#1" rel="magic-slider-1">external Link 1</a> &nbsp;|&nbsp;
<a class="xtrig" href="#3" rel="magic-slider-1">external Link 3</a>
</p>


<div class="magic-slider-wrapper">
Expand Down Expand Up @@ -286,7 +290,9 @@ <h2 class="title">Panel 4</h2>
</div> <!-- end of: magic-slider -->
</div> <!-- end of: magic-slider-wrapper -->


<br/>
<hr/>
<p class="copy">magic-slider a jquery-content-slider by Austin Strange, based on Coda-Slider and moutardeSlider.</p>

</div>

Expand Down
2 changes: 1 addition & 1 deletion js/magic-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ $.fn.magicSlider = function(settings) {
// External triggers (anywhere on the page)
$(settings.externalTriggerSelector).each(function() {
// Make sure this only affects the targeted slider
if (sliderCount == parseInt($(this).attr("rel").slice(12))) {
if (sliderCount == parseInt($(this).attr("rel").slice(13))) {
$(this).bind("click", function() {
navClicks++;
targetPanel = parseInt($(this).attr("href").slice(1));
Expand Down

0 comments on commit 5a118ea

Please sign in to comment.