diff --git a/docs/.tmp_index.html.55071~ b/docs/.tmp_index.html.55071~ deleted file mode 100644 index d9ab8e7..0000000 --- a/docs/.tmp_index.html.55071~ +++ /dev/null @@ -1,565 +0,0 @@ - - - - jQuery plugin: Tablesorter 2.0 - - - - - - - - - - -
-
- -
-

- Author: Christian Bach
- Version: 2.0.4 (changelog)
- Licence: - Dual licensed under MIT - or GPL licenses. -

- -

- Helping out! If you like tablesorter and you're feeling generous, take a look at my Amazon Wish List -

- -

Comments and love letters can be sent to: .

- -

- - - - - -

Contents

-
    -
  1. Introduction
  2. -
  3. Demo
  4. -
  5. Getting started
  6. - -
  7. Examples
  8. - -
  9. Configuration
  10. -
  11. Download
  12. -
  13. Compatibility
  14. -
  15. Support
  16. -
  17. Credits
  18. -
- - -

Introduction

-

- tablesorter is a jQuery plugin for turning a - standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. - tablesorter can successfully parse and sort many types of data including linked data in a cell. - It has many useful features including: -

- - - - -

Demo

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
First NameLast NameAgeTotalDiscountDifferenceDate
PeterParker28$9.9920.9%+12.1Jul 6, 2006 8:14 AM
JohnHood33$19.9925%+12Dec 10, 2002 5:14 AM
ClarkKent18$15.8944%-26Jan 12, 2003 11:14 AM
BruceAlmighty45$153.1944.7%+77Jan 18, 2001 9:12 AM
BruceEvans22$13.1911%-100.9Jan 18, 2007 9:12 AM
BruceEvans22$13.1911%0Jan 18, 2007 9:12 AM
- -

- TIP! Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header! -

- - - -

Getting started

-

- To use the tablesorter plugin, include the jQuery - library and the tablesorter plugin inside the <head> tag - of your HTML document: -

- -
-<script type="text/javascript" src="/path/to/jquery-latest.js"></script>
-<script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script>
-
- - -

tablesorter works on standard HTML tables. You must include THEAD and TBODY tags:

- -
-<table id="myTable">
-<thead>
-<tr>
-	<th>Last Name</th>
-	<th>First Name</th>
-	<th>Email</th>
-	<th>Due</th>
-	<th>Web Site</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-	<td>Smith</td>
-	<td>John</td>
-	<td>jsmith@gmail.com</td>
-	<td>$50.00</td>
-	<td>http://www.jsmith.com</td>
-</tr>
-<tr>
-	<td>Bach</td>
-	<td>Frank</td>
-	<td>fbach@yahoo.com</td>
-	<td>$50.00</td>
-	<td>http://www.frank.com</td>
-</tr>
-<tr>
-	<td>Doe</td>
-	<td>Jason</td>
-	<td>jdoe@hotmail.com</td>
-	<td>$100.00</td>
-	<td>http://www.jdoe.com</td>
-</tr>
-<tr>
-	<td>Conway</td>
-	<td>Tim</td>
-	<td>tconway@earthlink.net</td>
-	<td>$50.00</td>
-	<td>http://www.timconway.com</td>
-</tr>
-</tbody>
-</table>
-	
- - -

Start by telling tablesorter to sort your table when the document is loaded:

- - - - -
-$(document).ready(function()
-	{
-		$("#myTable").tablesorter();
-	}
-);
-	
- -

- Click on the headers and you'll see that your table is now sortable! You can - also pass in configuration options when you initialize the table. This tells - tablesorter to sort on the first and second column in ascending order. -

- - - -
-$(document).ready(function()
-	{
-		$("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
-	}
-);
-	
- -

- NOTE! tablesorter will auto-detect most data types including numbers, dates, ip-adresses for more information see Examples -

- - - - - - -

Examples

-

- These examples will show what's possible with tablesorter. You need Javascript enabled to - run these samples, just like you and your users will need Javascript enabled to use tablesorter. -

- - Basic - - Metadata - setting inline options - - - Advanced - - - Companion plugins - - - - - - - - -

Configuration

- -

- tablesorter has many options you can pass in at initialization to achieve different effects: -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyTypeDefaultDescriptionLink
sortListArraynullAn array of instructions for per-column sorting and direction in the format: [[columnIndex, sortDirection], ... ] where columnIndex is a zero-based index for your columns left-to-right and sortDirection is 0 for Ascending and 1 for Descending. A valid argument that sorts ascending first by column 1 and then column 2 looks like: [[0,0],[1,0]]Example
sortMultiSortKeyStringshiftKeyThe key used to select more than one column for multi-column sorting. Defaults to the shift key. Other options might be ctrlKey, altKey.
Reference: http://developer.mozilla.org/en/docs/DOM:event#Properties
Example
textExtractionString Or Functionsimple - Defines which method is used to extract data from a table cell for sorting. - Built-in options include "simple" and "complex". Use complex if you have data marked up - inside of a table cell like: <td><strong><em>123 Main Street</em></strong></td>. - Complex can be slow in large tables so consider writing your own text extraction function "myTextExtraction" which you define like: -
-var myTextExtraction = function(node) 
-{ 
-	// extract data from markup and return it 
-	return node.childNodes[0].childNodes[0].innerHTML;
-}
-$(document).ready(function()
-	{
-		$("#myTable").tableSorter( {textExtraction: myTextExtraction} );
-	}
-);
-
- - tablesorter will pass a jQuery object containing the contents of the current cell for you to parse and return. Thanks to Josh Nathanson for the examples. -
Example
headersObjectnull - An object of instructions for per-column controls in the format: headers: { 0: { option: setting }, ... } For example, to disable - sorting on the first two columns of a table: headers: { 0: { sorter: false}, 1: {sorter: false} } - Example
sortForceArraynullUse to add an additional forced sort that will be appended to the dynamic selections by the user. For example, can be used to sort people alphabetically after some other user-selected sort that results in rows with the same value like dates or money due. It can help prevent data from appearing as though it has a random secondary sort.Example
widthFixedBooleanfalseIndicates if tablesorter should apply fixed widths to the table columns. This is useful for the Pager companion. Requires the jQuery dimension plugin to work.Example
cancelSelectionBooleantrueIndicates if tablesorter should disable selection of text in the table header (TH). Makes header behave more like a button.
cssHeaderString"header"The CSS style used to style the header in its unsorted state. Example from the blue skin: -
-th.header {
-	background-image: url(../img/small.gif);	
-	cursor: pointer;
-	font-weight: bold;
-	background-repeat: no-repeat;
-	background-position: center left;
-	padding-left: 20px;
-	border-right: 1px solid #dad9c7;
-	margin-left: -1px;
-}
-
-
cssAscString"headerSortUp"The CSS style used to style the header when sorting ascending. Example from the blue skin: -
-th.headerSortUp {
-	background-image: url(../img/small_asc.gif);
-	background-color: #3399FF;
-}
-
-
cssDescString"headerSortDown"The CSS style used to style the header when sorting descending. Example from the blue skin: -
-th.headerSortDown {
-	background-image: url(../img/small_desc.gif);
-	background-color: #3399FF;
-}
-
-
debugBooleanfalse - Boolean flag indicating if tablesorter should display debuging information usefull for development. - Example
- - - - -

Download

- -

Full release - Plugin, Documentation, Add-ons, Themes jquery.tablesorter.zip

- - -

Pick n choose - Place at least the required files in a directory on your webserver that is accessible to a web browser. Record this location.

- - Required: - - - Optional/Add-Ons: - - - Widgets: - - - Themes: - - - -

Browser Compatibility

- -

tablesorter has been tested successfully in the following browsers with Javascript enabled:

- - -

jQuery Browser Compatibility

- - - - - -

Support

-

- Support is available through the - jQuery Mailing List. -

-

Access to the jQuery Mailing List is also available through Nabble Forums.

- - - -

Credits

-

- Written by Christian Bach. -

-

- Documentation written by Brian Ghidinelli, - based on Mike Alsup's great documention. -

-

- John Resig for the fantastic jQuery -

-
- - - - - - diff --git a/docs/js/chili/chili-1.8b.js b/docs/js/chili/chili-1.8b.js new file mode 100644 index 0000000..c066040 --- /dev/null +++ b/docs/js/chili/chili-1.8b.js @@ -0,0 +1,392 @@ +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... + Copyright 2007 / Andrea Ercolino +------------------------------------------------------------------------------- +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ +=============================================================================== + +=============================================================================== +Metaobjects is the jQuery metadata plugin on steroids +............................................................................... + Copyright 2007 / Andrea Ercolino +------------------------------------------------------------------------------- +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/metaobjects/ +=============================================================================== +*/ + +//----------------------------------------------------------------------------- +( function($) { + +ChiliBook = { //implied global + + version: "1.8b" // 2007-05-26 + + , automatic: true + , automaticSelector: "code" + + , codeLanguage: function( el ) { + var recipeName = $( el ).attr( "class" ); + return recipeName ? recipeName : ''; + } + + , metadataSelector: "object.chili" // use an empty string for not executing + + , recipeLoading: true + , recipeFolder: "" // used like: recipeFolder + recipeName + '.js' + , stylesheetLoading: true + , stylesheetFolder: "" // used like: stylesheetFolder + recipeName + '.css' + + , defaultReplacement: '$$' + + , replaceSpace: " " // use an empty string for not replacing + , replaceTab: "    " // use an empty string for not replacing + , replaceNewLine: " 
" // use an empty string for not replacing + + , recipes: {} //repository + , queue: {} //register + + //fix for IE: copy of PREformatted text strips off all html, losing newlines + , preFixCopy: document.selection && document.selection.createRange + , preContent: "" + , preElement: null +}; + + +$.metaobjects = function( options ) { + + options = $.extend( { + context: document + , clean: true + , selector: 'object.metaobject' + }, options ); + + function jsValue( value ) { + eval( 'value = ' + value + ";" ); + return value; + } + + return $( options.selector, options.context ) + .each( function() { + + var settings = { target: this.parentNode }; + $( '> param[@name=metaparam]', this ) + .each( function() { + $.extend( settings, jsValue( this.value ) ); + } ); + + $( '> param', this ) + .not( '[@name=metaparam]' ) + .each( function() { + var name = this.name, value = jsValue( this.value ); + $( settings.target ) + .each( function() { + this[ name ] = value; + } ); + } ); + + if( options.clean ) { + $( this ).remove(); + } + } ); +}; + +$.fn.chili = function( options ) { + var book = $.extend( {}, ChiliBook, options || {} ); + + function cook( ingredients, recipe ) { + + function prepareStep( stepName, step ) { + var exp = ( typeof step.exp == "string" ) ? step.exp : step.exp.source; + steps.push( { + stepName: stepName + , exp: "(" + exp + ")" + , length: 1 // add 1 to account for the newly added parentheses + + (exp // count number of submatches in here + .replace( /\\./g, "%" ) // disable any escaped character + .replace( /\[.*?\]/g, "%" ) // disable any character class + .match( /\((?!\?)/g ) // match any open parenthesis, not followed by a ? + || [] // make sure it is an empty array if there are no matches + ).length // get the number of matches + , replacement: (step.replacement) ? step.replacement : book.defaultReplacement + } ); + } // function prepareStep( stepName, step ) + + function knowHow() { + var prevLength = 0; + var exps = new Array; + for (var i = 0; i < steps.length; i++) { + var exp = steps[ i ].exp; + // adjust backreferences + exp = exp.replace( /\\\\|\\(\d+)/g, function( m, aNum ) { + return !aNum ? m : "\\" + ( prevLength + 1 + parseInt( aNum, 10 ) ); + } ); + exps.push( exp ); + prevLength += steps[ i ].length; + } + var source = exps.join( "|" ); + return new RegExp( source, (recipe.ignoreCase) ? "gi" : "g" ); + } // function knowHow() + + function escapeHTML( str ) { + return str.replace( /&/g, "&" ).replace( / 1 ) { + return; + } + var ingredients = el.childNodes[0] && el.childNodes[0].data; + if( ! ingredients ) { + return; + } + // hack for IE: \r is used instead of \n + ingredients = ingredients.replace(/\r\n?/g, "\n"); + + var dish = cook( ingredients, recipe ); // all happens here + + if( book.replaceTab ) { + dish = dish.replace( /\t/g, book.replaceTab ); + } + if( book.replaceNewLine ) { + dish = dish.replace( /\n/g, book.replaceNewLine ); + } + + $( el ).html( dish ); + if( ChiliBook.preFixCopy ) { + $( el ) + .parents() + .filter( "pre" ) + .bind( "mousedown", function() { + ChiliBook.preElement = this; + } ) + .bind( "mouseup", function() { + if( ChiliBook.preElement == this ) { + ChiliBook.preContent = document.selection.createRange().htmlText; + } + } ) + ; + } + } // function makeDish( el ) + + function getPath( recipeName, options ) { + var settingsDef = { + recipeFolder: book.recipeFolder + , recipeFile: recipeName + ".js" + , stylesheetFolder: book.stylesheetFolder + , stylesheetFile: recipeName + ".css" + }; + var settings; + if( options && typeof options == "object" ) { + settings = $.extend( settingsDef, options ); + } + else { + settings = settingsDef; + } + return { + recipe : settings.recipeFolder + settings.recipeFile + , stylesheet: settings.stylesheetFolder + settings.stylesheetFile + }; + } //function getPath( recipeName, options ) + +//----------------------------------------------------------------------------- +// initializations + if( book.metadataSelector ) { + $.metaobjects( { context: this, selector: book.metadataSelector } ); + } + +//----------------------------------------------------------------------------- +// the coloring starts here + this + .each( function() { + var el = this; + var recipeName = book.codeLanguage( el ); + if( '' != recipeName ) { + var path = getPath( recipeName, el.chili ); + if( book.recipeLoading || el.chili ) { + /* dynamic setups come here */ + if( ! book.queue[ path.recipe ] ) { + /* this is a new recipe to download */ + try { + book.queue[ path.recipe ] = [ el ]; + $.getJSON( path.recipe, function( recipeLoaded ) { + recipeLoaded.path = path.recipe; + book.recipes[ path.recipe ] = recipeLoaded; + if( book.stylesheetLoading ) { + checkCSS( path.stylesheet ); + } + var q = book.queue[ path.recipe ]; + for( var i = 0, iTop = q.length; i < iTop; i++ ) { + makeDish( q[ i ], path.recipe ); + } + } ); + } + catch( recipeNotAvailable ) { + alert( "the recipe for '" + recipeName + "' was not found in '" + path.recipe + "'" ); + } + } + else { + /* not a new recipe, so just enqueue this element */ + book.queue[ path.recipe ].push( el ); + } + /* a recipe could have been already downloaded */ + makeDish( el, path.recipe ); + } + else { + /* static setups come here */ + makeDish( el, path.recipe ); + } + } + } ); + + return this; +//----------------------------------------------------------------------------- +}; + +//main +$( function() { + + if( ChiliBook.automatic ) { + if( ChiliBook.elementPath ) { + //preserve backward compatibility + ChiliBook.automaticSelector = ChiliBook.elementPath; + if( ChiliBook.elementClass ) { + ChiliBook.codeLanguage = function ( el ) { + var selectClass = new RegExp( "\\b" + ChiliBook.elementClass + "\\b", "gi" ); + var elClass = $( el ).attr( "class" ); + if( ! elClass ) { + return ''; + } + var recipeName = $.trim( elClass.replace( selectClass, "" ) ); + return recipeName; + }; + } + } + + $( ChiliBook.automaticSelector ).chili(); + } + + if( ChiliBook.preFixCopy ) { + function preformatted( text ) { + if( '' == text ) { + return ""; + } + do { + var newline_flag = (new Date()).valueOf(); + } + while( text.indexOf( newline_flag ) > -1 ); + text = text.replace( /\]*?\>/ig, newline_flag ); + var el = document.createElement( '
' );
+			el.innerHTML = text;
+			text = el.innerText.replace( new RegExp( newline_flag, "g" ), '\r\n' );
+			return text;
+		}
+
+		$( "body" )
+		.bind( "copy", function() {
+			if( '' != ChiliBook.preContent ) {
+				window.clipboardData.setData( 'Text', preformatted( ChiliBook.preContent ) );
+				event.returnValue = false;
+			}
+		} )
+		.bind( "mousedown", function() {
+			ChiliBook.preContent = "";
+		} )
+		.bind( "mouseup", function() {
+			ChiliBook.preElement = null;
+		} )
+		;
+	}
+
+} );
+
+} ) ( jQuery );
diff --git a/docs/js/chili/html.css b/docs/js/chili/html.css
new file mode 100644
index 0000000..b687661
--- /dev/null
+++ b/docs/js/chili/html.css
@@ -0,0 +1,17 @@
+/*
+===============================================================================
+Chili is the jQuery code highlighter plugin
+...............................................................................
+                                               Copyright 2007 / Andrea Ercolino
+-------------------------------------------------------------------------------
+LICENSE: http://www.opensource.org/licenses/mit-license.php
+WEBSITE: http://noteslog.com/chili/
+===============================================================================
+*/
+
+.html .php    { color: red; font-weight: bold; }
+.html .tag    { color: navy; font-weight: bold; }
+.html .aname  { color: purple; }
+.html .avalue { color: fuchsia; }
+.html .mlcom  { color: green; }
+.html .entity { color: teal; }
diff --git a/docs/js/chili/html.js b/docs/js/chili/html.js
new file mode 100644
index 0000000..17fdf6d
--- /dev/null
+++ b/docs/js/chili/html.js
@@ -0,0 +1,23 @@
+/*
+===============================================================================
+Chili is the jQuery code highlighter plugin
+...............................................................................
+                                               Copyright 2007 / Andrea Ercolino
+-------------------------------------------------------------------------------
+LICENSE: http://www.opensource.org/licenses/mit-license.php
+WEBSITE: http://noteslog.com/chili/
+===============================================================================
+*/
+
+{
+    steps: {
+          mlcom : { exp: /\