hnshosting-wp/master/templates/assets/js/status_update.js
Nathan Woodburn 188334c850
All checks were successful
Build Docker / Build Master (push) Successful in 24s
Build Docker / Build Bot (push) Successful in 23s
main: Updated refresh script
2023-09-20 22:32:27 +10:00

13 lines
409 B
JavaScript

// Wait for 10 seconds
setTimeout(function() {
// Get the 'domain' parameter from the current URL
var urlParams = new URLSearchParams(window.location.search);
var domain = urlParams.get('domain');
// Construct the new URL with the 'domain' parameter
var newURL = "https://hnshosting.au/info?domain=" + domain;
// Redirect to the new URL
window.location.href = newURL;
}, 10000);