X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=utils%2Fjalviewjs%2Fsite-resources%2Fjavascript%2Fjvcontroller.js;fp=utils%2Fjalviewjs%2Fsite-resources%2Fjavascript%2Fjvcontroller.js;h=8116e602e32014b33c8cc98f2f261855b23f54d1;hb=ec8f3cedf60fb1feed6d34de6b49f6bfa78b9dd8;hp=0000000000000000000000000000000000000000;hpb=056dad85a910551cc95e44d451a61f6b8c4dd35d;p=jalview.git
diff --git a/utils/jalviewjs/site-resources/javascript/jvcontroller.js b/utils/jalviewjs/site-resources/javascript/jvcontroller.js
new file mode 100644
index 0000000..8116e60
--- /dev/null
+++ b/utils/jalviewjs/site-resources/javascript/jvcontroller.js
@@ -0,0 +1,220 @@
+/**
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of
+ * the GNU General Public License along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
+
+
+$(document).ready(function() {
+ processAllAppletElements();
+});
+
+
+
+ var currentPage = "applets";
+
+ function processAllAppletElements() {
+ var apps = document.getElementsByTagName("applet");
+ for (var i = apps.length; --i >= 0;) {
+ processAppletElement(apps[i]);
+ }
+ }
+
+ var jvid = 0;
+
+ function testBtn(e) {
+ var element = e.target.appletElement;
+ var text = element.outerHTML;
+
+ //var
+ var Info = self.JalviewInfo || {
+ 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
+}
+
+var id = "JVApplet" + jvid++;
+var args = text.replace(/[\n\t]/g, " ").split("