aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-02-15 13:14:37 +0100
committerJoris Guyonvarch2015-02-15 13:14:37 +0100
commitdc44dcd92703430cc56a9f31e41c9dc95b36bee7 (patch)
tree51e74475ce3efb00c1e7af80e80e4d3ea0a8630f
parent71c8155599ea59cb4acb888843fadfa43c21e2c5 (diff)
Fixing url
-rw-r--r--script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/script.js b/script.js
index e662ebb..5ce7040 100644
--- a/script.js
+++ b/script.js
@@ -23,9 +23,9 @@
};
function router() {
- var url = location.hash.slice(1) || 'presentation';
+ var url = location.hash.slice(2) || 'presentation';
var contentElement = document.getElementById('content');
- fetchFile('Pages' + url + '.html', function(contentData) {
+ fetchFile('Pages/' + url + '.html', function(contentData) {
fetchFile('Pages/contact.html', function(contactData) {
contentElement.innerHTML = contentData + contactData;
});