diff options
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -25,9 +25,11 @@ function router() { var url = location.hash.slice(2) || 'presentation'; var contentElement = document.getElementById('content'); - fetchFile('Pages/' + url + '.html', function(contentData) { - fetchFile('Pages/contact.html', function(contactData) { - contentElement.innerHTML = contentData + contactData; + fetchFile('Pages/' + url + '.md', function(contentMd) { + fetchFile('Pages/contact.md', function(contactMd) { + var contentHtml = markdown.toHTML(contentMd); + var contactHtml = '<div class=contact>' + markdown.toHTML(contactMd) + '</div>'; + contentElement.innerHTML = contentHtml + contactHtml; }); }); } |