summaryrefslogtreecommitdiffstats
path: root/mainpage.html
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2009-10-20 20:53:08 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2009-10-20 20:53:08 -0400
commit9f9425559325a696ca9a8dbbe94e7f526b0d16d1 (patch)
tree20a7da41ef9fa33fa81f856b3900c97370cf660c /mainpage.html
parentSupport actors with many roles. (diff)
downloadFramedPrototype-9f9425559325a696ca9a8dbbe94e7f526b0d16d1.tar.xz
FramedPrototype-9f9425559325a696ca9a8dbbe94e7f526b0d16d1.zip
Added statistics interface and added frame to answer store.
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();
}