r4300 printPageHeaders(): also use static proxy for JS files
[racktables] / wwwroot / js / codepress / codepress.html
CommitLineData
54592771
DO
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
2<html>\r
3<head>\r
4 <title>CodePress - Real Time Syntax Highlighting Editor written in JavaScript</title>\r
5 <meta name="description" content="CodePress - source code editor window" />\r
6\r
7 <script type="text/javascript">\r
8 var language = 'generic';\r
9 var engine = 'older';\r
10 var ua = navigator.userAgent;\r
11 var ts = (new Date).getTime(); // timestamp to avoid cache\r
12 var lh = location.href;\r
13 \r
14 if(ua.match('MSIE')) engine = 'msie';\r
d269906f 15 else if(ua.match('KHTML')) engine = 'gecko'; \r
54592771
DO
16 else if(ua.match('Opera')) engine = 'opera'; \r
17 else if(ua.match('Gecko')) engine = 'gecko';\r
18\r
19 if(lh.match('language=')) language = lh.replace(/.*language=(.*?)(&.*)?$/,'$1');\r
20\r
8da569c6
DO
21 document.write('<link type="text/css" href="index.php?module=chrome&uri=js/codepress/codepress.css&ts='+ts+'" rel="stylesheet" />');\r
22 document.write('<link type="text/css" href="index.php?module=chrome&uri=js/codepress/languages/'+language+'.css&ts='+ts+'" rel="stylesheet" id="cp-lang-style" />');\r
23 document.write('<scr'+'ipt type="text/javascript" src="index.php?module=chrome&uri=js/codepress/engines/'+engine+'.js&ts='+ts+'"></scr'+'ipt>');\r
24 document.write('<scr'+'ipt type="text/javascript" src="index.php?module=chrome&uri=js/codepress/languages/'+language+'.js&ts='+ts+'"></scr'+'ipt>');\r
54592771
DO
25 </script>\r
26\r
27</head>\r
28\r
29<script type="text/javascript">\r
30if(engine == "msie" || engine == "gecko") document.write('<body><pre> </pre></body>');\r
31else if(engine == "opera") document.write('<body></body>');\r
32// else if(engine == "khtml") document.write('<body> </body>');\r
33</script>\r
34\r
35</html>\r