Created
October 31, 2014 03:28
-
-
Save facelordgists/b1b3a9c7f812cf92dc4a to your computer and use it in GitHub Desktop.
Magnific Popup code for RSMM Review Pro button
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
//////////////////////////////////////// | |
// Review Pro Popup Formatting | |
.review-pro-popup-content { | |
padding-top: 100%; | |
padding-top: 925px; | |
} | |
.mfp-iframe-holder .mfp-content { | |
max-width: 620px; | |
} | |
/////////////////////////////////////// |
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
jQuery(document).ready(function($) { | |
$('.review-pro-popup').magnificPopup( { | |
type: 'iframe', | |
iframe: { | |
markup: '<div class="mfp-iframe-scaler review-pro-popup-content">'+ | |
'<div class="mfp-close"></div>'+ | |
'<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+ | |
'</div>' | |
}, | |
}); | |
}); |
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
<a href="http://horizondental.submitreview.co/" class="btn review-pro-popup">Leave us a review</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see also Full Width Image w/ scrolling