-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (94 loc) · 3.39 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
110
111
112
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>QuizMaster</title>
<link rel="stylesheet" href="./assets/css/bootstrap.css" />
<link rel="stylesheet" href="./assets/css/style.css" />
<script src="./assets/libs/jquery-3.4.1.js"></script>
<script src="./assets/libs/bootstrap.bundle.min.js"></script>
</head>
<body>
<header>
<div class="jumbotron text-center" id="mainHeader"
style="background-image: url('headerimg.jpg');background-size: cover">
<div class="container">
<h1 class="display-4">QuizMaster</h1>
<p class="lead">Take a quiz. Or make one if you feel particularly smart.</p>
</div>
</div>
</header>
<main role="main">
<div class="album py-5 bg-light">
<div class="container">
<div id="categories-body" class="row">
</div>
<button id="add-category-button" class="btn btn-info" data-toggle="modal" data-target="#add-category-modal"
style="margin-left: 45%;">Add New Category</button>
</div>
</div>
</main>
<div class="modal fade" id="add-category-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add Category</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="category-title">Category Name</label>
<input type="text" class="form-control" id="category-title">
</div>
</form>
<div id="add-category-alert">
</div>
</div>
<div class="modal-footer">
<button type="button" id="cancel-add-category-button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" id="save-category-button" class="btn btn-primary">Add Category</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="delete-category-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Delete Category</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<pre>
Are you sure about that?</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" id="delete-category-button" class="btn btn-primary">Delete Category</button>
</div>
</div>
</div>
</div>
<footer class="text-muted">
<div class="container">
<p class="float-right">
<a href="#">Back to top</a>
</p>
<p>Practica NTT DATA 2019</p>
</div>
</footer>
<script src="services/categories.js"></script>
<script>
$(document).ready(function () {
categories.load();
});
</script>
</body>
</html>