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
// With $script variable | |
$(document).ready(function() { | |
$('script[type="text/javascript/defer"]').each(function() { | |
var $script = $('<script type="text/javascript"/>').text($(this).clone().text()); | |
$(this).after($script).remove(); | |
}); | |
}); | |
// Without $script variable | |
$(document).ready(function() { |
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
// Use this if you believe the iframe may have dynamic content and could change size after it has completely loaded // | |
// Your Domain Name // | |
var parent_domain = "http://www.example.com/"; | |
setInterval(function() { | |
var iframe_height = parseInt($('html').height()); | |
// Add Padding to insure nothing is creating a scroll bar // | |
iframe_height += 30; | |