Commit b1c944a6 by Kornkitt Poolsup

merge all files together as one

parent 0e5eba93
......@@ -234,7 +234,6 @@
</head>
<body>
<!-- <div class="container-fluid"> -->
<!-- Homepage -->
<div class="container-fluid mt-3" id="homepage" style="display: inline-block;">
<div class="row row-flex" style="color: #36455A;">
......@@ -574,28 +573,22 @@
document.getElementById(tabname + "-menu-tab").className = "active-headertab";
document.getElementById(tabname + "-menu-tab").disabled = true;
document.getElementById(tabname + "-tab-line").style.visibility = "visible";
// document.getElementById(tabname + "-icon").src = "images/" + tabname + "-active.png"
// document.getElementById(tabname + "-icon").style.fill = "#4c80f8";
document.getElementById(tabname + "page").style.display = "inline-block";
var tab = ["home", "camera", "forecast"];
for (let t in tab) {
if (tabname == t) {
document.getElementById(t + "-menu-tab").innerHTML = tabpicActive[t];
console.log(tab[t], t);
if (tabname == tab[t] ) {
document.getElementById(tab[t] + "-menu-tab").innerHTML = tabpicActive[t];
continue;
}
document.getElementById(t + "-menu-tab").className = "inactive-headertab";
document.getElementById(t + "-menu-tab").disabled = false;
document.getElementById(t + "-tab-line").style.visibility = "hidden";
document.getElementById(t + "-menu-tab").innerHTML = tabpic[t];
// document.getElementById("forecast-icon").src = "images/forecast.png"
// document.getElementById(t + "-icon").style.fill = "#a1a8b9";
document.getElementById(tab[t] + "-menu-tab").className = "inactive-headertab";
document.getElementById(tab[t] + "-menu-tab").disabled = false;
document.getElementById(tab[t] + "-tab-line").style.visibility = "hidden";
document.getElementById(tab[t] + "-menu-tab").innerHTML = tabpic[t];
document.getElementById(t + "page").style.display = "none";
console.log(t);
document.getElementById(tab[t] + "page").style.display = "none";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment