This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
forked from ECellNitrr/B-Quiz_Questions_Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (94 loc) · 5.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>B-QUIZ APP</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous" />
<link rel="stylesheet" href="./style.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
<!-- Include Dexie -->
<script src="https://unpkg.com/dexie@latest/dist/dexie.js"></script>
<!-- Custom main file-->
<script src="../js/main.js" type="module"></script>
</head>
<body>
<main>
<div class="container text-center">
<h1 class="bg-light py-4 text-info">
<i class="fas fa-plug"></i> B-QUIZ APP
</h1>
<div class="d-flex justify-content-center">
<form class="w-50">
<input type="text" id="userid" class="form-control" autocomplete="off" placeholder="ID" />
<textarea name="question" id="question" class="form-control" cols="30" rows="5" autocomplete="off" placeholder="Question" ></textarea>
<!-- <div class="answer">
<input type="text" id="options" class="form-control" autocomplete="off" placeholder="Answer Options"/>
</div> -->
<legend>Answer Options</legend>
<!-- <label for="option1">Option 1:</label> -->
<input type="text" id="option1" class="form-control" name="option1" autocomplete="off" placeholder="option1">
<!-- <label for="option2">Option 2:</label> -->
<input type="text" id="option2" class="form-control" name="option2" autocomplete="off" placeholder="option2">
<!-- <label for="option3">Option 3:</label> -->
<input type="text" id="option3" class="form-control" name="option3" autocomplete="off" placeholder="option3">
<!-- <label for="option4">Option 4:</label> -->
<input type="text" id="option4" class="form-control" name="option4" autocomplete="off" placeholder="option4">
<!-- <input type="text" id="image" class="form-control" autocomplete="off" placeholder="image" /> -->
IsImage <input type="checkbox" id="isImageCheck">
<p id="imagesBlock" style="display:none">Insert images</p>
<div class="row">
<div class="col">
<input type="number" id="index" class="form-control m-0" autocomplete="off" placeholder="Correct Index" />
</div>
</div>
</form>
</div>
<div class="d-flex justify-content-center">
<button class="btn btn-success" id="btn-create">Create</button>
<button class="btn btn-primary" id="btn-read">Read</button>
<button class="btn btn-warning" id="btn-update">Update</button>
<button class="btn btn-danger" id="btn-delete">Delete All</button>
</div>
<!-- Table -->
<div class="d-flex table-data">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Question</th>
<th scope="col">Option1</th>
<th scope="col">Option2</th>
<th scope="col">Option3</th>
<th scope="col">Option4</th>
<th scope="col">Images</th>
<th scope="col">Correct Index</th>
<th scope="col">Edit</th>
<th scope="col">Delete</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<div id="notfound"></div>
</div>
</main>
<!-- Labels -->
<div class="w-100 btn btn-success insertmsg">Data Inserted Successfully...!</div>
<div class="w-100 btn btn-warning updatemsg">Data Updated..! Refresh Database To See Result</div>
<div class="w-100 btn btn-danger deletemsg">Data Deleted..!</div>
</body>
</html>