27 lines
645 B
JavaScript
27 lines
645 B
JavaScript
(function () {
|
|
Theme.init();
|
|
WS.init();
|
|
Sidebar.init();
|
|
Topbar.init();
|
|
PageHome.init();
|
|
PageDashboard.init();
|
|
PageScene.init();
|
|
PageDebug.init();
|
|
PageSettings.init();
|
|
Router.init();
|
|
|
|
document.getElementById('theme-toggle').addEventListener('click', () => {
|
|
Theme.toggle();
|
|
});
|
|
|
|
const savedTheme = localStorage.getItem('turbosu-theme');
|
|
if (savedTheme && savedTheme !== Theme.current) {
|
|
Theme._current = savedTheme;
|
|
Theme.apply();
|
|
}
|
|
|
|
console.log('%cTurboSu %cReady',
|
|
'color:#667eea;font-size:16px;font-weight:bold;',
|
|
'color:#a8a8c0;');
|
|
})();
|