-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreatequiz.html
263 lines (228 loc) · 9.99 KB
/
createquiz.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>SER 515 Project</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">-->
<!-- Custom fonts for this template -->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="vendor/simple-line-icons/css/simple-line-icons.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<!-- Custom styles for this template -->
<link href="css/landing-page.min.css" rel="stylesheet">
<script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script>
<script src= "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"> </script>
<script src= "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"> </script>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-light bg-light static-top">
<div class="container">
<a class="navbar-brand" href="#">LeARn</a>
<a class="btn btn-primary" href="#">Log out</a>
</div>
</nav>
<!-- Masthead -->
<!--<header class="masthead">
<section class="showcase">
<div class="container-fluid p-0">
<div class="row no-gutters">
<div class="col-lg-12 text-white showcase-img" style="background-image: url('img/bg-showcase-6.jpg');"></div>
</div>
</div>
</section>
</header>-->
<!-- Icons Grid -->
<section class="features-icons bg-light text-center">
<div class="container">
<form action="action.php" class="was-validated">
<div class="form-group">
<p class="text-left">Question 1</p>
<input type="text" class="form-control" id="Q1"
placeholder="Type text here" name="addmore[]1" required>
<div class="valid-feedback">Valid</div>
<div class="invalid-feedback">
Please fill this field
</div>
<p class="text-left">Choices:</p>
</div>
<div class="form-group after-add-more form-inline">
<input type="text" name="addmore[]" class="form-control" placeholder="Choice#" style="width:500px">
<div class="form-group-btn">
<button class="btn btn-success add-more" type="button"><i class="glyphicon glyphicon-plus"></i> +</button>
</div>
</div>
<div class="form-group">
<p class="text-left">Question 2</p>
<input type="text" class="form-control" id="Q2"
placeholder="Type text here" name="addmore[]1" required>
<div class="valid-feedback">Valid</div>
<div class="invalid-feedback">
Please fill this field
</div>
</div>
<div class="form-group after-add-more form-inline">
<input type="text" name="addmore[]" class="form-control" placeholder="Choice#" style="width:500px">
<div class="form-group-btn">
<button class="btn btn-success add-more" type="button"><i class="glyphicon glyphicon-plus"></i> +</button>
</div>
</div>
<div class="form-group">
<p class="text-left">Question 3</p>
<input type="text" class="form-control" id="Q3"
placeholder="Type text here" name="addmore[]1" required>
<div class="valid-feedback">Valid</div>
<div class="invalid-feedback">
Please fill this field
</div>
</div>
<div class="form-group after-add-more form-inline">
<input type="text" name="addmore[]" class="form-control" placeholder="Choice#" style="width:500px">
<div class="form-group-btn">
<button class="btn btn-success add-more" type="button"><i class="glyphicon glyphicon-plus"></i> +</button>
</div>
</div>
<div class="form-group">
<p class="text-left">Question4</p>
<input type="text" class="form-control" id="Q4"
placeholder="Type text here" name="addmore[]1" required>
<div class="valid-feedback">Valid</div>
<div class="invalid-feedback">
Please fill this field
</div>
</div>
<div class="form-group after-add-more form-inline">
<input type="text" name="addmore[]" class="form-control" placeholder="Choice#" style="width:500px">
<div class="form-group-btn">
<button class="btn btn-success add-more" type="button"><i class="glyphicon glyphicon-plus"></i> +</button>
</div>
</div>
<div class="form-group after-add-more1">
<div class="form-group-btn">
<button class="btn btn-success add-more1" type="button"><i class="glyphicon glyphicon-plus"></i> Question +</button>
</div>
</div>
<!--<div class="form-group form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox"
name="remember" required> I agree
<div class="valid-feedback">Valid</div>
<div class="invalid-feedback">
Please check the checkbox
</div>
</label>
</div>-->
<button type="submit" class="btn bg-success">Submit</button>
</form>
</div>
<div class="copy" style="display:none">
<div class="form-group form-inline">
<input type="text" name="addmore[]" class="form-control" placeholder="Choice#" style="width:500px">
<div class="form-group-btn">
<button class="btn btn-danger remove" type="button"><i class="glyphicon glyphicon-remove"></i> -</button>
</div>
</div>
</div>
<div class="copy1" style="display:none">
<div class="form-group">
<p class="text-left">Question#</p>
<div class="form-inline">
<input type="text" name="addmore[]1" class="form-control" placeholder="Enter text here" style="width:1078px" required>
<div class="form-group-btn">
<button class="btn btn-danger remove" type="button"><i class="glyphicon glyphicon-remove"></i> -</button>
</div>
<div class="valid-feedback">Valid</div>
<div class="invalid-feedback"> Please fill this field </div>
</div>
<div class="form-group after-add-more form-inline">
<input type="text" name="addmore[]" class="form-control" placeholder="Choice#" style="width:500px">
<div class="form-group-btn">
<button class="btn btn-success add-more" type="button"><i class="glyphicon glyphicon-plus"></i> +</button>
</div>
</div>
</div>
</div>
</section>
<!-- Call to Action -->
<!--<section class="call-to-action text-white text-center">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-xl-9 mx-auto">
<h2 class="mb-4">Ready to get started?</h2>
</div>
<div class="col-md-10 col-lg-8 col-xl-7 mx-auto">
<button type="submit" class="btn btn-block btn-lg btn-primary">Go To Playground!</button>
</div>
</div>
</div>
</section>-->
<!-- Footer -->
<footer class="footer bg-light">
<div class="container">
<div class="row">
<div class="col-lg-6 h-100 text-center text-lg-left my-auto">
<ul class="list-inline mb-2">
<li class="list-inline-item">
<a href="#">About</a>
</li>
<li class="list-inline-item">⋅</li>
<li class="list-inline-item">
<a href="#">Contact</a>
</li>
<li class="list-inline-item">⋅</li>
<li class="list-inline-item">
<a href="#">Terms of Use</a>
</li>
<li class="list-inline-item">⋅</li>
<li class="list-inline-item">
<a href="#">Privacy Policy</a>
</li>
</ul>
<p class="text-muted small mb-4 mb-lg-0">© Project created by SER515.</p>
</div>
<div class="col-lg-6 h-100 text-center text-lg-right my-auto">
<ul class="list-inline mb-0">
<li class="list-inline-item mr-3">
<a href="#">
<i class="fab fa-facebook fa-2x fa-fw"></i>
</a>
</li>
<li class="list-inline-item mr-3">
<a href="#">
<i class="fab fa-twitter-square fa-2x fa-fw"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="fab fa-instagram fa-2x fa-fw"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<script type="text/javascript">
$(document).ready(function() {
$(".add-more").click(function(){
var html = $(".copy").html();
$(".after-add-more").after(html);
});
$("body").on("click",".remove",function(){
$(this).parents(".form-group").remove();
});
$(".add-more1").click(function(){
var html = $(".copy1").html();
$(".after-add-more1").after(html);
});
});
</script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>