Javascript + CSS + DOM = Good Times
Number slider game
It's a test file that ended up getting slightly out of hand. Think I can get away with using it to replace projects 2 and 3?
The code is pretty messy at the moment, really it should be broken up into at least 3 .js files, but it's easier to view source this way--in case anyone really cares enough to want to. Some of the functions are pretty unweildy, too, they might be cleaned up later. I should probably go back and comment it better, too. Meh.
It's a test file that ended up getting slightly out of hand. Think I can get away with using it to replace projects 2 and 3?
The code is pretty messy at the moment, really it should be broken up into at least 3 .js files, but it's easier to view source this way--in case anyone really cares enough to want to. Some of the functions are pretty unweildy, too, they might be cleaned up later. I should probably go back and comment it better, too. Meh.


2 Comments:
It has CSS and it has JavaScript, so I don't see any reason why not.
How did you decide to do this?
See also minicon post comments.
I wanted to test moving stuff from place to place with javascript, and somehow it occurred to me that a number slider game does just that. Then I kept coming up with other things that I could test with the same thing, like generating the number grid with javascript and shoving all the pieces around with css instead of using tables, or changing sizes and colors with javascript. And then the code exploded into a huge complicated thing.
Post a Comment
Links to this post:
Create a Link
<< Home