Wednesday, May 15, 2013

[Help Wordpress] enterFullScreen on rsSlideClick()


I would like to enterFullScreen when user clicks on slide. I'm guessing that I can do this with code like that below...but I'm not sure what FILE and Function this code should be placed in. I'm relatively new to this, so I don't know whether this needs to be included within the .php files or jquery.royalslider.min.js... Can you please advise?


Thanks,


Dave


/* Call enterFullScreen when user clicks/taps on slide (rather than advance to next slide) */
var slider = $(".royalSlider").data('royalSlider');


slider.ev.on('rsSlideClick', function() {
    // triggers when user clicks on slide, doesn't trigger after click and drag
    slider.enterFullscreen();
});



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post