diff --git a/example/.DS_Store b/example/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/example/.DS_Store and /dev/null differ diff --git a/example/example.html b/example/example.html index 7275db8..2adecfd 100644 --- a/example/example.html +++ b/example/example.html @@ -41,7 +41,7 @@
Show underlying list.
diff --git a/example/jquery.jOrgChart.js b/example/jquery.jOrgChart.js index c2e48e0..7301fa1 100644 --- a/example/jquery.jOrgChart.js +++ b/example/jquery.jOrgChart.js @@ -1,3 +1,18 @@ +/** + * jQuery org-chart/tree plugin. + * + * Author: Wes Nolte + * http://www.tquila.com + * + * Based on the work of Mark Lee + * http://www.capricasoftware.co.uk + * + * This software is licensed under the Creative Commons Attribution-ShareAlike + * 3.0 License. + * + * See here for license terms: + * http://creativecommons.org/licenses/by-sa/3.0 + */ (function($) { $.fn.jOrgChart = function(options) { diff --git a/readme.markdown b/readme.markdown index 962a1b9..46f9f9b 100644 --- a/readme.markdown +++ b/readme.markdown @@ -5,7 +5,11 @@ Follow me [@wesnolte](http://twitter.com/wesnolte) -jQuery OrgChart is a plugin that allows you to render structures with nested elements in a easy-to-read tree structure. To build the tree all you need is to make a single line call to the plugin and supply the HTML element Id for a nested unordered list element that is representative of the data you'd like to display. +jQuery OrgChart is a plugin that allows you to render structures with nested elements in a easy-to-read tree structure. To build the tree all you need is to make a single line call to the plugin and supply the HTML element Id for a nested unordered list element that is representative of the data you'd like to display. Features include: + +* Very easy to use given a nested unordered list element. +* Showing/hiding a particular branch of the tree by click on the respective node. +* Easy to style. ![jQuery OrgChart](http://i.imgur.com/2OpyG.png "jQuery OrgChart") @@ -17,12 +21,16 @@ To get up and running you'll need a few things. ----- -###The JavaScript Libraries +###The JavaScript Libraries & CSS You need to include the jQuery as well as the jOrgChart libraries. For example: + +The core CSS is necessary to perform some of the basic styling i.e. + + ----