Skip to content

Commit

Permalink
Merge pull request #181 from duboisp/master
Browse files Browse the repository at this point in the history
Zebra with column highlight and data summary
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Aug 8, 2012
2 parents 53477ca + 175d74d commit e38cefd
Show file tree
Hide file tree
Showing 15 changed files with 7,041 additions and 306 deletions.
2 changes: 1 addition & 1 deletion build/js/css/pe-ap-ie-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/css/pe-ap-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

113 changes: 103 additions & 10 deletions demos/table-parser/Witch_Zebra_You_Like.html
Expand Up @@ -172,13 +172,13 @@

}

newzebra('table:eq(0)', false);
newzebra('table:eq(1)', true);
newzebra('table:eq(2)', true);
// newzebra('table:eq(0)', false);
// newzebra('table:eq(1)', true);
// newzebra('table:eq(2)', true);

newzebra('table:eq(4)', true);
newzebra('table:eq(5)', false);
newzebra('table:eq(6)', true);
// newzebra('table:eq(4)', true);
// newzebra('table:eq(5)', false);
// newzebra('table:eq(6)', true);

});
//]]>
Expand Down Expand Up @@ -273,9 +273,75 @@ <h1 id="cn-cont">Witch Zebra You Like ? - Web Experience Toolkit (WET)</h1>
<li><a href="#sample7">Sample Table #7</a></li>
</ul>

<h3>Simple Table with Zebra and the Parser</h3>
<table class="wet-boew-zebra">
<caption>A Caption</caption>
<!--<colgroup>
<col />
</colgroup>
<colgroup>
<col />
<col />
<col />
<col />
</colgroup>-->
<tbody>
<tr>
<th></th>
<th>Header b</th>
<th>Header c</th>
<th>Header d</th>
<th>Header e</th>
</tr>

<tr>
<th>Item 2a</th>
<td>Data 1b</td>
<td>Data 2c</td>
<td>Data 3d</td>
<td>Data 4e</td>
</tr>
<tr>
<th>Item 3a</th>
<td>Data 1b</td>
<td>Data 2c</td>
<td>Data 3d</td>
<td>Data 4e</td>
</tr>
<tr>
<th>Item 1a</th>
<td>Data 1b</td>
<td>Data 2c</td>
<td>Data 3d</td>
<td>Data 4e</td>
</tr>
<tr>
<th>Item 2a</th>
<td>Data 1b</td>
<td>Data 2c</td>
<td>Data 3d</td>
<td>Data 4e</td>
</tr>
<tr>
<th>Item 3a</th>
<td>Data 1b</td>
<td>Data 2c</td>
<td>Data 3d</td>
<td>Data 4e</td>
</tr>
<tbody>
<tr>
<th>Total</th>
<td>Data 1b</td>
<td>Data 2c</td>
<td>Data 3d</td>
<td>Data 4e</td>
</tr>
</table>

<h3 id="sample1">Sample Table #1</h3>

<table>
<table class="wet-boew-zebra">
<caption>Summary Column Highlight, No Column Hover</caption>
<colgroup span="3"></colgroup>

Expand Down Expand Up @@ -466,6 +532,8 @@ <h3 id="sample1">Sample Table #1</h3>
<td>125 $</td>
<td>221 $</td>
</tr>
</tbody>
<tbody>
<tr>
<td>wet-boew-zebra</td>
<th>Zebra</th>
Expand All @@ -477,7 +545,30 @@ <h3 id="sample1">Sample Table #1</h3>
<td>25 $</td>
<td>125 $</td>
<td>221 $</td>
</tr>
</tr> <tr>
<td>wet-boew-zebra</td>
<th>Zebra</th>
<td>Present usable tabular data</td>
<td>2</td>
<td>48 $</td>
<td>96 $</td>
<td>5</td>
<td>25 $</td>
<td>125 $</td>
<td>221 $</td>
</tr> <tr>
<td>wet-boew-zebra</td>
<th>Zebra</th>
<td>Present usable tabular data</td>
<td>2</td>
<td>48 $</td>
<td>96 $</td>
<td>5</td>
<td>25 $</td>
<td>125 $</td>
<td>221 $</td>
</tr> </tbody>
<tbody>
<tr>
<td>wet-boew-zebra</td>
<th>Zebra</th>
Expand All @@ -490,6 +581,8 @@ <h3 id="sample1">Sample Table #1</h3>
<td>125 $</td>
<td>221 $</td>
</tr>
</tbody>
<tbody>
<tr>
<td>wet-boew-zebra</td>
<th>Zebra</th>
Expand All @@ -511,7 +604,7 @@ <h3 id="sample1">Sample Table #1</h3>

<h3 id="sample2">Sample Table #2</h3>

<table>
<table class="wet-boew-zebra">
<caption>Summary Column Highlight, With Column Hover</caption>
<colgroup span="3"></colgroup>

Expand Down Expand Up @@ -747,7 +840,7 @@ <h3 id="sample2">Sample Table #2</h3>

<h3 id="sample3">Sample Table #3</h3>

<table>
<table class="wet-boew-zebra">
<caption>Last Summary Column Highlight and Column Hover</caption>
<colgroup span="3"></colgroup>

Expand Down

0 comments on commit e38cefd

Please sign in to comment.