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-right: auto;
|
||||
display: table;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
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>
|
||||
</div>
|
||||
|
||||
<div><small>
|
||||
<div id="te-notice"><small>
|
||||
When the test refers to negative て forms, they are assumed to be ~なくて and not ~ないで .
|
||||
</small></div>
|
||||
|
||||
|
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user