News for hackers. Stuff that matters.
Re:Qlock – A JavaScript Quine Clock by d3w3y on Wednesday May 29, 2024 @11:13AM (#40512804)
I have no clue what a Quine clock is, but I think it would be easier to read if the diagonal stroke on the front of the 1s only extended to the second row of characters from the top, instead of the third.

I noticed this because it was just 11:11 in my time zone >:)

Re:Qlock – A JavaScript Quine Clock by vitiral on Wednesday May 29, 2024 @11:18AM (#40512879)
a quine is where the full source is reprinted in the display.

So in this case, the code to create this clock in your website is

<script>

(r=n=>setInterval(t=>{for(j=o="\n",y=5;y--;document.body['inne' +'rHTML']="<pre>&lt"+(S="script>\n")+o+"\n\n&lt/"+S)for(x=-001; x++<63;o+=`(r=${r})()`[j++].fontcolor(c?'#FF0':"#444"))c=x/2%4< 3&&[31599,19812,14479,31207,23524,29411,29679,30866,31727,31719 ,1040][(D=Date()[16+(x/8|0)])<10?D:10]&1<<(x/2|0)%4+3*y},100))()

</script>

which is also what is the clockface.

Re:Qlock – A JavaScript Quine Clock by moritzwarhier on Wednesday May 29, 2024 @11:27AM (#40513011)
Also, adding the snippet will get rid of other content in the body element that might annoyingly distract from this beautiful clock :)
Re:Qlock – A JavaScript Quine Clock by lifthrasiir on Wednesday May 29, 2024 @11:55AM (#40513313)
Change 19812 to 19748 (or 9874) to apply your suggestion, if you wonder. It's a simple bitmap encoding.