Massive assets cleanup.
This commit is contained in:
parent
dcbd6ae6d5
commit
7fa74bbfef
35 changed files with 364 additions and 450 deletions
assets/makai.js
19
assets/makai.js/main.js
Normal file
19
assets/makai.js/main.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include ascii.js
|
||||
#include dev-index.js
|
||||
#include dev-home.js
|
||||
#include whois.js
|
||||
|
||||
(() => {
|
||||
const runIfPathStartsWith = (prefix, func, ...args) => {
|
||||
if(location.pathname === prefix || location.pathname.startsWith(`${prefix}/`))
|
||||
func(...args);
|
||||
};
|
||||
|
||||
runIfPathStartsWith('/ascii', MakaiASCII);
|
||||
runIfPathStartsWith('/whois', MakaiWHOIS);
|
||||
runIfPathStartsWith('/home', MakaiDevHome);
|
||||
|
||||
runIfPathStartsWith('/home', MakaiDevIndex, 10);
|
||||
runIfPathStartsWith('/np', MakaiDevIndex, 10);
|
||||
if(location.pathname === '/') MakaiDevIndex();
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue