SwingJS transpiler to 3.2.5.v1 (fixed java.util.stream)
[jalview.git] / template.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>SwingJS test _NAME_</title>
5 <meta charset="utf-8" />
6 <script src="swingjs/swingjs2.js"></script>
7 <script>
8 if (!self.SwingJS)alert('swingjs2.js was not found. It needs to be in swingjs folder in the same directory as ' + document.location.href)
9 Info = {
10   code: _CODE_,
11   main: _MAIN_,
12   core: "NONE",
13         width: 850,
14         height: 550,
15   readyFunction: null,
16         serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
17         j2sPath: 'swingjs/j2s',
18         console:'sysoutdiv',
19         allowjavascript: true
20 }
21 </script>
22 </head>
23 <body>
24 <script>
25 SwingJS.getApplet('testApplet', Info)
26 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
27 </script>
28 <div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
29 <div id="sysoutdiv" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
30 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>
31 </div>
32 </body>
33 </html>