Created
August 30, 2012 19:20
-
-
Save inadarei/3538318 to your computer and use it in GitHub Desktop.
ResponsiveIframes
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
<!-- Activate responsiveness in the "child" page --> | |
<script src="/js/responsiveiframe.js"></script> | |
<script> | |
var ir = responsiveIframe(); | |
ir.allowResponsiveEmbedding(); | |
</script> | |
<!-- Corresponding code in the "parent" page --> | |
<script src="/js/jquery.js"></script> | |
<script src="/js/responsiveiframe.js"></script> | |
<script> | |
$('#myIframeID').makeResponsive({ xdomain: '*'}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment