Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F283179
index.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
575 B
Referenced Files
None
Subscribers
None
index.html
View Options
<
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
Details
Attached
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)
Attached To
Mode
rDOTBEATTIMEWEBAPP .beat time webapp
Attached
Detach File
Event Timeline
Log In to Comment