From 18fe95b436585a36c960fe0855823324eee1dee4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 27 Jul 2016 17:33:47 +0300 Subject: [PATCH] added history control via URLs -- does not work yet... Signed-off-by: Alex A. Naanou --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 9414fa5..f87705b 100755 --- a/index.html +++ b/index.html @@ -92,6 +92,14 @@ var go = (path) => { path = path.trim() path = path[0] == '[' ? path.slice(1, -1) : path + // history stuff... + if(path == 'History/back'){ + return history.back() + + } else if(path == 'History/forward'){ + return history.forward() + } + Wiki.location = path history.pushState({