File: check.html

package info (click to toggle)
nvidia-cuda-toolkit 12.4.1-2
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, trixie
  • size: 18,505,836 kB
  • sloc: ansic: 203,477; cpp: 64,769; python: 34,699; javascript: 22,006; xml: 13,410; makefile: 3,085; sh: 2,343; perl: 352
file content (37 lines) | stat: -rw-r--r-- 1,216 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
   <head>
      <title>Check configuration</title>
      <script src="./files.js" type="text/javascript" charset="utf-8"></script>
   </head>
   <body>
      <noscript>          
         You must have JavaScript enable in order to continue!         
      </noscript>
      <script type="text/javascript">
         <!--
          var path=location.pathname;		  
          var base=location.protocol+"//"+location.host+path.substring(0,path.lastIndexOf("/"));
          
          var http = new XMLHttpRequest();
          var foundAll=true;
          
          for (var i=0; i<files.length; i++){
		  var fileTocheck=base+files[i];
            http.open('HEAD', fileTocheck, false);
            http.send();
            if (http.status==404){
            document.write("file["+i+"]: "+fileTocheck+" is not acccesible !  <br/>");
            foundAll=false;
            }else{
            document.write("file["+i+"] : "+http.status+" : "+fileTocheck+"  <br/>");
            }
            }
            if (foundAll){
            document.write("Everything OK!");
            }else{
            document.write("Not all files are accesible!");
            }
           -->
      </script>
   </body>
</html>