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