diff options
author | Joris Guyonvarch | 2015-02-15 13:14:37 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-02-15 13:14:37 +0100 |
commit | dc44dcd92703430cc56a9f31e41c9dc95b36bee7 (patch) | |
tree | 51e74475ce3efb00c1e7af80e80e4d3ea0a8630f | |
parent | 71c8155599ea59cb4acb888843fadfa43c21e2c5 (diff) |
Fixing url
-rw-r--r-- | script.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; }); |