Created
March 11, 2014 03:38
-
-
Save mpgilbertusa/9479061 to your computer and use it in GitHub Desktop.
Responsive Starter Kit Pro - Code Sample - Modal Setup in global.js
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
<script> | |
$(document).ready(function () { | |
// modal for general content (fancyBox) | |
if ($(".fancybox").length > 0) { | |
$(".fancybox").fancybox({ | |
maxWidth: 800, | |
maxHeight: 600 | |
}); | |
} | |
// modal for video player (fancyBox) | |
if ($('.fancybox-media').length > 0) { | |
$('.fancybox-media').fancybox({ | |
width: 800, | |
height: 450, | |
padding: 2, | |
openEffect: 'none', | |
closeEffect: 'none', | |
helpers: { | |
media: {} | |
} | |
}); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment