Archive for the ‘javascript’ Category

GitHub, JSCore & Touchscreens

Thursday, January 22nd, 2009

So a couple of weeks ago I decided to finally get some of my code out to the world. I’ve recently gotten pretty excited about using git for version control. Of course, GitHub is *awesome* so I posted my code there. You can take a look at: github.com/adinardi.

Two of my projects are available under the MIT license. First is the javascript library I’ve been working on for a while. It’s pretty basic, but includes all the good stuff like event handling, async requests, basic table generation & management, and a js bootstrapper. I plan on doing work on it here and there. The conventions I use in it are a bit of a mix of things I’ve done in the past and on first look can be pretty strange. I’d like to do an article on it at some point and why I did what I did with it.

The other project is the previous incarnation of the CSH touchscreen software. We were running opera 8 on some old touchscreens and this javascript was running on them. It’s not really useful to anyone except in an academic sense. I wrote most of it in about two nights or so in the Spring of 2008. I’d like to think it has a *decent* design and implementation. It isn’t some of my best work, but definitely ranks up there. It uses the JSCore library.

Now I just need to go back through more of my code I have around and get some more out there. I’ve worked on a lot of things — little of which most people can see. That’s what happens when you do a lot of work for companies — most people will never see it, and I’ll never see it again. *sigh*

Containing CSS Floats

Sunday, August 10th, 2008

This was a bit of a pain to find via Google tonight so I figured I’d link to it and help others find it.

Tonight I was doing a bit of Javascript work and in the interface I was building had a couple of elements using CSS floating. They were all contained together inside of another DIV. Issue was that I had other things after the container in the layout that should have been block level and gone below it. Trouble was that the floating items were floating around this later item. I needed a way to “contain” the float elements without modifying any surrounding elements to account for them.

I finally dug up the Clearing Floats page on quirksmode.org. In the end setting “overflow: hidden” and “width: 100%” on the containing DIV took care of “containing” the floats to just that DIV. Awesome.

Did I mention I love quirksmode.org? Honestly. It’s one of the best JS resources there is.