From dcf5ed8b8ac33f6f5aa77c8dd3ac13746f55a155 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 5 Jan 2016 19:58:45 +0100 Subject: Parsing help --- public/css/hebrewparsetrainer.css | 4 ++++ public/js/hebrewparsetrainer.js | 8 ++++++++ resources/views/trainer.php | 14 ++++++++++++-- 3 files changed, 24 insertions(+), 2 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(); }); diff --git a/resources/views/trainer.php b/resources/views/trainer.php index 3794ec4..5b02626 100644 --- a/resources/views/trainer.php +++ b/resources/views/trainer.php @@ -31,7 +31,7 @@ along with this program. If not, see .
-
+

Stems

@@ -68,10 +68,20 @@ along with this program. If not, see .
-
+

There are no verbs matching the criteria in our database.

+
+

+ Stems: either use the full name or a significant beginning (i.e. Q for Qal but Pi for Piel rather than P).
+ Tenses: use the abbreviations pf, ipf, coh, imp, jus, infcs, infabs, pta and ptp.
+ Person: 1, 2, 3 or none (infinitives and participles).
+ Gender: m, f or none (infinitives).
+ Number: s, p or none (infinitives). +

+ +
-- cgit v1.2.3