diff options
-rw-r--r-- | perllib/Page.pm | 4 | ||||
-rw-r--r-- | templates/website/emptyhomes-footer | 16 | ||||
-rw-r--r-- | templates/website/emptyhomes-header | 78 | ||||
-rw-r--r-- | web/css/main-emptyhomes.css | 64 | ||||
-rw-r--r-- | web/js.js | 4 |
5 files changed, 163 insertions, 3 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm index 5d2a3b8b2..0a45426f8 100644 --- a/perllib/Page.pm +++ b/perllib/Page.pm @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: Page.pm,v 1.89 2008-04-14 16:05:57 matthew Exp $ +# $Id: Page.pm,v 1.90 2008-04-14 17:10:51 matthew Exp $ # package Page; @@ -257,7 +257,7 @@ EOF $out .= <<EOF; <script type="text/javascript"> var x = $x - 2; var y = $y - 2; -var drag_x = $px; var drag_y = $py; +var start_x = $px; var start_y = $py; </script> <div id="map_box"> $params{pre} diff --git a/templates/website/emptyhomes-footer b/templates/website/emptyhomes-footer new file mode 100644 index 000000000..ac663ed8f --- /dev/null +++ b/templates/website/emptyhomes-footer @@ -0,0 +1,16 @@ +</div> + +<div id="footer"> +<div id="address1">Empty Homes Agency <br> +Downstream Building, 1 London Bridge, London, SE1 9BG +<br> +Tel: 020 7022 1870 <br> +Fax: 020 7681 3214 <br> +Email: <a href="mailto:info@emptyhomes.com">info@emptyhomes.com</a></div> +<div id="address2"></div> +</div> +</div> + +</body> +</html> + diff --git a/templates/website/emptyhomes-header b/templates/website/emptyhomes-header new file mode 100644 index 000000000..79728aa16 --- /dev/null +++ b/templates/website/emptyhomes-header @@ -0,0 +1,78 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en-gb"> +<head> +<title><!-- TITLE -->Empty Homes Agency</title> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +<script type="text/javascript" src="/yui/utilities.js"></script> +<script type="text/javascript" src="/js.js"></script> +<link href="http://www.emptyhomes.com/eha2.css" rel="stylesheet" type="text/css"> +<style type="text/css" media="screen, projection"> +@import "/css/core.css"; +@import "/css/main-emptyhomes.css"; +/* +@import "/css/scambs.css"; +*/ +</style> +<!-- RSS --> +</head> +<body> + +<div id="header"> +<div id="logo"><img src="http://www.emptyhomes.com/siteimages/logo%20col%20300dpi%20copy.jpg" alt="Empty Homes Agency" width="350" height="91"></div> +<div id="search"> +<form method="get" action="http://www.google.com/custom"> +<input name="domains" value="www.emptyhomes.com" type="hidden"> +<p id="searchbox"><input name="q" style="width: 200px;" maxlength="255" value="" type="text"><input name="sa" value="Search" type="submit"></p> +<p> +<input name="sitesearch" value="" checked="checked" type="radio"> +<small>Web +<input name="sitesearch" value="www.emptyhomes.com" type="radio"> +www.emptyhomes.com</small></p> +<input name="client" value="pub-5676236325709660" type="hidden"> +<input name="forid" value="1" type="hidden"> +<input name="ie" value="UTF-8" type="hidden"> +<input name="oe" value="UTF-8" type="hidden"> +<input name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;" type="hidden"> +<input name="hl" value="en" type="hidden"> + +</form> +</div> +</div> + +<div id="smallnav"> +<a href="http://www.emptyhomes.com/">Home</a> | <a href="http://www.emptyhomes.com/contact_us.html">Contact Us</a> | <a href="http://www.emptyhomes.com/sitemap.html">Site Map</a> | <a href="http://www.emptyhomes.com/disclaimer.html">Disclaimer</a> </div> +<div id="main"><div id="left"> +<ul> +<li><a href="http://www.emptyhomes.com/aboutus/about_us.html">What We Do </a></li> +<ol> +<li><a href="http://www.emptyhomes.com/aboutus/whatwedo/what_we_do.html">What We Do</a></li> +<li><a href="http://www.emptyhomes.com/aboutus/projects.html">Projects</a></li> +<li><a href="http://www.emptyhomes.com/aboutus/latestnews/latest_news.html">Latest News</a></li> +<li><a href="http://www.emptyhomes.com/aboutus/events.html">Events</a></li> +<li><a href="http://www.emptyhomes.com/aboutus/jobs.html">Jobs</a></li> +<li><a href="http://www.emptyhomes.com/aboutus/volunteer.html">Volunteer</a></li> +<li><a href="http://www.emptyhomes.com/aboutus/finance.html">Finance</a></li> +</ol> +<li><a href="http://www.emptyhomes.com/rescue/buying_empties.html">Rescue An Empty Property</a></li> +<li><a href="http://www.emptyhomes.com/resources/papers_publications/publications.html">Papers & Publications </a></li> +</ul> + +<div id="toptitle">See Also</div> +<div id="topbox"> +<ul> +<li><a href="http://www.emptyhomes.com/aboutus/hotline.html">London Empty Property Hotline</a></li> +</ul> +</div> +<div id="bottomtitle">Useful Links </div> +<div id="bottombox"> +<ul> +<li><a href="http://www.emptyhomes.com/resources/useful_contacts.html">Useful Contacts</a></li> +</ul> +</div> + +</div> + +<div id="right"> +</div> + +<div id="middle"> diff --git a/web/css/main-emptyhomes.css b/web/css/main-emptyhomes.css new file mode 100644 index 000000000..5e8422601 --- /dev/null +++ b/web/css/main-emptyhomes.css @@ -0,0 +1,64 @@ +#map_box { + width: 380px; +} +#map, #drag { + width: 378px; + height: 378px; +} + +#toptitle { + margin-top: 0.5em; +} +#middle { + width: 570px; +} +#middle p { + width: 580px; +} +#middle p#copyright { + width: auto; +} + +#left #topbox a, #left #bottombox a { + color: #30517A; + font-weight: normal; + background-color: inherit; +} + +#header, #smallnav, #main { + margin: 0 auto; +} + +#search p { + text-align: right; + font-family: Verdana, Arial, Helvetica, sans-serif; + color: #000000; + margin: 0; +} +#search p#searchbox { + margin: 0.5em 0 0.25em; +} + +#left ol { + padding: 0; +} + +blockquote { + border-left: solid 4px #013B63; +} + +.a { + color: #000000; + background-color: #427499; +} + +#postcodeForm, #front_stats div { + background-color: #80AE7D; + color: #000000; +} + +#front_stats div { + padding: 0.5em 0; + width: 6em; +} + @@ -45,7 +45,7 @@ YAHOO.util.Event.onContentReady('map', function() { if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return; new YAHOO.util.DDMap('map'); - update_tiles(0, 0, true); + update_tiles(start_x, start_y, true); }); YAHOO.util.Event.onContentReady('mapForm', function() { @@ -222,6 +222,8 @@ function pan(x, y) { } } +var drag_x = 0; +var drag_y = 0; function update_tiles(dx, dy, force) { dx = getInt(dx); dy = getInt(dy); if (!dx && !dy && !force) return; |