So I was having a l'il chat with
broug yesterday and this morning about what a case statement is and why it's a good thing and I found
this old project I had to do for my javascript 1 class.
It's a bit dated, and I have gone through the CSS code to see if it's up to date or not, but I remember being pretty proud of myself for this sucker. But what I find interesting is how it displays and works in different browsers, even now 4 years after it was written.
IE, Netscape, and Firefox allow the stylesheet to change the look of the buttons so they don't look like "buttons" but don't allow the javascript to capture the keypad so you can use it like a calculator. Safari on the other hand will allow capturing of the keypad no problem, but refuses to change the look of the buttons. You'd think that the browsers would learn to play nice by now with the code, but apparently not.
Then again, it could be that my code isn't capturing the keypad right and Safari is just being nice to me. I'll have to look into it.
In any case. It's lame. I'm proud of it. Here's the
javascript and the
CSS.
[EDIT]: So apparently in the process of posting livejournal removes any popup related javascript. Who knew? Not me, that's for sure!