-
Notifications
You must be signed in to change notification settings - Fork 1
/
createagame.html
57 lines (55 loc) · 3.21 KB
/
createagame.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
<html><head>
<script src="https://www.gstatic.com/firebasejs/3.6.8/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyB0YLiSfVf8aDluRvk268eCL_mpZFXYug0",
authDomain: "exam-crazy.firebaseapp.com",
databaseURL: "https://exam-crazy.firebaseio.com",
storageBucket: "exam-crazy.appspot.com",
messagingSenderId: "788284782428"
};
firebase.initializeApp(config);
</script>
<script type="text/javascript" src="script.js"></script>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="createagame.css" rel="stylesheet" type="text/css">
</head><body id="body">
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<form role="form">
<div class="form-group">
<h2>
<label class="control-label" style="color:#006600" for="exampleInputEmail1">Quiz Name</label>
<input class="form-control" id="quizNameInput" placeholder="Enter the title for this quiz" type="text">
</h2>
</div>
<div id="questionsDiv">
<div id="question0">
<label class="control-label" style="font-size:25" for="questionStr-0">Question</label>
<input class="form-control" style="font-size:20" id="questionStr-0" placeholder="Question" type="text">
<label class="control-label" for="falseAnswer1-0">Incorrect Answer 1</label>
<input class="form-control" id="falseAnswer1-0" placeholder="Incorrect Answer 1" type="text">
<label class="control-label" for="falseAnswer2-0">Incorect Answer 2</label>
<input class="form-control" id="falseAnswer2-0" placeholder="Incorect Answer 2" type="text">
<label class="control-label" for="falseAnswer3-0">Incorrect Answer 3</label>
<input class="form-control" id="falseAnswer3-0" placeholder="Incorrect Answer 3" type="text">
<label class="control-label" for="correctAnswer-0">Correct Answer</label>
<input class="form-control" id="correctAnswer-0" placeholder="Correct Answer" type="text">
</div>
</div>
</form>
</div>
<button type="submit" onclick="duplicate()" id="button" class="btn btn-info">Add another question</button>
<button type="submit" id="start" class="btn btn-primary" onclick="startGame()">Start Game!</button>
</div>
</div>
</div>
</body></html>