Changed te-form notice to show only when that option is ticked.

This commit is contained in:
doncr 2017-03-19 00:16:23 +00:00
parent 177cc8190a
commit 10d96756ff
3 changed files with 13 additions and 1 deletions

View File

@ -149,6 +149,7 @@ div#splash > * {
margin-left: auto;
margin-right: auto;
display: table;
margin-bottom: 12px;
}
input#numQuestions {

View File

@ -60,7 +60,7 @@
<label><input type="checkbox" id="trick" checked> Trick questions (answers may be the same as the given form)</label>
</div>
<div><small>
<div id="te-notice"><small>
When the test refers to negative て forms, they are assumed to be ~なくて and not ~ないで .
</small></div>

View File

@ -1301,6 +1301,14 @@ function endQuiz() {
$('#backToStart').focus();
}
function updateTeNotice() {
if ($('#te-form').is(':checked')) {
$('#te-notice').show();
} else {
$('#te-notice').hide();
}
}
$('window').ready(function() {
// Add trick forms
@ -1321,5 +1329,8 @@ $('window').ready(function() {
$('#go').click(startQuiz);
$('#backToStart').click(showSplash);
$('#te-form').click(updateTeNotice);
updateTeNotice();
showSplash();
});