This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (93 loc) · 3.31 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="shortcut icon"
href="https://res.cloudinary.com/jhordyess/image/upload/v1667836186/global/favicon.svg.svg"
type="image/x-icon"
/>
<base href="/resistor-color-code/" />
<title>Resistor color code</title>
<meta name="description" content="Resistor color code calculator for 4 bands" />
</head>
<body class="w3-display-container w3-display-topmiddle w3-mobile">
<main class="w3-card-4">
<header class="w3-container w3-blue-grey">
<h3>4 Band Resistor Color Code</h3>
</header>
<div class="w3-container w3-padding w3-white w3-row-padding">
<div class="w3-col l3 m6 s12">
<label>1st Digit</label>
<select class="w3-input w3-border" id="color1">
<option value="" selected class="w3-white" disabled>-</option>
</select>
</div>
<div class="w3-col l3 m6 s12">
<label>2nd Digit</label>
<select class="w3-input w3-border" id="color2">
<option value="" selected class="w3-white" disabled>-</option>
</select>
</div>
<div class="w3-col l3 m6 s12">
<label>Multiplier</label>
<select class="w3-input w3-border" id="multiply">
<option value="" selected class="w3-white" disabled>-</option>
</select>
</div>
<div class="w3-col l3 m6 s12">
<label>Tolerance</label>
<select class="w3-input w3-border" id="tolerance">
<option value="" selected class="w3-white" disabled>-</option>
</select>
</div>
<div class="w3-col s12 w3-margin-top w3-margin-bottom">
<label>
<input id="precision" class="w3-check" type="checkbox" />
Calculate tolerance
</label>
<button
id="clean"
class="w3-button w3-blue-grey w3-ripple"
type="reset"
style="display: inline-flex"
title="Clean"
>
<span class="material-symbols-outlined"> cleaning_services </span>
</button>
<output id="valor" class="w3-input w3-border w3-margin" style="display: inline"></output>
<button
id="si"
class="w3-button w3-ripple w3-blue-grey"
style="font-weight: bold"
type="button"
title="Calculate with SI multiplier prefixes"
>
SI
</button>
<output
id="si1"
style="background-color: white; margin: 1px; display: inline-block"
></output>
<output
id="si2"
style="background-color: white; margin: 1px; display: inline-block"
></output>
<output
id="si3"
style="background-color: white; margin: 1px; display: inline-block"
></output>
</div>
</div>
</main>
<footer>
Made with 💪 by
<a href="https://www.jhordyess.com" target="_blank">Jhordyess</a>
<br />
👉
<a href="https://github.com/jhordyess/resistor-color-code" target="_blank">View on GitHub</a>
</footer>
<script type="module" src="/main.js"></script>
</body>
</html>