Created
May 14, 2013 17:31
-
-
Save jsalinas/5577842 to your computer and use it in GitHub Desktop.
Different classes for each Colorbox modal
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
$('.js-colorbox-1').colorbox({ | |
width: '50%', | |
onOpen:function(){ | |
// add unique class | |
$('#colorbox').addClass('first-modal-box'); | |
}, | |
}); | |
//http://stackoverflow.com/a/13766731 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment