diff --git a/.classpath b/lab-braintest-master/.classpath
similarity index 75%
rename from .classpath
rename to lab-braintest-master/.classpath
index 2846539..ea8b998 100644
--- a/.classpath
+++ b/lab-braintest-master/.classpath
@@ -1,17 +1,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/lab-braintest-master/.project
similarity index 96%
rename from .project
rename to lab-braintest-master/.project
index def99df..772052d 100644
--- a/.project
+++ b/lab-braintest-master/.project
@@ -1,31 +1,31 @@
-
-
- lab-java-11-braintest
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
+
+
+ lab-java-11-braintest
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.wst.jsdt.core.jsNature
+
+
diff --git a/.settings/.jsdtscope b/lab-braintest-master/.settings/.jsdtscope
similarity index 97%
rename from .settings/.jsdtscope
rename to lab-braintest-master/.settings/.jsdtscope
index 5cee5ac..92e666d 100644
--- a/.settings/.jsdtscope
+++ b/lab-braintest-master/.settings/.jsdtscope
@@ -1,12 +1,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/lab-braintest-master/.settings/org.eclipse.core.resources.prefs
similarity index 97%
rename from .settings/org.eclipse.core.resources.prefs
rename to lab-braintest-master/.settings/org.eclipse.core.resources.prefs
index a835c80..c883bbb 100644
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/lab-braintest-master/.settings/org.eclipse.core.resources.prefs
@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-encoding//WebContent/WEB-INF/views/rightBrainView.jsp=UTF-8
+eclipse.preferences.version=1
+encoding//WebContent/WEB-INF/views/rightBrainView.jsp=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/lab-braintest-master/.settings/org.eclipse.jdt.core.prefs
similarity index 98%
rename from .settings/org.eclipse.jdt.core.prefs
rename to lab-braintest-master/.settings/org.eclipse.jdt.core.prefs
index 295926d..0c68a61 100644
--- a/.settings/org.eclipse.jdt.core.prefs
+++ b/lab-braintest-master/.settings/org.eclipse.jdt.core.prefs
@@ -1,7 +1,7 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.8
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/.settings/org.eclipse.wst.common.component b/lab-braintest-master/.settings/org.eclipse.wst.common.component
similarity index 98%
rename from .settings/org.eclipse.wst.common.component
rename to lab-braintest-master/.settings/org.eclipse.wst.common.component
index ce2a30e..8abd7a6 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/lab-braintest-master/.settings/org.eclipse.wst.common.component
@@ -1,8 +1,8 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/lab-braintest-master/.settings/org.eclipse.wst.common.project.facet.core.xml
similarity index 97%
rename from .settings/org.eclipse.wst.common.project.facet.core.xml
rename to lab-braintest-master/.settings/org.eclipse.wst.common.project.facet.core.xml
index 524dbc8..01f950a 100644
--- a/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/lab-braintest-master/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,10 +1,10 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/lab-braintest-master/.settings/org.eclipse.wst.jsdt.ui.superType.container
similarity index 100%
rename from .settings/org.eclipse.wst.jsdt.ui.superType.container
rename to lab-braintest-master/.settings/org.eclipse.wst.jsdt.ui.superType.container
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/lab-braintest-master/.settings/org.eclipse.wst.jsdt.ui.superType.name
similarity index 100%
rename from .settings/org.eclipse.wst.jsdt.ui.superType.name
rename to lab-braintest-master/.settings/org.eclipse.wst.jsdt.ui.superType.name
diff --git a/README.md b/lab-braintest-master/README.md
similarity index 100%
rename from README.md
rename to lab-braintest-master/README.md
diff --git a/WebContent/META-INF/MANIFEST.MF b/lab-braintest-master/WebContent/META-INF/MANIFEST.MF
similarity index 92%
rename from WebContent/META-INF/MANIFEST.MF
rename to lab-braintest-master/WebContent/META-INF/MANIFEST.MF
index 5e94951..254272e 100644
--- a/WebContent/META-INF/MANIFEST.MF
+++ b/lab-braintest-master/WebContent/META-INF/MANIFEST.MF
@@ -1,3 +1,3 @@
-Manifest-Version: 1.0
-Class-Path:
-
+Manifest-Version: 1.0
+Class-Path:
+
diff --git a/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar b/lab-braintest-master/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar
similarity index 100%
rename from WebContent/WEB-INF/lib/hamcrest-core-1.3.jar
rename to lab-braintest-master/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar
diff --git a/WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar b/lab-braintest-master/WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar
similarity index 100%
rename from WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar
rename to lab-braintest-master/WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar
diff --git a/WebContent/WEB-INF/lib/jstl-api-1.2.jar b/lab-braintest-master/WebContent/WEB-INF/lib/jstl-api-1.2.jar
similarity index 100%
rename from WebContent/WEB-INF/lib/jstl-api-1.2.jar
rename to lab-braintest-master/WebContent/WEB-INF/lib/jstl-api-1.2.jar
diff --git a/WebContent/WEB-INF/lib/junit-4.12.jar b/lab-braintest-master/WebContent/WEB-INF/lib/junit-4.12.jar
similarity index 100%
rename from WebContent/WEB-INF/lib/junit-4.12.jar
rename to lab-braintest-master/WebContent/WEB-INF/lib/junit-4.12.jar
diff --git a/WebContent/WEB-INF/lib/taglibs-standard-impl-1.2.5.jar b/lab-braintest-master/WebContent/WEB-INF/lib/taglibs-standard-impl-1.2.5.jar
similarity index 100%
rename from WebContent/WEB-INF/lib/taglibs-standard-impl-1.2.5.jar
rename to lab-braintest-master/WebContent/WEB-INF/lib/taglibs-standard-impl-1.2.5.jar
diff --git a/WebContent/WEB-INF/views/leftBrainView.jsp b/lab-braintest-master/WebContent/WEB-INF/views/leftBrainView.jsp
similarity index 95%
rename from WebContent/WEB-INF/views/leftBrainView.jsp
rename to lab-braintest-master/WebContent/WEB-INF/views/leftBrainView.jsp
index 97c79e5..267f1de 100644
--- a/WebContent/WEB-INF/views/leftBrainView.jsp
+++ b/lab-braintest-master/WebContent/WEB-INF/views/leftBrainView.jsp
@@ -1,13 +1,13 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-
-LEFT BRAIN
-
-
-
-
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+
+
+
+
+
+LEFT BRAIN
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/views/neutralView.jsp b/lab-braintest-master/WebContent/WEB-INF/views/neutralView.jsp
similarity index 96%
rename from WebContent/WEB-INF/views/neutralView.jsp
rename to lab-braintest-master/WebContent/WEB-INF/views/neutralView.jsp
index 336de77..5746f6b 100644
--- a/WebContent/WEB-INF/views/neutralView.jsp
+++ b/lab-braintest-master/WebContent/WEB-INF/views/neutralView.jsp
@@ -1,13 +1,13 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-
-WELL BALANCED
-
-
-
-
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+
+
+
+
+
+WELL BALANCED
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/views/personalityView.jsp b/lab-braintest-master/WebContent/WEB-INF/views/personalityView.jsp
similarity index 98%
rename from WebContent/WEB-INF/views/personalityView.jsp
rename to lab-braintest-master/WebContent/WEB-INF/views/personalityView.jsp
index 72bbc6d..c02c9e1 100644
--- a/WebContent/WEB-INF/views/personalityView.jsp
+++ b/lab-braintest-master/WebContent/WEB-INF/views/personalityView.jsp
@@ -1,81 +1,81 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
-
-
-
-
-Guess Me
-
-
-
-
-
-
-
-
-
-HERE YOU GO...
-
-
-
-
-
-
-
-
-
-
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
+
+
+
+
+Guess Me
+
+
+
+
+
+
+
+
+
+HERE YOU GO...
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/views/rightBrainView.jsp b/lab-braintest-master/WebContent/WEB-INF/views/rightBrainView.jsp
similarity index 96%
rename from WebContent/WEB-INF/views/rightBrainView.jsp
rename to lab-braintest-master/WebContent/WEB-INF/views/rightBrainView.jsp
index 91cbcbc..2f79064 100644
--- a/WebContent/WEB-INF/views/rightBrainView.jsp
+++ b/lab-braintest-master/WebContent/WEB-INF/views/rightBrainView.jsp
@@ -1,12 +1,12 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
-
-
-
-
-RIGHT BRAIN
-
-
-
-
-
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
+
+
+
+
+RIGHT BRAIN
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/web.xml b/lab-braintest-master/WebContent/WEB-INF/web.xml
similarity index 98%
rename from WebContent/WEB-INF/web.xml
rename to lab-braintest-master/WebContent/WEB-INF/web.xml
index 40b6e68..1ffc5c2 100644
--- a/WebContent/WEB-INF/web.xml
+++ b/lab-braintest-master/WebContent/WEB-INF/web.xml
@@ -1,8 +1,8 @@
-
-
- lab-java-11-braintest
-
- personality
-
-
+
+
+ lab-java-11-braintest
+
+ personality
+
+
\ No newline at end of file
diff --git a/WebContent/appscript/script.js b/lab-braintest-master/WebContent/appscript/script.js
similarity index 96%
rename from WebContent/appscript/script.js
rename to lab-braintest-master/WebContent/appscript/script.js
index fae6e33..eedfefb 100644
--- a/WebContent/appscript/script.js
+++ b/lab-braintest-master/WebContent/appscript/script.js
@@ -1,173 +1,173 @@
-// QUESTIONS
-
-const questions = [
- {
- "question": "I do not expect to be praised by others.",
-
- },
- {
- "question": "I like sitting in the Math class rather than sitting in the Pottery class (I am vividly imaginative & I enjoy classes where I can move around and try things).",
-
- },
- {
- "question": "I always show up in/on time.",
-
- },
- {
- "question": "I do not care to read to the instructions before I start putting something together, I like learning along the way.",
-
- },
- {
- "question": "I am tidy and organized and cannot live in a mess.",
-
- },
- {
- "question": "My thinking is random & unstructured.",
-
- },
- {
- "question": "I am an effective communicator",
-
- },
- {
- "question": "I can picture things clearly in my head.",
-
- },
- {
- "question": "I often come up with new ideas.",
-
- },
- {
- "question": "I am not easily disturbed by events.",
-
- },
- {
- "question": "I rarely cry while watching sad movies or incidents.",
-
- },
- {
- "question": "I am good at laying out a step-by-step plan.",
-
- },
- {
- "question": "I am the happiest when I am creating or expressing myself.",
-
- },
- {
- "question": "I make decisions based on facts, not feelings. (I like info that is precise and measurable).",
-
- },
- {
- "question": "I make a mess of things.",
-
- },
- {
- "question": "I get stressed out easily.",
-
- },
- {
- "question": "I like fantasy and make believe.",
-
- },
- {
- "question": "I prize logic above all else. (For something to be credible, it needs to be logical).",
-
- },
- {
- "question": "I often forget to put things back in their proper place.",
-
- },
- {
- "question": "I keep my feelings controlled.",
-
- }
-]
-
-/*Declare all the variables outside the scope of the function*/
-
-let currentQuestion = 0;
-const form=document.getElementById("myForm");
-const totalQuestions =questions.length;
-const container = document.querySelector('.quiz-container');
-const questionEl = document.querySelector('.question');
-const nextButton = document.querySelector('.next');
-const previousButton = document.querySelector('.previous');
-
-const answers=document.getElementsByName("option");
-const hiddenSelectedAnswers = document.getElementById("selectedOptions");
-const selectedAnswers=[];
-
-//Function to generate question
-function generateQuestions (index) {
- //console.log("Entering generate question");
- //Select each question by passing it a particular index
- const question = questions[index];
- questionEl.innerHTML = `${index + 1}. ${question.question}`
-
-}
-
-
-function loadNextQuestion () {
- console.log("Load next question");
- var selectedOption = document.querySelector('input[type="radio"]:checked');
-
- //Check if there is a radio input checked
- if(!selectedOption) {
- alert('Please select your answer!');
- return;
- }
-for(var i=0;i * {
- margin: 1rem;
-
-}
-button {
- padding: 0.5rem 1.5rem;
- border: none;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
- border-radius: 1rem;
- font-weight: 300;
- color: white;
- outline: none;
- transform: scale(0.98);
- transition: all 0.2s;
- font-family: Nunito Sans;
- font-style: normal;
- font-weight: normal;
- font-size: 24px;
- line-height: 33px;
-/* identical to box height */
-
-
-}
-button.previous {
- background: #000000;
-}
-button.next {
- background: #000000;
-}
-button.restart {
- background: #0cf574;
- color: #00000050;
- font-size: 2rem;
- margin-bottom: 1rem;
- transition: all 0.4s;
-}
-button.restart:hover {
- color: #00000098;
-}
-button:hover,
-button:focus {
- transform: scale(1);
- font-weight: 500;
- box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
-}
-
-
-/*new radio button */
-.card {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- flex-direction:row;
- margin: auto;
- -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 16, 0.19), 0 0.3rem 0.3rem rgba(0, 0, 16, 0.23);
-
-}
-
-.rating-container {
-
- display: flex;
- flex-direction: row;
-
- justify-content: space-between;
- padding: 0.4rem 0.8rem;
- width: 100%;
-}
-
-.rating-text p {
- color: rgba(0, 0, 16, 0.8);
- font-size: 1.3rem;
- padding: 0.3rem;
-}
-
-.rating {
- display:flex;
- background-color: rgba(0, 0, 16, 0.8);
- padding: 0.4rem 0.4rem 0.1rem 0.4rem;
- border-radius: 2.2rem;
-}
-
-svg {
- fill: rgb(242, 242, 242);
- height: 3.6rem;
- width: 3.6rem;
- margin: 0.2rem;
-}
-
-.rating-form-2 svg {
- height: 3rem;
- width: 3rem;
- margin: 0.5rem;
-}
-
-#radios label {
- position: relative;
-}
-
-input[type="radio"] {
- position: absolute;
- opacity: 0;
-}
-
-input[type="radio"] + svg {
- -webkit-transition: all 0.2s;
- transition: all 0.2s;
-}
-
-input + svg {
- cursor: pointer;
-}
-
-input[class="super-happy"]:hover + svg,
-input[class="super-happy"]:checked + svg,
-input[class="super-happy"]:focus + svg {
- fill: rgb(0, 109, 217);
-}
-
-input[class="happy"]:hover + svg,
-input[class="happy"]:checked + svg,
-input[class="happy"]:focus + svg {
- fill: rgb(0, 204, 79);
-}
-
-input[class="neutral"]:hover + svg,
-input[class="neutral"]:checked + svg,
-input[class="neutral"]:focus + svg {
- fill: rgb(232, 214, 0);
-}
-
-input[class="sad"]:hover + svg,
-input[class="sad"]:checked + svg,
-input[class="sad"]:focus + svg {
- fill: rgb(229, 132, 0);
-}
-
-input[class="super-sad"]:hover + svg,
-input[class="super-sad"]:checked + svg,
-input[class="super-sad"]:focus + svg {
- fill: rgb(239, 42, 16);
-}
-
-/*rightBrainView */
-
-.output-header-text{
- display:flex;
- position: absolute;
- width: 610px;
- height: 120px;
- left: 74px;
- top: 65px;
- font-family: Ubuntu;
- font-style: normal;
- font-weight: bold;
- font-size: 44px;
- line-height: 60px;
-/* or 136% */
-
-letter-spacing: 0.05em;
-
-color: #FFFFFF;
-}
-.outputlogo{
- display: flex;
- flex-direction: row;
-
- color: var(--main-text-color);
- width:100%;
-}
-
-.output{
- display:flex;
- flex-direction:row;
-}
-.output-text{
- display:flex;
- flex-direction:column;
- justify-content:space-between;
- position: absolute;
- width: 807px;
- height: 315px;
- left: 62px;
- top: 362.98px;
- font-family: Ubuntu;
- font-style: normal;
- font-weight: 300;
- font-size: 18px;
- line-height: 21px;
- align-items: center;
-
- color: #000000;
-}
-.filler-div{
- flex:1;
-
-}
-.output-brain{
- display:flex;
- flex-direction:row;
- position: absolute;
-width: 362.03px;
-height: 395.99px;
-left: 973px;
-top: 303px;
-
-}
-
-/*dynamically displaying form fields*/
-.result {
- display: flex;
- flex-direction: column;
- padding: 2rem;
- justify-content: center;
- align-items: center;
- text-align: center;
- font-size: 2.5rem;
- min-height: 100vh;
-}
-.final-score {
- color: #00000099;
-}
-.summary {
- font-size: 1rem;
- text-shadow: 1px 1px #ffffff50;
- color: #00000099;
- background: rgba(255, 255, 255, 0.4);
- border-radius: 5px;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- padding: 0 2rem;
- margin-bottom: 2rem;
-}
-.summary h1 {
- align-self: center;
-}
-button.restart {
- background: #0cf574;
- color: #00000050;
- font-size: 2rem;
- margin-bottom: 1rem;
- transition: all 0.4s;
-}
-button.restart:hover {
- color: #00000098;
-}
-
-.footer-text{
- display:flex;
- flex-direction: row;
- align-content: flex-end;
- position: absolute;
- margin: 275px 0px 0px 80px;
-
- font-size: 18px;
- font-family: Ubuntu;
- font-style: normal;
- z-index:9;
+@import url('https://fonts.googleapis.com/css?family=Ubuntu&display=swap');
+
+*{margin:0;padding:0;}
+
+
+.leftbrain{
+ display:flex;
+ background:url('leftbrain.svg');
+ /* background-size: 100%; */
+ /* Center and scale the image nicely */
+ /* background-position: center; */
+ background-repeat: no-repeat;
+ /* background-size: cover; */
+}
+.rightbrain{
+ display:flex;
+ background:url('rightbrain.svg');
+ background-size: 100%;
+ /* Center and scale the image nicely */
+ /* background-position: center; */
+ background-repeat: no-repeat;
+ /* background-size: cover; */
+}
+.wellbalanced{
+ display:flex;
+ background:url('wellbalanced.svg');
+ background-size: 100%;
+ /* Center and scale the image nicely */
+ /* background-position: center; */
+ background-repeat: no-repeat;
+ /* background-size: cover; */
+}
+.logo{
+
+ position: absolute;
+ margin:0 auto;
+ width: 314px;
+ height: 314px;
+/* left: 563px;
+ top: 237px;*/
+ top: 50%;
+ left: 50%;
+ /* bring your own prefixes */
+ transform: translate(-50%, -50%);
+ }
+
+.header{
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ background: url('Background for home page.svg') ;
+ color: var(--main-text-color);
+ height: 635px;
+ left: 0px;
+ top: 0px;
+ background-size: cover;
+ }
+
+
+.header-text{
+ position: absolute;
+ font-family: Ubuntu;
+ font-style: normal;
+ font-weight: 500;
+ font-size: 44px;
+ line-height: 51px;
+ /* identical to box height */
+ display: flex;
+ flex-direction:row;
+ flex-wrap:wrap;
+ align-items: center;
+ padding:73px;
+ text-align: center;
+ letter-spacing: 0.05em;
+ color: #FFFFFF;
+
+}
+.header-text-small{
+ position: absolute;
+ font-family: Ubuntu;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 18px;
+ line-height: 21px;
+ /* identical to box height */
+ display: flex;
+ flex-direction:row;
+ justify-content:center;
+ align-items: center;
+ color: #FFFFFF;
+ padding:152px;
+ }
+.footer
+{
+ display: flex;
+ flex-direction: row;
+ background: url('Footer.svg');
+ position: absolute;
+ width: 100%;
+ height: 346px;
+ left: 0px;
+ -webkit-background-size: cover;
+ -moz-background-size: cover;
+ -o-background-size: cover;
+ background-size: cover;
+ }
+main{
+ padding:50px;
+ font-family: Ubuntu;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 24px;
+ line-height: 28px;
+ /* identical to box height */
+ display: flex;
+ flex-flow:row wrap;
+ justify-content:center;
+ align-items: center;
+ text-align: center;
+ color: #000000;
+ }
+
+
+.quiz-container {
+ /* box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
+ // text-shadow: 1px 1px white;
+ // padding: 3rem;
+ / text-shadow: 0 1px #576071;
+ width: 80%;
+ /* margin: 5rem auto;*/
+ display: flex;
+ flex-direction: column;
+ text-align: center;
+ font-family: Ubuntu;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 24px;
+ line-height: 35px;
+ box-sizing: border-box;
+ /* border: 2px solid #0099FF;*/
+ border-radius: 1rem;
+}
+
+/* for js*/
+
+.question {
+ margin: 2rem 0;
+font-family: Ubuntu;
+font-style: normal;
+font-weight: normal;
+font-size: 24px;
+line-height: 28px;
+ justify-content: center;
+
+/* identical to box height */
+
+display: flex;
+align-items: center;
+text-align: center;
+}
+.option {
+ display:flex;
+ flex-direction:row;
+ justify-content:center;
+ padding: 1rem;
+ color: #576071;
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 5px;
+ transition: all 0.3s;
+
+}
+.option:hover {
+ background: rgba(255, 255, 255, 0.4);
+}
+.option input:checked .option {
+ background: #08038c;
+ color: #000;
+}
+.controls{
+ padding:2rem;
+}
+.controls > * {
+ margin: 1rem;
+
+}
+button {
+ padding: 0.5rem 1.5rem;
+ border: none;
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
+ border-radius: 1rem;
+ font-weight: 300;
+ color: white;
+ outline: none;
+ transform: scale(0.98);
+ transition: all 0.2s;
+ font-family: Nunito Sans;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 24px;
+ line-height: 33px;
+/* identical to box height */
+
+
+}
+button.previous {
+ background: #000000;
+}
+button.next {
+ background: #000000;
+}
+button.restart {
+ background: #0cf574;
+ color: #00000050;
+ font-size: 2rem;
+ margin-bottom: 1rem;
+ transition: all 0.4s;
+}
+button.restart:hover {
+ color: #00000098;
+}
+button:hover,
+button:focus {
+ transform: scale(1);
+ font-weight: 500;
+ box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
+}
+
+
+/*new radio button */
+.card {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ flex-direction:row;
+ margin: auto;
+ -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 16, 0.19), 0 0.3rem 0.3rem rgba(0, 0, 16, 0.23);
+
+}
+
+.rating-container {
+
+ display: flex;
+ flex-direction: row;
+
+ justify-content: space-between;
+ padding: 0.4rem 0.8rem;
+ width: 100%;
+}
+
+.rating-text p {
+ color: rgba(0, 0, 16, 0.8);
+ font-size: 1.3rem;
+ padding: 0.3rem;
+}
+
+.rating {
+ display:flex;
+ background-color: rgba(0, 0, 16, 0.8);
+ padding: 0.4rem 0.4rem 0.1rem 0.4rem;
+ border-radius: 2.2rem;
+}
+
+svg {
+ fill: rgb(242, 242, 242);
+ height: 3.6rem;
+ width: 3.6rem;
+ margin: 0.2rem;
+}
+
+.rating-form-2 svg {
+ height: 3rem;
+ width: 3rem;
+ margin: 0.5rem;
+}
+
+#radios label {
+ position: relative;
+}
+
+input[type="radio"] {
+ position: absolute;
+ opacity: 0;
+}
+
+input[type="radio"] + svg {
+ -webkit-transition: all 0.2s;
+ transition: all 0.2s;
+}
+
+input + svg {
+ cursor: pointer;
+}
+
+input[class="super-happy"]:hover + svg,
+input[class="super-happy"]:checked + svg,
+input[class="super-happy"]:focus + svg {
+ fill: rgb(0, 109, 217);
+}
+
+input[class="happy"]:hover + svg,
+input[class="happy"]:checked + svg,
+input[class="happy"]:focus + svg {
+ fill: rgb(0, 204, 79);
+}
+
+input[class="neutral"]:hover + svg,
+input[class="neutral"]:checked + svg,
+input[class="neutral"]:focus + svg {
+ fill: rgb(232, 214, 0);
+}
+
+input[class="sad"]:hover + svg,
+input[class="sad"]:checked + svg,
+input[class="sad"]:focus + svg {
+ fill: rgb(229, 132, 0);
+}
+
+input[class="super-sad"]:hover + svg,
+input[class="super-sad"]:checked + svg,
+input[class="super-sad"]:focus + svg {
+ fill: rgb(239, 42, 16);
+}
+
+/*rightBrainView */
+
+.output-header-text{
+ display:flex;
+ position: absolute;
+ width: 610px;
+ height: 120px;
+ left: 74px;
+ top: 65px;
+ font-family: Ubuntu;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 44px;
+ line-height: 60px;
+/* or 136% */
+
+letter-spacing: 0.05em;
+
+color: #FFFFFF;
+}
+.outputlogo{
+ display: flex;
+ flex-direction: row;
+
+ color: var(--main-text-color);
+ width:100%;
+}
+
+.output{
+ display:flex;
+ flex-direction:row;
+}
+.output-text{
+ display:flex;
+ flex-direction:column;
+ justify-content:space-between;
+ position: absolute;
+ width: 807px;
+ height: 315px;
+ left: 62px;
+ top: 362.98px;
+ font-family: Ubuntu;
+ font-style: normal;
+ font-weight: 300;
+ font-size: 18px;
+ line-height: 21px;
+ align-items: center;
+
+ color: #000000;
+}
+.filler-div{
+ flex:1;
+
+}
+.output-brain{
+ display:flex;
+ flex-direction:row;
+ position: absolute;
+width: 362.03px;
+height: 395.99px;
+left: 973px;
+top: 303px;
+
+}
+
+/*dynamically displaying form fields*/
+.result {
+ display: flex;
+ flex-direction: column;
+ padding: 2rem;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ font-size: 2.5rem;
+ min-height: 100vh;
+}
+.final-score {
+ color: #00000099;
+}
+.summary {
+ font-size: 1rem;
+ text-shadow: 1px 1px #ffffff50;
+ color: #00000099;
+ background: rgba(255, 255, 255, 0.4);
+ border-radius: 5px;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ padding: 0 2rem;
+ margin-bottom: 2rem;
+}
+.summary h1 {
+ align-self: center;
+}
+button.restart {
+ background: #0cf574;
+ color: #00000050;
+ font-size: 2rem;
+ margin-bottom: 1rem;
+ transition: all 0.4s;
+}
+button.restart:hover {
+ color: #00000098;
+}
+
+.footer-text{
+ display:flex;
+ flex-direction: row;
+ align-content: flex-end;
+ position: absolute;
+ margin: 275px 0px 0px 80px;
+
+ font-size: 18px;
+ font-family: Ubuntu;
+ font-style: normal;
+ z-index:9;
}
\ No newline at end of file
diff --git a/WebContent/assets/wellbalanced.svg b/lab-braintest-master/WebContent/assets/wellbalanced.svg
similarity index 100%
rename from WebContent/assets/wellbalanced.svg
rename to lab-braintest-master/WebContent/assets/wellbalanced.svg
diff --git a/build/classes/.gitignore b/lab-braintest-master/build/classes/.gitignore
similarity index 100%
rename from build/classes/.gitignore
rename to lab-braintest-master/build/classes/.gitignore
index 611b17f..3a11f75 100644
--- a/build/classes/.gitignore
+++ b/lab-braintest-master/build/classes/.gitignore
@@ -1,3 +1,3 @@
-/service/
/controller/
+/service/
/testing/
diff --git a/src/controller/PersonalityViewController.java b/lab-braintest-master/src/controller/PersonalityViewController.java
similarity index 90%
rename from src/controller/PersonalityViewController.java
rename to lab-braintest-master/src/controller/PersonalityViewController.java
index 08a7a13..8524cbb 100644
--- a/src/controller/PersonalityViewController.java
+++ b/lab-braintest-master/src/controller/PersonalityViewController.java
@@ -1,69 +1,76 @@
-package controller;
-
-import java.io.IOException;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.annotation.WebServlet;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-
-// Do not edit or modify this class unless required.
-// This file acts as a controller class
-// Instructions would be given at specific places to create or modify the existing code
-
-@WebServlet(urlPatterns= {"/personality"})
-public class PersonalityViewController extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
-
- public PersonalityViewController() {
- super();
-
- }
-
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- System.out.println("Entering do get");
- RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/personalityView.jsp");
- rd.forward(request, response);
- }
-
-
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
-
- String options=request.getParameter("selectedOptions");
-
- System.out.println(options);
-
- // create an object for the PersonalityCalculator
- // call the findYourBrainType method using the object created above and pass options as argument.
- // The value returned from the method is of type string.
- // Store the String returned in a string literal called as message
-
- /* Un the below lines to test your code l
-
- request.setAttribute("message", message);
-
- if(message!=null)
- {
- if(message.equals("rightbrained")) {
- RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/rightBrainView.jsp");
- rd.forward(request, response);
- }
- else if(message.equals("leftbrained")) {
- RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/leftBrainView.jsp");
- rd.forward(request, response);
- }
- else {
- RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/neutralView.jsp");
- rd.forward(request, response);
- }
-
- }*/
- }
- }
-
-
+package controller;
+
+import java.io.IOException;
+import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import service.PersonalityCalculator;
+
+
+
+// Do not edit or modify this class unless required.
+// This file acts as a controller class
+// Instructions would be given at specific places to create or modify the existing code
+
+@WebServlet(urlPatterns= {"/personality"})
+public class PersonalityViewController extends HttpServlet {
+ private static final long serialVersionUID = 1L;
+
+
+ public PersonalityViewController() {
+ super();
+
+ }
+
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ System.out.println("Entering do get");
+ RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/personalityView.jsp");
+ rd.forward(request, response);
+ }
+
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+
+ String options=request.getParameter("selectedOptions");
+
+ System.out.println(options);
+ PersonalityCalculator obj= new PersonalityCalculator();
+ String message= obj.findYourBrainType(options);
+
+
+ // create an object for the PersonalityCalculator
+ // call the findYourBrainType method using the object created above and pass options as argument.
+ // The value returned from the method is of type string.
+ // Store the String returned in a string literal called as message
+
+
+ /*un the below lines to test your code l*/
+
+
+
+
+ request.setAttribute("message", message);
+
+ if(message!=null)
+ {
+ if(message.equals("rightbrained")) {
+ RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/rightBrainView.jsp");
+ rd.forward(request, response);
+ }
+ else if(message.equals("leftbrained")) {
+ RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/leftBrainView.jsp");
+ rd.forward(request, response);
+ }
+ else {
+ RequestDispatcher rd=this.getServletContext().getRequestDispatcher("/WEB-INF/views/neutralView.jsp");
+ rd.forward(request, response);
+ }
+
+ }
+ }
+ }
+
diff --git a/lab-braintest-master/src/service/PersonalityCalculator.java b/lab-braintest-master/src/service/PersonalityCalculator.java
new file mode 100644
index 0000000..692abd1
--- /dev/null
+++ b/lab-braintest-master/src/service/PersonalityCalculator.java
@@ -0,0 +1,49 @@
+package service;
+
+// Create a class called PersonalityCalculator
+// PersonalityCalculator has two methods findAnswers and findYourBrainType
+// int[] findAnswers(String options) and String findYourBrainType(String options) is the method prototype
+// findAnswer() accepts String as an argument and returns integer array as an output
+// findYourBrainType accepts String as an argument and returns String as an output
+// option is a string which contains all the options selected as a string
+// Use the split method to segregate the options and store it in a string array.
+// Convert the string array into an integer array.
+// return the entire integer array to findyourBrainType
+public class PersonalityCalculator
+{
+ public int[] findAnswers(String options)
+ {
+ String c[]=options.split(",");
+ int n=c.length;
+ int a[]=new int[n];
+ int i=0;
+ for(String s:c)
+ {
+ a[i]=Integer.parseInt(s);
+ i++;
+
+ }
+
+
+ return a;
+
+ }
+ public String findYourBrainType(String options)
+ {
+ int a[]=findAnswers(options);
+ int x=a[0]+a[1]+a[2]+a[4]+a[7]+a[9]+a[10]+a[11]+a[13]+a[17]+a[19];
+ int y=a[3]+a[5]+a[6]+a[12]+a[14]+a[15]+a[16]+a[18];
+ int z=66-x+y;
+ System.out.println("Yor total score "+z);
+ if((z>=22)&&(z<=55))
+ return "Left-brained ";
+ if((z>=56)&&(z<=64))
+ return "No clear preference ";
+ if((z>=65)&&(z<=100))
+ return "Right-brained";
+ return "false";
+
+
+ }
+
+}
\ No newline at end of file
diff --git a/src/testing/TestPersonalityCalculator.java b/lab-braintest-master/src/testing/TestPersonalityCalculator.java
similarity index 90%
rename from src/testing/TestPersonalityCalculator.java
rename to lab-braintest-master/src/testing/TestPersonalityCalculator.java
index 653c596..c7675d5 100644
--- a/src/testing/TestPersonalityCalculator.java
+++ b/lab-braintest-master/src/testing/TestPersonalityCalculator.java
@@ -1,31 +1,32 @@
-package testing;
-/* Uncomment the below code to test your application
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-import service.PersonalityCalculator;
-
-public class TestPersonalityCalculator {
- PersonalityCalculator pc = new PersonalityCalculator();
-
- @Test
- public void testFindYourBrainTypeMethod() {
- String options = "1,2,3,2,1,4,5,2,3,4,5,4,3,2,3,4,5,3,2,4";
- assertEquals("rightbrained",pc.findYourBrainType(options));
- options = "4,5,4,2,5,3,2,4,3,5,4,5,2,4,3,2,3,5,2,4";
- assertEquals("leftbrained",pc.findYourBrainType(options));
- options = "1,2,3,2,1,4,2,2,2,2,2,4,3,2,3,4,2,3,2,4";
- assertEquals("noclearpreference",pc.findYourBrainType(options));
- try {
- if(options.contains("0"))
- pc.findYourBrainType(options);
- if(options.contains(null))
- pc.findYourBrainType(options);
- }
- catch(Exception e) {
- e.printStackTrace();
- }
- }
-}*/
\ No newline at end of file
+package testing;
+
+//Uncomment the below code to test your application
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+import service.PersonalityCalculator;
+
+public class TestPersonalityCalculator {
+ PersonalityCalculator pc = new PersonalityCalculator();
+
+ @Test
+ public void testFindYourBrainTypeMethod() {
+ String options = "1,2,3,2,1,4,5,2,3,4,5,4,3,2,3,4,5,3,2,4";
+ assertEquals("rightbrained",pc.findYourBrainType(options));
+ options = "4,5,4,2,5,3,2,4,3,5,4,5,2,4,3,2,3,5,2,4";
+ assertEquals("leftbrained",pc.findYourBrainType(options));
+ options = "1,2,3,2,1,4,2,2,2,2,2,4,3,2,3,4,2,3,2,4";
+ assertEquals("noclearpreference",pc.findYourBrainType(options));
+ try {
+ if(options.contains("0"))
+ pc.findYourBrainType(options);
+ if(options.contains(null))
+ pc.findYourBrainType(options);
+ }
+ catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/service/PersonalityCalculator.java b/src/service/PersonalityCalculator.java
deleted file mode 100644
index 7e837a0..0000000
--- a/src/service/PersonalityCalculator.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package service;
-
-// Create a class called PersonalityCalculator
-// PersonalityCalculator has two methods findAnswers and findYourBrainType
-// int[] findAnswers(String options) and String findYourBrainType(String options) is the method prototype
-// findAnswer() accepts String as an argument and returns integer array as an output
-// findYourBrainType accepts String as an argument and returns String as an output
-// option is a string which contains all the options selected as a string
-// Use the split method to segregate the options and store it in a string array.
-// Convert the string array into an integer array.
-// return the entire integer array to findyourBrainType