mirror of
https://github.com/ZetaKebab/japanese-conjugation-drill.git
synced 2025-01-14 22:08:44 +00:00
Changed te-form notice to show only when that option is ticked.
This commit is contained in:
parent
177cc8190a
commit
10d96756ff
@ -149,6 +149,7 @@ div#splash > * {
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
display: table;
|
display: table;
|
||||||
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input#numQuestions {
|
input#numQuestions {
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
<label><input type="checkbox" id="trick" checked> Trick questions (answers may be the same as the given form)</label>
|
<label><input type="checkbox" id="trick" checked> Trick questions (answers may be the same as the given form)</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div><small>
|
<div id="te-notice"><small>
|
||||||
When the test refers to negative て forms, they are assumed to be ~なくて and not ~ないで .
|
When the test refers to negative て forms, they are assumed to be ~なくて and not ~ないで .
|
||||||
</small></div>
|
</small></div>
|
||||||
|
|
||||||
|
@ -1301,6 +1301,14 @@ function endQuiz() {
|
|||||||
$('#backToStart').focus();
|
$('#backToStart').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateTeNotice() {
|
||||||
|
if ($('#te-form').is(':checked')) {
|
||||||
|
$('#te-notice').show();
|
||||||
|
} else {
|
||||||
|
$('#te-notice').hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$('window').ready(function() {
|
$('window').ready(function() {
|
||||||
|
|
||||||
// Add trick forms
|
// Add trick forms
|
||||||
@ -1321,5 +1329,8 @@ $('window').ready(function() {
|
|||||||
$('#go').click(startQuiz);
|
$('#go').click(startQuiz);
|
||||||
$('#backToStart').click(showSplash);
|
$('#backToStart').click(showSplash);
|
||||||
|
|
||||||
|
$('#te-form').click(updateTeNotice);
|
||||||
|
updateTeNotice();
|
||||||
|
|
||||||
showSplash();
|
showSplash();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user