Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create method to disable slideshow #8

Open
ryndel opened this issue Sep 30, 2015 · 0 comments
Open

Create method to disable slideshow #8

ryndel opened this issue Sep 30, 2015 · 0 comments

Comments

@ryndel
Copy link
Member

ryndel commented Sep 30, 2015

For various reason, you may want to disable the slideshow - for a particular screen width, old browser etc.
Create a method to disable slideshow: example code:
slideshow = null;
var $el = $("#slideshow");
$el.unbind();
$el.removeClass("ui-slideshow");
$el.find(".slide").removeClass("ui-slideshow-slide");
// remove inline styles
$el.find(".wrapper").removeAttr("style");
$el.find(".slide").removeAttr("style");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant