Fork me on GitHub

jQuery.themeScript by btburnett3

Allows theming of $(document).ready startup code, so that subthemes can override look and feel

For better or for worse, a significant amount of the look and feel of our web sites is now being controlled through Javascript. There's simply so much we can do with Javascript, especially jQuery and it's plugins, that can't be done with CSS. This causes a potential problem when dealing with subthemes. Often times we want to create a common theme, but then allow subthemes to override certain functionality. With CSS this is easy, but with Javascript it's more difficult. That's where jQuery.themeScript comes in.

jQuery.themeScript allows you to register collections of functions against specific CSS selectors or specific names. A subtheme can then add to or replace these functions via their CSS selector or name. These functions are called during $(document).ready in the order that they are specified in the collection.

Dependencies

jQuery http://www.jquery.com (tested with 1.3, should be compatible with previous releases)

License

Licensed under the GPL.

Authors

Brant Burnett (btburnett3+public@gmail.com)

Contact

Brant Burnett (btburnett3+public@gmail.com)

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/btburnett3/jquery.themescript