-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (142 loc) · 4.69 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<script src="index.js" type="module" defer></script>
<title>单位换算</title>
</head>
<body>
<header>
<h1 class="h0">单位换算</h1>
</header>
<main>
<fieldset>
<legend>标签选择</legend>
</fieldset>
<br>
<fieldset class="converter" id="audio">
<legend>音频</legend>
<fieldset class="tag-area">
<legend>标签</legend>
</fieldset>
<table class="compact-table workspace">
<tr>
<td><label>波形</label></td>
<td colspan="2">
<input type="radio" name="wave-form" value="sine" checked><label>正弦波</label>
<input type="radio" name="wave-form" value="triangular"><label>三角波</label>
<input type="radio" name="wave-form" value="square"><label>方波</label>
</td>
</tr>
<tr>
<td><label>电压峰值</label></td>
<td><input name="peak-voltage"></td>
<td><label>V</label></td>
</tr>
<tr>
<td><label>电压有效值</label></td>
<td><input name="voltage" value="380"></td>
<td><label>V</label></td>
</tr>
<tr>
<td></td>
<td><input name="dBu"><br></td>
<td><label>dBu</label></td>
</tr>
<tr>
<td></td>
<td><input name="dBV"></td>
<td><label>dBV</label></td>
</tr>
<tr>
<td><label>电流峰值</label></td>
<td><input name="peak-current"></td>
<td><label>A</label></td>
</tr>
<tr>
<td><label>电流有效值</label></td>
<td><input name="current"></td>
<td><label>A</label></td>
</tr>
<tr>
<td><label>阻抗</label></td>
<td><input name="impedance" value="4"></td>
<td><label>Ω</label></td>
</tr>
<tr>
<td><label>功率</label></td>
<td><input name="power"></td>
<td><label>W</label></td>
</tr>
<tr>
<td></td>
<td><input name="mW"></td>
<td><label>mW</label></td>
</tr>
<tr>
<td></td>
<td><input name="dBm"></td>
<td><label>dBm</label></td>
</tr>
<tr>
<td></td>
<td><input name="dBW"></td>
<td><label>dBW</label></td>
</tr>
<tr>
<td colspan="3"><label class="output-area"></label></td>
</tr>
</table>
<table class="compact-table">
<tbody class="workspace">
<tr>
<td><label>灵敏度</label></td>
<td><input name="sensitivity" value="110"></td>
<td>
<input type="radio" name="unit" value="dB/W@1m" checked><label>dB/W@1m(扬声器)</label>
<input type="radio" name="unit" value="dB/mW"><label>dB/mW(耳机)</label>
</td>
</tr>
<tr>
<td><label>功率</label></td>
<td><input name="power" value="2000"></td>
<td><label>W</label></td>
</tr>
<tr>
<td><label>声压级</label></td>
<td><input name="SPL"></td>
<td><label>dB@1m</label></td>
</tr>
<tr>
<td colspan="3"><label class="output-area"></label></td>
</tr>
<tr>
<td><br></td>
</tr>
</tbody>
<tbody class="workspace">
<tr>
<td><label>声强</label></td>
<td><input name="sound-intensity"></td>
<td><label>W/m<sup>2</sup></label></td>
</tr>
<tr>
<td><label>声压(空气中)</label></td>
<td><input name="sound-pressure"></td>
<td><label>Pa</label></td>
</tr>
<tr>
<td><label>声压级</label></td>
<td><input name="SPL" value="160"></td>
<td><label>dB</label></td>
</tr>
<tr>
<td colspan="3"><label class="output-area"></label></td>
</tr>
</tbody>
</table>
</fieldset>
</main>
</body>
</html>