-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
759 lines (690 loc) · 23.6 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
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>bridge_maxwell</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous"
/>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script src="jsplumb.min.js"></script>
<script
async="true"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=AM_CHTML"
></script>
<script
async="true"
src="https://cdn.jsdelivr.net/npm/[email protected]/MathJax.js?config=AM_CHTML"
></script>
<script
async="true"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=AM_CHTML"
></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"
/>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div
style="
position: absolute;
border: 2px solid black;
top: -30px;
left: -15px;
"
>
<div class="container-fluid">
<div
style="
position: relative;
top: 64.8em;
left: -1em;
color: white;
background-color: #cb3535;
width: 101.6%;
text-align: center;
height: 33px;
padding: 5px;
"
>
Copyright©2023 | Lab developed by Virtual Labs, IIT Roorkee
</div>
<div class="row">
<div class="col-md-2">
<h3
style="
position: absolute;
border: 2px solid black;
width: 340px;
text-align: center;
background-color: #cb3535;
color: white;
margin-left: 5px;
border-radius: 6px;
"
>
Components
</h3>
<div
id="toolbox"
class="justify-content-center"
style="position: absolute; top: 24px; width: 340px; margin-left: 5px; height: 304px"
>
<div class="control r">
<img src="./images/resistor.png" width="90px" height="70px" />
</div>
<div class="control v">
<img src="./images/ac.png" width="90px" height="70px" />
</div>
<div class="control n">
<img src="./images/detector.png" width="90px" height="70px" />
</div>
<div class="control l">
<img src="./images/inductor.png" width="90px" height="70px" />
</div>
<h3
style="
position: absolute;
border: 2px solid black;
width: 335px;
text-align: center;
background-color: #cb3535;
color: white;
margin-left: -5px;
border-radius: 6px;
top: 316px;
"
>
Formulae
</h3>
<div
id="formulae"
style="
position: absolute;
top: 358px;
padding: 12px;
width: 340px;
height: 590px;
margin-left: 2px;
border: 2px solid black;
"
>
<h6>After balancing circuit, equating real part we have:</h6>
<center>
<b> `frac(R4)(R3) = frac(R2)(R1)`</b><br />
</center>
<br>
<h6>Also, equating imaginary part we have:</h6>
<br>
<center>
`frac(R4)(R3) = frac(L2)(L1("unknown"))`
</center>
</div>
</div>
</div>
<div class="col-md-7">
<h3
style="
position: absolute;
border: 2px solid black;
border-radius: 6px;
top: 2px;
width: 100%;
text-align: center;
right: -30px;
background-color: #cb3535;
color: white;
"
>
WorkSpace
</h3>
<div
id="diagram"
style="
height: 950px;
position: absolute;
width: 100%;
top: 25px;
right: -30px;
"
>
<button
style="
position: absolute;
bottom: 14px;
right: 692px;
width: 160px;
font-size:20px;
"
class="btn btn-danger"
>
Check Circuit
</button>
</div>
<button
style="
position: absolute;
bottom: 60px;
right: 505px;
width: 120px;
font-size:20px;
"
class="btn btn-warning"
onclick="window.location.reload()"
>
Reset
</button>
<button
style="
position: absolute;
bottom: 60px;
right: 350px;
width: 120px;
font-size:20px;
"
class="btn btn-primary"
onclick="window.print()"
>
Print
</button>
<p style="position: absolute; top: 54px; right: -10px">
<a
href="javascript:void(0)"
onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='none'"
class="btn btn-danger"
><b>Instructions</b></a
>
</p>
</div>
<div class="col-md-3" id="instruction">
<div id="inst" class="col-sm">
<!-- <p><a href="javascript:void(0)"
onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'"><b>Instructions</b></a>
</p> -->
<div id="light" class="white_content">
<b>Maxwell Bridge</b><br />
<center>
<img
src="./images/maxwell_bridge.png"
width="300px"
height="300px"
align="center"
/>
</center>
<ul>
•Pick up four resistances, two inductors and a AC voltage
source from the toolbox.
</ul>
<ul>
•Connect the elements as shown in the figure to form
Maxwell Bridge.
</ul>
<ul>
•After making the circuit click on check circuit button
to check the connections.
</ul>
<ul>
•Now Enter the the value of R2, R3, Volatge and Frequency
and try to make deflection in meter close to zero.
</ul>
<ul>
•Calculate the value of inductance using the formula
given and check the value using the check button.
</ul>
<ul>
•Enter the value untill the bridge gets balanced.
</ul>
<ul>
•Click on submit button to add it into observation table.
</ul>
<ul>
•Repeat the Experiment for new generated value of
inductance.
</ul>
<ul>
•PS. You can also try to listen the detector sound.
</ul>
<a
href="javascript:void(0)"
onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'"
class="btn btn-outline-danger"
style="position: absolute; top: 20px; right: 20px"
><span
style="padding-top: 6px"
class="material-symbols-outlined"
>
close
</span></a
>
</div>
<div id="fade" class="black_overlay"></div>
<!-- <p><a href="javascript:void(0)"
onclick="document.getElementById('light2').style.display='block';document.getElementById('fade').style.display='block'"><b>Observations</b></a>
</p> -->
<!-- <div id="light2" class="white_content">
<b>Observation Table</b><br />
<table id="myTable">
<tr>
<th>R1<br>(Ω)</th>
<th>R2<br>(Ω)</th>
<th>R3<br>(Ω)</th>
<th>R4<br>(Ω)</th>
<th>L2<br>(mH)</th>
<th>L1(mH)<br>(Unknown)</th>
<th>Volatge<br>(Volt)</th>
<th>Balanced</th>
</tr>
</table>
<a
href="javascript:void(0)"
onclick="document.getElementById('light2').style.display='none';document.getElementById('fade').style.display='none'"
>Close</a
>
</div> -->
<div id="fade" class="black_overlay"></div>
<!-- <p><a href="javascript:void(0)"
onclick="document.getElementById('light1').style.display='block';document.getElementById('fade').style.display='block'"><b>Formulae</b></a>
</p> -->
<div id="light1" class="white_content">
<b>Maxwell Bridge</b><br />
<div id="formulae">
<h6>After balancing circuit, equating real part we have:</h6>
<b> `frac(R4)(R3) = frac(R2)(R1)`</b><br />
<h6>Also, equating imaginary part we have:</h6>
`frac(R4)(R3) = frac(L2)(L1("unknown"))`
</div>
<a
href="javascript:void(0)"
onclick="document.getElementById('light1').style.display='none';document.getElementById('fade').style.display='none'"
>Close</a
>
</div>
<div id="fade" class="black_overlay"></div>
<h3
style="
position: absolute;
border: 2px solid black;
width: 457px;
text-align: center;
background-color: #cb3535;
color: white;
border-radius: 6px;
right: -4px;
"
>
Calculations
</h3>
<div
id="mydiv"
style="
display: block;
border: 2px solid black;
padding: 20px;
width: 457px;
position: absolute;
top: 44px;
height: 540px;
right: -5px;
"
>
<h4>Give Inputs:</h4>
<!-- <p>
Deflection in meter:
<span id="demo9" style="color: rgb(228, 0, 0)"></span>
</p> -->
<br>
<p>
<a style="
border: 2px solid rgb(170, 164, 164);
padding : 8px;
font-size:20px;
border-radius :6px;
margin: 5px;
position: absolute;
top: 60px;
left: 20px;
width: 150px;
"
>
<strong>
L2= 10 mH
</strong>
</a>
<button id="meter_check" onclick="calculate_ind()" disabled style="position: absolute;
left:212px;
top: 61px;
border-width:2px;
border-radius:8px;
font-size:18px;
padding:8px;
color: white;
font-weight: 1000;
background-color: rgb(45, 77, 238);
"
> CHECK : </button>
<div style="
font-size: 1.5rem;
font-family: 'Seven Segment' sans-serif;
color: rgb(66, 8, 20);
position: absolute;
top: 19px;
left: 320px;
">
<strong>Deflection</strong>
</div>
<!-- <span id="demo9" style="font-size: 1.5rem;
font-family: 'Seven Segment' sans-serif;
color: crimson;
position: absolute;
top: 51px;
left: 1530px;
"></span>
-->
</p>
<div
id="demo9"
style="
background-color: rgb(0, 0, 0);
width: 120px;
height: 50px;
font-size: 1.5rem;
text-align: center;
font-family: 'Seven Segment' sans-serif;
color: rgb(227, 22, 22);
border: inset 6px lightgray;
position: absolute;
top: 60px;
left: 320px;
"
>
<b>
<p
id="digi"
style="
text-align: center;
margin: 5px;
font-size: 1.5rem;
font-family: 'Seven Segment' sans-serif;
color: rgb(227, 22, 22);
"
>
--.--
</p>
</b>
</div>
<!-- <p
style="
font-size: 1.5rem;
font-family: 'Seven Segment' sans-serif;
color: crimson;
position: absolute;
top: 51px;
left: 358px;
"
>
<b>mA</b>
</p> -->
<!--
-->
<!-- <p>L2= 10 mH</p>
<div class="input11" id="input_data"></div> -->
<div id="data1" style="display: none;">10</div>
<input
type="text"
id="data1"
value="10"
style="display: none"
/>
<p value="10" id="data1" style="width:100px"></p>
<div style="
border: 2px solid rgb(170, 164, 164);
padding : 8px;
border-radius :6px;
margin: 3px;
position: absolute;
top: 120px;
font-size: 20px;
left: 18px;
background-color: c;
">
<label
>
<strong>
Enter R3 (in Ω) : </strong></label
>
<input
type="number"
disabled
id="data2"
onclick="calculate_ind()"
step="0.01"
value="1"
style="width: 90px; border-radius: 6px; height:40px; text-align: center; font-size:20px; "
required
>
<input
class="form-control"
type="range"
disabled
min="1"
max="100"
value="1"
onclick="calculate_ind()"
oninput="this.previousElementSibling.value = this.value"
step="0.1"
style="width: 370px"
id="myrange1"
>
</div>
<!-- <label class="form-control"
>Enter R3: <span id="demo2"></span> Ω</label
>
<input
class="form-control"
type="range"
min="1"
max="100"
value="1"
onclick="calculate_ind()"
step="0.1"
style="width: 410px"
id="data2"
/><br /> -->
<div style="
border: 2px solid rgb(170, 164, 164);
padding : 8px;
border-radius :6px;
margin: 3px;
position: absolute;
top: 230px;
font-size: 20px;
left: 18px;
background-color: c;
">
<label
>
<strong>
Enter R4 (in Ω) : </strong></label
>
<input
type="number"
id="data3"
onclick="calculate_ind()"
step="0.01"
value="1"
disabled
style="width: 90px; border-radius: 6px; height:40px; text-align: center; font-size:20px; "
required
>
<input
class="form-control"
type="range"
min="1"
max="100"
step="0.1"
disabled
onclick="calculate_ind()"
oninput="this.previousElementSibling.value = this.value"
value="1"
style="width: 370px"
id="myrange2"
/>
</div>
<!-- <label class="form-control"
>Enter R4: <span id="demo3"></span> Ω</label
>
<input
class="form-control"
type="range"
min="1"
max="100"
step="0.1"
onclick="calculate_ind()"
value="1"
style="width: 410px"
id="data3"
/><br /> -->
<div style="
position: absolute;
top: 350px;
left: 15px;
font-size: 20px;
">
<strong>
<label
>Enter Volatge (in V) :
<input type="number" disabled value="0" min="0" max="15" step="5" id="data4" style="text-align:center; width: 80px; height: 35px;" />
</label>
<label
>Enter Frequency (in Hz) :
<input type="text" disabled id="data5" min="0" max="15" step="5" value="50 Hz" style="text-align:center; width: 80px; height: 35px;" />
</label>
<label>Enter Calculated Inductance (mH) :
</strong>
<input
disabled
class="form-control"
type="number"
step="0.1";
id="data6"
style="width: 90px;
position: absolute;
left: 336px;
font-size: 20px;
top: 86px;
"
/>
</label>
<br >
<button
class="btn btn-primary"
style="
position: absolute;
left: 10px;
top: 130px;
font-size: 20px;
"
disabled
id="btn1"
onclick="check_value()"
>
CHECK
</button>
<button
style="
position: absolute;
left: 120px;
top: 130px;
font-size: 20px;
"
class="btn btn-primary" disabled id="btn2" onclick="addRows()">
Submit
</button>
</div>
<!-- <input type="button" value="Print Report" onClick="window.print()" /> -->
</div>
<!-- </form> -->
<!-- <button onClick="window.location.reload();">Reset</button> -->
<h3
style="
position: relative;
border: 2px solid black;
width: 457px;
text-align: center;
background-color: #cb3535;
color: white;
border-radius: 6px;
right: -13px;
top: 592px;
"
>
Observation Table
</h3>
<table
id="myTable"
style="
position: relative;
top: 592px;
border: 2px solid black !important;
right: -12px;
width: 102%;
height: 50px;
text-align: center;
"
>
<tr>
<th>R1<br />(Ω)</th>
<th>R2<br />(Ω)</th>
<th>R3<br />(Ω)</th>
<th>R4<br />(Ω)</th>
<th>L1<br />(mH)</th>
<th>L2<br />(mH)</th>
<th>Volt<br />(Volt)</th>
<th>Baln.</th>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
<!-- </div> -->
<!-- </body>
</html> -->
</body>
</html>