Skip to content

Instantly share code, notes, and snippets.

Created Apr 15, 2011
What would you like to do?
buttons: [{
icon: 'images/play.ico',
name: 'Play Slideshow',
alternateStyle: {
icon: 'images/pause.ico',
name: 'Pause Slideshow'
click: function () {
var slideshow = $('#slideshow');
var text = 'Playing...';
if ('state') == 'paused') {'state', 'playing');
} else {
text = 'Pausing...';'state', 'paused');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment