Created
February 21, 2017 10:53
-
-
Save koentjuh1/84668da692e1690cbc1e11c62f198161 to your computer and use it in GitHub Desktop.
fancybox open div iframe
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
<div class="blok-kalender"> | |
<div id="item" class="standaard-button btn-reserveren fancybox-ajax"><img src="images/calendar.png" alt="">Beschikbaarheid</div> | |
<div style="display:none"> | |
<div id="data"> | |
<?php CMSFrontend::renderModule('pagina', array('type' => 'Tekstblok', 'code' => 'kalender_overzicht')); ?> | |
<iframe src="http://www.mijnbeschikbaarheid.nl/kalender/brt-682" style="min-width:650px;" width="100%" height="300"></iframe> | |
<ul> | |
<li><span class="groen"></span> Beschikbaar</li> | |
<li><span class="rood"></span> Niet beschikbaar</li> | |
</ul> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery("#item").fancybox({ | |
type: 'inline', | |
content: jQuery('#data').html() | |
}); | |
}); | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment