Buka file config/data/popup.js
Aktifkan gambar, teks, atau keduanya
Upload gambar atau ubah teks popup
window.popupConfig = { // ============================================ // PENGATURAN UTAMA // ============================================ // Aktifkan popup // 1 = popup muncul saat halaman dibuka // 0 = popup tidak muncul enabled: 1, // ============================================ // PENGATURAN GAMBAR // ============================================ image: { // Tampilkan gambar di popup enabled: 1, // Lokasi file gambar path: "./public/popup/1.png", // Lebar gambar width: "500px" }, // ============================================ // PENGATURAN TEKS // ============================================ text: { // Tampilkan teks judul dan deskripsi enabled: 1, data: { title: "Selamat Datang", description: "Silahkan login untuk melanjutkan" } }, // ============================================ // PENGATURAN TOMBOL // ============================================ button: { // Teks tombol tutup popup title: "Login" } };
Mengaktifkan popup yang muncul saat halaman dibuka. Wajib aktif agar fitur autoplay audio berfungsi.
Pengaturan gambar popup:
enabled: Tampilkan gambarpath: Lokasi filewidth: Lebar gambarPengaturan teks popup:
enabled: Tampilkan tekstitle: Judul popupdescription: Isi pesanTeks pada tombol yang menutup popup. User harus mengklik tombol ini untuk menutup popup.
image.enabled = 1
text.enabled = 0
image.enabled = 0
text.enabled = 1
image.enabled = 1
text.enabled = 1
Popup sangat penting untuk fitur autoplay audio. Browser modern memerlukan interaksi user sebelum memutar audio. Dengan popup, user mengklik tombol (interaksi) sehingga audio bisa autoplay setelahnya.
Erik Sanjaya - Login Page Hotspot Mikrotik
https://eriksanjaya.com