-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.html
More file actions
108 lines (102 loc) · 2.91 KB
/
testing.html
File metadata and controls
108 lines (102 loc) · 2.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Learning Style Quiz</title>
<style>
body {
font-family: 'Arial', sans-serif;
max-width: 600px;
margin: 0; /* Remove margin for full background effect */
padding: 20px;
border-radius: 10px;
background: url('"E:\DEVPOST-5\images\devpost5(2).jpg"'); /* Single background image */
background-size: cover; /* Cover the entire background */
background-position: center; /* Center the background image */
background-repeat: no-repeat; /* Prevent repeating the image */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition: background 0.3s;
}
h2 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
.question {
margin-bottom: 20px;
padding: 15px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.9); /* Slightly transparent background for readability */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
button {
margin: 10px 5px;
padding: 10px 15px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: background 0.3s, transform 0.2s;
}
.visual {
background-color: #4caf50;
color: white;
}
.auditory {
background-color: #2196f3;
color: white;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#result {
font-size: 1.5em;
font-weight: bold;
margin-top: 30px;
text-align: center;
color: #333;
}
</style>
</head>
<body>
<h2>Find Out Your Learning Style</h2>
<div id="quiz-container"></div>
<div id="result"></div>
<script>
const questions = [
{
question: "How do you prefer to learn something new?",
visual: "By seeing pictures or diagrams.",
auditory: "By listening to explanations."
},
{
question: "What's easier to remember?",
visual: "Images or written instructions.",
auditory: "Spoken instructions or music."
},
{
question: "When studying, you prefer...",
visual: "Highlighting and drawing mind maps.",
auditory: "Reading aloud or listening to recordings."
},
{
question: "In a classroom, you learn best when...",
visual: "The teacher uses slides or visuals.",
auditory: "The teacher explains with detailed speech."
},
{
question: "When watching a tutorial, you prefer...",
visual: "Seeing diagrams and animations.",
auditory: "Hearing the instructor talk it through."
}
];
let currentQuestion = 0;
let visualScore = 0;
let auditoryScore = 0;
const container = document.getElementById('quiz-container');
const resultDiv = document.getElementById('result');
// Function to show questions and handle user input will go here
</script>
</body>
</html>