Mercurial > hg > GlobalNeighbors
annotate globalneighbors/templates/index.html @ 12:6d89ea94930b
add passthrough fileserver for autocomplete
| author | Jeff Hammel <k0scist@gmail.com> | 
|---|---|
| date | Sun, 25 Jun 2017 13:18:13 -0700 | 
| parents | d1b99c695511 | 
| children | 94af113e498a | 
| rev | line source | 
|---|---|
| 6 | 1 <!DOCTYPE html> | 
| 2 <html> | |
| 3 <head> | |
| 4 <title>Global Neighbors</title> | |
| 7 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 5 <script src="https://code.jquery.com/jquery-1.12.4.js"></script> | 
| 12 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 6 <!-- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 7 <!-- <script> --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 8 <!-- $( function() { --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 9 <!-- $( "#cities" ).autocomplete({ --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 10 <!-- source: "/cities", --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 11 <!-- autoFocus: true, --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 12 <!-- minLength: 3, --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 13 <!-- delay: 1500 --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 14 <!-- }); --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 15 <!-- }); --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 16 <!-- </script> --> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 17 <script src="/js/jquery.easy-autocomplete.min.js"></script> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 18 <link rel="stylesheet" type="text/css" href="/css/style.css"/> | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 19 <link rel="stylesheet" type="text/css" href="/css/easy-autocomplete.css"/> | 
| 7 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 20 <script> | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 21 $( function() { | 
| 12 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 22 var options = { | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 23 url: "/cities", | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 24 list: { | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 25 match: { | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 26 enabled: true | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 27 } | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 28 } | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 29 }; | 
| 
6d89ea94930b
add passthrough fileserver for autocomplete
 Jeff Hammel <k0scist@gmail.com> parents: 
11diff
changeset | 30 $( "#cities" ).easyAutocomplete(options); | 
| 7 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 31 }); | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 32 </script> | 
| 6 | 33 </head> | 
| 34 <body> | |
| 35 <h1>Global Neighbors</h1> | |
| 36 <h2>Serving {{ n_cities }} cities</h2> | |
| 7 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 37 | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 38 <div class="ui-widget"> | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 39 <label for="cities">Enter a city: </label> | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 40 <input id="cities"/> | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 41 </div> | 
| 
254195d0bac2
partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
 Jeff Hammel <k0scist@gmail.com> parents: 
6diff
changeset | 42 | 
| 6 | 43 </body> | 
| 44 </html> | 
