Download static/j2s/JSV/appletjs/JSVAppletPro.js from patonlab/cascade: direct link, hf CLI and curl.
- Browser
- Download file 876 Bytes
-
https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/JSV/appletjs/JSVAppletPro.js
- Command line
-
hf download hf://spaces/patonlab/cascade/static/j2s/JSV/appletjs/JSVAppletPro.js
-
curl -L -o JSVAppletPro.js https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/JSV/appletjs/JSVAppletPro.js
876 Bytes
| Clazz.declarePackage ("JSV.appletjs"); | |
| Clazz.load (["JSV.appletjs.JSVApplet"], "JSV.appletjs.JSVAppletPro", ["JSV.app.JSVAppPro"], function () { | |
| c$ = Clazz.decorateAsClass (function () { | |
| this.app0 = null; | |
| Clazz.instantialize (this, arguments); | |
| }, JSV.appletjs, "JSVAppletPro", JSV.appletjs.JSVApplet); | |
| Clazz.overrideMethod (c$, "init", | |
| function () { | |
| this.app = new JSV.app.JSVAppPro (this, false); | |
| this.initViewer (); | |
| }); | |
| Clazz.overrideMethod (c$, "isPro", | |
| function () { | |
| return true; | |
| }); | |
| Clazz.defineMethod (c$, "getAppletInfo", | |
| function () { | |
| return Clazz.superCall (this, JSV.appletjs.JSVAppletPro, "getAppletInfo", []) + " (PRO)"; | |
| }); | |
| Clazz.overrideMethod (c$, "script", | |
| function (script) { | |
| this.runScript (script); | |
| }, "~S"); | |
| Clazz.overrideMethod (c$, "doExitJmol", | |
| function () { | |
| this.app0.setVisible (true); | |
| this.app = this.app0; | |
| }); | |
| }); | |