Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Organize

  • Loading branch information...
commit 58af1d9a8eadbe8de9d9dc20caa63e7341bfd79e 1 parent 5b0448b
@kflorence authored
View
0  data.php → example/data.php
File renamed without changes
View
64 example/index.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>jQuery Tabulate Plugin</title>
+ <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
+ <script type="text/javascript" src="../src/jquery.tabulate.js"></script>
+ <link type="text/css" rel="stylesheet" href="../themes/default/styles.css" />
+ <style type="text/css">a.api { color: #000; margin-top: 10px; }</style>
+
+ <script type="text/javascript">
+ jQuery(function($) {
+ $("#tabulate-ajax").tabulate({
+ data: {
+ source: {
+ ajax: {
+ url: "data.php",
+ dataType: "json"
+ }
+ }
+ }
+ });
+
+ $("#tabulate-json").tabulate({
+ data: {
+ source: {
+ json: {
+ "head": [
+ ["heading 1", "heading 2", "heading 3"]
+ ],
+ "body": [
+ ["column 1", "column 2", "column 3"],
+ ["column 1", "column 2", "column 3"]
+ ]
+ }
+ }
+ },
+ table: {
+ body: {
+ rows: {
+ 0: {
+ filter: function($row, $content, data) {
+ $row.css("background-color", "#EEEEEE");
+ }
+ }
+ }
+ }
+ }
+ });
+ });
+ </script>
+ </head>
+ <body>
+ <h1>jQuery.tabulate</h1>
+ <p><a href="../jsdoc/" class="api">Documentation</a></p>
+
+ <h2>Tabulate via AJAX request</h2>
+ <div id="tabulate-ajax"></div>
+
+ <h2>Tabulate via static JSON</h2>
+ <div id="tabulate-json"></div>
+ </body>
+</html>
View
64 index.html
@@ -1,64 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>jQuery Tabulate Plugin</title>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="src/jquery.tabulate.js"></script>
- <link type="text/css" rel="stylesheet" href="src/themes/default/styles.css" />
- <style type="text/css">a.api { color: #000; margin-top: 10px; }</style>
-
- <script type="text/javascript">
- jQuery(function($) {
- $("#tabulate-ajax").tabulate({
- data: {
- source: {
- ajax: {
- url: "data.php",
- dataType: "json"
- }
- }
- }
- });
-
- $("#tabulate-json").tabulate({
- data: {
- source: {
- json: {
- "head": [
- ["heading 1", "heading 2", "heading 3"]
- ],
- "body": [
- ["column 1", "column 2", "column 3"],
- ["column 1", "column 2", "column 3"]
- ]
- }
- }
- },
- table: {
- body: {
- rows: {
- 0: {
- filter: function($row, $content, data) {
- $row.css("background-color", "#EEEEEE");
- }
- }
- }
- }
- }
- });
- });
- </script>
- </head>
- <body>
- <h1>jQuery.tabulate</h1>
- <p><a href="doc/" class="api">Documentation</a></p>
-
- <h2>Tabulate via AJAX request</h2>
- <div id="tabulate-ajax"></div>
-
- <h2>Tabulate via static JSON</h2>
- <div id="tabulate-json"></div>
- </body>
-</html>
View
20 license-bsd
@@ -0,0 +1,20 @@
+Copyright (C) 2011
+Kyle Florence, Raymond Julin, Mads Erik Forberg and Simen Graaten.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the ‘Software’), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
View
21 license-mit
@@ -0,0 +1,21 @@
+Copyright (c) 2011
+Kyle Florence, Raymond Julin, Mads Erik Forberg and Simen Graaten.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
7 README.md → readme.md
@@ -1,6 +1,4 @@
# jQuery.tabulate
-__Author__ Kyle Florence <kyle.florence@gmail.com>
-__Version__ 2.3.20101013
## Change Log
__Version 2.3__ (10/13/2010)
@@ -65,6 +63,5 @@ __Version 1.0__ (06/11/2010)
Found a bug? Have a suggestion? Please shoot me an email (see above).
## License
-Copyright (c) 2010 Kyle Florence
-Licensed under the GNU General Public License.
-[http://www.gnu.org/licenses/gpl.html](http://www.gnu.org/licenses/gpl.html)
+Copyright (c) 2011 Kyle Florence
+Dual licensed under the BSD and MIT licenses.
View
0  src/themes/default/images/loading.gif → themes/default/images/loading.gif
File renamed without changes
View
0  src/themes/default/images/next.png → themes/default/images/next.png
File renamed without changes
View
0  src/themes/default/images/prev.png → themes/default/images/prev.png
File renamed without changes
View
175 src/themes/default/styles.css → themes/default/styles.css
@@ -5,204 +5,195 @@
*/
/*------------------------------------------------------------------------------
- Container
+ Container
------------------------------------------------------------------------------*/
.tabulate-container {
- border-collapse: collapse;
- border-spacing: 0;
- table-layout: fixed;
- width: 100%;
+ border-collapse: collapse;
+ border-spacing: 0;
+ table-layout: fixed;
+ width: 100%;
}
/*------------------------------------------------------------------------------
- Rows
+ Rows
------------------------------------------------------------------------------*/
.tabulate-row {
- margin: 0;
- padding: 0;
+ margin: 0;
+ padding: 0;
}
.tabulate-row-odd {
- background-color: #f4f9ff;
+ background-color: #f4f9ff;
}
.tabulate-row-even {
- background-color: #fff;
+ background-color: #fff;
}
.tabulate-row-hover {
- background-color: #ffe7ba;
+ background-color: #ffe7ba;
}
.tabulate-row-selected {
- color: #fff;
- font-weight:bold;
- background-color: #FFA500;
+ color: #fff;
+ font-weight:bold;
+ background-color: #FFA500;
}
.tabulate-last .tabulate-cell {
- border-bottom: 0;
+ border-bottom: 0;
}
/*------------------------------------------------------------------------------
- Cells
+ Cells
------------------------------------------------------------------------------*/
.tabulate-cell {
- margin: 0;
- padding: 5px;
- font-size: 10px;
- overflow: hidden;
- text-align: left;
- display: table-cell;
- vertical-align: middle;
- border: solid 1px #ebf4ff;
+ margin: 0;
+ padding: 5px;
+ font-size: 10px;
+ overflow: hidden;
+ text-align: left;
+ display: table-cell;
+ vertical-align: middle;
+ border: solid 1px #ebf4ff;
}
.tabulate-cell-content {
- margin: 0;
- padding: 0;
- overflow: hidden;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
}
/*------------------------------------------------------------------------------
- Header
+ Header
------------------------------------------------------------------------------*/
.tabulate-header .tabulate-cell {
- border: solid 1px #bad9ff;
- background-color: #ebf4ff;
+ border: solid 1px #bad9ff;
+ background-color: #ebf4ff;
}
/*------------------------------------------------------------------------------
- Body
+ Body
------------------------------------------------------------------------------*/
.tabulate-body {
- margin: 0;
- padding: 0;
- background-color: #fff;
+ margin: 0;
+ padding: 0;
+ background-color: #fff;
}
.tabulate-body .tabulate-cell-first {
- border-left: solid 1px #bad9ff;
+ border-left: solid 1px #bad9ff;
}
.tabulate-body .tabulate-cell-last {
- border-right: solid 1px #bad9ff;
+ border-right: solid 1px #bad9ff;
}
/*------------------------------------------------------------------------------
- Footer
+ Footer
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
- Navigation
+ Navigation
------------------------------------------------------------------------------*/
.tabulate-navigation {
- margin: 0;
- padding: 0;
- font-size: 10px;
- border: solid 1px #bad9ff;
- background-color: #ebf4ff;
+ margin: 0;
+ padding: 0;
+ font-size: 10px;
+ border: solid 1px #bad9ff;
+ background-color: #ebf4ff;
}
.tabulate-navigation .tabulate-partition {
- float: left;
- padding: 2px 5px;
- white-space: nowrap;
- border-left: solid 1px #bad9ff;
+ float: left;
+ padding: 2px 5px;
+ white-space: nowrap;
+ border-left: solid 1px #bad9ff;
}
.tabulate-navigation .tabulate-partition-no-input {
- padding: 5px;
- padding-top: 6px;
+ padding: 5px;
+ padding-top: 6px;
}
.tabulate-navigation .tabulate-partition-first {
- border-left: 0;
+ border-left: 0;
}
.tabulate-navigation .tabulate-partition-last {
- float: right;
- border-right: 0;
+ float: right;
+ border-right: 0;
}
.tabulate-navigation select {
- padding: 0;
- font-size: 10px;
- width: 48px;
+ padding: 0;
+ font-size: 10px;
+ width: 48px;
}
.tabulate-navigation .tabulate-current-page {
- padding: 1px 0;
- margin: 0 2px;
- font-size: 10px;
- text-align: right;
- width: 24px;
- vertical-align: middle;
+ padding: 1px 0;
+ margin: 0 2px;
+ font-size: 10px;
+ text-align: right;
+ width: 24px;
+ vertical-align: middle;
}
.tabulate-navigation .tabulate-next,
.tabulate-navigation .tabulate-prev {
- border: 0;
- padding: 0 5px;
- cursor: pointer;
- vertical-align: middle;
+ border: 0;
+ padding: 0 5px;
+ cursor: pointer;
+ vertical-align: middle;
}
.tabulate-navigation .tabulate-next {
- padding-right: 0;
+ padding-right: 0;
}
.tabulate-navigation .tabulate-prev {
- padding-left: 0;
+ padding-left: 0;
}
/*------------------------------------------------------------------------------
- Misc
+ Misc
------------------------------------------------------------------------------*/
.tabulate-loading.loading {
- background: transparent url(images/loading.gif) left center no-repeat;
+ background: transparent url(images/loading.gif) left center no-repeat;
}
.tabulate-loading span {
- visibility: hidden;
+ visibility: hidden;
}
.tabulate-no-results {
- padding: 5px;
- font-size: 10px;
- text-align: center;
- vertical-align: middle;
- border: solid 1px #ebf4ff;
+ padding: 5px;
+ font-size: 10px;
+ text-align: center;
+ vertical-align: middle;
+ border: solid 1px #ebf4ff;
}
/*------------------------------------------------------------------------------
- Clearfix
+ Clearfix
------------------------------------------------------------------------------*/
-.clearfix:after {
- content: "\0020";
- width: 0;
- height: 0;
- clear: both;
- display: block;
- visibility: hidden;
- overflow: hidden;
- line-height: 0;
- font-size: 0;
+.clearfix:before, .clearfix:after {
+ content: "\0020";
+ display: block;
+ height: 0;
+ visibility: hidden;
}
-* html .clearfix {
- display: inline-block; /* IE 6 */
+.clearfix:after {
+ clear: both;
}
-
-*:first-child+html .clearfix {
- display: inline-block; /* IE 7 */
-}
Please sign in to comment.
Something went wrong with that request. Please try again.