Code bin isn't a very good name for this section but I've yet to think of a better one. These are various web browser based things that I have written over the last few years listed in vaguely chronological order (newest first). Some of them are self contained, some are just proofs of concept which have been or may be implemented as part of a larger...thing. Some haven't been touched in years and probably won't be again, some may be different if you look again tomorrow. Everything is presented 'as is' with no attempt at integration in to the main site.
The quality varies both from a user's and programming point of view and the older something is the more examples of how you shouldn't do things will be present in the code. Some of it may not work in the browser you are using due to one or more of my laziness, my lack of knowledge at the time of writing, your browser's lack of support for certain methods. Just about everything here requires a Javascript enabled web browser.
[ megaflexdestiny.net/projects/berniemoo.net/ ]
A site I'm creating for a friend and my own amusement. May go live one day. Uses scriptaculous and Google Maps. Work in progress. Some say it makes Internet Explorer crash.
[ megaflexdestiny.net/projects/imagezoom/ ]
Thing for allowing people to zoom in/out on an image and scroll around the zoomed in image. Zoomed versions of image are chopped in to tiles to save bandwidth and prevent unnecessary waiting. Tiles are also pre-generated to speed things up but they could just as easily be generated on the fly. On the fly generation would introduce delays for the end user but dramatically save on server disk space if that were an issue. Again with the not working in Internet Explorer because of it's lack of support for addEventListener.
[ megaflexdestiny.net/projects/searchbykeyword/ ]
The suggestion of keywords as you type was inspired by Google Suggest and the rest is an excuse to try out XMLHttpRequest. In theory the the page would talk to a database, there's no database behind this just some php generating xml based on a bunch of arrays and a switch(). Doesn't work with Internet Explorer 'cos I didn't realise IE doesn't support addEventListener until I'd used it a bunch of times and I've not bothered to rewrite/add code to compensate.
[ megaflexdestiny.net/projects/rotateimage/ ]
Rotate an image by clicking on it and dragging. Each version of the image is generated on demand by a php script. Not quite there yet. This could be done so much easier using canvas 'cos you could see he image rotating in real time and you wouldn't need to keep generating new images server side.
[ megaflexdestiny.net/projects/imageexpandingthingy/ ]
Take a bunch of thumbnail images, click on an image and it flies across the browser window getting bigger as it goes.
[ megaflexdestiny.net/projects/invaders/ ]
The beginnings of an attempt at writing a variant of Space Invaders in Javascript.
[ megaflexdestiny.net/projects/chompman/ ]
My attempt at Pacman in Javascript. Works pretty well I think. Never did get around to adding sound. Sadly this is an example of why the use of browser specific methods are a bad thing because for reasons which must have made sense at the time this uses methods which are only supported by the Windows version of Internet Explorer. I know, I know, I know... It doesn't work at all in Gecko browsers but surprisingly almost works in KHTML browsers. (You can't control the the Pacman character.) Every now and then I look at making this cross browser but it looks like it needs a lot of re-writing to achieve this and I haven't had the inclination to do it yet.
[ megaflexdestiny.net/projects/tetris/ ]
My attempt at writing a version of Tetris in Javascript. Works pretty well I think, although there is one bug in there that I never figured out - I think sometimes you can rotate a piece and it'll get stuck in another piece.
[ megaflexdestiny.net/projects/wordomatic/ ]
There is no point to this, it just is. Text drifts around the browser window fading in and out. You can type in a phrase of your choice and change the colour. Quite soothing in a way.
[ megaflexdestiny.net/projects/batnball/ ]
Over twenty years ago my Dad bought a BBC Micro Model B. It came with a tape containing a bunch of games n stuff and one of them was this very simple, but quite addictive game with a ball bouncing round a court which kept getting smaller and smaller. You just had to keep the ball in the court by moving the bat left and right. This is inspired by that. I think there's a very vague attempt at applying some sort of law of physics but I forget which one. I was playing it just now and my highest score was 6. Maybe I made it too hard.
[ megaflexdestiny.net/projects/doodler ]
For some reason I decided it might be fun to try and write a primitive Paint type app using HTML and Javascript. Unsurprisingly It didn't get very far because it's such a very impractical idea.
[ megaflexdestiny.net/projects/imageviewer ]
IE/Windows only. (Windows because the filters used aren't in the Mac version of IE.) It did work in Gecko browsers but I seem to have broken it in those browsers at some point. It's an overly ambitious, unnecessarily fancy, abandoned image gallery type thing.
[ megaflexdestiny.net/projects/pairs ]
Click a tile to reveal a picture, match up all the pairs by turning the tiles over as few times as possible. I forget where I stole the Simpsons pictures from.
[ megaflexdestiny.net/projects/shuffle ]
Remember those little puzzles where you had to move the squares round to get all the numbers in the right order? That's what this is. The oldest thing here and I remember it being a pain to test because I'm not very good at solving it.
modified:30th December 2007