Skip to content

Commit

Permalink
use as redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Atlas committed Aug 8, 2024
1 parent 6da4df1 commit 12f950d
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,45 +1 @@
<div>
<h1 id="time"></h1>
<img id="kitty" src="https://www.pngarts.com/files/11/Pink-Hello-Kitty-PNG-Transparent-Image.png"/>
</div>

<style>
#time {
font-size: 10vw;
}
body {
font-family: "Helvetica";
text-align: center;
}
#kitty {
margin: 30px;
max-width: 80vw;
min-width: 50vh;
}
h1 {
margin: auto;
width: auto;
}
</style>
<script>
const time = document.getElementById("time")
const kitty = document.getElementById("kitty")
const meet = 1721367000000
const minute = 60
const hour = 60 * minute
const day = 24 * hour
const update = () => {
now = new Date()
span = Math.floor((meet - now) / 1000)
d = Math.floor(span / day)
span = span - day * d
h = Math.floor(span / hour)
span = span - hour * h
m = Math.floor(span / minute)
span = span - minute * m
s = span
time.innerText = d + " Day and " + h + ":" + m + ":" + s
kitty.style.transform = "rotate(" + ((s % 2 == 0) ? 10 : -10) + "deg)"
}
setInterval(update, 1000)
</script>
<meta http-equiv="refresh" content="0; url=https://ipfs.io/ipns/michal-atlas.cz/" />

0 comments on commit 12f950d

Please sign in to comment.