-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-toggle.html
More file actions
31 lines (25 loc) · 752 Bytes
/
Copy pathtest-toggle.html
File metadata and controls
31 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test Toggle</title>
</head>
<body>
<h1>Quick Test</h1>
<p>Buka console dan jalankan perintah ini:</p>
<pre style="background: #333; color: #0f0; padding: 10px; border-radius: 5px;">
// Test 1: Cek apakah SidebarManager ada
window.SidebarManager
// Test 2: Coba panggil toggleCollapse secara manual
window.SidebarManager.toggleCollapse()
// Test 3: Cek state
window.SidebarManager.isCollapsed
// Test 4: Cek apakah sidebar element ada
document.getElementById('sidebar')
// Test 5: Cek apakah tombol ada
document.querySelector('.sidebar-toggle-btn')
// Test 6: Trigger click pada tombol
document.querySelector('.sidebar-toggle-btn').click()
</pre>
</body>
</html>