21 June 2005
So, here's a bookmarklet that pops up a calculator on top of whatever webpage you're viewing and lets you figure out the 35th decimal of Pi, or just how much tax you're paying to maintain "Hamster Xing" signs on our State highways.
Right-click here and "Bookmark" JSCalc to access it anywhere, or click the link to try it out.
At the moment it only works perfectly in Mozilla/Firefox because:
- Internet Explorer doesn't like long URLs. The current compressed code is about 2000 characters – well over IE's limit of 508 on "favorites". While the code could definitely be optimised more, I doubt that enough could be butchered to fit into such cramped quarters.
- Opera doesn't like to resize an element's font-size after the page has been loaded, therefore the feature where you type more than 8 characters into the calculator and the font-size decreases doesn't work. I suppose it still works if you're doing small calculations though.
- Same goes for Safari as it does for Opera, though it manifests itself in a different visual aberration.
Who knows, I (or you) might get around to making it cross-browser.
Follow me on Twitter
To hear smaller but more regular stuff from me, follow @themaninblue.
- Resolution dependent layout update
- footerStickAlt: A more robust method of positioning a footer
- widgEditor: A simple, standards-compliant WYSIWYG HTML editor
- Accessible, stylish form layout