-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.html
More file actions
139 lines (125 loc) · 3.6 KB
/
Copy pathquiz.html
File metadata and controls
139 lines (125 loc) · 3.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz Application</title>
<style>
:root {
--primary: #d63384;
--primary-hover: #b92a6e;
--bg-gradient: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
--glass: rgba(255, 255, 255, 0.88);
--text-dark: #32262a;
--text-muted: #7d6a71;
--pink-glow: rgba(214, 51, 132, 0.25);
}
* {
box-sizing: border-box;
font-family: 'Inter', 'Segoe UI', sans-serif;
}
body {
background: var(--bg-gradient);
background-attachment: fixed;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
#quiz-container {
background: var(--glass);
backdrop-filter: blur(15px);
padding: 40px;
border-radius: 30px;
box-shadow: 0 25px 50px -12px var(--pink-glow);
width: 90%;
max-width: 420px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.5);
}
h1 {
color: var(--text-dark);
margin-bottom: 10px;
font-size: 24px;
}
#playerbox {
color: var(--text-muted);
font-weight: 500;
margin-bottom: 25px;
font-size: 14px;
}
#question {
font-size: 1.1em;
font-weight: 600;
margin-bottom: 25px;
color: var(--text-dark);
}
#options {
display: flex;
flex-direction: column;
gap: 12px;
}
.option-btn {
background: white;
color: var(--primary);
border: 2px solid var(--primary);
padding: 14px;
border-radius: 16px;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: all 0.3s ease;
}
.option-btn:hover {
background: var(--primary);
color: white;
transform: translateY(-2px);
box-shadow: 0 8px 20px var(--pink-glow);
}
.option-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
#next-btn {
margin-top: 25px;
padding: 14px;
width: 100%;
border-radius: 16px;
border: none;
font-weight: 700;
background: var(--primary);
color: white;
cursor: pointer;
transition: all 0.3s ease;
}
#next-btn:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 8px 20px var(--pink-glow);
}
#next-btn:disabled {
background: #d1d1d1;
cursor: not-allowed;
box-shadow: none;
}
#score {
margin-top: 20px;
font-weight: 700;
color: var(--text-dark);
opacity: 0.8;
}
</style>
</head>
<body>
<div id="quiz-container">
<h1>Quiz Application</h1>
<h3 id="playerbox">Player: </h3>
<div id="question">Loading question...</div>
<div id="options"></div>
<button id="next-btn" onclick="nextQuestion()">Next Question</button>
<div id="score">Score: 0</div>
</div>
<script src="./quiz.js"></script>
</body>
</html>