docs: add MIT license

This commit is contained in:
dyzulk
2026-01-18 16:00:12 +07:00
commit ed3a0d6510
34 changed files with 4575 additions and 0 deletions

24
theme/assets/js/theme.js Normal file
View File

@@ -0,0 +1,24 @@
function initTheme() {
return {
theme: localStorage.getItem('mivo_theme') || 'dark',
toggle() {
this.theme = this.theme === 'dark' ? 'light' : 'dark';
this.apply();
},
setTheme(val) {
this.theme = val;
this.apply();
},
apply() {
localStorage.setItem('mivo_theme', this.theme);
if (this.theme === 'dark') {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
},
init() {
this.apply();
}
}
}