bf7a678054b380e4b6a6cf11b0ab49466907f7b5
[jalview.git] / utils / jalviewjs / chromium_test / jalview_bin_Jalview-stderr.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>SwingJS test Jalview</title><meta charset="utf-8" />
5 <script src="swingjs/swingjs2.js"></script>
6 <script>
7 if (!self.SwingJS)alert('swingjs2.js was not found. It needs to be in swingjs folder in the same directory as ' + document.location.href)
8 Info = {
9   code: null,
10   main: "jalview.bin.Jalview",
11   core: "NONE",
12         width: 850,
13         height: 550,
14   readyFunction: null,
15         serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
16         j2sPath: 'swingjs/j2s',
17         console: window.console,
18         allowjavascript: true
19 }
20 </script>
21 </head>
22 <body>
23 <script>
24 // we define console.err because swingjs2.js calls it instead of console.error
25 window.console.err = function() {
26         this.error.apply(this,arguments);
27 }
28 SwingJS.getApplet('testApplet', Info)
29 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
30 </script>
31 <div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
32 <div id="sysoutdiv" contentEditable="true" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
33 This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a> <br>Add ?j2snocore to URL to see full class list; ?j2sdebug to use uncompressed j2s/core files <br><a href="javascript:getClassList()">get _j2sClassList.txt</a>
34 </div>
35 </body>
36 </html>