diff options
author | matthew <matthew> | 2008-03-12 17:06:56 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-03-12 17:06:56 +0000 |
commit | 50203e849ee0b3d51ada1bf685841d679f1d6b5e (patch) | |
tree | 70fc8113229fdfb13c411e1b08f6907dc4454bc7 /web/js.js | |
parent | 4584cd5cd5c7c82a82a268933087c0f6b4cbe3dd (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.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |