source: trunk/npemap.org.uk/static/go/index.html @ 524

Last change on this file since 524 was 524, checked in by Nick Burch, 13 years ago

Add /go/, with support for /go/?Oxford to take you straight to Oxford

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1<!--#set var="title" value="New Popular Edition Maps" -->
2<!--#set var="link" value="/go/" -->
3<!--#include virtual="../inc/header.shtml" -->
4<script src="/tiles/yahoo.js" type="text/javascript"></script> 
5<script src="/tiles/dom.js" type="text/javascript"></script> 
6<script src="/tiles/event.js" type="text/javascript"></script> 
7<script src="/tiles/jsr_class.js" type="text/javascript"></script> 
8<script src="/tiles/jscoord-1.1.1.js" type="text/javascript"></script> 
9<script src="/tiles/prototype.js" type="text/javascript"></script>
10<script src="/find.js" type="text/javascript"></script> 
11<script src="/indexPage.js" type="text/javascript"></script> 
12
13<script type="text/javascript">
14// Change the base URL
15ROOTURL = "../";
16
17function pageLoaded() {
18        var whereBox = document.getElementById("where");
19
20        // Was there anything passed in in the url?
21        if(document.location.href.indexOf("?") > -1) {
22                var loc = document.location.href.substring(document.location.href.indexOf("?")+1);
23
24                if(loc.length) {
25                        // Use this as the location, and search
26                        whereBox.value = loc;
27                        find();
28                }
29        }
30}
31
32YAHOO.util.Event.onAvailable("where", pageLoaded);
33</script>
34
35<div id="body">
36
37<h1>Go where?</h1>
38<form name="go" onsubmit="return find()" action="">
39<p>
40<script type="text/javascript">
41document.write(' <label for="where">You can search our maps by place name, by latitude and longitude, by grid reference, and by postcode:</label><br/><input id="where" name="where" /> <input type="submit" name="Zoom To" value="Go" />');
42</script>
43</p>
44
45<div id="geonames_results_window">
46  <div class="close"><a href="javascript:hideGeonamesPopup()" title="close">X</a></div>
47  <div id="geonames_results"></div>
48</div>
49<span class="terms">Place functionality by <a href="http://www.geonames.org/">Geonames</a>.</span>
50</form>
51</div>
52
53</div>
54<!--#include virtual="../inc/footer.shtml" -->
Note: See TracBrowser for help on using the repository browser.