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; width: 60px;
} }
div.options ul {
list-style-type: none;
margin: 0;
padding-left: 16px;
}
/* Tooltip from http://jsfiddle.net/AndreaLigios/jtLbpy62/ */ /* Tooltip from http://jsfiddle.net/AndreaLigios/jtLbpy62/ */
[tooltip]:before { [tooltip]:before {

View File

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