diff options
| author | Camil Staps | 2016-01-04 23:31:40 +0100 | 
|---|---|---|
| committer | Camil Staps | 2016-01-04 23:31:40 +0100 | 
| commit | ba1f5a73a75d44a828a92585e2239e1443cbc946 (patch) | |
| tree | aba0f6625982a06c1058fef4170abdd243fa11b3 /public | |
| parent | License: GPLv3.0; readme (diff) | |
Relative paths to resources
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/hebrewparsetrainer.js | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/public/js/hebrewparsetrainer.js b/public/js/hebrewparsetrainer.js index 55e31e5..779554c 100644 --- a/public/js/hebrewparsetrainer.js +++ b/public/js/hebrewparsetrainer.js @@ -16,8 +16,8 @@   * along with this program.  If not, see <http://www.gnu.org/licenses/>.   */  $(document).ready(function(){ -    var audio_positive = new Audio('/public/audio/positive.wav'); -    var audio_negative = new Audio('/public/audio/negative.wav'); +    var audio_positive = new Audio('public/audio/positive.wav'); +    var audio_negative = new Audio('public/audio/negative.wav');      var correct_answer; @@ -30,7 +30,7 @@ $(document).ready(function(){          var tenses = $('input[name="tense"]:checked').map(function(){return this.value;});          var roots = $('input[name="root"]:checked').map(function(){return this.value;}); -        $.ajax('/verb/random', { +        $.ajax('verb/random', {              data: {                  stem: $.makeArray(stems).join(),                  tense: $.makeArray(tenses).join(), @@ -152,14 +152,14 @@ $(document).ready(function(){      }      function init() { -        $.ajax('/stem', { +        $.ajax('stem', {              dataType: 'json',              success: function(data, status, jqxhr) {                  stems = data.map(function(d){return d.name;});              }          }); -        $.ajax('/tense', { +        $.ajax('tense', {              dataType: 'json',              success: function(data, status, jqxhr) {                  tenses = data.map(function(d){return d.name;}); | 
