9 lines
1.2 KiB
JavaScript
9 lines
1.2 KiB
JavaScript
let cururl = window.location.href;
|
|
if (cururl.indexOf('redir') >= 0) {
|
|
let toccon = "<p>sensible-browser /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='../keybase.txt'>keybase.txt</a>}</p>";
|
|
document.getElementById("tocid").innerHTML = toccon;
|
|
} else {
|
|
let toccon = "<p>sensible-browser /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='keybase.txt'>keybase.txt</a>}</p>";
|
|
document.getElementById("tocid").innerHTML = toccon;
|
|
}
|