Update web/users.html
Browse files- web/users.html +42 -0
web/users.html
CHANGED
|
@@ -24,6 +24,11 @@
|
|
| 24 |
</button>
|
| 25 |
|
| 26 |
<ul class="nav">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
<li class="nav-item dropdown">
|
| 28 |
<a class="nav-link dropdown-toggle text-muted pr-0" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
| 29 |
<span class="avatar avatar-sm mt-2">
|
|
@@ -565,6 +570,43 @@
|
|
| 565 |
document.addEventListener('DOMContentLoaded', function() {
|
| 566 |
_fObserver.observe(document.body, { childList: true, subtree: true });
|
| 567 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 568 |
</script>
|
| 569 |
</body>
|
| 570 |
</html>
|
|
|
|
| 24 |
</button>
|
| 25 |
|
| 26 |
<ul class="nav">
|
| 27 |
+
<li class="nav-item">
|
| 28 |
+
<a class="nav-link text-muted my-2" href="#" id="modeSwitcher" data-mode="light">
|
| 29 |
+
<i data-feather="sun"></i>
|
| 30 |
+
</a>
|
| 31 |
+
</li>
|
| 32 |
<li class="nav-item dropdown">
|
| 33 |
<a class="nav-link dropdown-toggle text-muted pr-0" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
| 34 |
<span class="avatar avatar-sm mt-2">
|
|
|
|
| 570 |
document.addEventListener('DOMContentLoaded', function() {
|
| 571 |
_fObserver.observe(document.body, { childList: true, subtree: true });
|
| 572 |
});
|
| 573 |
+
</script>
|
| 574 |
+
<script>
|
| 575 |
+
(function () {
|
| 576 |
+
const overlay = document.createElement('div');
|
| 577 |
+
overlay.id = 'theme-overlay';
|
| 578 |
+
overlay.style.cssText = [
|
| 579 |
+
'position:fixed','inset:0','z-index:99999',
|
| 580 |
+
'pointer-events:none','opacity:0',
|
| 581 |
+
'transition:opacity 0.18s ease','background:#fff'
|
| 582 |
+
].join(';');
|
| 583 |
+
document.body.appendChild(overlay);
|
| 584 |
+
|
| 585 |
+
function switchTheme() {
|
| 586 |
+
const lightTheme = document.getElementById('lightTheme');
|
| 587 |
+
const darkTheme = document.getElementById('darkTheme');
|
| 588 |
+
const goingDark = !darkTheme.disabled;
|
| 589 |
+
overlay.style.background = goingDark ? '#fff' : '#1a1a2e';
|
| 590 |
+
overlay.style.opacity = '1';
|
| 591 |
+
setTimeout(function () {
|
| 592 |
+
lightTheme.disabled = !lightTheme.disabled;
|
| 593 |
+
darkTheme.disabled = !darkTheme.disabled;
|
| 594 |
+
setTimeout(function () { overlay.style.opacity = '0'; }, 50);
|
| 595 |
+
}, 180);
|
| 596 |
+
}
|
| 597 |
+
|
| 598 |
+
document.addEventListener('DOMContentLoaded', function () {
|
| 599 |
+
const btn = document.getElementById('modeSwitcher');
|
| 600 |
+
if (!btn) return;
|
| 601 |
+
const newBtn = btn.cloneNode(true);
|
| 602 |
+
btn.parentNode.replaceChild(newBtn, btn);
|
| 603 |
+
newBtn.addEventListener('click', function (e) {
|
| 604 |
+
e.preventDefault();
|
| 605 |
+
e.stopPropagation();
|
| 606 |
+
switchTheme();
|
| 607 |
+
});
|
| 608 |
+
});
|
| 609 |
+
})();
|
| 610 |
</script>
|
| 611 |
</body>
|
| 612 |
</html>
|