* URLSearchParams(window.location.search);
*
* var qsargs = [];
- *
+ *
* for (var param of qsParams) {
*
* var key = param[0];
*
* }
*
- * qsargs && (System.out.println("URL parameters detected
- * were "+qsargs.join(" "))) &&
- * (J2S.thisApplet.__Info.urlargs = qsargs);
+ * if (qsargs !== undefined && qsargs.length > 0) {
+ *
+ * System.out.println("URL parameters detected are
+ * '"+qsargs.join("', '")+"'");
+ *
+ * J2S.thisApplet.__Info.j2s_urlargs = qsargs;
+ *
+ * J2S.thisApplet.__Info.args = qsargs.join(" ");
+ *
+ * System.out.println("URL parameters were passed to J2S
+ * main.");
+ *
+ * } else {
*
- * (!J2S.thisApplet.__Info.args || J2S.thisApplet.__Info.args
- * == "" || J2S.thisApplet.__Info.args == "??") &&
- * (J2S.thisApplet.__Info.args = qsargs.join(" ")) &&
- * (System.out.println("URL parameters were passed to J2S
- * main."));
+ * // look for Info.args
*
+ * var infoArgs = J2S.thisApplet.__Info.args;
+ *
+ * if (infoArgs !== undefined) {
+ *
+ * System.out.println("Info.args parameters detected are
+ * "+J2S.thisApplet.__Info.args);
+ *
+ * System.out.println("Info.args parameters were passed to
+ * J2S main.");
+ *
+ * }
+ *
+ * }
+ *
* }
*/
} catch (Throwable t)
<h1>jalviewjs.html and jalviewjs-core.html examples with new CLI style query parameters</h1>
<ul>
<li>
-<a href="http://localhost:8000/jalviewjs.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true">http://localhost:8000/jalviewjs.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true</a>
+<a href="/jalviewjs.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true">/jalviewjs.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true</a>
</li>
<li>
-<a href="http://localhost:8000/jalviewjs-core.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true">http://localhost:8000/jalviewjs-core.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true</a>
+<a href="/jalviewjs-core.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true">/jalviewjs-core.html?jv:open=examples/plantfdx.fa&jv:colour=gecos-ocean&jv:structure=../../examples/AF-P00221-F1-model_v4.pdb&jv:seqid=FER1_SPIOL&jv:tempfac=plddt&jv:paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json&jv:noshowannotations&jv:debug=true</a>
</li>
</ul>
</body>
// all j2s_... values can be accessed in JalviewJSUtil.getInstance().getJSInfoValue(key)
j2s_namespace: "jv",
j2s_overflow: true,
+ args: "--open=examples/plantfdx.fa --colour=gecos-ocean --structure=examples/AF-P00221-F1-model_v4.pdb --seqid=FER1_SPIOL --tempfac=plddt --paematrix=../../examples/AF-P00221-F1-predicted_aligned_error_v4.json --noshowannotations --debug=true",
}
</script>
<style>