summaryrefslogtreecommitdiffstats
path: root/mainpage.html
diff options
context:
space:
mode:
Diffstat (limited to 'mainpage.html')
-rw-r--r--mainpage.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/mainpage.html b/mainpage.html
index d198ed4..ac72f7f 100644
--- a/mainpage.html
+++ b/mainpage.html
@@ -22,8 +22,8 @@ function fillQuestionQueue() {
}
var question = eval("(" + requestObj.responseText + ")");
var preloadImage = new Image();
- preloadImage.src = question.frame;
- question.frame = preloadImage;
+ preloadImage.src = question.image;
+ question.image = preloadImage;
questions.push(question);
if (!hasLoadedFirst) {
showNextQuestion();
@@ -42,7 +42,7 @@ function showNextQuestion() {
return;
}
currentQuestion = questions.shift();
- thumbnail.src = currentQuestion.frame.src;
+ thumbnail.src = currentQuestion.image.src;
title.innerHTML = currentQuestion.title;
var checkBoxes = "";
for (var i = 0; i < currentQuestion.cast.length; i++) {
@@ -62,12 +62,12 @@ function answerQuestion() {
alert("Please select the characters in the frame. If you do not know, press skip. If there are none, press none.");
return;
}
- answerObj.open("GET", "/answerquestion?code=" + currentQuestion.code + "&inframe=" + castInFrame.toString());
+ answerObj.open("GET", "/answerquestion?code=" + currentQuestion.code + "&frame=" + currentQuestion.frame.toString() + "&answer=" + castInFrame.toString());
answerObj.send(null);
showNextQuestion();
}
function emptyAnswer() {
- answerObj.open("GET", "/answerquestion?code=" + currentQuestion.code + "&inframe=-1");
+ answerObj.open("GET", "/answerquestion?code=" + currentQuestion.code + "&frame=" + currentQuestion.frame.toString() + "&answer=-1");
answerObj.send(null);
showNextQuestion();
}