From b5c85133ec6760a5f4b9ea49d074ec37f044112d Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Fri, 14 Sep 2012 03:51:10 +0200 Subject: [PATCH] hide copyright field as well, but make sure it's shown when we change maps and might change this text --- index.html | 2 +- js/map.js | 1 + style/lantea.css | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 7a0753d..2bfb6b5 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ Map style:

- + Please use a browser that supports <canvas> elements. diff --git a/js/map.js b/js/map.js index d07cd74..dd3b573 100644 --- a/js/map.js +++ b/js/map.js @@ -187,6 +187,7 @@ function setMapStyle() { gTiles = {}; document.getElementById("copyright").innerHTML = gMapStyles[gActiveMap].copyright; + showUI(); drawMap(); } } diff --git a/style/lantea.css b/style/lantea.css index 823745a..d1ca01e 100644 --- a/style/lantea.css +++ b/style/lantea.css @@ -105,6 +105,9 @@ h1 { padding: 0 3px; } +#copyright.hidden { + opacity: 0; +} @media screen and (max-width: 500px) { body { -- 2.35.3