Are you ready to take the quiz?
diff --git a/css/quiz.css b/css/quiz.css
index 47b4ef7..91d7e0f 100644
--- a/css/quiz.css
+++ b/css/quiz.css
@@ -1,5 +1,5 @@
-@import url(https://fonts.googleapis.com/css?family=Work+Sans:300,600);
-
+@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,700;0,900;1,900&display=swap");
+@import url(https://weloveiconfonts.com/api/?family=entypo);
body{
font-size: 20px;
@@ -25,29 +25,19 @@ h1{
h3{
text-align: left;
color:#000;
- font-size: 30px;
-
+ font-size: 30px;
}
#test{
-
- background-color: #f9f9fa;
+ background-color: #f9f9fa;
margin:1rem 10rem;
padding:3px 10px 3px 100px;
color: #000;
-
}
-
-
- h4{
- text-align: left;
- padding: 10px 0px;
- width:500px;
- background-color: #f1f1f1;
- box-shadow: 0 8px 6px -6px black;
-
-
-
- border-radius: 15px;
+ h4{
+ text-align: left;padding: 10px 0px;width:500px;
+ background-color: #f1f1f1;
+ box-shadow: 0 8px 6px -6px black;
+ border-radius: 15px;
}
button{
@@ -65,11 +55,6 @@ button{
button:hover{
background-color: #3cae3c;
}
-
-
-
-
-
.container{
position: relative;
height: 200px;
diff --git a/index.html b/index.html
index ff765aa..d556498 100644
--- a/index.html
+++ b/index.html
@@ -1,4 +1,4 @@
-
+
@@ -426,6 +426,7 @@
Follow Us
+
diff --git a/js/quiz.js b/js/quiz.js
index f4bcedd..192f442 100644
--- a/js/quiz.js
+++ b/js/quiz.js
@@ -59,8 +59,6 @@ function displayQuestion() {
opC = questions[pos][3];
opD = questions[pos][4];
-
-
test.innerHTML = "Que" +(pos+1)+". "+question + "
";
test.innerHTML += "" + opA + "
";
test.innerHTML += "" + opB + "
";
@@ -70,7 +68,9 @@ function displayQuestion() {
}
function checkAnswer() {
- options = document.getElementsByName("options");
+
+ var options = document.getElementsByName("options");
+
for (var i = 0; i < options.length; i++) {
if (options[i].checked) {
option = options[i].value;