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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 <!DOCTYPE html>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 <html>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 <head>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
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: 6
diff 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: 11
diff 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: 11
diff changeset
7 <!-- <script> -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
8 <!-- $( function() { -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
9 <!-- $( "#cities" ).autocomplete({ -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
10 <!-- source: "/cities", -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
11 <!-- autoFocus: true, -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
12 <!-- minLength: 3, -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
13 <!-- delay: 1500 -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
14 <!-- }); -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
15 <!-- }); -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
16 <!-- </script> -->
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
17 <script src="/js/jquery.easy-autocomplete.min.js"></script>
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
18 <link rel="stylesheet" type="text/css" href="/css/style.css"/>
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff 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: 6
diff changeset
20 <script>
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
21 $( function() {
12
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
22 var options = {
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
23 url: "/cities",
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
24 list: {
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
25 match: {
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
26 enabled: true
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
27 }
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
28 }
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
29 };
6d89ea94930b add passthrough fileserver for autocomplete
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff 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: 6
diff changeset
31 });
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
32 </script>
6
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 </head>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 <body>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 <h1>Global Neighbors</h1>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
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: 6
diff changeset
37
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff 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: 6
diff 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: 6
diff 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: 6
diff changeset
41 </div>
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
42
6
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43 </body>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44 </html>