aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2008-03-12 17:06:56 +0000
committermatthew <matthew>2008-03-12 17:06:56 +0000
commit50203e849ee0b3d51ada1bf685841d679f1d6b5e (patch)
tree70fc8113229fdfb13c411e1b08f6907dc4454bc7 /web/js.js
parent4584cd5cd5c7c82a82a268933087c0f6b4cbe3dd (diff)
Allow form to flow round map so looks much better at small screen size; start of micrositing.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js.js b/web/js.js
index 58ca485a0..c732dc52d 100644
--- a/web/js.js
+++ b/web/js.js
@@ -140,7 +140,7 @@ function update_tiles(dx, dy, force) {
drag_y += dy;
var drag = document.getElementById('drag');
- drag.style.left = drag_x + 'px';
+ drag.style.right = drag_x + 'px';
drag.style.top = drag_y + 'px';
var horizontal = Math.floor(old_drag_x/tilewidth) - Math.floor(drag_x/tilewidth);
@@ -182,7 +182,7 @@ function urls_loaded(o) {
}
img = cloneNode();
img.style.top = ((ii-2)*tileheight) + 'px';
- img.style.left = ((jj-2)*tilewidth) + 'px';
+ img.style.right = ((3-jj)*tilewidth) + 'px';
img.name = [ 'tile_', xx, '.', yy ].join('')
img.id = id;
if (browser) {