remove location
parent
a10b63c332
commit
acb292e73b
15
index.html
15
index.html
|
@ -24,18 +24,12 @@
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<div id='c'>Soon</div>
|
<div id='c'>Soon</div>
|
||||||
<div id='l'>Earth</div>
|
|
||||||
<!-- <div id='d'>Unknown, Return later</div> -->
|
|
||||||
</main>
|
</main>
|
||||||
<script>
|
<script>
|
||||||
function go() {
|
function go() {
|
||||||
const reckoning = Date.parse("2025-08-17T00:00:00.000Z");
|
const date = Date.parse("2025-08-17T00:00:00.000Z");
|
||||||
const data = [
|
|
||||||
[ "Seattle, Washington, United States of America" ]
|
|
||||||
];
|
|
||||||
|
|
||||||
const countdown = document.getElementById('c');
|
const countdown = document.getElementById('c');
|
||||||
const location = document.getElementById('l');
|
|
||||||
|
|
||||||
function updateCountdown() {
|
function updateCountdown() {
|
||||||
let p = "";
|
let p = "";
|
||||||
|
@ -59,13 +53,6 @@
|
||||||
countdown.textContent = p.substring(0, p.length - 1);
|
countdown.textContent = p.substring(0, p.length - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateLocation() {
|
|
||||||
let area = data[Math.floor(Math.random() * data.length)];
|
|
||||||
|
|
||||||
location.textContent = area[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
updateLocation();
|
|
||||||
updateCountdown();
|
updateCountdown();
|
||||||
|
|
||||||
setInterval(updateCountdown, 1000);
|
setInterval(updateCountdown, 1000);
|
||||||
|
|
Loading…
Reference in New Issue