Skip to content

Commit

Permalink
typo error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
duboisp committed Jun 26, 2012
1 parent 64dd8ed commit 6471533
Showing 1 changed file with 14 additions and 51 deletions.
65 changes: 14 additions & 51 deletions demos/table-parser/Data-Cell.html
Expand Up @@ -29,61 +29,14 @@
<!-- The following script are for the try it button -->
<script>
//<![CDATA[

$(document).ready(function(){
$('input.tryit').click(function(){
eval($(this).prev().val());
});

$('table:eq(8):data').hover(
function(){
$.each($(this).row().cell().filter("td:data"), function(){
$(this).data().zebraPrevBgColor = $(this).css('backgroun-color');
$(this).css('background-color', '#F0FAFA');
});

//$(this).col().css('background-color', 'red');


$.each($(this).col().cell().filter("td:data"), function(){
$(this).data().zebraPrevBgColor = $(this).css('backgroun-color');
$(this).css('background-color', '#F0FAFA');
});

$(this).css('background-color', 'white');

// Highlight the header
// console.log($(this).row().tblheader());
$(this).row().tblheader().data().zebraPrevBgColor = $(this).row().tblheader().css('background-color');
$(this).row().tblheader().css('background-color', 'lightgray');

$(this).col().tblheader().data().zebraPrevBgColor = $(this).col().tblheader().css('background-color');
$(this).col().tblheader().css('background-color', 'lightgray');

// $(this).row().cell().filter("td:data").css('background-color', '#F0FAFA');
},
function(){
$.each($(this).row().cell().filter("td:data"), function(){
$(this).css('background-color', $(this).data().zebraPrevBgColor);
delete $(this).data().zebraPrevBgColor;
});

$.each($(this).col().cell().filter("td:data"), function(){
$(this).css('background-color', $(this).data().zebraPrevBgColor);
delete $(this).data().zebraPrevBgColor;
});


$(this).row().tblheader().css('background-color', $(this).row().tblheader().data().zebraPrevBgColor);
delete $(this).row().tblheader().data().zebraPrevBgColor;

$(this).col().tblheader().css('background-color', $(this).col().tblheader().data().zebraPrevBgColor);
delete $(this).col().tblheader().data().zebraPrevBgColor;

// $(':row:cell:data',this).css('backgroun-color', $(':row:cell:data',this).data().zebraPrevBgColor);
// delete $(':row:cell:data',this).data().zebraPrevBgColor;
}
);
});

//]]>
</script>
<!-- END of Try it button -->
Expand Down Expand Up @@ -189,8 +142,15 @@ <h2>Data Cell</h2>
<caption>Example Table: Number of PPH requests</caption>


<colgroup>
<col>
</colgroup>


<colgroup span="2" />
<colgroup />

<colgroup />
<!--
<colgroup>
<col />
<col />
Expand All @@ -203,7 +163,7 @@ <h2>Data Cell</h2>
<colgroup>
<col>
</colgroup>

-->

<thead>
<tr>
Expand Down Expand Up @@ -1425,8 +1385,11 @@ <h4>Three Data Column Level and More</h4>
<col />
<col />
</colgroup>

<colgroup>
<col />
</colgroup>
<colgroup>
<col />
<col />
</colgroup>
Expand Down

0 comments on commit 6471533

Please sign in to comment.