JAL-3032 don't place desktop at negative x or y position
[jalview.git] / template.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>SwingJS test _NAME_</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: _CODE_,
10   main: _MAIN_,
11         width: 850,
12         height: 550,
13   readyFunction: null,
14         serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
15         j2sPath: 'swingjs/j2s',
16         console:'sysoutdiv',
17         allowjavascript: true
18 }
19 </script>
20 </head>
21 <body>
22 <script>
23 SwingJS.getApplet('testApplet', Info)
24 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
25 </script>
26 <div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
27 <div id="sysoutdiv" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
28 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>
29 </div>
30 </body>
31 </html>