2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 <!-- boiler plate link to alternate demopage -->
21 <div style="width: 100%">
22 <div style="width:35%; align:left; float:right;">
23 <div style="margin:8px; padding:10px; border: 2px solid black; align: left;">
24 <p>Quick Links to jars for example:<br/><a href="jalviewApplet.jar">jalviewApplet.jar</a> and <a href="JmolApplet-12.2.4.jar">JmolApplet.jar</a>
29 <!-- content template start -->
30 <script src="javascript/deployJava.js"></script>
31 <script src="javascript/jshashtable-2.1.js" language="javascript"></script>
32 <script src="javascript/jalview.js" language="javascript"></script>
33 <script> //deployJava.debug="true";
36 var jvapp = document.getElementById("jvapp");
37 var jvfollower = document.getElementById("jvfollower");
38 setConsole(document.getElementById("stdout"));
39 //jvapp.setSeparator(""+jvapp.getSeparator());
43 function lJvFollow() {
44 var jvapp = document.getElementById("jvapp");
45 var jvfollower = document.getElementById("jvfollower");
46 //jvfollower.setSeparator(""+jvfollower.getSeparator());
47 linkJvJmol(jvfollower);
50 <h2>JalviewLite Linked Applets Demo</h2>
51 <p>The two applets below use <a href="javascript:doSubmit('jalviewLiteJs')">JalviewLite's javascript API</a> to exchange events about the currently selected region and mouse position in the alignment.
55 code : 'jalview.bin.JalviewLite',
56 archive : 'jalviewApplet.jar,JmolApplet-12.2.4.jar',
59 mayscript : 'True', scriptable: 'True',
64 automaticScrolling : "true",
66 annotations : "plantfdx.annotations",
70 showAnnotation : "true",
74 linkLabel_1 : "EMBL-EBI Search",
75 linkUrl_1 : "http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"
77 linkLabel_2 : "Uniprot"
79 linkUrl_2 : "http://www.uniprot.org/uniprot/$SEQUENCE_ID$",
80 permissions : 'sandbox',
81 APPLICATION_URL : "http://www.jalview.org/services/launchApp"
84 deployJava.runApplet(attributes, parameters, '1.6');
88 code : 'jalview.bin.JalviewLite',
89 archive : 'jalviewApplet.jar,JmolApplet-12.2.4.jar',
92 mayscript : 'True', scriptable: 'True',
98 annotations : "plantfdx.annotations",
99 automaticScrolling : "true",
103 showAnnotation : "true",
105 showFullId : "false",
107 linkLabel_1 : "EMBL-EBI Search",
108 linkUrl_1 : "http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"
110 linkLabel_2 : "Uniprot",
111 linkUrl_2 : "http://www.uniprot.org/uniprot/$SEQUENCE_ID$",
112 permissions : 'sandbox',
113 APPLICATION_URL : "http://www.jalview.org/services/launchApp"
115 deployJava.runApplet(attributes, parameters, '1.6');
118 <!-- <a href="javascript:linkJvJmol()">Click Me If you don't see any messages below</a>
121 <form name="console" id="console">
122 <textarea name="output"
123 id="stdout" rows="20" cols="80">Messages will appear here.</textarea></form>
126 <!-- content template end -->