validator/httpd/cgi-bin check,1.305.2.89,1.305.2.90

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv9548

Modified Files:
      Tag: validator-0_6_0-branch
	check 
Log Message:
Thanks to Bjoern for reminding that commenting out the script wasn't going to be too helpful, either.
Using an external script would work better, and it's also mor elegant.



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.305.2.89
retrieving revision 1.305.2.90
diff -u -d -r1.305.2.89 -r1.305.2.90
--- check	22 Apr 2004 23:12:01 -0000	1.305.2.89
+++ check	23 Apr 2004 01:50:34 -0000	1.305.2.90
@@ -1905,39 +1905,7 @@
   # Add in Jim Ley's JavaScript to show the explanations for every error
   # message without having to actually download msg.size() * num err.
   if ($File->{Opt}->{Verbose}) {
-    print <<'.EOF.';
-   <script type="text/javascript">
-<!--
-d=document
-w=window
-msgs=new Array()
-if (w && d && d.getElementsByTagName){
- w.onload=doubleUp
-}
-function doubleUp() {
- glist=d.getElementsByTagName("DIV")
- upto(10)
-}
-function upto(n) {
- if (n<glist.length) {
-  for (i=n;i<glist.length && i<n+10;i++) {
-   j=glist[i]
-   cls=j.className
-   if (cls) cls=cls.split(' ')
-   if (cls.length>1) {
-    if (cls[0]=='ve') msgs[cls[1]]=j.innerHTML
-    if (cls[0]=='hidden' && msgs[cls[1]]) {
-     j.className="ve "+cls[1]
-     j.innerHTML=msgs[cls[1]]
-    }
-   }
-  }
-  if (w && w.setTimeout) setTimeout('upto('+i+')',500)
- }
-}
- -->
-   </script>
-.EOF.
+    print '<script type="text/javascript" src="loadexplanation.js" />';
   }
   print "    </div><!-- End of #result -->\n\n";
 }

Received on Thursday, 22 April 2004 21:53:04 UTC