-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (139 loc) · 5.76 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Integrated Circuits</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='./styles/main.css'>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
</head>
<!-- https://codepen.io/billyfb/pen/XQYoOg -->
<body>
<div id="appContainer">
<h1 class="title">Integrated Circuits</h1>
<div id="searchContainer">
<label for="search">Search</label>
<input ref="search" id="search" v-model="search" autofocus />
<sub>(RegEx)</sub>
</div>
<div id="icsContainer">
<ic-display v-for="ic in ics" :ic="ic" :key="ic.id"></ic-display>
</div>
<div id="legendWrapper">
<button @click="displayLegend = !displayLegend">?</button>
<div v-show="displayLegend" id="legendContainer" style="display:none">
<div class="legendItem">
<div class="pin-number NC">x</div>
<label>Not Connected</label>
</div>
<div class="legendItem">
<div class="pin-number GND">x</div>
<label>Ground</label>
</div>
<div class="legendItem">
<div class="pin-number VCC">x</div>
<label>VCC</label>
</div>
<div class="legendItem">
<div class="pin-number HIGH">x</div>
<label>High State</label>
</div>
<div class="legendItem">
<div class="pin-number LOW">x</div>
<label>Low State</label>
</div>
<div class="legendItem extra">
<div class="pin-number input">x
<div class="io left input"></div>
</div>
<label>Input</label>
</div>
<div class="legendItem extra">
<div class="pin-number input">x
<div class="io left clock"></div>
</div>
<label>Clock Input</label>
</div>
<div class="legendItem extra">
<div class="pin-number input">x
<div class="io left clock-raising"></div>
</div>
<label>Raising-Edge Clock Input</label>
</div>
<div class="legendItem extra">
<div class="pin-number input">x
<div class="io left clock-falling"></div>
</div>
<label>Faliing-Edge Clock Input</label>
</div>
<div class="legendItem extra">
<div class="pin-number output">x
<div class="io left input_output"></div>
</div>
<label>Input and Output</label>
</div>
<div class="legendItem extra">
<div class="pin-number output">x
<div class="io left output"></div>
</div>
<label>Output</label>
</div>
<div class="legendItem">
<div class="pin-number NC">x</div>
<label class="inverted">Inverted Signal</label>
</div>
<a class="github-link" href="https://github.com/bigsby/ics" target="_blank">
<img src="./styles/GitHub_Logo.png">
</a>
</div>
</div>
</div>
<script type="text/template" id="pin-template">
<div class="pin">
<div :class="['pin-number', side, pin.type, pin.state ? 'HIGH' : 'LOW']" @click="clicked" :title="pin.description">
{{pin.number}}
<div :class="['io', side, pin.type]"></div>
</div>
<div :class="['pin-name', side, pin.type, {inverted: pin.inverted}]"><span>{{pin.name}}</span></div>
</div>
</script>
<script type="text/template" id="pin-strip-template">
<div class="pin-strip">
<pin v-for="pin in pins" :pin="pin" @clicked="pinClicked($event)" :side="side" :key="pin.number"></pin>
</div>
</script>
<script type="text/template" id="pin-names-template">
<div class="pin-names">
<span :class="[{inverted: pin.inverted}, side]" v-for="pin in pins">{{pin.name}}</span>
</div>
</script>
<script type="text/template" id="ic-package-template">
<div class="ic-box">
<div class="half-moon"></div>
</div>
</script>
<script type="text/template" id="ic-template">
<div class="ic">
<pin-strip @pinClicked="pinClicked($event)" :pins="leftPins" side="left"></pin-strip>
<ic-package :leftPins="leftPins" :rightPins="rightPins"></ic-package>
<pin-strip @pinClicked="pinClicked($event)" :pins="rightPins" side="right"></pin-strip>
</div>
</script>
<script type="text/template" id="ic-display-template">
<div class="icContainer">
<div class="header">
<span class="id">{{ic.id}} <a class="datasheet" :href="ic.datasheet" target="_blank">DS</a></span>
<span>{{ic.name}}</span>
</div>
<ic :pins="ic.pins" @pinClicked="update($event, ic)"></ic>
</div>
</script>
<script src='scripts/main.js' type="module"></script>
</body>
<!--
https://gist.github.com/willurd/5720255
python server.py
-->
</html>