w7cook/OpenBook — pull request #40 by matrix10657 (2012-03-07 02:00:09+00:00)
Title: Added an 'easy-to-use' Show/Hide Framework: util.js

I've made util.js and used it in news.html to show off a show/hide framework I whipped together. I think we can cut back on a lot of nasty javascript if we can abstract some of the things we're going to want to do often.

Theres more documentation in util.js, but it basically allows you to easily define 'hideable' elements and 'trigger' elements that hide or show the 'hideable' element when clicked on. It's not extremely feature rich but it provides a nice little framework with decent customization capacity that I could see us using all over the place.