Implemented verb class options.

This commit is contained in:
doncr 2016-12-25 15:51:49 +00:00
parent fbaff068ea
commit f4cd9de2b1
2 changed files with 46 additions and 2 deletions

View File

@ -155,6 +155,12 @@ input#numQuestions {
width: 60px;
}
div.options ul {
list-style-type: none;
margin: 0;
padding-left: 16px;
}
/* Tooltip from http://jsfiddle.net/AndreaLigios/jtLbpy62/ */
[tooltip]:before {

View File

@ -59,6 +59,8 @@ var conjugations = {
"行く" : {
"group" : "iku",
"plain" : "行[い]く",
"negative" : "行[い]かない",
"polite" : "行[い]きます",
@ -83,6 +85,8 @@ var conjugations = {
"飲む" : {
"group" : "godan",
"plain" : "飲[の]む",
"negative" : "飲[の]まない",
"polite" : "飲[の]みます",
@ -107,6 +111,8 @@ var conjugations = {
"作る" : {
"group" : "godan",
"plain" : "作[つく]る",
"negative" : "作[つく]らない",
"polite" : "作[つく]ります",
@ -131,6 +137,8 @@ var conjugations = {
"買い戻す" : {
"group" : "godan",
"plain" : "買[か]い戻[もど]す",
"negative" : "買[か]い戻[もど]さない",
"polite" : "買[か]い戻[もど]します",
@ -155,6 +163,8 @@ var conjugations = {
"見る" : {
"group" : "ichidan",
"plain" : "見[み]る",
"negative" : "見[み]ない",
"polite" : "見[み]ます",
@ -179,6 +189,8 @@ var conjugations = {
"食べる" : {
"group" : "ichidan",
"plain" : "食[た]べる",
"negative" : "食[た]べない",
"polite" : "食[た]べます",
@ -203,6 +215,8 @@ var conjugations = {
"起きる" : {
"group" : "ichidan",
"plain" : "起[お]きる",
"negative" : "起[お]きない",
"polite" : "起[お]きます",
@ -227,6 +241,8 @@ var conjugations = {
"買い換える" : {
"group" : "ichidan",
"plain" : "買[か]い換[か]える",
"negative" : "買[か]い換[か]えない",
"polite" : "買[か]い換[か]えます",
@ -251,6 +267,8 @@ var conjugations = {
"来る" : {
"group" : "kuru",
"plain" : "来[く]る",
"negative" : "来[こ]ない",
"polite" : "来[き]ます",
@ -275,6 +293,8 @@ var conjugations = {
"勉強する" : {
"group" : "suru",
"plain" : "勉[べん]強[きょう]する",
"negative" : "勉[べん]強[きょう]しない",
"polite" : "勉[べん]強[きょう]します",
@ -289,6 +309,8 @@ var conjugations = {
"電話する" : {
"group" : "suru",
"plain" : "電[でん]話[わ]する",
"negative" : "電[でん]話[わ]しない",
"polite" : "電[でん]話[わ]します",
@ -303,6 +325,8 @@ var conjugations = {
"読む" : {
"group" : "godan",
"plain" : "読[よ]む",
"negative" : "読[よ]まない",
"polite" : "読[よ]みます",
@ -327,6 +351,8 @@ var conjugations = {
"思う" : {
"group" : "godan",
"plain" : "思[おも]う",
"negative" : "思[おも]わない",
"polite" : "思[おも]います",
@ -351,6 +377,8 @@ var conjugations = {
"買い与える" : {
"group" : "ichidan",
"plain" : "買[か]い与[あた]える",
"negative" : "買[か]い与[あた]えない",
"polite" : "買[か]い与[あた]えます",
@ -375,6 +403,8 @@ var conjugations = {
"座る" : {
"group" : "godan",
"plain" : "座[すわ]る",
"negative" : "座[すわ]らない",
"polite" : "座[すわ]ります",
@ -399,6 +429,8 @@ var conjugations = {
"休む" : {
"group" : "godan",
"plain" : "休[やす]む",
"negative" : "休[やす]まない",
"polite" : "休[やす]みます",
@ -423,6 +455,8 @@ var conjugations = {
"足す" : {
"group" : "godan",
"plain" : "足[た]す",
"negative" : "足[た]さない",
"polite" : "足[た]します",
@ -447,6 +481,8 @@ var conjugations = {
"歌う" : {
"group" : "godan",
"plain" : "歌[うた]う",
"negative" : "歌[うた]わない",
"polite" : "歌[うた]います",
@ -470,8 +506,6 @@ var conjugations = {
},
};
var log;
Array.prototype.randomElement = function () {
@ -889,6 +923,10 @@ function generateVerbQuestion() {
}
});
if ($('#' + conjugations[entry].group).is(':checked') == false) {
valid = false;
}
if (!forms["furigana"][from_form])
valid = false;