Skip to content

Instantly share code, notes, and snippets.

@mpgilbertusa
Created March 11, 2014 03:38
Show Gist options
  • Save mpgilbertusa/9479061 to your computer and use it in GitHub Desktop.
Save mpgilbertusa/9479061 to your computer and use it in GitHub Desktop.
Responsive Starter Kit Pro - Code Sample - Modal Setup in global.js
<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