-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (36 loc) · 1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz Question Example</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<input type="file" id="file-input" style="display: none;" />
<button onclick="document.getElementById('file-input').click();">Load Questions</button>
<button id="save">Save Questions</button>
<div id="quiz-form">
<input type="text" id="question-text" placeholder="Enter your question">
<div id="answer-type-container">
<select id="answer-type">
<option value="radio">Radio</option>
<option value="checkbox">Checkbox</option>
<option value="match">Matching</option>
</select>
</div>
<div id="answer-options">
<!-- Answer options for radio/checkbox will be added here by JavaScript -->
</div>
<div id="match-questions">
<!-- Match questions will be added here by JavaScript -->
</div>
<button type="button" onclick="addAnswerInput()">Add Answer Option</button>
<button type="button" onclick="addMatchQuestion()">Add Match Question</button>
<button type="button" onclick="addQuestion()">Add Question</button>
</div>
<div id="quiz-container"></div>
<button type="button" id="submit-quiz" >Submit Quiz</button>
<script src="script.js"></script>
</body>
</html>