Skip to content

Commit

Permalink
Added mapid_details conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ke5gdb committed Dec 19, 2024
1 parent 316ed76 commit 1466682
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions auto_rx/autorx/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@
myDiv.scrollTop = 0;
if ((window.innerWidth/window.innerHeight) > 1) { // 350px wide on desktop.
x.style.display = "none";
if (getCookie('map') == true) {
if (getCookie('map') == true || document.getElementById("mapid_details").hasAttribute("open")) {
y.style.display = "block";
}
document.getElementById("mySidenav").style.width = "350px";
Expand All @@ -1304,7 +1304,7 @@
}
} else {
x.style.display = "none";
if (getCookie('map') == true) {
if (getCookie('map') == true || document.getElementById("mapid_details").hasAttribute("open")) {
y.style.display = "block";
}
document.getElementById("mySidenav").style.width = 0;
Expand All @@ -1319,7 +1319,7 @@
var y = document.getElementById('mapid');
if (document.getElementById("mySettings").style.width == "0px" || document.getElementById("mySettings").style.width == 0) {
if ((window.innerWidth/window.innerHeight) > 1) { // 350px wide on desktop.
if (getCookie('map') == true) {
if (getCookie('map') == true || document.getElementById("mapid_details").hasAttribute("open")) {
y.style.display = "block";
}
document.getElementById("mySettings").style.width = "350px";
Expand All @@ -1335,7 +1335,7 @@
document.getElementById("mySettings").style.borderRadius = "0px";
}
} else {
if (getCookie('map') == true) {
if (getCookie('map') == true || document.getElementById("mapid_details").hasAttribute("open")) {
y.style.display = "block";
}
document.getElementById("mySettings").style.width = 0;
Expand Down

0 comments on commit 1466682

Please sign in to comment.