cmd/hello: split css and js into separate files (#19771)

Move the inline CSS and JS into separate files to be more friendly
to Content Security Policies. ServeHTTP is updated to serve these
assets from the '/static/' path.

Updates tailscale/corp#32398

Signed-off-by: Noel O'Brien <noel@tailscale.com>
This commit is contained in:
Noel O'Brien
2026-05-15 09:37:22 -07:00
committed by GitHub
parent 0cb432ed84
commit 894ff5d8ee
4 changed files with 399 additions and 377 deletions
+12
View File
@@ -0,0 +1,12 @@
(function () {
var lastSeen = localStorage.getItem("lastSeen");
if (!lastSeen) {
document.body.classList.add("animate");
window.addEventListener("load", function () {
setTimeout(function () {
document.body.classList.add("animating");
localStorage.setItem("lastSeen", Date.now());
}, 100);
});
}
})();