Changeset 488 for trunk


Ignore:
Timestamp:
Mar 15, 2007, 8:59:48 AM (13 years ago)
Author:
David Sheldon
Message:

Tell them the tile server is back

Location:
trunk/npemap.org.uk/static
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/.htaccess

    r231 r488  
    1 AddOutputFilter INCLUDES .html
     1AddOutputFilter INCLUDES html
  • trunk/npemap.org.uk/static/find.js

    r453 r488  
    1010function find() {
    1111  var where = $('where').value;
    12   if (where.length > 0) {
    13     if (where.toUpperCase().match(/^([A-Z]+\d+[A-Z]?)\s*(\d[A-Z][A-Z])?$/)) {
     12  var aObj;
     13  var request;
     14  if(where.length > 0) {
     15    if(where.toUpperCase().match(/^([A-Z]+\d+[A-Z]?)\s*(\d[A-Z][A-Z])?$/)) {
    1416      request = "/cgi/geocoder.fcgi?postcode=" + encodeURIComponent(where) + "&callback=postcodeLoc&format=js";
    15       if (typeof urchinTracker == 'function') urchinTracker('/postcodeSearch');
    16      
    17     } else {
    18       request = 'http://ws.geonames.org/searchJSON?name=' +  encodeURIComponent(where)  + '&callback=getLocation&country=GB&fclass=P&fclass=T&style=SHORT';
    19       if (typeof urchinTracker == 'function') urchinTracker('/nameSearch');
     17      if(typeof urchinTracker == 'function') urchinTracker('/postcodeSearch');
     18
     19    }
     20    else {
     21      request = 'http://ws.geonames.org/searchJSON?name=' + encodeURIComponent(where) + '&callback=getLocation&country=GB&fclass=P&fclass=T&style=SHORT';
     22      if(typeof urchinTracker == 'function') urchinTracker('/nameSearch');
    2023    }
    2124    aObj = new JSONscriptRequest(request);
     
    8689
    8790function formatDeg(num) {
    88   var text = (Math.floor(num * 10)/10) + "\u00B0 ";
    89   return text;
     91  return (Math.floor(num * 10)/10) + "\u00B0 ";
    9092}
    9193
  • trunk/npemap.org.uk/static/index.html

    r486 r488  
    4747
    4848<div >
    49 <span style="color: red">Sorry guys, the tile server is broken again, it'll be fixed soon.</span>
     49<span style="color: blue">Tile server back up. We're hoping that it wont break tomorrow.</span>
    5050</div>
    5151
  • trunk/npemap.org.uk/static/tiles/map.html

    r486 r488  
    136136  <div id="status" name="status" >
    137137
    138 <p><span style="color: red">Sorry guys, the tile server is broken again, it'll be fixed soon.</span></p>
     138<p><span style="color: blue">Tile server is back up, sorry for the problems.</span></p>
    139139  </div>
    140140</div>
Note: See TracChangeset for help on using the changeset viewer.