Live data from Hacker News

Show HN: Boing

boing.greg.technology

21–30 of 156 posts

Re: Show HN: Boing

#25
post #6

Love this. Had to cheat, naturally. setInterval(()=>{const canvas=document.getElementById('canvas');const startX=266;const startY=198;const rect=canvas.getBoundingClientRect();const startClientX=rect.left+startX;const startClientY=rect.top+startY;let endClientX,endClientY,distance;do{endClientX=Math.random()*window.innerWidth;endClientY=Math.random()*window.innerHeight;const dx=endClientX-startClientX;const dy=endCli…

take my upvote. That's hilarious

Re: Show HN: Boing

#29
post #6

Love this. Had to cheat, naturally. setInterval(()=>{const canvas=document.getElementById('canvas');const startX=266;const startY=198;const rect=canvas.getBoundingClientRect();const startClientX=rect.left+startX;const startClientY=rect.top+startY;let endClientX,endClientY,distance;do{endClientX=Math.random()*window.innerWidth;endClientY=Math.random()*window.innerHeight;const dx=endClientX-startClientX;const dy=endCli…

I love this.

Re: Show HN: Boing

#30

Any consideration on sharing the unminified code? I was a bit curious to read through the code and it seems like such a shame to keep it obfuscated. From a quick perusal, it seems like the bulk of the code comes from howler.js (a sound library), and the core functionality is conveniently implemented below the mobile template.

Online unminifier doesn’t work? E.g. https://www.unminify2.com/
Post reply on HN