This commit is contained in:
parent
ea780d3992
commit
bc4722dbfd
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function copyFile(id) {
|
function copyFile(id) {
|
||||||
fetch(document.getElementById(id).childNodes[0].href).then(f => {
|
fetch(document.getElementById(id).childNodes[1].href).then(f => {
|
||||||
f.text().then(t => {
|
f.text().then(t => {
|
||||||
navigator.clipboard.writeText(t);
|
navigator.clipboard.writeText(t);
|
||||||
})
|
})
|
||||||
|
@ -18,7 +18,7 @@ var routes = []struct {
|
|||||||
{[]string{"GET"}, url(""), index},
|
{[]string{"GET"}, url(""), index},
|
||||||
{[]string{"GET"}, url("/(pgp.asc|ssh)"), static},
|
{[]string{"GET"}, url("/(pgp.asc|ssh)"), static},
|
||||||
{[]string{"GET"}, url("/static/.+"), static},
|
{[]string{"GET"}, url("/static/.+"), static},
|
||||||
{[]string{"GET"}, url("/(.+\\.(css))"), file},
|
{[]string{"GET"}, url("/(.+\\.css)"), css},
|
||||||
{[]string{"GET"}, url("/([^/]+)"), html},
|
{[]string{"GET"}, url("/([^/]+)"), html},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user