From ba1f5a73a75d44a828a92585e2239e1443cbc946 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Mon, 4 Jan 2016 23:31:40 +0100
Subject: Relative paths to resources
---
public/js/hebrewparsetrainer.js | 10 +++++-----
resources/views/trainer.php | 12 ++++++------
2 files changed, 11 insertions(+), 11 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 .
*/
$(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;});
diff --git a/resources/views/trainer.php b/resources/views/trainer.php
index 7327067..3b8d926 100644
--- a/resources/views/trainer.php
+++ b/resources/views/trainer.php
@@ -20,9 +20,9 @@ along with this program. If not, see .
HebrewParseTrainer
-
-
-
+
+
+
@@ -89,8 +89,8 @@ along with this program. If not, see .
-
-
-
+
+
+