aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/css/main-emptyhomes.css64
-rw-r--r--web/js.js4
2 files changed, 67 insertions, 1 deletions
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;
+}
+
diff --git a/web/js.js b/web/js.js
index e59b0bb1a..25a9b6770 100644
--- a/web/js.js
+++ b/web/js.js
@@ -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;