kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Fix mobile version display 2
rodzic
f6d7d2a9c7
commit
36a110a8b1
|
|
@ -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 @@
|
|||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<h2 style="display:inline;vertical-align:middle;">Show Software Version</h2>
|
||||
|
||||
<div style="display:inline;vertical-align:middle;">
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="showversionbutton">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<h2 style="display:inline;vertical-align:middle;">Live KML</h2>
|
||||
|
||||
<div style="display:inline;vertical-align:middle;">
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue