-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
63 lines (60 loc) · 2.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CAN bus mask and filter calculator</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<link href="https://fonts.googleapis.com/css?family=Fira+Code&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="components.js"></script>
<script src="script.js"></script>
</head>
<body>
<section class="section">
<h1 class="title">
CAN bus mask and filter calculator
</h1>
<div class="container">
<div id="bit-length-control" class="control">
<label class="radio" title="CAN 2.0A">
<input type="radio" name="bit-length" checked data-value="11">
11-bit
</label>
<label class="radio" title="CAN 2.0B">
<input type="radio" name="bit-length" data-value="29">
29-bit
</label>
</div>
</div>
<div class="container">
<p>Mask:</p>
<ol id="mask-input-list" is="hex-input-list" data-count="3"></ol>
<button class="button is-small copy-button">Copy</button>
<p>Filter:</p>
<ol id="filter-input-list" is="hex-input-list" data-count="3"></ol>
<button class="button is-small copy-button">Copy</button>
</div>
<div class="container">
<p>Offset and length:</p>
<input id="table-offset" type="number" class="table-length-input input has-text-right" min="0" value="0" step="64" /><br>
<input id="table-length" type="number" class="table-length-input input has-text-right" min="0" value="256" step="64" />
<div class="table-container">
<table class="table is-narrow is-bordered" is="id-table" data-count="3" data-offset="0" data-length="256"></table>
</div>
</div>
</section>
<footer class="footer">
<div class="content has-text-centered">
<p>
Made by <a href="https://github.com/JohanWinther">Johan Winther</a>. The source code is licensed
<a href="http://opensource.org/licenses/mit-license.php">MIT</a>.
</p>
<p>
<a href="https://github.com/JohanWinther/can-mask-filter/">Help improve this app!</a>
</p>
</div>
</footer>
</body>
</html>