feat: Add terms and 404 pages
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
79
master/templates/assets/css/404.css
Normal file
79
master/templates/assets/css/404.css
Normal file
@@ -0,0 +1,79 @@
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #282828;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: "Bevan", cursive;
|
||||
font-size: 130px;
|
||||
margin: 10vh 0 0;
|
||||
text-align: center;
|
||||
overflow-y: auto;
|
||||
letter-spacing: 5px;
|
||||
/*background-color: black;*/
|
||||
color: black;
|
||||
text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.1);
|
||||
-webkit-background-clip: text;
|
||||
-moz-background-clip: text;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
p span {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
code {
|
||||
color: #bdbdbd;
|
||||
text-align: left;
|
||||
display: block;
|
||||
overflow-y: auto;
|
||||
font-size: 16px;
|
||||
margin: 0 30px 25px;
|
||||
}
|
||||
|
||||
code span {
|
||||
color: #f0c674;
|
||||
}
|
||||
|
||||
code i {
|
||||
color: #b5bd68;
|
||||
}
|
||||
|
||||
code em {
|
||||
color: #b294bb;
|
||||
font-style: unset;
|
||||
}
|
||||
|
||||
code b {
|
||||
color: #81a2be;
|
||||
font-weight: 500;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #8abeb7;
|
||||
font-family: monospace;
|
||||
font-size: 20px;
|
||||
text-decoration: underline;
|
||||
overflow-y: auto;
|
||||
margin-top: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 880px) {
|
||||
p {
|
||||
font-size: 14vw;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.tab-space {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
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