MediaWiki:Quiz/code2.js

(function($) {	'use strict';	var translations = {		// English		en: {			nxtBtn: "Next",			rplBtn: "Replay",			resultsHeader: "Results",			noQuestionsHeader: "No questions provided"		},		// Deutsch		de: {			nxtBtn: "Weiter",			rplBtn: "Wiederholen",			resultsHeader: "Ergebnisse",			noQuestionsHeader: "Keine Fragen bereitgestellt"		},		// Français		fr: {			nxtBtn: "Suivant",			rplBtn: "Rejouer",			resultsHeader: "Résultats",			noQuestionsHeader: "Aucune question posée"		},               // Spanish		es: {			nxtBtn: "Siguiente",			rplBtn: "Repetir",			resultsHeader: "Resultados",			noQuestionsHeader: "No hay preguntas proporcionadas"		},		// Polski		pl: {			nxtBtn: "Dalej",			rplBtn: "Ponów",			resultsHeader: "Wyniki",			noQuestionsHeader: "Nie wpowadzono pytań"		}		// Mandarin		zh: {			nxtBtn: "下一题",			rplBtn: "再试一次",			resultsHeader: "结果",			noQuestionsHeader: "题库中没有问题"		}	};	var api = new mw.Api; function addNewSection( summary, content ) { api.postWithToken('edit', {			action: 'edit',			title: mw.config.get('wgPageName')+'/score',			section: 'new quiz',			summary: summary,			text: content		}).then(function (result, jqXHR) {			alert("Saved successfully");			//location.reload;		}, function (code, result) {			if (code === 'http')				alert("HTTP error: " + result.textStatus); // result.xhr contains the jqXHR object			else if (code === 'ok-but-empty')				alert("Got an empty response from the server");			else				alert("API error: " + code);		}); }	function msg(name) { if (quizLang in translations && name in translations[quizLang]) { return translations[quizLang][name]; }       return translations.en[name]; }	var score = 0; var currentQuestion = 0; var secondsSince = 0; var minutesSince = 0; var questionsAmount = questions.length; var startCounterVar; $.fn.randomize = function(selector) { (selector ? this.find(selector) : this).parent.each(function {			$(this).children(selector).sort(function { return Math.random - 0.5; }).detach.appendTo(this);		}); return this; };	$(document).ready(function {		if ($('#quizQ').length > 0) {		console.log($('#quizQ').length);			var quizQStylesheetURL = "/load.php?mode=articles&articles=u:dev:Quiz/code.css&only=styles";			$(document.head).append('');			$('div#quizQ').append('         ');			startCounter;			floatHourglass;			summonBigClouds;			summonSmallClouds;			$('#quizQ #quizName').text(quizName);			if (questionsAmount > 0) {				$('#quizQ #nxtBtn').on('click', function { $('#quizQ #nxtBtn').removeClass('nxtBtnActive'); if ($('#quizQ #questionForm input:checked').length > 0 || currentQuestion === -1) { updateScore; $('#quizQ #questionBlock').fadeOut(200, updateForm); $('#quizQ #questionBlock').fadeIn(200); }				});				$('#quizQ #questionCounter').text(currentQuestion + 1 + '/' + questionsAmount);				$('#quizQ #nxtBtn').text(msg("nxtBtn"));				createform;				$('#quizQ #questionBlock').on('click', function { if ($('#quizQ #questionForm input:checked').length > 0) { $('#quizQ #nxtBtn').addClass('#quizQ nxtBtnActive'); }				});			} else {				$('#quizQ #question').html(' ' + msg("noQuestionsHeader") + ' ');			}		}	}); function createform { var currentQuestionArray = questions[currentQuestion]; $('#quizQ #question').text(currentQuestionArray[0]); $.each(currentQuestionArray, function(i, v) {			if (i < 1) {				return true;			}			$('#quizQ #questionForm').append(' ' + v + ' ');		}); $('#answerWrapper').randomize; }	function updateScore { if (currentQuestion !== -1) { var submittedAnswer = $('#quizQ #questionForm input:checked + label').text; var currentQuestionArray = questions[currentQuestion]; var correctAnswer = currentQuestionArray[1]; if (correctAnswer === submittedAnswer) { score++; }		} else { score = 0; }	}	function updateForm { currentQuestion++; if (currentQuestion < questionsAmount) { $('#quizQ #questionForm').empty; createform; $('#quizQ #questionCounter').text(currentQuestion + 1 + '/' + questionsAmount); }		if (currentQuestion === questionsAmount) { currentQuestion = -1; clearTimeout(startCounterVar); $('#quizQ #questionForm').empty; $('#quizQ #questionCounter').text(""); $('#quizQ #question').html(' ' + msg("resultsHeader") + ':' + ' ' + Math.round(score / questionsAmount * 100) + '% (' + score + '/' + questionsAmount + ') '); var finalScore = score / questionsAmount; var resultsFraction = 1 / resultsTextArray.length; var resultsText; $.each(resultsTextArray, function(i, v) {				if (finalScore >= resultsFraction * i) {					resultsText = v;				}			}); $('#quizQ #questionBlock').append(' ' + resultsText + ' '); $('#quizQ #nxtBtn').text(msg("rplBtn")).addClass('nxtBtnActive'); var content = mw.config.get('wgPageName')?'mw.config.get('wgPageName')' +'得分：'+finalscore+';':'匿名用户得分：'+finalscore; content = content + " 用时："+minutesSince+"分"+secondsSince+"秒"; addNewSection("add quiz result", content );

}		if (currentQuestion === 0) { secondsSince = 0; minutesSince = 0; startCounter; $('#quizQ #resultsText').remove; $('#quizQ #nxtBtn').text(msg("nxtBtn")).removeClass('nxtBtnActive'); $('#quizQ #questionCounter').text(currentQuestion + 1 + '/' + questionsAmount); }	}	function startCounter { if (secondsSince > 59) { secondsSince = 0; minutesSince += 1; }		function checkTime(i) { if (i < 10) { i = "0" + i;			} return i;		} var mAdjusted = checkTime(minutesSince); var sAdjusted = checkTime(secondsSince); $('#quizQ #quiztimer').text(mAdjusted + ':' + sAdjusted); secondsSince += 1; startCounterVar = setTimeout(function {			startCounter;		}, 1000); }	function floatHourglass { $('#quizQ #quizhourglass').animate({			top: "-=20px"		}, 1000).animate({			top: "+=20px"		}, 1000); setTimeout(function {			floatHourglass;		}, 2000); }	function summonBigClouds { var randomHeight = Math.random * 500 - 70; $('<div style="background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAABPCAYAAAAJMDwFAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gIRBwwGNhxI2QAAE6VJREFUeNrtnXl0FNeVh3/1qnpXq6XWgnaptVliDYtiYMAssVkkYGwENrFjJ8Zgm+PYJh45cSDYScYmmWAfE+9mkgHibY5ZfJxJ4mAHbAgKwkZsAgmhtbVv3ep9qa6qN3+oJSQ2s2mv75w+6q5WV3e9d+ve++677z4GMoBSD/DOy73DsCDEEB4OtU7L2WzWMaIgJlFKw6lEdWCoAgADMF6GYRwsIVaVUlE1buwk+6nTJ+BxuyABEgB6uZOHQQUb/COySZnRLlMMA9C+3a7gWIXCGBEeLgSE73EcNzvUEDo1Pj4+OT09ncvIyJB0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SAGMIIe/n5ua1lZefb7rChp/9gXP3rl2N2VlZjYSQn1wygteOkrChvu8G5GMYhnywevXq2vb29rabrDTo/uSTTxpTUkwthJDFuMxGCrEhMQxhWQOABQDzLCHs24TlPiWE7CeE3c+y7F8Iy70LYCOApQxDovgPmmC8UIcM+oi4viclGly00G65wWA4t2HDxmar1doiSVK/VE+UJMlz9GhR1bx585pYlv0MwKQL1mG0Jg4r9Rff9o/ExSeUbt26tdZut1sCgYAkiqL0LZWcJUEQqCiKruLi4oa8vDyLSqXaFQz89kHH3HypVe23nEOh6TPI5QA8o9PpqtasWVtdVnbO7Pf73YIgUKmrzrl0/XIkSYFAQHK5XPavvvqqdtGiRfUAigAs6/s7+q+qwrDx1RhCevY5RFd5wicTEhK+v2zZMvWSJUtITk6ORqFQGBiGUTMMQ4ORZFBKva2trfb9B/b73/vTe8qioqIySul/Adh/sTa54s4M+kjA2XHhuST12XBSzeng67WV27XCEgLxwjVxAB4AsHrs2LFJ999/fyA3N1eTmpqqI4QYOI4DIYRhWbZPvU9JkqgoiowkSVQQhEAgELCXlJz2ffLJp/49e3aTxsbGYgDvAPiyR6A4IHCLd6IYtoLVW3VTqU+UZRGAJQqOm5GckiJFR0XpKCAyACOKEtPU3MzU19d1BOe2PgZQ3vvDMVmT0HLu1OAOrFkOgtgnQJgEYAmAOREREeMmT54sZGZmcrGxsVx6ehqJiIhUi6LIcBwnVVdXe5uamkh9fb3v+PHjYmlpKXieLwoK0mfBeGG3OkaYW4mB2O1+WI4ujfpIWLs1yEVWKDjK6Y7W29C1X8wlC3JTY1NQ3Vw7ZK4pDKqrdXgCgEwA8cFgtC6o4fzo2vjKCsAM4PyVAs7fcv5bzv8D4/qzkLCzWDgAAAAASUVORK5CYII=); width:150px; height:79px; z-index:2; position:absolute; right:-150px;"> ').css('top', randomHeight).appendTo('#quizQ').animate({ "right": "+=850px" }, 20000, function { $(this).remove; });		setTimeout(function { summonBigClouds; }, 4000);	}	function summonSmallClouds {		var randomHeight = Math.random * 500 - 35;		$('<div style="background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAoCAYAAAC2LgceAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gIRBw0GLwd5mAAADURJREFUaN7tmtuPG1Wex8+pc6mL62KXb+1L247d3ZkQ2O6gEJqwQTAJmt2dzQvKwwjN40grxB/BP8H/gHhFQtrV7igs7A4gwibZDHSaTnfbsdvtS7tddtnlup4zD+nONCywgUnSQfCTLEuWbVV96vu7HwiOyV5//XWo6zohRFHy+XRCluWsqqo5WZZzEMK5MAzTQRAoEEJAKbUJIf0oirqO43Tt8bizNxh0x+Pxvuu6zgcffBBsbGzwR33N+HFDqlar8NTJkzhbKMSy6fRcJpWqmaZ5yjTNRU3T5hVFSRNCDEEQJAihcPCziDE28zzPnjpOfzwet4aDwVeD/f3b/X7/jq7rnbW1tena2lq4vb39yKDBxwnq0qVLQqFQEKuLi6liLncyOzd3Np1OnzETiUVN07KKoqgYY4oQwvCeAQAA4JwDzjmLoigKgsB3HGdi23Z3f3//Trfbvd7pdK51Op3b29vbfc/zvHfeeeeRAEOPC9Tvf/87IZ+vKouL1XKtWn2xVqv9U7lcvpjP55eTpllUVVUXRVEihBCMsfBNwxgjjDGmlFJZlmOqqpqqquY0TSvIspyklAqiKDphGM5Onz4dXr9+nf8kYf3LH/4gCJISq1bmF04unvx1tVr97fz8/AvpVKqiKopGKKUHTO6rCUL4tdeRzyCEUMAYY0mSJFmWE7FYLCuKokkIgQgh2/O8yalTpx46sMcRs2CIsbx04sSJpaWlX9dq1X/I5XLP6LpuYoyJIAg/OBQcwkMIIVmWZUJInlIqiaKoEEIwhJD5vr8JAJgBAPhPQllnzpwBFy5cEBer1eLC4uIrtVrtt8ViccUwjCQh5EeB+hZwECEkUEplSqkBIYwFQTCbue5esVictFotNpvNnnxY+XwePfPMM8mlpaXVpaWlfy6VSmcNw0hhjPGhOh6Weg9ckxJCVM458j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OdToIgGA8GA6fVagWcc7i4uKik0+l8Pl/4VaGQezqdzvwqmUwWFUVJiqIYQwiJEEJ47xhqMJvNZkPLsjr9fv/O7u7uF41G44t2u93o9XrWnTt3gkaj8f9W4w89Y50/f14oFApSsVg0U6lUUVXVEiEkzziPH/jDvuM4O8PhsN7tdtt7e3vDmzdvBvF4HPR6Pbi6uoocx4FRFAkYYyYIAv/ss8+i0WjEDvZ7hzcFL1++THRd15LJZCqdTuUNI1GklJQYY0XGmAkAQIIg2BDCNmOsadt2azAYtLrdbnc4HI6azaZ748aNB+6J/wJOlV5kioBQFAAAAABJRU5ErkJggg==); width:75px; height:40px; z-index:1; position:absolute; right:-75px;"> ').css('top', randomHeight).appendTo('#quizQ').animate({ "right": "+=800px" }, 30000, function { $(this).remove; });		setTimeout(function { summonSmallClouds; }, 5000);	} })(jQuery);