Skip to content

Commit

Permalink
Added new option which allows the slideshow to be able to start at a …
Browse files Browse the repository at this point in the history
…particular slide.

Credit goes to Kory Sutherland for this commit.
  • Loading branch information
06b committed Mar 3, 2012
1 parent d580f53 commit bf05a45
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ A slide can contain any type of HTML element. It's an infinity slide. Etc.
<td>false</td>
<td> </td>
</tr>
<tr>
<td>start_at:</td>
<td>0</td>
<td> </td>
</tr>
<tr>
<td>custom_function</td>
<td>null</td>
Expand Down
8 changes: 7 additions & 1 deletion jquery.aw-showcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ http://www.jquery.com
http://www.awkwardgroup.com/sandbox/awkward-showcase-a-jquery-plugin
http://demo.awkwardgroup.com/showcase
Version: 1.2.2
Version: 1.3.0
Copyright (c) 2012 Adrian D. Alvarez (http://www.adriandalvarez.com)
This file is originally by the following & was forked from Version:1.1.1
Expand Down Expand Up @@ -94,6 +94,7 @@ Markup example for jQuery("#showcase").awShowcase();
dynamic_height: false, /* For dynamic height to work in webkit you need to set the width and height of images in the source. Usually works to only set the dimension of the first slide in the showcase. */
speed_change: false, /* This prevents user from swithing more then one slide at once */
viewline: false, /* If set to true content_width, thumbnails, transition and dynamic_height will be disabled. As for dynamic height you need to set the width and height of images in the source. */
start_at: 0, /* Allows to be able to start the gallery at a particular slide. */
fullscreen_width_x: 15,
custom_function: null, /* Custom Function is called only on first load */
custom_slide_function: null /* Custom Function that runs on every slide change - Should be the name of a function in the type of a string. Example:'swapPhases' for function swapPhases() */
Expand Down Expand Up @@ -1074,6 +1075,11 @@ Markup example for jQuery("#showcase").awShowcase();
content_container.mousemove(function (e) { mousetrace.html('X: ' + (e.pageX - offset.left) + ' Y: ' + (e.pageY - offset.top)); });
}

// Start at a particular slide
if (options.start_at) {
changeContent(options.start_at);
}

// Show all content on one page
$('#awOnePageButton').click(function showInOnePage() {
if ($('.view-page').is(':visible')) {
Expand Down
Loading

0 comments on commit bf05a45

Please sign in to comment.