-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircuitjs.html
289 lines (244 loc) · 14 KB
/
circuitjs.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<!-- saved from url=(0045)http://www.falstad.com/circuit/circuitjs.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<!-- Properties can be specified to influence deferred binding -->
<meta name="gwt:property" content="locale=en_UK">
<!-- Titles are optional, but useful -->
<title></title>
<style>
.disabled {
color: lightgray
}
.topSpace {
margin-top: 12px;
}
.cursorPointer {
cursor: default;
}
.cursorCross {
cursor: crosshair;
}
.cursorSplitter {
cursor: row-resize;
}
.gwt-MenuItem-disabled {
color: lightgray;
}
.offScreen {
position: absolute;
right: 101%;
overflow: hidden;
}
.gwt-Frame{
scrolling="no";
border: 0px !important;
}
.gwt-MenuItem {
font-size: 12px !important;
}
.gwt-MenuBar-horizontal {
font-size: 12px !important;
}
.gwt-Label-selected {
font-size: 1.3em;
font-weight: 700;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
.gwt-Label-1off {
color: DarkGray;
}
.gwt-Label-2off {
font-size:0.8em;
color: LightGray;
}
.gwt-Label-current {
}
.gwt-Button.chbut {
padding:3px;
margin: 3px;
}
.gwt-Button.chbut.chsel {
font-weight: bold;
}
.gwt-Button.chbut-black {
background: black;
color: white;
}
.gwt-Button.chbut-white {
background: white;
color: black;
}
.gwt-TextBox.scalebox {
width: 100px;
}
.gwt-Button.expand-but {
line-height: 0;
font-size: 13px;
margin-right: 5px;
border-radius:0px;
display: inline-block;
text-align: center;
width: 15px;
height: 15px;
padding-left: 0;
padding-right: 0;
padding-bottom:1px;
padding-top:0;
margin-bottom:1px;
background:gray;
color:white;
}
.topButton-red {
margin-top: 5px;
margin-bottom: 5px;
margin-left:5px;
padding: 5px 7px;
text-decoration: none;
color: #ffffff;
cursor: pointer;
cursor: hand;
font-size: small;
background-color: #ff0000;
border: 1px solid #bbb;
border-bottom: 1px solid #a0a0a0;
border-radius: 3px;
-moz-border-radius: 3px;
}
.topButton {
margin-top: 5px;
margin-bottom: 5px;
margin-left:5px;
padding: 5px 7px;
text-decoration: none;
cursor: pointer;
cursor: hand;
font-size: small;
background-color: #e7e7e7;
border: 1px solid #bbb;
border-bottom: 1px solid #a0a0a0;
border-radius: 3px;
-moz-border-radius: 3px;
}
.radioPanel label {
margin-right: 15px;
}
</style>
<link rel="stylesheet" href="./circuitjs_files/fontello.css">
<style type="text/css"> @-webkit-keyframes rotate {
from { -webkit-transform: rotate(0deg); }
to { -webkit-transform: rotate(360deg); }
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.dropbox-dropin-btn, .dropbox-dropin-btn:link, .dropbox-dropin-btn:hover {
display: inline-block;
height: 14px;
font-family: "Lucida Grande", "Segoe UI", "Tahoma", "Helvetica Neue", "Helvetica", sans-serif;
font-size: 11px;
font-weight: 600;
color: #636363;
text-decoration: none;
padding: 1px 7px 5px 3px;
border: 1px solid #ebebeb;
border-radius: 2px;
border-bottom-color: #d4d4d4;
background: #fcfcfc;
background: -moz-linear-gradient(top, #fcfcfc 0%, #f5f5f5 100%);
background: -webkit-linear-gradient(top, #fcfcfc 0%, #f5f5f5 100%);
background: linear-gradient(to bottom, #fcfcfc 0%, #f5f5f5 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#f5f5f5',GradientType=0);
}
.dropbox-dropin-default:hover, .dropbox-dropin-error:hover {
border-color: #dedede;
border-bottom-color: #cacaca;
background: #fdfdfd;
background: -moz-linear-gradient(top, #fdfdfd 0%, #f5f5f5 100%);
background: -webkit-linear-gradient(top, #fdfdfd 0%, #f5f5f5 100%);
background: linear-gradient(to bottom, #fdfdfd 0%, #f5f5f5 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdfdfd', endColorstr='#f5f5f5',GradientType=0);
}
.dropbox-dropin-default:active, .dropbox-dropin-error:active {
border-color: #d1d1d1;
box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
}
.dropbox-dropin-btn .dropin-btn-status {
display: inline-block;
width: 15px;
height: 14px;
vertical-align: bottom;
margin: 0 5px 0 2px;
background: transparent url('https://www.dropbox.com/static/metaserver/static/images/widgets/dbx-saver-status.png') no-repeat;
position: relative;
top: 2px;
}
.dropbox-dropin-default .dropin-btn-status {
background-position: 0px 0px;
}
.dropbox-dropin-progress .dropin-btn-status {
width: 18px;
margin: 0 4px 0 0;
background: url('https://www.dropbox.com/static/metaserver/static/images/widgets/dbx-progress.png') no-repeat center center;
-webkit-animation-name: rotate;
-webkit-animation-duration: 1.7s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-name: rotate;
animation-duration: 1.7s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.dropbox-dropin-success .dropin-btn-status {
background-position: -15px 0px;
}
.dropbox-dropin-disabled {
background: #e0e0e0;
border: 1px #dadada solid;
border-bottom: 1px solid #ccc;
box-shadow: none;
}
.dropbox-dropin-disabled .dropin-btn-status {
background-position: -30px 0px;
}
.dropbox-dropin-error .dropin-btn-status {
background-position: -45px 0px;
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.4) {
.dropbox-dropin-btn .dropin-btn-status {
background-image: url('https://www.dropbox.com/static/metaserver/static/images/widgets/dbx-saver-status-2x.png');
background-size: 60px 14px;
-webkit-background-size: 60px 14px;
}
.dropbox-dropin-progress .dropin-btn-status {
background: url('https://www.dropbox.com/static/metaserver/static/images/widgets/dbx-progress-2x.png') no-repeat center center;
background-size: 20px 20px;
-webkit-background-size: 20px 20px;
}
}
.dropbox-saver:hover, .dropbox-chooser:hover {
text-decoration: none;
cursor: pointer;
}
.dropbox-chooser, .dropbox-dropin-btn {
line-height: 11px !important;
text-decoration: none !important;
box-sizing: content-box !important;
-webkit-box-sizing: content-box !important;
-moz-box-sizing: content-box !important;
}
</style><link rel="stylesheet" href="./circuitjs_files/clean.css"><link rel="stylesheet" href="./circuitjs_files/style.css"><script src="./circuitjs_files/4B911D6974BA89BE15980C53F223AD59.cache.js.download"></script><meta name="viewport" content="width=device-width"></head>
<body>
<!-- Include the next line to allow support for dropbox import/export. You will need your own app key. -->
<script type="text/javascript" src="./circuitjs_files/dropins.js.download" id="dropboxjs" data-app-key="ckfvh1twq97lcgc"></script>
<script language="javascript" src="./circuitjs_files/lz-string.min.js.download"></script>
<!-- This script tag is what actually loads the GWT module. The -->
<!-- 'nocache.js' file (also called a "selection script") is -->
<!-- produced by the GWT compiler in the module output directory -->
<!-- or generated automatically in development mode. -->
<script language="javascript" src="./circuitjs_files/circuitjs1.nocache.js.download"></script>
<!-- Include a history iframe to enable full GWT history support -->
<!-- (the id must be exactly as shown) -->
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0" src="./circuitjs_files/saved_resource.html"></iframe>
<iframe src="javascript:""" id="circuitjs1" tabindex="-1" style="position: absolute; width: 0px; height: 0px; border: none; left: -1000px; top: -1000px;" src="./circuitjs_files/saved_resource(1).html"></iframe><div aria-hidden="true" style="position: absolute; z-index: -32767; top: -20cm; width: 10cm; height: 10cm; visibility: hidden;"> </div><div style="position: absolute; inset: 0px;"><div aria-hidden="true" style="position: absolute; z-index: -32767; top: -20ex; width: 10em; height: 10ex; visibility: hidden;"> </div><div style="position: absolute; overflow: hidden; inset: 0px;"><div style="position: absolute; inset: 0px;"><div aria-hidden="true" style="position: absolute; z-index: -32767; top: -20ex; width: 10em; height: 10ex; visibility: hidden;"> </div><input type="checkbox" value="on" id="toptrigger" class="toptrigger"><label class="toptriggerlabel" for="toptrigger"></label><div style="position: absolute; overflow: hidden; left: 0px; top: 0px; right: 0px; height: 30px;"><div tabindex="0" role="menubar" class="gwt-MenuBar gwt-MenuBar-horizontal" hidefocus="true" style="outline: 0px; position: absolute; inset: 0px;" aria-activedescendant="gwt-uid-16"><table onclick="document.getElementsByClassName('toptrigger')[0].checked = false"><tbody><tr><td class="gwt-MenuItem" id="gwt-uid-16" role="menuitem" aria-haspopup="true">File</td><td class="gwt-MenuItem" id="gwt-uid-29" role="menuitem" aria-haspopup="true">Edit</td><td class="gwt-MenuItem" id="gwt-uid-30" role="menuitem" aria-haspopup="true">Draw</td><td class="gwt-MenuItem" id="gwt-uid-35" role="menuitem" aria-haspopup="true">Scopes</td><td class="gwt-MenuItem" id="gwt-uid-36" role="menuitem" aria-haspopup="true">Options</td><td class="gwt-MenuItem" id="gwt-uid-358" role="menuitem" aria-haspopup="true">Circuits</td></tr></tbody></table><input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;"></div></div><input type="checkbox" value="on" id="trigger" class="trigger"><label class="triggerLabel" for="trigger"></label><div style="position: absolute; overflow: hidden; top: 30px; right: 0px; bottom: 0px; width: 166px;"><table cellspacing="0" cellpadding="0" class="verticalPanel" id="painel" style="position: absolute; inset: 0px;"><tbody><tr><td align="left" style="vertical-align: top;"><table cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="vertical-align: top;"><button type="button" class="topButton">Reset</button></td><td align="left" style="vertical-align: top;"><button type="button" class="topButton"><strong>RUN</strong> / Stop</button></td></tr></tbody></table></td></tr><tr><td align="left" style="vertical-align: top;"><input type="file" class="gwt-FileUpload offScreen" name="Import" id="LoadFileElement"></td></tr><tr><td align="left" style="vertical-align: top;"><div class="gwt-Label topSpace">Simulation Speed</div></td></tr><tr><td align="left" style="vertical-align: top;"><table cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="vertical-align: top;"><canvas width="166" height="14" tabindex="0"></canvas></td></tr></tbody></table></td></tr><tr><td align="left" style="vertical-align: top;"><div class="gwt-Label topSpace">Current Speed</div></td></tr><tr><td align="left" style="vertical-align: top;"><table cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="vertical-align: top;"><canvas width="166" height="14" tabindex="0"></canvas></td></tr></tbody></table></td></tr><tr><td align="left" style="vertical-align: top;"><div class="gwt-Label topSpace disabled">Power Brightness</div></td></tr><tr><td align="left" style="vertical-align: top;"><table cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="vertical-align: top;"><canvas width="166" height="14" tabindex="0"></canvas></td></tr></tbody></table></td></tr><tr><td align="left" style="vertical-align: top;"><div class="gwt-Label topSpace">Current Circuit:</div></td></tr><tr><td align="left" style="vertical-align: top;"><div class="gwt-Label">Blank Circuit</div></td></tr><tr><td align="left" style="vertical-align: top;"><iframe class="gwt-Frame" src="./circuitjs_files/iframe.html" scrolling="no" style="width: 166px; height: 722px;"></iframe></td></tr></tbody></table></div><div style="position: absolute; overflow: hidden; inset: 30px 166px 0px 0px;"><canvas width="1754" height="933" tabindex="0" style="width: 1754px; height: 933px; position: absolute; inset: 0px; background-color: rgb(0, 0, 0);" class="cursorCross"></canvas></div></div></div></div><div class="gwt-DialogBox" style="left: 816px; top: 419px; visibility: visible; position: absolute; overflow: visible;"><div class=""><table cellspacing="0" cellpadding="0" class=""><tbody><tr class="dialogTop"><td class="dialogTopLeft"><div class="dialogTopLeftInner"></div></td><td class="dialogTopCenter"><div class="dialogTopCenterInner"><div class="Caption">Export as Local File</div></div></td><td class="dialogTopRight"><div class="dialogTopRightInner"></div></td></tr><tr class="dialogMiddle"><td class="dialogMiddleLeft"><div class="dialogMiddleLeftInner"></div></td><td class="dialogMiddleCenter"><div class="dialogMiddleCenterInner dialogContent"><table cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="vertical-align: top;"><div class="gwt-Label">File name:</div></td></tr><tr><td align="left" style="vertical-align: top;"><input type="text" class="gwt-TextBox" style="width: 250px;"></td></tr><tr><td align="left" style="vertical-align: top;"><table cellspacing="0" cellpadding="0" class="topSpace" style="width: 100%;"><tbody><tr><td align="left" style="vertical-align: top;"><button type="button" class="gwt-Button">OK</button></td><td align="right" style="vertical-align: top;"><button type="button" class="gwt-Button">Cancel</button></td></tr></tbody></table></td></tr></tbody></table></div></td><td class="dialogMiddleRight"><div class="dialogMiddleRightInner"></div></td></tr><tr class="dialogBottom"><td class="dialogBottomLeft"><div class="dialogBottomLeftInner"></div></td><td class="dialogBottomCenter"><div class="dialogBottomCenterInner"></div></td><td class="dialogBottomRight"><div class="dialogBottomRightInner"></div></td></tr></tbody></table></div></div></body></html>