diff --git a/README.md b/README.md deleted file mode 100644 index 532c250..0000000 --- a/README.md +++ /dev/null @@ -1,56 +0,0 @@ -TITLE -===== - -jQuery Plugin: Table Filter - version 0.2 - - -DESCRIPTION -=========== - -Insert a input form for filtering table rows dinamically. - - -Usage -===== - -Insert to all table: - - $("table").addTableFilter(); - -Insert to "#table1" only: - - $("#table1").addTableFilter(); - -Insert with custom label text and size: - - $("table").addTableFilter({ - labelText: "Filtering Words: ", - size: 48 - }); - - -Styling -======= - -You can style inserted elements like this: - - .formTableFilter { - text-align: right; - } - - .formTableFilter label { - font-weight: bold; - } - - .formTableFilter input { - border: 1px solod #999999; - width: 12em; - color: #ffffff; - background-color: #333333; - } - - -LICENSE -======= - -MIT: http://hail2u.mit-license.org/2009 diff --git a/test.html b/index.html similarity index 100% rename from test.html rename to index.html diff --git a/jquery.table-filter.js b/jquery.table-filter.js deleted file mode 100644 index 89bd1d6..0000000 --- a/jquery.table-filter.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @preserve jQuery Plugin: Table Filter - version 0.2.1 - * - * LICENSE: http://hail2u.mit-license.org/2009 - */ - -/*jslint indent: 2, browser: true, regexp: true */ -/*global jQuery, $ */ - -(function ($) { - "use strict"; - - $.fn.addTableFilter = function (options) { - var o = $.extend({}, $.fn.addTableFilter.defaults, options), - tgt, - id, - label, - input; - - if (this.is("table")) { - // Generate ID - if (!this.attr("id")) { - this.attr({ - id: "t-" + Math.floor(Math.random() * 99999999) - }); - } - tgt = this.attr("id"); - id = tgt + "-filtering"; - - // Build filtering form - label = $("