diff options
-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; }); |