diff --git a/css/style.css b/css/style.css
index 30cbe4c..041866d 100644
--- a/css/style.css
+++ b/css/style.css
@@ -13,3 +13,15 @@
.answer:hover{
cursor: pointer;
}
+.image-answer{
+ cursor: pointer;
+ height: 350px;
+ width: 100%;
+ overflow: hidden;
+ border-radius: 10px;
+ margin-bottom: 20px;
+}
+.image-answer img{
+ width: 100%;
+ height: auto;
+}
diff --git a/index.html b/index.html
index 7c79476..48a6f38 100644
--- a/index.html
+++ b/index.html
@@ -71,7 +71,7 @@
locations:{{list.activeTurtle.locations}}
Size:{{list.activeTurtle.size}}
-
Average: Lifespan{{list.activeTurtle.lifespan}}
+
Average Lifespan:{{list.activeTurtle.lifespan}}
Dite:{{list.activeTurtle.dite}}
@@ -130,19 +130,30 @@
{{quiz.activeQuestion+1 + ". " + quiz.dataServices.quizQuestions[quiz.activeQuestion].text}}
-
+
+
+
+
+
![]()
+
+
+
+
+
-
-
+
+
diff --git a/js/controllers/quiz.js b/js/controllers/quiz.js
index 03a6c9a..856fdec 100644
--- a/js/controllers/quiz.js
+++ b/js/controllers/quiz.js
@@ -14,9 +14,35 @@
vm.dataServices = DataServices;
vm.questionAnswered = questionAnswered;
vm.activeQuestion = 0;
+ vm.setActiveQuestion = setActiveQuestion;
+
+ var numQuestionsAnswered = 0;
+
+ function setActiveQuestion () {
+ var breakOut = false;
+ var quizLength = DataServices.quizQuestions.length - 1;
+
+ while (!breakOut) {
+ vm.activeQuestion = vm.activeQuestion < quizLength?++vm.activeQuestion:0;
+
+ if (DataServices.quizQuestions[activeQuestion].selected === null)
+ breakOut = true;
+ }
+ }
function questionAnswered () {
-
+
+ var quizLength = DataServices.quizQuestions.length;
+
+ if (DataServices.quizQuestions[vm.activeQuestion].selected !== null){
+ numQuestionsAnswered++;
+
+ if (numQuestionsAnswered >= quizLength) {
+ // Finilise the quiz
+ }
+ }
+
+ vm.setActiveQuestion();
}
}