from zipTree(file_zip)
into "${jalviewDir}/${jalviewjsTransferSiteLibDir}"
+ // rename files in jsmol/j2s/... to swingjs/j2s/...
+ if (file_zip.getName().startsWith("Jmol-j2s-site")) {
+ eachFile { fcd ->
+ // jsmol/... -> swingjs/...
+ def relPathSegments = fcd.relativePath.getSegments()
+ if (relPathSegments[0] == "jsmol") {
+ def newRelPathSegments = relPathSegments
+ newRelPathSegments[0] = "swingjs"
+ fcd.relativePath = new RelativePath(true, newRelPathSegments)
+ }
+ }
+ }
+
// The following replace() is needed due to a mismatch in Jmol calls to
// colorPtToFFRGB$javajs_util_T3d when only colorPtToFFRGB$javajs_util_T3 is defined
// in the SwingJS.zip (github or the one distributed with JSmol)
code: null,
main: "jalview.bin.JalviewJS",
core: "_jalview",
- width: 850,
- height: 550,
+ j2s_x: 100,
+ j2s_y: 100,
+ width: 200,
+ height: 100,
readyFunction: null,
serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
j2sPath: 'swingjs/j2s',
console:'sysoutdiv',
allowjavascript: true,
- // all j2s_... values can be accessed in Jalview.getInstance().getJSInfoValue(key)
+ // all j2s_... values can be accessed in JalviewJSUtil.getInstance().getJSInfoValue(key)
j2s_namespace: "jv",
j2s_overflow: true
}
transform: rotate(360deg);
}
}
-@keyframes pulse {
- 0% {
- transform: scale(1);
- }
- 50% {
- transform: scale(0.85);
- }
- 100% {
- transform: scale(1);
- }
-}
-.jv1_jalviewjsSplashRotate {
- animation: rotation 3s infinite cubic-bezier(0.4, 0.6, 0.6, 0.4);
-}
-.jv1_jalviewjsSplashActive {
- display: visible;
- opacity: 100%;
- z-index: 100;
-}
-.jv1_jalviewjsSplashInactive {
- opacity: 0%;
- transition: opacity 1s;
- z-index: 100;
-}
-.jv1_jalviewjsSplashFinal {
- display: none;
-}
-
.jv_jalviewjsSplashRotate {
- animation: pulse 1s cubic-bezier(0.4, 0.6, 0.6, 0.4);
- animation-iteration-count: infinite;
- animation-fill-mode: forwards;
+ animation: rotation 6s infinite cubic-bezier(0.4, 0.6, 0.6, 0.4);
}
.jv_jalviewjsSplashActive {
- z-index: 100;
+ display: visible;
+ opacity: 100%;
}
.jv_jalviewjsSplashInactive {
animation-iteration-count: 1;
z-index: -1;
opacity: 30%;
}
-
</style>
</head>
<body>
</script>
<div style="position:absolute;left:10px;top:10px;width:640px;height:1200px;">
<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;">
-<div id="jv:jalviewjsSplash" class="jv_jalviewjsSplashRotate jv_jalviewjsSplashActive" style="position: absolute; right: 1rem; top: 1rem;">
+<div id="jv:jalviewjsSplash" class="jv_jalviewjsSplashRotate jv_jalviewjsSplashActive" style="position: absolute; right: 1rem; top: 1rem; z-index: 1000;">
<img style="width; 2rem; height: 2rem;" src="images/jalview_logo_small.svg" />
</div>
</div>
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",
+ main: "jalview.bin.JalviewJS",
core: "NONE",
- width: 850,
- height: 550,
+ j2s_x: 100,
+ j2s_y: 100,
+ width: 200,
+ height: 100,
readyFunction: null,
serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
j2sPath: 'swingjs/j2s',
console:'sysoutdiv',
allowjavascript: true,
- // all j2s_... values can be accessed in Jalview.getInstance().getJSInfoValue(key)
+ // all j2s_... values can be accessed in JalviewJSUtil.getInstance().getJSInfoValue(key)
j2s_namespace: "jv",
j2s_overflow: true
}
opacity: 100%;
}
.jv_jalviewjsSplashInactive {
- opacity: 0%;
- transition: opacity 1s;
+ animation-iteration-count: 1;
+ animation-fill-mode: forwards;
+ opacity: 30%;
+ transition: all 1s;
+ z-index: 100;
}
.jv_jalviewjsSplashFinal {
- display: none;
+ z-index: -1;
+ opacity: 30%;
}
</style>
</head>