Updated JS stuffs.

This commit is contained in:
flash 2025-03-20 21:49:41 +00:00
commit 452eeb22d6
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
21 changed files with 267 additions and 412 deletions
assets/makai.js

View file

@ -1,11 +1,14 @@
#include elem.js
#include csrf.js
#include html.js
#include xhr.js
#include elems/head.js
#include np/init.js
#include tools/ascii.js
#include tools/whois.js
const makai = (() => {
const header = new MakaiSiteHeader($q('.js-header'));
const header = new MakaiSiteHeader($query('.js-header'));
const runIfPathStartsWith = (prefix, func, ...args) => {
if(location.pathname === prefix || location.pathname.startsWith(`${prefix}/`))