-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (68 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Quiz App</title>
</head>
<style>
body {
background: url(images/main.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
font-family: 'Poppins', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
}
h1 {
color: #fff;
font-size: 36px;
font-weight: 700;
text-align: center;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
p {
color: #fff;
font-size: 18px;
text-align: center;
margin-bottom: 30px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
button {
background-color: #000;
color: #fff;
border: none;
padding: 12px 24px;
font-size: 20px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s, transform 0.2s;
}
button:hover {
background-color: #0056b3;
transform: scale(1.05);
}
</style>
<body>
<h1>Welcome to the Quiz App</h1>
<p>Test your knowledge of JavaScript!</p>
<button id="startButton">Start</button>
<script>
document.getElementById("startButton").addEventListener("click", function() {
// Redirect to the home.html page
window.location.href = "home.html";
// Disable the back button functionality
history.pushState(null, null, location.href);
window.onpopstate = function () {
history.go(1);
};
});
</script>
</body>
</html>