#210 Ensembl fix; adds embedding test
[jalview.git] / site-resources / jalview_bin_JalviewJS_embedded.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>SwingJS test JalviewJS2</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.JalviewJS2",
11   core: "NONE",
12   readyFunction: null,
13         serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol2.php',
14         j2sPath: 'swingjs/j2s',
15         console:'sysoutdiv',
16         allowjavascript: true,
17         
18         //JalviewJS-specific:
19         jalview_SCREEN_WIDTH: 300, // desktop width
20         jalview_SCREEN_HEIGHT: 1,  // desktop height -- 0 to hide
21         jalview_SCREEN_X: 10,
22         jalview_SCREEN_Y: 10,
23         jalview_EMBEDDED: true
24         
25 }
26 </script>
27 </head>
28 <body>
29 <div id="align-frame-div" style="position:absolute;left:100px;top:100px;width:600px;height:400px;">
30 The alignment frame will appear here momentarily...
31 </div>
32
33
34 <script>
35 SwingJS.getApplet('testApplet', Info)
36 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
37 </script>
38
39
40 <div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
41 <div id="sysoutdiv" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
42 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>
43 </div>
44 </body>
45 </html>