Skip to content

Commit

Permalink
Update page title to Danger Zone
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanzemlin committed Mar 12, 2024
1 parent 42d563e commit 03bcb64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions display/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SCR Weeb Wagon</title>
<title>SCR Danger Zone</title>
<link rel="stylesheet" href="styles/bootstrap.css">
<link rel="stylesheet" href="styles/reset.css">
<link rel="stylesheet" href="styles/index.css">
Expand Down Expand Up @@ -41,7 +41,7 @@
</li>
</ul>
<a class="navbar-brand test">
<h4>Weeb Wagon</h4>
<h4>Danger Zone</h4>
</a>
</div>
</nav>
Expand Down Expand Up @@ -233,7 +233,7 @@ <h3>System</h3>
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<h3 id="connecting-state">Waiting for the Weeb Wagon</h3>
<h3 id="connecting-state">Waiting for the Danger Zone</h3>
</div>

<!-- Input box for IP and Port -->
Expand Down
7 changes: 6 additions & 1 deletion display/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ $(document).ready(function () {

const statemap = obj.states;
if (node in statemap) {
if (node == "rosbridge_websocket" || node == "rosapi" || node == "scr_core" || node == "rosapi_params")
{
continue;
}

deviceStates[node] = statemap[node];
unorderedListElement = $("#element_device_states");
unorderedListElement.empty();
Expand All @@ -94,7 +99,7 @@ $(document).ready(function () {
};

websocket.onclose = function (event) {
$("#connecting-state").text("Waiting for the Weeb Wagon");
$("#connecting-state").text("Waiting for the Danger Zone");
$(".connecting").show();
$(".connecting-input").show();
$("#main").hide();
Expand Down

0 comments on commit 03bcb64

Please sign in to comment.