"; gamescore = numRight+" out of "+answers.length; pgt += "
Share results on"; pgt += ""; var timestr = ''; if(numRight == answers.length) { timestr = ' in '+displayTime(origSecs-remainingSecs); } attachtwit = "Got " + numRight + "/" + answers.length + timestr + " playing " + gti + ". "; if (numRight == answers.length) attachtwit += "Try to match me: "; else attachtwit += "Try to top that: "; attachurl = "http://www.sporcle.com" + gameurl; pgt += '??'; pgt += "
"; pgt += ""; return pgt; } var showans = true; function toggleshow() { showans = !showans; } var wrongGuesses = Array(); var showNext = true; function displayAnswer(answerSlot, answer, gameOver) { /* If the game is over and either bonus answers are wrong, or the showNext flag has been set to false, we won't display the answer text */ var showAnswer = (gameOver === true && (_spwr || !showNext)) ? false : showans; var theAnswer = (!showAnswer && found.indexOf(answer) == -1) ? "???" : getAnswer(answer).escapeHTML().replace(/\|/g, "/"); $(answerSlot).innerHTML = theAnswer; new Effect.Highlight(answerSlot, {startcolor:'#FFFF33' }); } function showAnswer(answerSlot, answer, gameOver) { var answer_cleanup = null; if(answer >= answers.length) { if ($('name'+answer) && !_spwr) $('name'+answer).show(); $(answerSlot).show(); answer_cleanup = answer; answer = parseInt(answerSlot.replace('slot', '')); } displayAnswer(answerSlot, answer_cleanup ? answer_cleanup : answer, gameOver); } var isHangout = false; function checkGameInput(field) { if(field.value.length>1) { currGuess = field.value.toLowerCase(); var e=''; for(var i=0;i
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.