diff options
author | matthew <matthew> | 2008-05-06 10:01:23 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-05-06 10:01:23 +0000 |
commit | 69c5632cea68018605c5170bc73e8717b3d87be6 (patch) | |
tree | 7e4c8503c3146a615ad49513a063c19763fb6234 /web/js.js | |
parent | ff4bca195d17f827c64515b4afbf8514455fb52b (diff) |
Various i18n changes; watermark; smaller map possibility.
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -26,7 +26,8 @@ function compass_pan(e, a) { YAHOO.util.Event.onContentReady('compass', function() { var ua=navigator.userAgent.toLowerCase(); - if (document.getElementById('mapForm') && /safari/.test(ua)) return; + if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return; + if (document.getElementById('map').offsetWidth > 510) return; var points = this.getElementsByTagName('a'); YAHOO.util.Event.addListener(points[1], 'click', compass_pan, { x:0, y:tileheight }); @@ -43,6 +44,7 @@ YAHOO.util.Event.onContentReady('compass', function() { YAHOO.util.Event.onContentReady('map', function() { var ua=navigator.userAgent.toLowerCase(); if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return; + if (document.getElementById('map').offsetWidth > 510) return; new YAHOO.util.DDMap('map'); update_tiles(start_x, start_y, true); |