final String splashClassInactive = nsu + "jalviewjsSplashInactive";
final String splashClassFinal = nsu + "jalviewjsSplashFinal";
final String j2s_overflow = JalviewJSUtil.getJ2sInfoValue("overflow");
+
+ int hideSplashDelayMS = 5000;
+ final Object j2s_hideSplashDelay = JalviewJSUtil
+ .getJ2sInfoValue("hideSplashDelay");
/**
* @j2sNative // splash element disappearance
*
*
* async function hideSplash() {
*
- * await sleep(5000);
+ * var hideSplashDelay =
+ * J2S.thisApplet.__Info.j2s_hideSplashDelay;
+ *
+ * if (hideSplashDelay === undefined) {
+ *
+ * hideSplashDelay = 20000; // 20s default
+ *
+ * }
+ *
+ * await sleep(hideSplashDelay);
*
* splashElement.classList.add(splashClassFinal);
*
--- /dev/null
+<html>
+<head>
+<title>jalviewjs.html and jalviewjs-core.html examples</title>
+</head>
+<body>
+<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>
+</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>
+</li>
+</ul>
+</body>
+</html>
<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 = {
+jv_Info = {
code: null,
main: "jalview.bin.JalviewJS",
core: "_jalview",
allowjavascript: true,
// all j2s_... values can be accessed in JalviewJSUtil.getInstance().getJSInfoValue(key)
j2s_namespace: "jv",
- j2s_overflow: true
+ j2s_overflow: true,
}
</script>
<style>
}
}
.jv_jalviewjsSplashRotate {
- animation: rotation 6s infinite cubic-bezier(0.4, 0.6, 0.6, 0.4);
+ animation-name: rotation;
+ animation-iteration-count: 150;
+ animation-duration: 4s;
+ animation-timing-function: cubic-bezier(0.4, 0.6, 0.6, 0.4);
}
.jv_jalviewjsSplashActive {
display: visible;
opacity: 100%;
+ animation-fill-mode: forwards;
}
.jv_jalviewjsSplashInactive {
animation-iteration-count: 1;
- animation-fill-mode: forwards;
- opacity: 30%;
+ opacity: 20%;
transition: all 1s;
- z-index: 100;
}
.jv_jalviewjsSplashFinal {
+ animation: none;
+ opacity: 20%;
z-index: -1;
- opacity: 30%;
}
</style>
</head>
<body>
<script>
-SwingJS.getApplet('jalviewjs', Info);
+SwingJS.getApplet('jalviewjs', jv_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;">
<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 = {
+jv_Info = {
code: null,
main: "jalview.bin.JalviewJS",
core: "NONE",
allowjavascript: true,
// all j2s_... values can be accessed in JalviewJSUtil.getInstance().getJSInfoValue(key)
j2s_namespace: "jv",
- j2s_overflow: true
+ j2s_overflow: true,
}
</script>
<style>
}
}
.jv_jalviewjsSplashRotate {
- animation: rotation 6s infinite cubic-bezier(0.4, 0.6, 0.6, 0.4);
+ animation-name: rotation;
+ animation-iteration-count: 150;
+ animation-duration: 4s;
+ animation-timing-function: cubic-bezier(0.4, 0.6, 0.6, 0.4);
}
.jv_jalviewjsSplashActive {
display: visible;
opacity: 100%;
+ animation-fill-mode: forwards;
}
.jv_jalviewjsSplashInactive {
- animation-iteration-count: 1;
- animation-fill-mode: forwards;
- opacity: 30%;
+ animation-iteration-count: 2;
+ opacity: 20%;
transition: all 1s;
- z-index: 100;
}
.jv_jalviewjsSplashFinal {
+ animation: none;
+ opacity: 20%;
z-index: -1;
- opacity: 30%;
}
</style>
</head>
<body>
<script>
-SwingJS.getApplet('jalviewjs', Info);
+SwingJS.getApplet('jalviewjs', jv_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;">