X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/3761a259f4f129aae70bb30e8dbb255fa09acd6c..89cc73c8a0ee71ed9e85cbb7fcbf7e9e53fb1713:/word/quiz.js
diff --git a/word/quiz.js b/word/quiz.js
index 5498809..9436f7a 100644
--- a/word/quiz.js
+++ b/word/quiz.js
@@ -83,6 +83,15 @@ class Words {
get label() {
return row[0].replace(/\/.*/, ''); // primary form
},
+ get html() {
+ let aliases = this.title.split('/');
+ let html = aliases.shift();
+ html = html.replace(/\((.+)\)/, '$1');
+ for (let alias of aliases) {
+ html += ` (${alias})`;
+ }
+ return html;
+ },
level: row[1],
imgid: row[2],
thumb(size = 32) {
@@ -129,6 +138,9 @@ class WordQuiz {
else if (query === 'level') {
this.preset.level = parseInt(val);
}
+ else if (query === 'debug') {
+ this.preset.debug = true;
+ }
else {
this.preset[query] = val;
}