-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
129 lines (95 loc) · 5.03 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
<!DOCTYPE html>
<html>
<head>
<title>What can I build</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<link rel="shortcut icon" href="image/icon.png" type="image/png" />
<link rel="stylesheet" href="css/index.css?version=270" type="text/css" />
<link rel="stylesheet" href="css/sidebar.css?version=270" type="text/css" />
<link rel="stylesheet" href="css/table.css?version=270" type="text/css" />
<link rel="stylesheet" href="css/mobile.css?version=270" type="text/css" />
<script type="text/javascript" src="depend/canvas/canvas.src.js?version=270"></script>
<script type="text/javascript" src="circuit/circuits.js?version=270"></script>
<script type="text/javascript" src="js/global.js?version=270"></script>
<script type="text/javascript" src="js/utils.js?version=270"></script>
<script type="text/javascript" src="js/engineering.js?version=270"></script>
<script type="text/javascript" src="js/check_new_circuits.js?version=270"></script>
<script type="text/javascript" src="js/index.js?version=270"></script>
<script type="text/javascript" src="js/render.js?version=270"></script>
<script type="text/javascript" src="js/filter.js?version=270"></script>
</head>
<body>
<nav id="sidebar">
<h1>What do I have</h1>
<h2>Resistors <span id="plus_10_resistor" class="plus10all" title="Increase all resistors by 10, i.e. you don't care about resistors">+10 all</span></h2>
<section id="type_resistor"></section>
<h2>Pots <span id="plus_10_pot" class="plus10all" title="Increase all pots by 10, i.e. you don't care about pots">+10 all</span></h2>
<section id="type_pot"></section>
<h2>Pots (trimmer) <span id="plus_10_pot_trimmer" class="plus10all" title="Increase all pot trimmers by 10, i.e. you don't care about trimmers">+10 all</span></h2>
<section id="type_pot_trimmer"></section>
<h2>LDR</h2>
<section id="type_ldr"></section>
<h2>Capacitors <span id="plus_10_capacitor" class="plus10all" title="Increase all capacitors by 10, i.e. you don't care about capacitors">+10 all</span></h2>
<section id="type_capacitor"></section>
<h2>Inductors</h2>
<section id="type_inductor"></section>
<h2>Diodes <span id="plus_10_diode" class="plus10all" title="Increase all diodes by 10, i.e. you don't care about diodes">+10 all</span></h2>
<section id="type_diode"></section>
<h2>Transistors</h2>
<section id="type_transistor"></section>
<h2>Supply</h2>
<section id="type_supply"></section>
<h2>Connectors</h2>
<section id="type_connector"></section>
<h2>Switch <span id="plus_10_switch" class="plus10all" title="Increase all switches by 10, i.e. you don't care about switches">+10 all</span></h2>
<section id="type_switch"></section>
<h2>Chips</h2>
<section id="type_chip"></section>
<h2>Tube</h2>
<section id="type_tube"></section>
<h2>Other</h2>
<section id="type_other"></section>
<div class="bottom">
<a href="https://github.com/dvhx/what-can-i-build">Source</a>
</div>
</nav>
<main>
<header>
<h1>What can I build <span id="total_count"></span></h1>
</header>
<div>
Show circuits
<label title="You have all parts (uncheck to see what you need to buy)">
<input id="filter_show_possible" type="checkbox" checked><span>possible</span>
</label>
<label title="Show circuits where you don't have exact part, but you have alternative parts that circuit allows as substitutions">
<input id="filter_show_subs" type="checkbox" checked><span>with substitution</span>
</label>
<label title="Only show circuits you've already built in the table (regardless of their posibility)">
<input id="filter_show_done" type="checkbox"><span>done</span>
</label>
</div>
<table class="border">
<thead>
<tr>
<th class="sticky">Links</th>
<th class="sticky" style="width: 100%">Circuit</th>
<th class="sticky" style="min-width: 10ex;">Parts</th>
<th class="sticky">Action</th>
</tr>
</thead>
<tbody id="table_ok">
</tbody>
</table>
<div id="nothing" style="margin-top: 1ex; display: none; color: gray;">
With the parts you have,
you cannot build anything, if you want to see what parts are missing,
uncheck the "possible" checkbox. Circuits with fewest missing parts will be
shown on top and sorted by easiest first.</div>
</main>
</body>
</html>