blankx.gitlab.io/public/toc.js

9 lines
1.6 KiB
JavaScript
Raw Normal View History

2019-01-22 10:09:09 +00:00
let cururl = window.location.href;
2019-01-22 10:06:23 +00:00
if (cururl.indexOf('redir') >= 0) {
2019-01-31 10:45:49 +00:00
let toccon = "<p>sensible-browser file:///blankx/{{<a href='../index.html'>index</a>,<a href='../contact.html'>contact</a>,<a href='../get-keys.html'>get-keys</a>,<a href='../template.html'>template</a>,<a href='../404.html'>404</a>,<a href='../403.html'>403</a>,<a href='../toc.html'>toc</a>}.html,redir/{<a href='../redir/blankx'>blankx</a>,<a href='../redir/dotfiles'>dotfiles</a>,<a href='../redir/gpgp'>gpgp</a>,<a href='../redir/controller'>controller</a>,<a href='../redir/command-runner'>command-runner</a>,<a href='../redir/vsd'>vsd</a>,<a href='../redir/keybase-public'>keybase-public</a>},<a href='../keybase.txt'>keybase.txt</a>,<a href='../jack.png'>jack.png</a>,<a href='../toc.js'>toc.js</a>,<a href='../index.css'>index.css</a>}</p>";
2019-01-22 10:09:09 +00:00
document.getElementById("tocid").innerHTML = toccon;
2019-01-22 10:06:23 +00:00
} else {
2019-01-31 10:45:49 +00:00
let toccon = "<p>sensible-browser file:///blankx/{{<a href='index.html'>index</a>,<a href='contact.html'>contact</a>,<a href='get-keys.html'>get-keys</a>,<a href='template.html'>template</a>,<a href='404.html'>404</a>,<a href='403.html'>403</a>,<a href='toc.html'>toc</a>}.html,redir/{<a href='redir/blankx'>blankx</a>,<a href='redir/dotfiles'>dotfiles</a>,<a href='redir/gpgp'>gpgp</a>,<a href='redir/controller'>controller</a>,<a href='redir/command-runner'>command-runner</a>,<a href='redir/vsd'>vsd</a>,<a href='redir/keybase-public'>keybase-public</a>},<a href='keybase.txt'>keybase.txt</a>,<a href='jack.png'>jack.png</a>,<a href='toc.js'>toc.js</a>,<a href='index.css'>index.css</a>}</p>";
2019-01-22 10:09:09 +00:00
document.getElementById("tocid").innerHTML = toccon;
2019-01-22 10:07:41 +00:00
}