Couple of Bug fixes
I came across a couple of bugs today. Sometimes on Click the Damn Potato, the potato would appear off screen. I was tweaking the sites CSS last week and must have adjusted a value that the potato game didn't like. While I don't recall messing with viewport sizes, maybe I did. Who knows.
To address the issue, I just adjusted the createPotato function math to ensure that even if you change your viewport by say flipping your phone mid game, the potato should still land within the actual viewport.
Another bug was found while playing around with the DuckDuckGo browser on my phone. That browser along with a few others doesn't respect keyboard focus on canvas only pages. So, when it was time to enter your initials on games, the keyboard wouldn't pop up for you. I had to do some digging to find a fix for this.
I added an invisible modal for adding your initials that is off canvas and it seems to have done the trick, though I haven't applied this fix to all canvas games yet. Plunger Drop is fixed, but Code Breaker and Baby Launcher still need the patch. If you add your initials on a non-canvas game, it will work and save your initials in your browser so you only need to do it once.
I've taken a break from working on the website these last few weeks and have been playing some Timberborn, so I'm not really in the mood for coding. I only found those two bugs while taking a shit.
Gotta get back, my beavers are waiting for me.
