diff --git a/Indian History Quiz Extension/icon.png b/Indian History Quiz Extension/icon.png new file mode 100644 index 00000000..a1d3b470 Binary files /dev/null and b/Indian History Quiz Extension/icon.png differ diff --git a/Indian History Quiz Extension/index.html b/Indian History Quiz Extension/index.html new file mode 100644 index 00000000..d8b60b7b --- /dev/null +++ b/Indian History Quiz Extension/index.html @@ -0,0 +1,90 @@ + + + + + + Indian History Quiz + + + +
+

Indian History Quiz

+
+
+

1. Who was the first Emperor of the Maurya Dynasty?

+
+
+
+
+
+
+

2. In which year did India gain independence from British rule?

+
+
+
+
+
+
+

3. Who was the founder of the Mughal Empire?

+
+
+
+
+
+
+

4. Who wrote the Indian national anthem "Jana Gana Mana"?

+
+
+
+
+
+
+

5. Who was the first Prime Minister of independent India?

+
+
+
+
+
+
+

6. Who led the Salt March in 1930?

+
+
+
+
+
+
+

7. In which year was the Battle of Plassey fought?

+
+
+
+
+
+
+

8. Who was the last Governor-General of independent India?

+
+
+
+
+
+
+

9. Who was known as the 'Iron Man of India'?

+
+
+
+
+
+
+

10. Who was the first woman President of India?

+
+
+
+
+
+ + +
+
+
+ + + diff --git a/Indian History Quiz Extension/manifest.json b/Indian History Quiz Extension/manifest.json new file mode 100644 index 00000000..6e4621df --- /dev/null +++ b/Indian History Quiz Extension/manifest.json @@ -0,0 +1,16 @@ +{ + "manifest_version": 3, + "name": "Aptitute Test", + "version": "1.0", + "description": "A simple aptitute test extension", + "action": { + "default_popup": "index.html", + "default_icon": "icon.png" + }, + "icons": { + "16": "icon.png", + "48": "icon.png", + "128": "icon.png" + }, + "permissions": [] +} diff --git a/Indian History Quiz Extension/script.js b/Indian History Quiz Extension/script.js new file mode 100644 index 00000000..75d8834d --- /dev/null +++ b/Indian History Quiz Extension/script.js @@ -0,0 +1,29 @@ +function submitQuiz() { + var totalQuestions = 10; + var correctAnswers = 0; + + var answers = { + q1: 'a', + q2: 'b', + q3: 'b', + q4: 'a', + q5: 'b', + q6: 'a', + q7: 'a', + q8: 'b', + q9: 'b', + q10: 'b' + }; + + for (var i = 1; i <= totalQuestions; i++) { + var questionName = 'q' + i; + var selectedOption = document.querySelector('input[name="' + questionName + '"]:checked'); + + if (selectedOption && selectedOption.value === answers[questionName]) { + correctAnswers++; + } + } + + var result = document.getElementById('result'); + result.textContent = 'You scored ' + correctAnswers + ' out of ' + totalQuestions; +} diff --git a/Indian History Quiz Extension/style.css b/Indian History Quiz Extension/style.css new file mode 100644 index 00000000..54fd6cb5 --- /dev/null +++ b/Indian History Quiz Extension/style.css @@ -0,0 +1,61 @@ +/* Global styles */ +body { + font-family: Arial, sans-serif; + background-color: #e0f7fa; /* Light cyan background */ + color: #000000; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + padding: 0; + overflow: hidden; /* Prevent body from scrolling */ +} + +/* Container styles */ +.quiz-container { + background-color: #b2ebf2; /* Light blue container background */ + padding: 20px; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + width: 80%; + max-width: 600px; + height: 80vh; /* Fixed height for the container */ + overflow-y: auto; /* Enable vertical scroll */ + text-align: center; +} + +/* Heading styles */ +.quiz-container h1 { + font-size: 2em; + margin-bottom: 20px; + color: #00796b; +} + +/* Question styles */ +.question { + margin-bottom: 20px; +} + +/* Button styles */ +button { + background-color: #4CAF50; /* Green button */ + color: white; + padding: 10px 20px; + border: none; + border-radius: 5px; + cursor: pointer; + font-size: 1em; +} + +button:hover { + background-color: #45a049; /* Darker green on hover */ +} + +/* Result styles */ +#result { + margin-top: 20px; + font-size: 1.2em; + font-weight: bold; + color: #333; +}