Created
February 13, 2025 13:34
-
-
Save thetrung/41eff1069fc4e62b0162da4723bec26f to your computer and use it in GitHub Desktop.
Clock Displayed by its own code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(r=()=>setInterval(t=>{for(j=o="\n",y=5;y--;document.body["inn" | |
+"erHTML"]="<pre><"+(S="script>\n")+o+"\n\n</"+S)for(x=-01; | |
63-!y>x++;o+=`(r=${r})()`[j++].fontcolor(c?"#FF0":"#444"))c=x/2 | |
%4<3&&parseInt("odRFacb67o2vi5gmOZmwFNteohbOh3sw".slice(i="9"<( | |
D=Date()[16+(x/8|0)])?30:D*3,i+3),36)&1<<(x/2|0)%4+3*y},100))() | |
</script> | |
<!-- some SEO and styling tweak--> | |
<title>Qlock - A JavaScript Quine Clock</title> | |
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono" rel="stylesheet"> | |
<style> | |
body { | |
background-color: black; | |
color: #0FF; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
pre { | |
font-family: "Fira Mono", monospace; | |
margin: auto; | |
width: 38em; | |
top: 50%; | |
left: 50%; | |
position: absolute; | |
margin-top: -5.5em; | |
margin-left: -19em; | |
} | |
@media screen and (min-width: 900px) { | |
body { | |
font-size: 18px; | |
} | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment