Skip to content

Instantly share code, notes, and snippets.

@jaworowicz
Created October 18, 2017 03:42
Show Gist options
  • Save jaworowicz/c6a7907ba14b2dedfab20cf459bda6be to your computer and use it in GitHub Desktop.
Save jaworowicz/c6a7907ba14b2dedfab20cf459bda6be to your computer and use it in GitHub Desktop.
<script src="http://jaworowi.cz/wp-content/themes/jaworowi.cz/jquery.magnific-popup.min.js"></script>
<link rel="stylesheet" href="http://jaworowi.cz/wp-content/themes/jaworowi.cz/magnific-popup.css">
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('.open-popup-link').magnificPopup({
type: 'inline',
//fixedContentPos : false,
midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
callbacks: {
open: function () {
jQuery('.mfp-wrap');
//jQuery('body').css('overflow-y', 'hidden');
},
close: function () {
// jQuery('body').css('overflow-y', 'auto');
jQuery('#logo_popup').remove();
}
}
});
if(window.location.hash) {
jQuery('a[href='+window.location.hash+']').eq(0).trigger("click");
}
});
</script>
<style type="text/css">
.mfp-bg {
background: #31a8c4 none repeat scroll 0% 0%;
opacity:0.95;
}
.white-popup {
height:600px;
text-align: center;
max-width:1000px;
margin: 0px auto;
position: relative;
margin-bottom:0px;
padding-top:40px;
}
</style>
<div id="konsultacja" class="white-popup mfp-hide"><iframe src="https://app3.emlgrid.com/cf/4kapx03sj1c50wjw/Transparent_Click.htm" style="width:100%;height:100%;border:0px;"></iframe></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment