It is a good start! Congrats on jumping into the JS world.
I would try to get your feet wet with larger frameworks that others have made that are in vogue these days.
Maybe something with Google maps? Learning large APIs can and will get you into the swing of things.
http://www.cdnjs.com <-- explore what's out there. It took me an entire afternoon to breeze through the list of libraries, and I could do it a half dozen more times and still learn things!
If you're going to comment every line, put the comments on the same line. BUT, remember that comments which are obvious to almost everyone are not really useful.
Also - no matter what style you settle on, keep your code consistent. Use more whitespace between symbols (like + ).
Putting your code through http://www.jshint.com is a good idea no matter how many days (or decades) you've been writing JS. Or jslint.com if you're a masochist.
Your CSS looks much more structured. Did you do web design before starting to learn JS?
It is a good start! Congrats on jumping into the JS world.
I would try to get your feet wet with larger frameworks that others have made that are in vogue these days.
Maybe something with Google maps? Learning large APIs can and will get you into the swing of things.
http://www.cdnjs.com <-- explore what's out there. It took me an entire afternoon to breeze through the list of libraries, and I could do it a half dozen more times and still learn things!
If you're going to comment every line, put the comments on the same line. BUT, remember that comments which are obvious to almost everyone are not really useful.
Also - no matter what style you settle on, keep your code consistent. Use more whitespace between symbols (like + ).
Putting your code through http://www.jshint.com is a good idea no matter how many days (or decades) you've been writing JS. Or jslint.com if you're a masochist.
Your CSS looks much more structured. Did you do web design before starting to learn JS?
Probably because we'd end up having something like the following:
Chrome and firefox latest have the latest versions of JQuery, Prototype, Mootools
Previous version of firefox has Prototype 1.5 and JQuery 1.7.1
Internet Explorer have 0 versions of any library so you have to provide your own anyway
So to be sure that your library is available to every browser you have to serve it anyway. But if you want something close to this, like doomrabbit mentioned, there are CDNs like google and http://www.cdnjs.com/
Awesome! If you have ideas on what we could stick in a happstack-elm package to make things even better, that would be great! But, it's also nice that elm can be so easily used with Happstack with out really requiring anything special.
Is elm available on a CDN somewhere? Like http://www.cdnjs.com/ ? (Sorry if this is answered already and I missed it.) I know it can be pulled directly from github.. but I am not sure how performance oriented that is..