2026-02-16 11:24:23 +01:00

21 lines
826 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// static/js/app.js MK Control Frontend Haupt-Einstieg
document.addEventListener('DOMContentLoaded', () => {
console.log('MK Control Frontend gestartet');
// Module laden (in dieser Reihenfolge wichtig!)
initConfig(); // config & globalSounds bereitstellen
initStatus(); // Status-Badge & Reconnect
initConnect(); // Connect- & Reconnect-Button
initChannels(); // Kanäle rendern + Listener
initSoundboard(); // Soundboard-Buttons + Volume
initConnectionCheck(); // Hintergrund-Status-Polling
// Initialen Status setzen
updateStatus(false);
// Status-Check nur starten, wenn auf Steuerseite
if (document.getElementById('connect-btn')) {
// startConnectionCheck(); // wird jetzt von connect/reconnect aufgerufen
}
});