MediaWiki:Common.js: Różnice pomiędzy wersjami

Z CraftSite Wiki
Przejdź do nawigacji Przejdź do wyszukiwania
imported>Matik7
Nie podano opisu zmian
imported>Matik7
Nie podano opisu zmian
Linia 1: Linia 1:
var quizName = "Quiz";
var quizLang = "en";
var resultsTextArray = [
"Text displayed after the user completes the quiz with the LOWEST score",
"Text displayed after the user completes the quiz somewhere between the lowest and highest scores. Feel free to add more than one of these (separated by commas and inside double quotes)",
"Text displayed after the user completes the quiz with the HIGHEST score"
];
var questions = [
["This is the first question",
"The CORRECT answer to question 1",
"An INCORRECT answer to question 1",
"Another INCORRECT answer to question 1",
"Yet Another INCORRECT answer to question 1"],
["This is the second question, feel free to add as many questions as you like",
"The CORRECT answer to question 2",
"An INCORRECT answer to question 2",
"Another INCORRECT answer to question 2"]
];
importArticles({
    type: 'script',
    articles: [
        'u:dev:Quiz/code.js'
    ]
});
// 1. AjaxRC configuration option
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
var ajaxRefresh = 30000;

Wersja z 21:00, 23 lut 2014

var quizName = "Quiz";
var quizLang = "en";
var resultsTextArray = [ 
	"Text displayed after the user completes the quiz with the LOWEST score",
	"Text displayed after the user completes the quiz somewhere between the lowest and highest scores. Feel free to add more than one of these (separated by commas and inside double quotes)",
	"Text displayed after the user completes the quiz with the HIGHEST score" 
	];
var questions = [
 
	["This is the first question",
	"The CORRECT answer to question 1",
	"An INCORRECT answer to question 1",
	"Another INCORRECT answer to question 1",
	"Yet Another INCORRECT answer to question 1"], 
 
	["This is the second question, feel free to add as many questions as you like",
	"The CORRECT answer to question 2",
	"An INCORRECT answer to question 2",
	"Another INCORRECT answer to question 2"]
 
	];
 
importArticles({
    type: 'script',
    articles: [
        'u:dev:Quiz/code.js'
    ]
});
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
 
// 2. AjaxRC import statement
importScriptPage('AjaxRC/code.js','dev');