aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/js/hebrewparsetrainer.js10
-rw-r--r--resources/views/trainer.php12
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 <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;});
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 <http://www.gnu.org/licenses/>.
<head>
<meta charset="utf-8">
<title>HebrewParseTrainer</title>
- <link rel="stylesheet" href="/vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
- <link rel="stylesheet" href="/vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css">
- <link rel="stylesheet" href="/public/css/hebrewparsetrainer.css">
+ <link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
+ <link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css">
+ <link rel="stylesheet" href="public/css/hebrewparsetrainer.css">
</head>
<body role="application">
<div class="container" role="main">
@@ -89,8 +89,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
</div>
- <script src="/vendor/components/jquery/jquery.min.js"></script>
- <script src="/vendor/twbs/bootstrap/dist/js/bootstrap.min.js"></script>
- <script src="/public/js/hebrewparsetrainer.js"></script>
+ <script src="vendor/components/jquery/jquery.min.js"></script>
+ <script src="vendor/twbs/bootstrap/dist/js/bootstrap.min.js"></script>
+ <script src="public/js/hebrewparsetrainer.js"></script>
</body>
</html> \ No newline at end of file