-
-<div id="pageWrap">
-
-<div id="sideNav">
-<ul>
-<li><a href="applets.html">JalviewLite Examples</a></li>
-<li><a href="appletParameters.html">Applet Parameters</a></li>
-<li><a href="jalviewLiteJs.html">Javascript API</a></li>
-<li class="jvlite-nav-small"><a href="formComplete.html">in-page API demo</a></li>
-<li><a href="linkedapplets_ng.html">Two JalviewLites demo</a></li>
-<li><a href="embeddedWJmol.html">Jalview and Jmol demo</a></li>
-</ul>
-</div>
-
-<div id="content" class="content">
- <strong>Using the <a href="jalviewLiteJs.html">JalviewLite API</a> to fill out forms using data from JalviewLite<br></strong>
- Click the Javascript buttons below to interact with the Applet
- instance on the page.<br>
- View the source in your browser to see how it has been done. <br>
- <a name="api">View the full <a href="jalviewLiteJs.html">JalviewLite API documentation</a>.</a>
- <applet code="jalview.bin.JalviewLite" width="140" height="35"
- archive="jalviewApplet.jar" name="Jalview">
- <param name="file" value="plantfdx.fa">
- <param name="features" value="plantfdx.features">
- <param name="wrap" value="true">
- <param name="showAnnotation" value="false">
- <param name="windowHeight" value="500">
- <param name="windowWidth" value="650">
- <param name="showFullId" value="false">
- <param name="linkLabel_1" value="Uniprot">
- <param name="linkUrl_1"
- value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$">
- <param name="linkLabel_2" value="Expasy">
- <param name="linkUrl_2"
- value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$">
-<param name="hidefeaturegroups" value="uniprot" />
- <param name="showbutton" value="false" />
- </applet>
- <form name="exampleForm"><br>
- <br>
- <center><strong>Using the Jalview Applet for Input
- to an HTML Form</strong></center>
- <div align="center"><input type="button"
- onClick="document.forms.exampleForm.exampleTextarea.value=document.applets.Jalview.getAlignment('fasta', 'false')"
- value="Fill Form from Jalview" /> <br>
- <br>
- <textarea name="exampleTextarea" cols="55" rows="9"></textarea></div>
- </form>
- <center><strong>Make a new View and Get and Set
- Group Display List</strong></center>
- <form name="groupForm">
- <div align="center"><input type="button"
- onClick="document.forms.groupForm.groups.value=document.applets.Jalview.getFeatureGroups()"
- value="Get groups" /> <input type="button"
- onClick="document.applets.Jalview.newView()" value="new View" /> <br>
- <textarea name="groups" cols="55" rows="9"></textarea> <br>
- <input type="button"
- onClick="document.applets.Jalview.setFeatureGroupState(document.forms.groupForm.groups.value, true)"
- value="Display groups" /> <input type="button"
- onClick="document.applets.Jalview.setFeatureGroupState(document.forms.groupForm.groups.value, false)"
- value="Hide groups" /></div>
- </form>
- </div>
-
-<div id ="footer">
-<div id="innerFooter">
-<div id="copyright"><p>Copyright all rights reserved 2012</p></div>
-<div id="cite">
-<p>
-If you use Jalview in your work, please cite this publication:
-</p>
-<br />
-<p>
-Waterhouse, A.M., Procter, J.B., Martin, D.M.A, Clamp, M. and Barton, G. J. (2009)
-"Jalview Version 2 - a multiple sequence alignment editor and analysis workbench"
-Bioinformatics 25 (9) 1189-1191 doi: 10.1093/bioinformatics/btp033
-</p>
-</div>
-</div>
+<!-- content template start -->
+<h2><a href="javascript:doSubmit('jalviewLiteJs')">JalviewLite API</a> Demo</h2>
+<p>Using the Javascript API to fill out forms using data from JalviewLite
+<br/>Click the Javascript buttons below to interact with the Applet
+instance on the page.</p>
+ <a href="view-source:http://www.jalview.org/builds/develop/examples/formComplete.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/formComplete.html">this page</a> and viewing the page source manually).<br/>
+<a name="api">View the full <a href="javascript:doSubmit('jalviewLiteJs')">JalviewLite API documentation</a>.</a>
+<applet code="jalview.bin.JalviewLite" width="0" height="0"
+ archive="jalviewApplet.jar,JmolApplet-14.6.4_2016.10.26.jar,java-json.jar,json_simple-1.1.jar" name="Jalview">
+
+ <param name="file" value="plantfdx.fa"/>
+ <param name="features" value="plantfdx.features"/>
+ <param name="wrap" value="true"/>
+ <param name="showAnnotation" value="false"/>
+ <param name="windowHeight" value="500"/>
+ <param name="windowWidth" value="650"/>
+ <param name="showFullId" value="false"/>
+ <param name="linkLabel_1" value="Uniprot"/>
+ <param name="linkUrl_1"
+ value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$"/>
+ <param name="linkLabel_2" value="Expasy">
+ <param name="linkUrl_2"
+ value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$"/>
+ <param name="hidefeaturegroups" value="uniprot" />
+ <param name="showbutton" value="false" />
+</applet>
+<form name="exampleForm"><br/>
+ <br/>
+ <center><strong>Using the Jalview Applet for Input
+ to an HTML Form</strong></center>
+ <div align="center"><input type="button"
+ onClick="document.forms.exampleForm.exampleTextarea.value=document.applets.Jalview.getAlignment('fasta', 'false')"
+ value="Fill Form from Jalview" /> <br/>
+ <br/>
+ <textarea name="exampleTextarea" cols="55" rows="9"></textarea></div>
+</form>
+<center><strong>Make a new View and Get and Set
+ Group Display List</strong></center>
+<form name="groupForm">
+ <div align="center"><input type="button"
+ onClick="document.forms.groupForm.groups.value=document.applets.Jalview.getFeatureGroups()"
+ value="Get groups" /> <input type="button"
+ onClick="document.applets.Jalview.newView()" value="new View" /> <br/>
+ <textarea name="groups" cols="55" rows="9"></textarea> <br/>
+ <input type="button"
+ onClick="document.applets.Jalview.setFeatureGroupState(document.forms.groupForm.groups.value, true)"
+ value="Display groups" /> <input type="button"
+ onClick="document.applets.Jalview.setFeatureGroupState(document.forms.groupForm.groups.value, false)"
+ value="Hide groups" /></div>
+</form>