Logo

SiTirta Mandiri

Sistem Informasi Manajemen & Tagihan Air Terpadu

(async function bootSiTirta() { try { const [modalsRes, jsRes] = await Promise.all([ fetch('Modals.html'), fetch('JavaScript.html') ]); document.getElementById('modals-container').innerHTML = await modalsRes.text(); const jsText = await jsRes.text(); const temp = document.createElement('div'); temp.innerHTML = jsText; const scriptTag = temp.querySelector('script'); const newScript = document.createElement('script'); newScript.textContent = scriptTag ? scriptTag.textContent : jsText; document.body.appendChild(newScript); // Jalankan inisialisasi halaman setelah JavaScript.html terpasang if (typeof window.onload === 'function') { window.onload(); } } catch (err) { console.error('Gagal memuat modul aplikasi:', err); } })();