annotate globalneighbors/templates/index.html @ 7:254195d0bac2

partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
author Jeff Hammel <k0scist@gmail.com>
date Sun, 25 Jun 2017 09:13:48 -0700
parents 316e1d54ffd4
children 21ed15391e8a
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>
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
6 <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></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
7 <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
8 $( function() {
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
9 $( "#cities" ).autocomplete({
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
10 source: "/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
11 autoFocus: true,
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
12 minLength: 3,
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
13 delay: 3000
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
14 });
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
15 });
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
16 </script>
6
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 </head>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 <body>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 <h1>Global Neighbors</h1>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 <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
21
254195d0bac2 partial implementation of autocomplete using jqueryui; easyautocomplete.com may be more what we want
Jeff Hammel <k0scist@gmail.com>
parents: 6
diff changeset
22 <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
23 <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
24 <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
25 </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
26
6
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 </body>
316e1d54ffd4 move to jinja templates
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 </html>