Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial work on the HTML Table Validator
- Loading branch information
Showing
4 changed files
with
249 additions
and
3 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,245 @@ | ||
|
||
<!DOCTYPE html> | ||
<!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]--> | ||
<!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]--> | ||
<!--[if gt IE 8]><!--> | ||
<html lang="en" class="no-js"> | ||
<!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) | ||
www.tbs.gc.ca/ws-nw/wet-boew/terms / www.sct.gc.ca/ws-nw/wet-boew/conditions --> | ||
<title>HTML Table Validator - Table Usability - Web Experience Toolkit (WET)</title> | ||
|
||
|
||
|
||
<link rel="shortcut icon" href="../../build/theme-gcwu-fegc/images/favicon.ico" /> | ||
<meta name="dcterms.description" content="English description/Description en anglais" /> | ||
<meta name="description" content="English description/Description en anglais" /> | ||
<meta name="keywords" content="English keywords/Mots-clés en anglais" /> | ||
<meta name="dcterms.creator" content="English name of the content author/Nom en anglais de l'auteur du contenu" /> | ||
<meta name="dcterms.title" content="English title/Titre en anglais" /> | ||
<meta name="dcterms.issued" title="W3CDTF" content="Date published (YYYY-MM-DD)/Date de publication (AAAA-MM-JJ)" /> | ||
<meta name="dcterms.modified" title="W3CDTF" content="Date modified (YYYY-MM-DD)/Date de modification (AAAA-MM-JJ)" /> | ||
<meta name="dcterms.subject" title="scheme" content="English subject terms/Termes de sujet en anglais" /> | ||
<meta name="dcterms.language" title="ISO639-2" content="eng" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<script src="../../build/js/jquery.min.js"></script> | ||
|
||
<link rel="stylesheet" href="../../build/grids/css/util-min.css" /> | ||
<!--[if lte IE 8]> | ||
<link rel="stylesheet" href="../../build/js/css/pe-ap-ie-min.css" /> | ||
<link rel="stylesheet" href="../../build/theme-gcwu-fegc/css/theme-ie-min.css" /> | ||
<![endif]--> | ||
<!--[if gt IE 8]><!--> | ||
<link rel="stylesheet" href="../../build/js/css/pe-ap-min.css" /> | ||
<link rel="stylesheet" href="../../build/theme-gcwu-fegc/css/theme-min.css" /> | ||
<!--<![endif]--> | ||
|
||
<!-- CustomScriptsCSSStart --> | ||
<script> | ||
//<![CDATA[ | ||
$(document).ready(function(){ | ||
$('#resultTableIdHeaders').hide(); | ||
|
||
var _pe = window.pe || { | ||
fn : {} | ||
}; | ||
|
||
_pe.fn.parsertable.onParserError = function(numerr, err, obj){ | ||
$('#errorList').append($('<li><strong>' + numerr + '</strong> ' + err + '</li>')); | ||
$(obj).css('background-color', 'red'); | ||
}; | ||
|
||
$('form').submit(function(){ | ||
var noErrorList = '<li>No Error Found</li>'; | ||
|
||
$('#resultTableIdHeaders').hide(); | ||
$('#resultTableIdHeaders').val(''); | ||
|
||
$('#errorList').empty(); | ||
$('#directOutput').empty(); | ||
$('#directOutput').append($('#inputHTMLtable').val()); | ||
|
||
// Parse the table | ||
if ($('#directOutput table:eq(0)').length > 0) { | ||
_pe.fn.parsertable._exec($('#directOutput table:eq(0)')); | ||
} else { | ||
alert('Please add HTML Table code'); | ||
$('#directOutput').empty(); | ||
} | ||
|
||
if($('#errorList').children().length === 0){ | ||
$('#errorList').append($(noErrorList)); | ||
|
||
// Add id, headers attribute to each cell | ||
|
||
} | ||
|
||
}); | ||
|
||
|
||
}); | ||
//]]> | ||
</script> | ||
<!-- CustomScriptsCSSEnd --> | ||
</head> | ||
|
||
<body><div id="wb-body"> | ||
<div id="wb-skip"> | ||
<ul id="wb-tphp"> | ||
<li id="wb-skip1"><a href="#wb-cont">Skip to main content</a></li> | ||
<li id="wb-skip2"><a href="#wb-nav">Skip to footer</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div id="wb-head"><div id="wb-head-in"><header> | ||
<!-- HeaderStart --> | ||
<nav role="navigation"><div id="gcwu-gcnb"><h2>Government of Canada navigation bar</h2><div id="gcwu-gcnb-in"><div id="gcwu-gcnb-fip"> | ||
<div id="gcwu-sig"><div id="gcwu-sig-in"><div id="gcwu-sig-eng" title="Government of Canada"><img src="../../build/theme-gcwu-fegc/images/sig-eng.gif" width="214" height="20" alt="Government of Canada" /></div></div></div> | ||
<ul> | ||
<li id="gcwu-gcnb1"><a rel="external" href="http://www.canada.gc.ca/home.html">Canada.gc.ca</a></li> | ||
<li id="gcwu-gcnb2"><a rel="external" href="http://www.servicecanada.gc.ca/eng/home.shtml">Services</a></li> | ||
<li id="gcwu-gcnb3"><a rel="external" href="http://www.canada.gc.ca/depts/major/depind-eng.html">Departments</a></li> | ||
<li id="gcwu-gcnb-lang"><a href="zebra-fra.html" lang="fr">Français</a></li> | ||
</ul> | ||
</div></div></div></nav> | ||
|
||
<div id="gcwu-bnr" role="banner"><div id="gcwu-bnr-in"> | ||
<div id="gcwu-wmms"><div id="gcwu-wmms-in"><div id="gcwu-wmms-fip" title="Symbol of the Government of Canada"><img src="../../build/theme-gcwu-fegc/images/wmms.gif" width="126" height="30" alt="Symbol of the Government of Canada" /></div></div></div> | ||
<div id="gcwu-title"><p id="gcwu-title-in"><a href="../../docs/index-eng.html">Web Experience Toolkit (WET)</a></p></div> | ||
|
||
<section role="search"><div id="gcwu-srchbx"><h2>Search</h2> | ||
<form action="#" method="post"><div id="gcwu-srchbx-in"> | ||
<label for="gcwu-srch">Search website</label><input id="gcwu-srch" name="gcwu-srch" type="text" value="" size="27" maxlength="150" /> | ||
<input id="gcwu-srch-submit" name="gcwu-srch-submit" type="submit" value="Search" data-icon="search" /> | ||
</div></form> | ||
</div></section> | ||
</div></div> | ||
|
||
<nav role="navigation"> | ||
<div id="gcwu-psnb"><h2><span>Site</span> menu</h2><div id="gcwu-psnb-in"><div class="wet-boew-menubar mb-mega"><div> | ||
<ul class="mb-menu" data-ajax-replace="../includes/menu-eng.html"> | ||
<li><div><a href="http://wet-boew.github.com/wet-boew/docs/index-eng.html">WET project</a></div></li> | ||
<li><div><a href="section2/index-eng.html">Section 2</a></div></li> | ||
<li><div><a href="#">Section 3</a></div></li> | ||
<li><div><a href="#">Section 4</a></div></li> | ||
<li><div><a href="#">Section 5</a></div></li> | ||
<li><div><a href="#">Section 6</a></div></li> | ||
<li><div><a href="#">Section 7</a></div></li> | ||
</ul> | ||
</div></div></div></div> | ||
|
||
<div id="gcwu-bc"><h2>Breadcrumb trail</h2><div id="gcwu-bc-in"> | ||
<ol> | ||
<li><a href="../../docs/index-eng.html">Home</a></li> | ||
<li><a href="../index-eng.html">Working examples</a></li> | ||
<li>Table Usability - Web Experience Toolkit (WET)</li> | ||
</ol> | ||
</div></div> | ||
</nav> | ||
<!-- HeaderEnd --> | ||
</header></div></div> | ||
|
||
<div id="wb-core"><div id="wb-core-in" class="equalize"> | ||
<div id="wb-main" role="main"><div id="wb-main-in"> | ||
<!-- MainContentStart --> | ||
|
||
<h1 id="cn-cont">HTML Table Validator - Table Usability - Web Experience Toolkit (WET)</h1> | ||
|
||
<p><em>This is a HTML Table Validator to help you to see any issue from your HTML Table. Also you will be able to setup your header/ids attribute</em></p> | ||
|
||
<form action="#"> | ||
<textarea id="inputHTMLtable" class="span-8" rows="20" cols="50"></textarea> | ||
|
||
<input type="submit" value="Analyse" /> | ||
|
||
|
||
<div id="directOutput"></div> | ||
|
||
<ul id="errorList"> | ||
<li>No Error Found</li> | ||
</ul> | ||
|
||
|
||
|
||
|
||
<textarea id="resultTableIdHeaders" class="span-8" rows="20" cols="50"></textarea> | ||
|
||
</form> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<dl id="gcwu-date-mod" role="contentinfo"> | ||
<dt>Date modified:</dt><dd><span><time>2012-08-09</time></span></dd> | ||
</dl> | ||
<div class="clear"></div> | ||
<!-- MainContentEnd --> | ||
</div></div> | ||
</div></div> | ||
|
||
<div id="wb-foot"><div id="wb-foot-in"><footer><h2 id="wb-nav">Footer</h2> | ||
<!-- FooterStart --> | ||
<nav role="navigation"><div id="gcwu-sft"><h3>Site footer</h3><div id="gcwu-sft-in"> | ||
<div id="gcwu-tctr"> | ||
<ul> | ||
<li class="gcwu-tc"><a href="#" rel="license">Terms and conditions</a></li> | ||
<li class="gcwu-tr"><a href="#">Transparency</a></li> | ||
</ul> | ||
</div> | ||
<div class="clear"></div> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">About us</a></h4> | ||
<ul> | ||
<li><a href="#">Our Mandate</a></li> | ||
<li><a href="#">Our Minister</a></li> | ||
</ul> | ||
</div></section> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">News</a></h4> | ||
<ul> | ||
<li><a href="#">News releases</a></li> | ||
<li><a href="#">Media advisories</a></li> | ||
<li><a href="#">Multimedia</a></li> | ||
</ul> | ||
</div></section> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">Contact us</a></h4> | ||
<address> | ||
<ul> | ||
<li><a href="#">Phone numbers</a></li> | ||
<li><a href="#">Office locations</a></li> | ||
</ul> | ||
</address> | ||
</div></section> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">Stay connected</a></h4> | ||
<ul> | ||
<li><a rel="external" href="#">YouTube</a></li> | ||
<li><a rel="external" href="#">Twitter</a></li> | ||
<li><a href="#">Feeds</a></li> | ||
</ul> | ||
</div></section> | ||
</div></div></nav> | ||
|
||
<nav role="navigation"><div id="gcwu-gcft"><h3>Government of Canada footer</h3><div id="gcwu-gcft-in"><div id="gcwu-gcft-fip"> | ||
<ul> | ||
<li><a rel="external" href="http://healthycanadians.gc.ca/index-eng.php"><span>Health</span><br />healthycanadians.gc.ca</a></li> | ||
<li><a rel="external" href="http://www.voyage.gc.ca/index-eng.asp"><span>Travel</span><br />travel.gc.ca</a></li> | ||
<li><a rel="external" href="http://www.servicecanada.gc.ca/eng/home.shtml"><span>Service Canada</span><br />servicecanada.gc.ca</a></li> | ||
<li><a rel="external" href="http://www.jobbank.gc.ca/intro-eng.aspx"><span>Jobs</span><br />jobbank.gc.ca</a></li> | ||
<li><a rel="external" href="http://actionplan.gc.ca/eng/index.asp"><span>Economy</span><br />actionplan.gc.ca</a></li> | ||
<li id="gcwu-gcft-ca"><div><a rel="external" href="http://www.canada.gc.ca/home.html">Canada.gc.ca</a></div></li> | ||
</ul> | ||
</div></div></div></nav> | ||
<!-- FooterEnd --> | ||
</footer> | ||
</div></div></div> | ||
|
||
<!-- ScriptsStart --> | ||
<script src="../../build/theme-gcwu-fegc/js/theme-min.js"></script> | ||
<script src="../../build/js/settings.js"></script> | ||
<script src="../../build/js/pe-ap-min.js"></script> | ||
<!-- ScriptsEnd --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters