diff --git a/auto_rx/autorx/templates/index.html b/auto_rx/autorx/templates/index.html index e773ed9..85df0b2 100644 --- a/auto_rx/autorx/templates/index.html +++ b/auto_rx/autorx/templates/index.html @@ -68,7 +68,10 @@ async: true, success: function(data) { // Update the current version field. - $('#currentversion').text(data.current); + if (getCookie('version') == "false") {} + else { + $('#currentversion').text(data.current); + } // Update the latest version area. if(data.latest == 'Latest'){ @@ -273,6 +276,13 @@ document.getElementById("showimperialbutton").checked = false; } + // Check if user has version shown selection. + if (getCookie('version') == 'false') { + document.getElementById("showversionbutton").checked = false; + } else { + document.getElementById("showversionbutton").checked = true; + } + // Check if user has preffered scan chart visiblity. if (getCookie('scan') == 'true') { document.getElementById("showscanbutton").checked = true; @@ -354,6 +364,17 @@ } }); + // Check if show version button has been ticked. + $('#showversionbutton').change(function() { + if ($(this).is(":checked")) { + setCookie("version", 'true', 365); + location.reload(); + } else { + setCookie("version", 'false', 365); + location.reload(); + } + }); + // Check if UTC button has been ticked. $('#showUTCbutton').change(function() { if ($(this).is(":checked")) { @@ -1418,7 +1439,17 @@
-
+
+

Show Software Version

+   +
+ +
+
+

Live KML

 
@@ -1444,7 +1475,7 @@
- ☰ Radiosonde Auto-RX + ☰ Radiosonde Auto-RX

Station: ???

@@ -1463,4 +1494,4 @@
- + \ No newline at end of file