Page MenuHomePhorge

index.html
No OneTemporary

index.html

<html>
<head>
<title>.beat time (cool version)</title>
<meta name="author" content="keithzg"/>
<meta
name="description"
content="See https://phabricator.keithzg.ca/T326"
/>
<script>
// Lazily pilfered from https://stackoverflow.com/a/57300898/2808933
function getSwatchBeat(date, places = 3) {
return (((+date + 3.6e6) % 8.64e7) / 8.64e4).toFixed(places);
}
</script>
</head>
<body>
<h1>@<span id=beats>beats</span>
<script>
setInterval(function() {
let d = new Date();
document.getElementById('beats').innerHTML = getSwatchBeat(d, 1);
}, 864);
</script>
</body>

File Metadata

Mime Type
text/html
Expires
Mon, Aug 18, 12:40 PM (22 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
184746
Default Alt Text
index.html (575 B)

Event Timeline