obus/debugging_tool/static/index.html

118 lines
2.1 KiB
HTML
Raw Normal View History

2020-08-16 02:16:36 +00:00
<!doctype html>
<html lang="en">
<head>
2020-08-19 00:12:51 +00:00
<meta charset="utf-8">
<title>CAN debugger</title>
2020-08-16 02:16:36 +00:00
<style>
2020-09-08 16:52:38 +00:00
body {
font-family: sans-serif;
2020-08-16 02:16:36 +00:00
}
2020-09-09 11:57:16 +00:00
button {
margin-bottom: 8px;
}
2020-09-08 16:52:38 +00:00
.parsed {
background: lightgreen;
2020-08-16 02:16:36 +00:00
}
2020-09-08 16:52:38 +00:00
td.raw {
font-family: monospace, monospace;
2020-08-16 02:16:36 +00:00
}
2020-09-08 16:52:38 +00:00
table {
border-collapse: collapse;
width: 100%;
border-bottom: 1px solid black;
2020-08-16 02:16:36 +00:00
}
2020-09-08 16:52:38 +00:00
th, td {
border-left: 1px solid black;
border-right: 1px solid black;
padding: 5px;
2020-08-16 02:16:36 +00:00
}
2020-09-08 16:52:38 +00:00
th {
2020-09-08 18:21:32 +00:00
background-color: #ff7f00;;
2020-09-08 16:52:38 +00:00
border-bottom: 2px solid black;
border-top: 2px solid black;
height: 20px;
text-align: left;
2020-08-16 02:16:36 +00:00
}
2020-09-09 11:57:16 +00:00
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
.fade {
animation: fadein 0.5s;
}
table.hide_raw .raw {
display:none;
}
table.hide_consecutive_states .staterow + .staterow {
display: none;
}
2020-09-08 16:52:38 +00:00
tr:hover {
background-color: #aaa;
2020-08-16 02:16:36 +00:00
}
2020-09-08 18:21:32 +00:00
td.error, td.error > div {
2020-09-08 16:52:38 +00:00
background-color: rgb(255, 71, 71);
}
2020-08-16 02:16:36 +00:00
2020-09-08 18:21:32 +00:00
td.controller > div {
background-color: lightseagreen;
}
td.puzzle > div {
background-color: gold;
}
td.needy > div {
background-color: rgb(128, 10, 128);
}
2020-09-08 16:52:38 +00:00
.time, .raw_id, .sender_id {
text-align: right;
}
2020-09-08 18:21:32 +00:00
.colorblock {
height: 20px;
width: 20px;
margin: 3.4px;
margin-right: 8.4px;
display: inline-block;
background-color:lime;
vertical-align: middle;
}
2020-08-16 02:16:36 +00:00
</style>
</head>
<body>
2020-09-08 16:52:38 +00:00
<button onclick="toggle_logging()" id="toggle_button">Start</button>
2020-09-09 11:57:16 +00:00
<input type="checkbox" id="show_raw" name="show_raw" checked autocomplete="off" onchange="updateShowRaw()">
<label for="show_raw">Show raw address and payload</label>
<input type="checkbox" id="show_consecutive_states" name="show_consecutive_states" checked autocomplete="off" onchange="updateShowStates()">
<label for="show_consecutive_states">Show consecutive state updates</label>
2020-09-09 11:57:16 +00:00
2020-09-08 16:52:38 +00:00
<table id="message_table">
<tr id="table_header">
2020-09-08 16:52:38 +00:00
<th>Human-readable type</th>
<th>Sender ID</th>
<th>Parsed payload</th>
<th>Time</th>
<th class="raw">Raw Message</th>
<th class="raw">Raw ID</th>
</tr>
</table>
2020-08-19 00:12:51 +00:00
<script src="static/script.js"></script>
2020-08-16 02:16:36 +00:00
</body>
</html>