This file contains hidden or 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
/** | |
* Retrieves an HTML element by its ID. | |
* | |
* @param {string} id - The ID of the element to retrieve. | |
* @param {object} mask - The mask to apply to the element. | |
*/ | |
window.MASK = function (id, mask) { | |
// Get the element by its ID | |
const element = document.getElementById(id); |
This file contains hidden or 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 hidden or 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; | |