hide copyright field as well, but make sure it's shown when we change maps and might...
authorRobert Kaiser <kairo@kairo.at>
Fri, 14 Sep 2012 01:51:10 +0000 (03:51 +0200)
committerRobert Kaiser <kairo@kairo.at>
Fri, 14 Sep 2012 01:51:10 +0000 (03:51 +0200)
index.html
js/map.js
style/lantea.css

index 7a0753d..2bfb6b5 100644 (file)
@@ -54,7 +54,7 @@ Map style:
 </div>
 
 <p id="debug" class="debugHide"></p>
-<p id="copyright"></p>
+<p id="copyright" class="overlayArea"></p>
 
 <canvas id="map" width="500" height="500">
   Please use a browser that supports &lt;canvas&gt; elements.
index d07cd74..dd3b573 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -187,6 +187,7 @@ function setMapStyle() {
     gTiles = {};
     document.getElementById("copyright").innerHTML =
         gMapStyles[gActiveMap].copyright;
+    showUI();
     drawMap();
   }
 }
index 823745a..d1ca01e 100644 (file)
@@ -105,6 +105,9 @@ h1 {
   padding: 0 3px;
 }
 
+#copyright.hidden {
+  opacity: 0;
+}
 
 @media screen and (max-width: 500px) {
   body {