Mercurial > hg > GlobalNeighbors
view globalneighbors/templates/index.html @ 10:21ed15391e8a
add a placeholder view for a city based on geoid
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 12:28:36 -0700 |
parents | 254195d0bac2 |
children | d1b99c695511 |
line wrap: on
line source
<!DOCTYPE html> <html> <head> <title>Global Neighbors</title> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $( function() { $( "#cities" ).autocomplete({ source: "/cities", autoFocus: true, minLength: 3, delay: 1500 }); }); </script> </head> <body> <h1>Global Neighbors</h1> <h2>Serving {{ n_cities }} cities</h2> <div class="ui-widget"> <label for="cities">Enter a city: </label> <input id="cities"/> </div> </body> </html>