Skip to content

Instantly share code, notes, and snippets.

@ryandemmer
Created April 27, 2015 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryandemmer/7e2d36ae93e9349742bc to your computer and use it in GitHub Desktop.
Save ryandemmer/7e2d36ae93e9349742bc to your computer and use it in GitHub Desktop.
Popup dynamic class
(function($) {
$(document).ready(function() {
$('a.jcepopup').click(function() {
var self = this;
window.setTimeout(function() {
$('#jcemediabox-popup-page').addClass('popup-' + $(self).index());
}, 100);
});
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment