Update navigation and dashboard styles
This commit is contained in:
@@ -28,6 +28,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="questions-dashboard.html" class="nav-link">Questions</a>
|
<a href="questions-dashboard.html" class="nav-link">Questions</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<button class="nav-button" onclick="settings()">Change node names ⌄</button>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
@@ -55,8 +55,9 @@ body {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: 8vh;
|
margin-top: 8vh;
|
||||||
|
background-color: #f0f0f0;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #bfbfbf;
|
background-color: #afafaf;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -67,13 +68,13 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; /* Keep as column */
|
flex-direction: column; /* Keep as column */
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
background-color: #9f9f9f;
|
background-color: #333;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
border: 2px solid #CC2936;
|
border: 2px solid #333;
|
||||||
clear: both;
|
clear: both;
|
||||||
margin-bottom: 10px;
|
margin-top: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,7 +195,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
background-color: #bfbfbf;
|
background-color: #333;
|
||||||
border-bottom: 2px solid #CC2936;
|
border-bottom: 2px solid #CC2936;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
apiGetAllNode = "http://145.92.8.114/getNodeInfo?macAdress=*"
|
apiGetAllNode = "http://145.92.8.114/getInfoNode?macAdress=*"
|
||||||
|
|
||||||
nodeDataArray = {};
|
nodeDataArray = {};
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ function settings() {
|
|||||||
updateNode.style.display = "block";
|
updateNode.style.display = "block";
|
||||||
locationInput.value = "";
|
locationInput.value = "";
|
||||||
nameInput.value = "";
|
nameInput.value = "";
|
||||||
getNodeInfo();
|
getInfoNode();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
updateNode.style.display = "none";
|
updateNode.style.display = "none";
|
||||||
@@ -25,7 +25,7 @@ function settings() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNodeInfo() {
|
function getInfoNode() {
|
||||||
fetch(apiGetAllNode)
|
fetch(apiGetAllNode)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
@@ -75,7 +75,7 @@ function changeText() {
|
|||||||
var text = document.getElementById('text');
|
var text = document.getElementById('text');
|
||||||
|
|
||||||
text.innerHTML = "Changes made"
|
text.innerHTML = "Changes made"
|
||||||
getNodeInfo();
|
getInfoNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateNodeInfo(node, newNodeName, newNodeLocation) {
|
function updateNodeInfo(node, newNodeName, newNodeLocation) {
|
||||||
|
Reference in New Issue
Block a user