forked from alicesf2/DataCanvas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (101 loc) · 4.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="CSS/style.css" />
<!-- <link rel="stylesheet" type="text/css" href="theme.css" /> -->
<!-- <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> -->
</head>
<body>
<img src="image/polygon-bg.jpg" class="bg">
<div class="mt-3">
<h1>
Data Canvas
</h1>
<!-- data structure options -->
<div class="center mt-2" style="width: 100%;">
<nav class="center">
<button type="button" class="btn btn-lg m-2 btn-dark" id="linkedListButton"> Linked List </button>
<button type="button" class="btn btn-lg m-2 btn-dark" id="stackButton"> Stack </button>
<button type="button" class="btn btn-lg m-2 btn-dark" id="queueButton"> Queue </button>
</nav>
</div>
<!-- stack inputs -->
<div class="center mt-2 myHide" id="stackInputs">
<div class="center" style="width: 80%;">
<!-- data input -->
<div class="input-group flex-item" style="width: auto;">
<div class="input-group-prepend">
<span class="input-group-text outline" >Data</span>
</div>
<input type="text" class="form-control" value="myData" id="stackData">
</div>
<!-- push and pop -->
<div class="flex-item">
<button type="button" class="btn btn-outline-danger"id="push">Push</button>
</div>
<div class="flex-item">
<button type="button" class="btn btn-outline-success" id="pop">Pop</button>
</div>
<!-- bounce checkbox -->
<div class="input-group flex-item" style="width: auto;">
<div class="input-group-prepend">
<span class="input-group-text outline">
<input type="checkbox" name="bounce" id="bounce">
</span>
</div>
<div class="input-group-append">
<span class="input-group-text outline">Bounce</span>
</div>
</div>
</div>
</div>
<!-- queue inputs -->
<div class="center mt-2 myHide" id="queueInputs">
<div class="center" style="width: 80%;">
<!-- data input -->
<div class="input-group flex-item" style="width: auto;">
<div class="input-group-prepend">
<span class="input-group-text outline" >Data</span>
</div>
<input type="text" class="form-control" value="myData" id="queueData">
</div>
<!-- enqueue and dequeue -->
<div class="flex-item">
<button type="button" class="btn btn-outline-primary"id="enqueue">Enqueue</button>
</div>
<div class="flex-item">
<button type="button" class="btn btn-outline-success" id="dequeue">Dequeue</button>
</div>
</div>
</div>
<div class="center" id="container">
<!-- stack animation -->
<div id="stackAnimation" class="myHide"></div>
<!-- linked list animation -->
<div id="linkedListAnimation" class="myHide text-center">
<div class="centered mt-5">
<h1>Coming soon</h1>
</div>
</div>
<!-- queue animation -->
<div id="queueAnimation" class="myHide text-center"></div>
<!-- the default background -->
<div class = "title" id="defaultPicture">
<div class="text-center">
<h3>Welcome to </h3>
<h2>Data Canvas</h2>
<p>Explore data structures here!</p>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="JavaScript/SVG.js"></script>
<script type="text/javascript" src="JavaScript/svg.easing.js"></script>
<script type="text/javascript" src="JavaScript/stack.js"></script>
<script type="text/javascript" src="JavaScript/queue.js"></script>
<script type="text/javascript" src="JavaScript/main.js"></script>
</html>