I forgot :p

This commit is contained in:
blank X 2019-01-22 17:06:23 +07:00
parent 41045991fe
commit 10bebead8a
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<p class='green'>I don't know what a "static site generator" is</p>
<br>
<div id='tocid' class='tocclass' width=100%>
<iframe width=100% height=50% src='toc.html'></iframe>
<iframe width=100% height=10% src='toc.html'></iframe>
</div>
<br>
<h2>The keyserver way:</h2>

View File

@ -1 +1,6 @@
document.getElementById("tocid").innerHTML = "<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>";
const 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>";
} 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;