JAL-4059 Change long querystringnamespace to namespace as it's being used for more...
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 10 Nov 2023 21:29:02 +0000 (21:29 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 10 Nov 2023 21:29:02 +0000 (21:29 +0000)
utils/jalviewjs/chromium_test/jalview_bin_Jalview-stderr.html
utils/jalviewjs/coretemplate.html
utils/jalviewjs/site-resources/images/jv.gif [new file with mode: 0644]
utils/jalviewjs/site-resources/jalview_bin_Jalview-namespace.html [new file with mode: 0644]
utils/jalviewjs/site-resources/jalview_bin_JalviewJS_core.html
utils/jalviewjs/template.html

index b11b2cf..dbe6ef4 100644 (file)
@@ -16,7 +16,7 @@ Info = {
        j2sPath: 'swingjs/j2s',
        console: window.console,
        allowjavascript: true,
-  querystringnamespace: ""
+  namespace: ""
 }
 </script>
 </head>
index b27080b..fc73c18 100644 (file)
@@ -16,7 +16,7 @@ Info = {
        j2sPath: 'swingjs/j2s',
        console:'sysoutdiv',
        allowjavascript: true,
-  querystringnamespace: ""
+  namespace: ""
 }
 </script>
 </head>
diff --git a/utils/jalviewjs/site-resources/images/jv.gif b/utils/jalviewjs/site-resources/images/jv.gif
new file mode 100644 (file)
index 0000000..f5cca49
Binary files /dev/null and b/utils/jalviewjs/site-resources/images/jv.gif differ
diff --git a/utils/jalviewjs/site-resources/jalview_bin_Jalview-namespace.html b/utils/jalviewjs/site-resources/jalview_bin_Jalview-namespace.html
new file mode 100644 (file)
index 0000000..2a5ccc5
--- /dev/null
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>SwingJS test Jalview</title><meta charset="utf-8" />
+<script src="swingjs/swingjs2.js"></script>
+<script>
+if (!self.SwingJS)alert('swingjs2.js was not found. It needs to be in swingjs folder in the same directory as ' + document.location.href)
+Info = {
+  code: null,
+  main: "jalview.bin.Jalview",
+  core: "NONE",
+  width: 850,
+  height: 550,
+  readyFunction: null,
+  serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
+  j2sPath: 'swingjs/j2s',
+  console:'sysoutdiv',
+  allowjavascript: true,
+  namespace: "jv"
+}
+</script>
+</head>
+<body>
+<div id="jv:jalviewSplash" style="position:absolute;right:10px;top:10px;">
+<img src="images/jv.gif">
+</div>
+<script>
+SwingJS.getApplet('testApplet', Info)
+getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
+</script>
+<div style="position:absolute;left:10px;top:10px;width:640px;height:1200px;">
+<div id="sysoutdiv" contentEditable="true" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
+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>
+</div>
+</body>
+</html>
index cce8ce8..7ca150e 100644 (file)
@@ -17,7 +17,7 @@ Info = {
        j2sPath: 'swingjs/j2s',
        console:'sysoutdiv',
        allowjavascript: true,
-  querystringnamespace: ""
+  namespace: ""
 }
 </script>
 </head>
index b1bcf95..e7fb5e9 100644 (file)
@@ -16,7 +16,7 @@ Info = {
        j2sPath: 'swingjs/j2s',
        console:'sysoutdiv',
        allowjavascript: true,
-  querystringnamespace: ""
+  namespace: ""
 }
 </script>
 </head>