Merge branch 'bug/JAL-4344_structureimage_cl_arg_only_creating_background_colour_squa...
[jalview.git] / utils / jalviewjs / site-resources / jalviewjs-core.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
5 <title>SwingJS test Jalview</title><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: null,
11   main: "jalview.bin.JalviewJS",
12   core: "_jalview",
13   j2s_x: 100,
14   j2s_y: 100,
15   width: 200,
16   height: 100,
17   readyFunction: null,
18   serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
19   j2sPath: 'swingjs/j2s',
20   console:'sysoutdiv',
21   allowjavascript: true,
22   // all j2s_... values can be accessed in JalviewJSUtil.getInstance().getJSInfoValue(key)
23   j2s_namespace: "jv",
24   j2s_overflow: true
25 }
26 </script>
27 <style>
28 @keyframes rotation {
29   from {
30     transform: rotate(0deg);
31   }
32   to {
33     transform: rotate(360deg);
34   }
35 }
36 .jv_jalviewjsSplashRotate {
37   animation: rotation 6s infinite cubic-bezier(0.4, 0.6, 0.6, 0.4);
38 }
39 .jv_jalviewjsSplashActive {
40   display: visible;
41   opacity: 100%;
42 }
43 .jv_jalviewjsSplashInactive {
44   animation-iteration-count: 1;
45   animation-fill-mode: forwards;
46   opacity: 30%;
47   transition: all 1s;
48   z-index: 100;
49 }
50 .jv_jalviewjsSplashFinal {
51   z-index: -1;
52   opacity: 30%;
53 }
54 </style>
55 </head>
56 <body>
57 <script>
58 SwingJS.getApplet('jalviewjs', Info);
59 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))};
60 </script>
61 <div style="position:absolute;left:10px;top:10px;width:640px;height:1200px;">
62 <div id="sysoutdiv" contentEditable="true" style="padding: 5px; border: 1px solid green; width: 100%; height: 95%; overflow: auto; font-family: 'Fira Mono', monospace; font-size: 8pt;">
63 <div id="jv:jalviewjsSplash" class="jv_jalviewjsSplashRotate jv_jalviewjsSplashActive" style="position: absolute; right: 1rem; top: 1rem; z-index: 1000;">
64 <img style="width; 2rem; height: 2rem;" src="images/jalview_logo_small.svg" />
65 </div>
66 </div>
67 This is System.out. <a href="javascript:jalviewjs._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>
68 </div>
69 </body>
70 </html>