Skip to content

Pure CSS3 calculator

experiments.hertzen.com
63 pointsfffrad12 comments
On HN

Comments

It is fun to see how the calculator is off when you scale the page in your browser (ctrl+scroll). 5*5=24!

hit ctrl+plus a couple of times, and 5+5 became 55.

Be sure to read how it works: https://plus.google.com/+NiklasvonHertzen/posts/Qo6T85W8sFQ

Very smart and creative solution.

Pressed 1, 5, 6

Got 142

Interesting idea, but might need more work.

I get that only when I'm zoomed in 110% on my browser. Zooming messes with the logic. I don't think it needs more work, it's just a fun demo.

Not zoomed in or out. 2 * 65 = 129.

Amused I got downvotes for pointing out a bug. :)

Probably because it doesn't happen for others (fine on my machine for example) so they assume you were trying to win clever points by doing something that obviously breaks it (e.g. zoom) and by doing so missing the actual point entirely (that this demo is possible at all).

As a FYI I have my browser set on a small perma-zoom on HN. Otherwise the text is on the wrong side of being too small to read.

So no, I didn't set out to break it to score clever points - it just didn't work for me.

If I type 55555 everything disappears

Found myself reminded of a Chaos Computer Congress presentation.

https://www.youtube.com/watch?v=v8F8BqSa-XY

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.