WELCOME TIMER
This commit is contained in:
parent
275a6f8458
commit
e5c5afbbaa
29
G1BILLETS.sh
29
G1BILLETS.sh
|
@ -115,12 +115,33 @@ Access-Control-Allow-Methods: GET
|
|||
Server: Astroport
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
<!DOCTYPE html><html><head>
|
||||
<!DOCTYPE html><html>
|
||||
<head>
|
||||
<title>[Astroport] G1BILLET MICRO SERVICE - 33101 - 33102 -</title>
|
||||
<meta http-equiv="refresh" content="30; url='$HNAME':33102" />
|
||||
</head><body>
|
||||
<p><a href="'$HNAME':33102">(♥‿‿♥)</a>.</p>
|
||||
</body></html>'
|
||||
<style>
|
||||
#countdown { display: flex; justify-content: center; align-items: center; color: #0e2c4c; font-size: 20px; width: 60px; height: 60px; background-color: #e7d9fc; border-radius: 50%;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center><h1><a href="'$HNAME':33102">(♥‿‿♥)</a>.</h1></center>
|
||||
<center><div id="countdown"></div></center>
|
||||
<script>
|
||||
var timeLeft = 30;
|
||||
var elem = document.getElementById("countdown");
|
||||
var timerId = setInterval(countdown, 1000);
|
||||
|
||||
function countdown() {
|
||||
if (timeLeft == -1) {
|
||||
clearTimeout(timerId);
|
||||
doSomething();
|
||||
} else {
|
||||
elem.innerHTML = timeLeft + " s";
|
||||
timeLeft--;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body></html>'
|
||||
|
||||
function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue