From 97244574b87745e6ded0433f08c919d3fc64a6d5 Mon Sep 17 00:00:00 2001
From: muskan <59757988+Muskan-creator@users.noreply.github.com>
Date: Sun, 4 Apr 2021 22:05:59 +0530
Subject: [PATCH 1/2] Added quiz section
---
Quiz.html | 28 +++++++++++++++++
css/quiz.css | 77 ++++++++++++++++++++++++++++++++++++++++++++++
css/style.css | 2 +-
index.html | 2 +-
js/quiz.js | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 191 insertions(+), 2 deletions(-)
create mode 100644 Quiz.html
create mode 100644 css/quiz.css
create mode 100644 js/quiz.js
diff --git a/Quiz.html b/Quiz.html
new file mode 100644
index 0000000..d8bdd67
--- /dev/null
+++ b/Quiz.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+ Quiz page
+
+
+
+
+
+
Welcome to DSA QUIZ !
+
+ Test your knowledge
+
+
+
+
+
Are you ready to take the quiz?
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/css/quiz.css b/css/quiz.css
new file mode 100644
index 0000000..47b4ef7
--- /dev/null
+++ b/css/quiz.css
@@ -0,0 +1,77 @@
+@import url(https://fonts.googleapis.com/css?family=Work+Sans:300,600);
+
+
+body{
+ font-size: 20px;
+ background-color: #000;
+ font-family: 'Work Sans', sans-serif;
+ color: #fff;
+
+ text-align: center;
+
+}
+h1{
+ font-weight: 700;
+ margin: 0px;
+ padding: 1rem;
+ font-size: 3rem;
+ color: #fff;
+ background-color: #134041;
+}
+.heading_2{
+ font-size: 1.5rem;
+}
+
+h3{
+ text-align: left;
+ color:#000;
+ font-size: 30px;
+
+}
+#test{
+
+ 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;
+ }
+
+button{
+ font-family: 'Work Sans', sans-serif;
+ font-size: 20px;
+ font-weight: 700;
+ background-color: #49b1ad;
+ color: #fff;
+ border: 0px;
+ border-radius: 3px;
+ padding: 20px;
+ cursor: pointer;
+ margin-bottom: 20px;
+}
+button:hover{
+ background-color: #3cae3c;
+}
+
+
+
+
+
+.container{
+ position: relative;
+ height: 200px;
+ margin-top: 30px;
+}
diff --git a/css/style.css b/css/style.css
index 0fe1b1b..11dc9a4 100644
--- a/css/style.css
+++ b/css/style.css
@@ -305,7 +305,7 @@ hr {
border-spacing: 0;
width: 90%;
border: 1px solid #ddd;
- align: centre;
+ text-align: centre;
}
.skills-section th:hover {
diff --git a/index.html b/index.html
index 79630a9..ff765aa 100644
--- a/index.html
+++ b/index.html
@@ -394,7 +394,7 @@
Useful Li
Features
Code Editor
- Quizzes
+ Quizzes
DSA Guidance
Opportunities
Project Ideas
diff --git a/js/quiz.js b/js/quiz.js
new file mode 100644
index 0000000..f4bcedd
--- /dev/null
+++ b/js/quiz.js
@@ -0,0 +1,84 @@
+
+function startQuiz() {
+ document.getElementById('btn').style.visibility = "hidden";
+ return displayQuestion();
+}
+
+var pos = 0, test, test_status, question, option, options, opA, opB, opC, opD,result, score = 0;
+var questions = [
+ [" In order traversal of binary search tree will produce",
+ "unsorted list",
+ "reverse of input",
+ "sorted list",
+ "none of the above",
+ "C"],
+ ["A circular linked list can be used for",
+ "Stack",
+ "Queue",
+ "Both Stack & Queue",
+ "Neither Stack or Queue",
+ "C"],
+ ["Minimum number of queues required for priority queue implementation?",
+ " 5"," 4"," 3","2","D"],
+ ["Time required to merge two sorted lists of size m and n, is",
+ "Ο(m | n)","Ο(m + n)","Ο(m log n)","Ο(n log m)","B"],
+ [ "A balance factor in AVL tree is used to check",
+ "what rotation to make.",
+ "if all child nodes are at same level.",
+ "when the last rotation occured.",
+ "if the tree is unbalanced.","D"],
+ ["The number of items used by the dynamic array contents is its ",
+ "Physical size",
+ "Capacity",
+ "Logical size",
+ "Random size","C"],
+ ["How will you implement dynamic arrays in Java?",
+ " Set",
+ " Map",
+ " HashMap",
+ "List","D"]
+];
+function $(arg) {
+ return document.getElementById(arg);
+ }
+
+function displayQuestion() {
+ test = $("test");
+ if (pos >= questions.length) {
+ test.innerHTML = "You got " + score + " of " + questions.length + " questions correct!
";
+ $("test_status").innerHTML = "Test Completed.";
+ pos = 0;
+ score = 0;
+ return false;
+ }
+
+ $("test_status").innerHTML = "Question " + (pos + 1) + " of " + questions.length;
+ question = questions[pos][0];
+ opA = questions[pos][1];
+ opB = questions[pos][2];
+ opC = questions[pos][3];
+ opD = questions[pos][4];
+
+
+
+ test.innerHTML = "Que" +(pos+1)+". "+question + "
";
+ test.innerHTML += "" + opA + "
";
+ test.innerHTML += "" + opB + "
";
+ test.innerHTML += "" + opC + "
";
+ test.innerHTML += "" + opD + "
";
+ test.innerHTML += "";
+}
+
+function checkAnswer() {
+ options = document.getElementsByName("options");
+ for (var i = 0; i < options.length; i++) {
+ if (options[i].checked) {
+ option = options[i].value;
+ }
+ }
+ if (option == questions[pos][5]) {
+ score++;
+ }
+ pos++;
+ displayQuestion();}
+
From 1587029f1b21c6c46d2fd379c8b12aea630b47d0 Mon Sep 17 00:00:00 2001
From: muskan <59757988+Muskan-creator@users.noreply.github.com>
Date: Sun, 16 May 2021 19:55:58 +0530
Subject: [PATCH 2/2] Added contact before more
---
css/style.css | 25 ++++++++++++++++++++++---
index.html | 11 +++++++----
2 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/css/style.css b/css/style.css
index e74b1d7..fe74454 100644
--- a/css/style.css
+++ b/css/style.css
@@ -119,16 +119,17 @@ header {
.nav-items {
color: white !important;
margin-left: 2.65rem;
- padding-right: 2rem !important;
+ padding-right: 3rem !important;
}
+
.navbar-nav .nav-link {
color: #fff;
}
.navbar-nav {
- text-align: right;
-
+ text-align: center;
+ margin-right: 2rem;
}
.nav-link {
@@ -145,6 +146,24 @@ header {
color:#3caea3;
}
+.signup{
+ background-color: #3CAEA3;
+ color: white;
+ padding: 0.5rem 2rem;
+
+ }
+.signup:hover{
+ background-color: #0a8d80;
+}
+/* .login{
+ background-color: #3CAEA3;
+ color: white;
+ padding: 0.5rem 2.5rem;
+
+}
+.login:hover{
+ background-color: #0a8d80;
+} */
.banner-text {
position: absolute;
diff --git a/index.html b/index.html
index ff765aa..2871367 100644
--- a/index.html
+++ b/index.html
@@ -81,6 +81,10 @@
Team
+ -
+ Contact
+
+
-
DSA Problems
- Contact
-
-
-
+
+
+