aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/css/hebrewparsetrainer.css4
-rw-r--r--public/js/hebrewparsetrainer.js8
2 files changed, 12 insertions, 0 deletions
diff --git a/public/css/hebrewparsetrainer.css b/public/css/hebrewparsetrainer.css
index 9b90843..1776cf3 100644
--- a/public/css/hebrewparsetrainer.css
+++ b/public/css/hebrewparsetrainer.css
@@ -25,6 +25,10 @@
padding: 15px;
}
+#trainer-input-help {
+ display: none;
+}
+
.hebrew {
font-family: 'Ezra SIL', David;
}
diff --git a/public/js/hebrewparsetrainer.js b/public/js/hebrewparsetrainer.js
index f98d5b9..dc838c7 100644
--- a/public/js/hebrewparsetrainer.js
+++ b/public/js/hebrewparsetrainer.js
@@ -253,5 +253,13 @@ $(document).ready(function(){
reloadVerb();
});
+ var help_shown = false;
+ $('#show-hide-help').click(function(){
+ help_shown = !help_shown;
+ $('#trainer-input-help').slideToggle();
+ $(this).text((help_shown ? 'Hide' : 'Show') + ' help');
+ $('#trainer-input-'+input_count).focus();
+ });
+
init();
});