-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.html
227 lines (220 loc) · 7.46 KB
/
start.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Resistive Circuit Solver</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/7.3.0/math.min.js"></script>
<!-- CSS only -->
<link rel="stylesheet" href="stylesNew.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$(".trigger_popup_fricc").click(function () {
$(".hover_bkgr_fricc").show();
});
$(".hover_bkgr_fricc").click(function () {
$(".hover_bkgr_fricc").hide();
});
$(".popupCloseButton").click(function () {
$(".hover_bkgr_fricc").hide();
});
});
</script>
<link
href="https://fonts.googleapis.com/css2?family=PT+Sans:wght@700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
<link rel="icon" href="images/icon/microchip.png" type="image/icon type">
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
</head>
<body>
<nav class="navbar sticky-top navbar-expand-lg navbar-dark">
<a class="navbar-brand" href="index.html">Resistive Circuit Solver</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a
class="nav-link"
type="button"
data-toggle="modal"
data-target="#staticBackdrop"
>Docs</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="feedback.html">Feedback</a>
</li>
</ul>
</div>
</nav>
<div id="main">
<!-- <div style="text-align: right;">
<a class="trigger_popup_fricc" >Instructions</a>
</div> -->
<!-- Button trigger modal -->
<div style="text-align: right">
<button
type="button"
class="btn btn-outline-info"
data-toggle="modal"
data-target="#staticBackdrop"
>
Instructions
</button>
</div>
<div id="input_initial" class="animate__animated animate__bounceInUp">
<div class="padd">
<div class="row padd">
<div class="col-lg-2"></div>
<div class="input-group col-lg-8">
<div class="input-group-prepend">
<span
class="input-group-text input-group-prepend"
id="basic-addon1"
>Enter the number of nodes (exc. ref. node):</span
>
</div>
<input
type="text"
name="nodes"
id="nodes"
autocomplete="off"
class="form-control"
/>
</div>
<div class="col-lg-2"></div>
</div>
<div>
<div class="row padd">
<div class="col-lg-2"></div>
<div class="input-group col-lg-8">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"
>Enter the number of elements:</span
>
</div>
<input
type="text"
name="elements"
id="elements"
autocomplete="off"
class="form-control"
/>
</div>
<div class="col-lg-2"></div>
</div>
</div>
<div class="col-md-12 text-center py-3">
<button onclick="showdialog()" class="btn btn-green">
Confirm
</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div
class="modal fade"
id="staticBackdrop"
data-backdrop="static"
data-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Instructions</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ol>
1. Please make the number of nodes on your own and, enter the
number of nodes excluding the reference node. (External Tip: Make
the node that has more number of elements connected to it as the
reference node)
</ol>
<ol>
2. Also count all the elements in the given circuit and enter it.
</ol>
<ol>
3. Now choose the elements that are present in the circuit from
the dropdown menu.
</ol>
<ol>
4. Once this is done, start entering the requested values for each
element abiding to the passive sign convention, a picture as a
helping hand is shown for each of the element. Don't make any
mistake in this, then the resuls might not be define or it can be
wrong.
</ol>
<ol>
5. After ensuring all the entered values are correct, hit the
submit button and you are done the answer now pops up.
</ol>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
<script src="index1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/7.3.0/math.min.js"></script>
<!-- JS, Popper.js, and jQuery -->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"
></script>
</body>
</html>