85a96c7a5b61bbb3001aaedd8d4632b4e05c4be4
[jalview.git] / utils / jalviewjs / 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   core: "NONE",
12         width: 850,
13         height: 550,
14   readyFunction: null,
15         serverURL: '',
16         j2sPath: 'swingjs/j2s',
17         console:'sysoutdiv',
18         allowjavascript: true
19 }
20 // direct access to these sites
21 J2S.addDirectDatabaseCall('www.compbio.dundee.ac.uk'),J2S.addDirectDatabaseCall('www.jalview.org'), J2S.addDirectDatabaseCall('ensembl.org')
22 J2S.addDirectDatabaseCall('127.0.0.1'), J2S.addDirectDatabaseCall('localhost')
23 </script>
24 </head>
25 <body>
26 <script>
27 SwingJS.getApplet('testApplet', Info)
28 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
29 </script>
30 <div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
31 <div id="sysoutdiv" contentEditable="true" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
32 This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a>  <a href='javascript:J2S.getProfile()'>start/stop profiling</a><br>see <a href=___j2sflags.htm>___j2sflags.htm</a> for SwingJS URL command-line options<br><a href="javascript:getClassList()">get _j2sClassList.txt</a>
33 </div>
34 </body>
35 </html>