JAL-4236 don’t look for headers in JalviewJS
[jalview.git] / examples / linkedapplets_ng.html
1 <!--
2  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3  * Copyright (C) $$Year-Rel$$ The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
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.
10  *  
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.
15  * 
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.
18 -->
19
20 <div id="view_decorated" name="view_decorated"  style="margin:8px; padding:10px; border: 2px solid red; text-align:center; display:none;"><b>Click <a href="index.html#linkedapplets_ng"> here</a> to view decorated page</b></div>
21
22 <!-- boiler plate link to alternate demopage -->
23 <div style="width: 100%">
24 <div style="width:35%; align:left; float:right;">
25
26 </div>
27 </div>
28
29
30
31
32
33 <!-- content template start -->
34
35     <h2>JalviewLite Linked Applets Demo</h2>
36     <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.
37     <a href="view-source:http://www.jalview.org/builds/develop/examples/linkedapplets_ng.html" target="_blank">View the source here to see how it has been done</a>  (If the link doesn't work on your browser try going to <a href="http://www.jalview.org/builds/develop/examples/linkedapplets_ng.html">this page</a> and viewing the page source manually).</p>
38
39
40 <applet
41    code="jalview.bin.JalviewLite" width="800" height="300" id="jvapp" mayscript="True" scriptable="True" archive="jalviewApplet.jar,JmolApplet-14.6.4_2016.10.26.jar,java-json.jar,json_simple-1.1.jar">
42 <param name="oninit" value="lJvApp"/>
43 <param name="automaticScrolling" value="true"/>
44 <param name="file" value="plantfdx.fa"/>
45 <param name="annotations" value="plantfdx.annotations"/>
46 <param name="debug" value="true"/>
47 <param name="wrap" value="false"/>
48 <param name="showAnnotation" value="true"/>
49 <param name="embedded" value="true"/>
50 <param name="showFullId" value="false"/>
51 <param name="RGB" value="F2F2FF"/>
52 <param name="linkLabel_1" value="EMBL-EBI Search"/>
53 <param name="linkUrl_1" value="http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"/>
54 <param name="linkLabel_2" value="Uniprot"/>
55 <param name="linkUrl_2" value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$"/>
56 <param name="permissions" value="sandbox"/>
57 <param name="APPLICATION_URL" value="http://www.jalview.org/services/launchApp"/>
58 </applet>
59
60
61
62
63 <applet
64    code="jalview.bin.JalviewLite" width="800" height="300" id="jvfollower" mayscript="True" scriptable="True" archive="jalviewApplet.jar,JmolApplet-14.6.4_2016.10.26.jar,java-json.jar,json_simple-1.1.jar">
65 <param name="oninit" value="lJvFollow"/>
66 <param name="file" value="plantfdx.fa"/>
67 <param name="annotations" value="plantfdx.annotations"/>
68 <param name="automaticScrolling" value="true"/>
69 <param name="debug" value="true"/>
70 <param name="wrap" value="false"/>
71 <param name="showAnnotation" value="true"/>
72 <param name="embedded" value="true"/>
73 <param name="showFullId" value="false"/>
74 <param name="RGB" value="F2F2FF"/>
75 <param name="linkLabel_1" value="EMBL-EBI Search"/>
76 <param name="linkUrl_1" value="http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"/>
77 <param name="linkLabel_2" value="Uniprot"/>
78 <param name="linkUrl_2" value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$"/>
79 <param name="permissions" value="sandbox"/>
80 <param name="APPLICATION_URL" value="http://www.jalview.org/services/launchApp"/>
81 </applet>
82
83
84     <p>
85 <!--      <a href="javascript:linkJvJmol()">Click Me If you don't see any messages below</a>
86       <br>
87        -->
88 <form name="console" id="console">
89 <textarea name="output"
90         id="stdout" rows="20" cols="80">Messages  will appear here.</textarea></form>
91       <br>
92 </p>
93 <!-- content template end -->