feat: Add terms and 404 pages
This commit is contained in:
30
master/templates/assets/js/404.js
Normal file
30
master/templates/assets/js/404.js
Normal file
@@ -0,0 +1,30 @@
|
||||
function callback(){
|
||||
return function(){
|
||||
alert("We're really sorry about that.");
|
||||
window.location = '/';
|
||||
}
|
||||
}
|
||||
var a = "world";
|
||||
setTimeout(callback(), 7000);
|
||||
|
||||
function type(n, t) {
|
||||
var str = document.getElementsByTagName("code")[n].innerHTML.toString();
|
||||
var i = 0;
|
||||
document.getElementsByTagName("code")[n].innerHTML = "";
|
||||
|
||||
setTimeout(function() {
|
||||
var se = setInterval(function() {
|
||||
i++;
|
||||
document.getElementsByTagName("code")[n].innerHTML =
|
||||
str.slice(0, i) + "|";
|
||||
if (i == str.length) {
|
||||
clearInterval(se);
|
||||
document.getElementsByTagName("code")[n].innerHTML = str;
|
||||
}
|
||||
}, 10);
|
||||
}, t);
|
||||
}
|
||||
|
||||
type(0, 0);
|
||||
type(1, 600);
|
||||
type(2, 1300);
|
||||
@@ -1,12 +1,10 @@
|
||||
// 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);
|
||||
// Refresh page without status arg
|
||||
|
||||
// Wait 10 seconds
|
||||
setTimeout(function() {
|
||||
// Refresh page
|
||||
// Get domain from param
|
||||
var domain = urlParams.get('domain');
|
||||
|
||||
window.location = "https://hnshosting.au/success?domain=" + domain;
|
||||
}, 10000);
|
||||
Reference in New Issue
Block a user