-
Notifications
You must be signed in to change notification settings - Fork 2
/
sim2.html
290 lines (279 loc) · 11.1 KB
/
sim2.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>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="sim2.css" />
<script src="sim2.js"></script>
<script src="hints2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="script.js" defer></script>
<script src="https://unpkg.com/gojs/release/go-debug.js"></script>
<script src="TableLayout.js"></script>
</head>
<body>
<div id="header_main">
<pre class="myDiv">
<h2><b>VIRTUAL LABS: SOFTWARE ENGINEERING - FUNCTIONAL USE CASES</b></h2></pre>
</div>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span>
<center>
<img
src="https://cdn.glitch.com/4c13ff70-b984-4f5b-aef6-64e38ef0e78b%2F5.png?v=1604268549935"
height="50px"
weidth="50px"
/><br />
Introduction
</center>
</span></a
>
</li>
<li class="active">
<a href="Theory.html">
<span>
<center>
<img
src="https://cdn.glitch.com/4c13ff70-b984-4f5b-aef6-64e38ef0e78b%2F7.png?v=1604268957184"
height="50px"
weidth="50px"
/><br />
Theory
</center>
</span></a
>
</li>
<li>
<a href="CaseStudy.html">
<span>
<center>
<img
src="https://cdn.glitch.com/4c13ff70-b984-4f5b-aef6-64e38ef0e78b%2F4.png?v=1604268538415"
height="50px"
weidth="50px"
/><br />
Case Study
</center>
</span></a
>
</li>
<li>
<a href="Selfeval.html">
<span>
<center>
<img
src="https://cdn.glitch.com/4c13ff70-b984-4f5b-aef6-64e38ef0e78b%2F3.png?v=1604268534574"
height="50px"
weidth="50px"
/><br />
Exercises
</center>
</span></a
>
</li>
<li>
<a href="simul.html">
<span>
<center>
<img
src="https://cdn.glitch.com/4c13ff70-b984-4f5b-aef6-64e38ef0e78b%2F2.png?v=1604268530601"
height="50px"
weidth="50px"
/><br />
Simulation
</center>
</span></a
>
</li>
<li>
<a href="ref.html">
<span>
<center>
<img
src="https://cdn.glitch.com/4c13ff70-b984-4f5b-aef6-64e38ef0e78b%2F1.png?v=1604268526531"
height="50px"
weidth="50px"
/><br />
References
</center>
</span></a
>
</li>
</ul>
</div>
</nav>
<div class="container">
<h2>Case study - Restaurant Food Ordering System </h2>
<div>
<p> Consider you're going out for a dinner to your favourite restaurant. Now think of what are all the steps you'll follow to eat the food here. </p>
</div>
<div>
<h3>Drag the correct actor and drop it in the answer box on the right</h3>
<div id="outerdiv">
<div id="dragndrop">
<div class ="left" id="item1" draggable = "true" ondragstart = "return dragStart(event)">
<p>Cashier</p>
</div>
<div class ="left" id="item2" draggable = "true" ondragstart = "return dragStart(event)">
<p>Chef</p>
</div>
<div class ="left" id="item3" draggable = "true" ondragstart = "return dragStart(event)">
<p>Customer</p>
</div>
<div class ="left" id="item4" draggable = "true" ondragstart = "return dragStart(event)">
<p>Cutlery</p>
</div>
<div class ="left" id="item5" draggable = "true" ondragstart = "return dragStart(event)">
<p>Kitchen</p>
</div>
<div class ="left" id="item6" draggable = "true" ondragstart = "return dragStart(event)">
<p>Menu</p>
</div>
<div class ="left" id="item7" draggable = "true" ondragstart = "return dragStart(event)">
<p>Receipt</p>
</div>
<div class ="left" id="item8" draggable = "true" ondragstart = "return dragStart(event)">
<p>Waiter</p>
</div>
</div>
<div id="ansdragndrop">
<div class = "ansBox" id="actor1" ondragenter="return dragEnter(event)" ondrop="return dragDrop1(event)" ondragover="return dragOver(event)">ans here</div>
<div class = "ansBox" id="actor2" ondragenter="return dragEnter(event)" ondrop="return dragDrop2(event)" ondragover="return dragOver(event)">ans here</div>
<div class = "ansBox" id="actor3" ondragenter="return dragEnter(event)" ondrop="return dragDrop3(event)" ondragover="return dragOver(event)">ans here</div>
<div class = "ansBox" id="actor4" ondragenter="return dragEnter(event)" ondrop="return dragDrop4(event)" ondragover="return dragOver(event)">ans here</div>
</div>
</div>
<div id="anotherdiv">
<button class = "reset" onclick="check_actors()">Check actors</button>
<button class="reset" onclick="window.location.reload()">Reset</button>
<br>
<hr class="solid">
<br>
<div id="diagram_div">
<h3> Try drawing a usecase diagram by filling in the details below </h3>
<div class="diagram_inside_div">
<label> Enter actors : </label>
<input type="text" id="actor_diag" name="actorsfordiagram">
<button class="reset" onclick="add_actor(document.getElementById('actor_diag').value)">Add actor</button>
<br><br>
</div>
<div class="diagram_inside_div">
<label>Enter use cases:</label>
<input type="text" id="usecase_diag" name="a2">
<button class="reset" onclick="add_usecase(document.getElementById('usecase_diag').value)">Add usecase</button>
<br><br>
</div>
<div class="diagram_inside_div">
<label> Enter relationship : </label> <br> <br>
<label>From : </label>
<input type="text" id="from_diag" name="actorsfordiagram">
<label>To : </label>
<input type="text" id="to_diag" name="actorsfordiagram">
<label>Relationship Type : </label>
<select id="rel_diag">
<option value="normal">normal</option>
<option value="includes">includes</option>
<option value="extends">extends</option>
</select>
<button class="reset" onclick="add_relationship(document.getElementById('from_diag').value, document.getElementById('to_diag').value, document.getElementById('rel_diag').value)">Add relationship</button>
<br><br>
</div>
</div>
<br>
<button class="reset" type="submit" onclick="init()">Draw Diagram!</button>
<div id="myDiagramDiv"></div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="page-footer font-small unique-color-dark">
<div style="background-color: #6351ce;">
<div class="container">
<!-- Grid row-->
<div class="row py-4 d-flex align-items-center">
<!-- Grid column -->
<div class="col-md-6 col-lg-5 text-center text-md-left mb-4 mb-md-0">
<br />
</div>
<!-- Grid column -->
</div>
<!-- Grid row-->
</div>
</div>
<!-- Footer Links -->
<div class="container text-center text-md-left mt-5">
<!-- Grid row -->
<div class="row mt-3">
<!-- Grid column -->
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
<!-- Content -->
<h6 class="text-uppercase font-weight-bold">
Knwo more about virtal labs
</h6>
<hr
class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto"
style="width: 60px;"
/>
<p>
Its main objective is to provide remote-access to Labs in various
disciplines of Science and Engineering. These Virtual Labs would
cater to students at the undergraduate level, post graduate level
as well as to research scholars.
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-3 col-lg-2 col-xl-2 mx-auto mb-4">
<!-- Links -->
<h6 class="text-uppercase font-weight-bold">Useful links</h6>
<hr
class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto"
style="width: 60px;"
/>
<p>
<a href="http://vlabs.iitkgp.ac.in/se/3/">IIT-KGP V-Labs</a>
</p>
<p>
<a
href="https://www.tutorialspoint.com/software_engineering/index.htm"
>Software Engineering</a
>
</p>
<p>
<a
href="https://www.tutorialspoint.com/uml/uml_standard_diagrams.htm"
>Uml Diagrams</a
>
</p>
<p>
<a href="https://app.diagrams.net/">Draw.io</a>
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
<!-- Links -->
<h6 class="text-uppercase font-weight-bold">Creaters</h6>
<hr
class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto"
style="width: 60px;"
/>
<p><i class="fa fa-home mr-3"></i>Anchal Soni(2020201099)</p>
<p><i class="fa fa-phone mr-3"></i> Aayushi Nigam(202020145)</p>
<p><i class="fa fa-envelope mr-3"></i> Somya Lalwani(202020192)</p>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
<!-- Footer Links -->
</footer>
<!-- Footer -->
</body>
</html>