Created
April 27, 2015 15:12
-
-
Save ryandemmer/7e2d36ae93e9349742bc to your computer and use it in GitHub Desktop.
Popup dynamic class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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