diff --git a/aliases.txt b/aliases.txt index 9c1cc38..095735e 100644 --- a/aliases.txt +++ b/aliases.txt @@ -1,5 +1,5 @@ ssh /static/ssh pgp /static/pgp.asc termux.sh https://git.gmoker.com/ange/termux/raw/branch/main/install.sh -dotfiles.sh https://git.gmoker.com/ange/.dotfiles +dotfiles.sh https://git.gmoker.com/ange/dotfiles arch.sh https://git.gmoker.com/ange/arch diff --git a/html/contact.html b/html/contact.html index d2be560..3de4dd7 100644 --- a/html/contact.html +++ b/html/contact.html @@ -2,7 +2,21 @@ {{template "head.tmpl" .}} - + {{template "header.tmpl" .}} diff --git a/js/copy.js b/js/copy.js deleted file mode 100644 index f323f72..0000000 --- a/js/copy.js +++ /dev/null @@ -1,13 +0,0 @@ -function copyElem(id, r='') { - navigator.clipboard.writeText( - document.getElementById(id).innerText.replaceAll(r, ''), - ); -} - -function copyFile(id) { - fetch(document.getElementById(id).childNodes[0].href).then(f => { - f.text().then(t => { - navigator.clipboard.writeText(t); - }) - }) -} diff --git a/src/route.go b/src/route.go index 1b92eca..cb2ca84 100644 --- a/src/route.go +++ b/src/route.go @@ -17,7 +17,7 @@ var routes = []struct { }{ {[]string{"GET"}, url(""), index}, {[]string{"GET"}, url("/static/.+"), static}, - {[]string{"GET"}, url("/(.+\\.(css|js))"), file}, + {[]string{"GET"}, url("/(.+\\.(css))"), file}, {[]string{"GET"}, url("/([^/]+)"), html}, }