Created
August 19, 2013 19:48
-
-
Save Brendonwbrown/6273235 to your computer and use it in GitHub Desktop.
A custom setup for shadowbox.js
This file contains hidden or 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
| <script type="text/javascript"> | |
| Shadowbox.init({ | |
| skipSetup: true | |
| }); | |
| window.onload = function () { | |
| Shadowbox.setup("a.shadowboxclass", {}); | |
| }; | |
| $(document).ready(function(){ | |
| $('a.shadowboxclass').live('click',function(e){ | |
| Shadowbox.open(this); | |
| e.preventDefault(); | |
| }); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment