📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: banner.js
/* # cpanel - base/frontend/jupiter/banners/banner.js Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited */ /* global BANNER */ (function() { "use strict"; /** * Hide the banner views. * * @private */ function hideBanner() { document.getElementById(BANNER.id).style.display = "none"; } /** * Show the main banner view. * * @private */ function showBanner() { document.getElementById(BANNER.id).style.display = "block"; } /** * Generate the key used to store the dismissed flag. * * @private * @param {string} id * @returns string */ function dismissedId( id ) { return "dismissed_" + id; } /** * Dismiss the banner ad. This will set the date the banner was dismissed so we can * calculate the retry period that will allow the banner to be shown again in a few * days according to the configured showItAgain period in seconds. * * @private * @param {string} bannerId * @returns */ function dismissBanner(bannerId) { hideBanner(); localStorage.setItem(dismissedId(bannerId), new Date().toISOString()); return; } /** * Retrieve the last time the banner was dismissed. * * @param {string} bannerId * @returns */ function lastTimeDismissed(bannerId) { return localStorage.getItem(dismissedId(bannerId)); } /** * Open the purchase link in a new window. * @method purchaseAnyway */ function purchaseAnyway() { var url = BANNER.token + "/" + BANNER.info.purchaselink; window.open(url); } /** * Initialized the banner ad. */ function init() { if (BANNER.info.dismissible) { var dismissed = lastTimeDismissed(BANNER.id); if (dismissed) { if (typeof BANNER.info.show_again_in === "number") { var nowDate = new Date(); var dismissedDate = new Date(dismissed); var elapsed = nowDate - dismissedDate; if (elapsed > BANNER.info.show_again_in) { showBanner(); } else { hideBanner(); } } else { hideBanner(); } } else { showBanner(); } var proceedBtn = document.querySelector("#" + BANNER.id + " .proceed_to_purchase"); if (proceedBtn) { proceedBtn.addEventListener( "click", function(ev) { purchaseAnyway(); }); } document.querySelector("#" + BANNER.id + " .dismiss_banner") .addEventListener( "click", function(ev) { dismissBanner(BANNER.id); }); document.getElementById("purchaseLink") .addEventListener( "click", function(ev) { hideBanner(BANNER.id); }); } else { showBanner(); } } // Initialize the banner document.addEventListener( "DOMContentLoaded", init ); })();
Save