kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Timezone, Radar, Grid Overlay buttons now gray when not enabled
rodzic
5d30d2effc
commit
0b9404423c
|
@ -690,13 +690,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
<img src="./img/log_local.png" class="buttonImg" />
|
||||
</div>
|
||||
<div id="timezoneButton" onclick="toggleTimezones()" class="iconButton" title="Toggle Timezone Layer">
|
||||
<img src="./img/timezone-button.png" class="buttonImg" />
|
||||
<img id="timezoneImg" src="./img/timezone-button.png" class="buttonImg" />
|
||||
</div>
|
||||
<div id="radarButton" onclick="toggleNexrad()" class="iconButton" title="Toggle US Nexrad">
|
||||
<img src="./img/radar-button.png" class="buttonImg" />
|
||||
<img id="radarImg" src="./img/radar-button.png" class="buttonImg" />
|
||||
</div>
|
||||
<div id="gridOverlayButton" onclick="toggleAllGrids()" class="iconButton" title="Toggle All Grid Overlay">
|
||||
<img src="./img/grid-overlay.png" class="buttonImg" />
|
||||
<img id="gridOverlayImg" src="./img/grid-overlay.png" class="buttonImg" />
|
||||
</div>
|
||||
<div id="gtFlagButton" onclick="toggleGtMap();" class="iconButton" title="Toggle View GridTracker Users">
|
||||
<img id="gtFlagImg" src="" class="buttonImg" />
|
||||
|
|
|
@ -4759,6 +4759,7 @@ function toggleAllGrids()
|
|||
{
|
||||
g_showAllGrids = !g_showAllGrids;
|
||||
setTrophyOverlay(g_currentOverlay);
|
||||
gridOverlayImg.style.filter = g_showAllGrids ? "" : "grayscale(1)";
|
||||
}
|
||||
|
||||
function changeAnimate()
|
||||
|
@ -5949,6 +5950,8 @@ function toggleNexrad()
|
|||
}
|
||||
|
||||
g_mapSettings.usNexrad = g_nexradEnable == 1;
|
||||
radarImg.style.filter = g_mapSettings.usNexrad ? "" : "grayscale(1)";
|
||||
saveMapSettings();
|
||||
}
|
||||
|
||||
function nexradRefresh()
|
||||
|
@ -12441,6 +12444,8 @@ function toggleTimezones()
|
|||
g_timezoneLayer = null;
|
||||
}
|
||||
}
|
||||
|
||||
timezoneImg.style.filter = g_timezonesEnable == 1 ? "" : "grayscale(1)";
|
||||
}
|
||||
|
||||
function drawAllGrids()
|
||||
|
@ -12887,6 +12892,9 @@ function loadMapSettings()
|
|||
trafficDecode.checked = g_mapSettings.trafficDecode;
|
||||
|
||||
pskSpotsImg.style.filter = g_spotsEnabled == 1 ? "" : "grayscale(1)";
|
||||
timezoneImg.style.filter = g_timezonesEnable == 1 ? "" : "grayscale(1)";
|
||||
radarImg.style.filter = g_mapSettings.usNexrad ? "" : "grayscale(1)";
|
||||
gridOverlayImg.style.filter = g_showAllGrids ? "" : "grayscale(1)";
|
||||
|
||||
g_bandToColor = JSON.parse(JSON.stringify(g_pskColors));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue