- From: Yves Savourel via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 23 Aug 2012 12:23:43 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/examples/html5 In directory hutz:/tmp/cvs-serv16703/examples/html5 Modified Files: EX-locQualityIssue-html5-local-2.html Added Files: qaissues.js Log Message: loc-quality: Updated html sample with Felix' 9also changed color to yellow: more readable). --- NEW FILE: qaissues.js --- function addqaissueattrs () { var spanlist = document.getElementsByTagName('span'); for(i=0; i<spanlist.length; i++) { if(spanlist[i].getAttribute('its-loc-quality-issues-ref') != '') { spanlist[i].setAttribute("onclick","getqaissue(this.getAttribute('its-loc-quality-issues-ref'))"); spanlist[i].setAttribute("class","qaissue"); } } } function getqaissue (qiref) { var qielem = document.getElementById(qiref.substr(1)); var issues = qielem.childNodes; var issueslist = new String; for(i=0; i<issues.length; i++) { if(issues[i].nodeType==1) { issueslist = issueslist + issues[i].getAttribute('its-loc-quality-issue-type') + " "; } } window.alert("QA issues found. Type(s) of issues: " + issueslist); } Index: EX-locQualityIssue-html5-local-2.html =================================================================== RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/examples/html5/EX-locQualityIssue-html5-local-2.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- EX-locQualityIssue-html5-local-2.html 23 Aug 2012 10:40:24 -0000 1.2 +++ EX-locQualityIssue-html5-local-2.html 23 Aug 2012 12:23:41 -0000 1.3 @@ -1,19 +1,19 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <title>Example</title> - </head> - <body> - <p><span its-loc-quality-issues-ref="#lq1">c'es</span> le contenu</p> - <span its-loc-quality-issues="its-loc-quality-issues" id="lq1"> - <span its-loc-quality-issue="its-loc-quality-issue" - its-loc-quality-issue-type="misspelling" - its-loc-quality-issue-coment="'c'es' is unknown. Could be 'c'est'" - its-loc-quality-issue-severity="50"></span> - <span its-loc-quality-issue="its-loc-quality-issue" - its-loc-quality-issue-type="typographical" - its-loc-quality-issue-coment="Sentence without capitalization" - its-loc-quality-issue-severity="30"></span> - </span> - </body> -</html> \ No newline at end of file +<html><head><title>Test</title> +<script type="text/javascript" src="qaissues.js"></script> +<style type="text/css">.qaissue { background-color: yellow; } </style> +</head> +<body onload="addqaissueattrs()"> +<p><span its-loc-quality-issues-ref="#lq1">c'es</span> le contenu</p> + +<span its-loc-quality-issues="its-loc-quality-issues" id="lq1"> +<span its-loc-quality-issue="its-loc-quality-issue" +its-loc-quality-issue-type="typographical" +its-loc-quality-issue-coment="Sentence without capitalization" +its-loc-quality-issue-severity="30"></span> +<span its-loc-quality-issue="its-loc-quality-issue" +its-loc-quality-issue-type="misspelling" +its-loc-quality-issue-coment="'c'es' is unknown. Could be 'c'est'" +its-loc-quality-issue-severity="50"></span> +</span> + +</body></html> \ No newline at end of file
Received on Thursday, 23 August 2012 12:23:44 UTC