Skip to content

Commit

Permalink
Update demo.html
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Apr 20, 2020
1 parent 6aeda59 commit 826baf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/static/widget/autocomplete/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<label for="gene_query">Enter a gene here: </label>
<input id="gene_query" style="width:250px" class="mygene_query_target">

<script src="http://mygene.info/widget/autocomplete/js/mygene_query_min.js" type="text/javascript"></script>
<script src="//mygene.info/widget/autocomplete/js/mygene_query_min.js" type="text/javascript"></script>
<script type="text/javascript">
//When a gene is selected from the autocomplete dropdown, this callback function will be called.
//Overwrite this function to define your own desired behavior.
Expand All @@ -22,14 +22,14 @@
<h2> Autocomplete widget for gene query</h2>
<p>This Autocomplete widget for gene query provides suggestions while you type a gene symbol or name into the field. Here the gene suggestions are displayed as "&lt;Symbol&gt;:&lt;Name&gt;", automatically triggered when at least two characters are entered into the field.</p>

<p>This widget is powered by "<a href="http://http://mygene.info">mygene.info</a>" web service. By default, the gene suggestions are limited to human genes only. We will enable more customization options to allow queries against other species soon.
<p>This widget is powered by "<a href="https://mygene.info">mygene.info</a>" web service. By default, the gene suggestions are limited to human genes only. We will enable more customization options to allow queries against other species soon.
</p>

<p>To use this widget in your own website is very easy, just following these three steps:</p>
<ol>
<li>Copy/paste this line into your html file.</li>
<pre>
&lt;script src="http://mygene.info/widget/autocomplete/js/mygene_query_min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="//mygene.info/widget/autocomplete/js/mygene_query_min.js" type="text/javascript"&gt;&lt;/script&gt;
</pre>
<li>Add "mygene_query_target" class to your target input element.</li>
<pre>
Expand Down

0 comments on commit 826baf9

Please sign in to comment.