mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2025-02-23 16:40:05 -05:00
Update default.html
This commit is contained in:
parent
2fccbe531b
commit
c87b46e2b6
@ -41,8 +41,23 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function addDarkmodeWidget() {
|
function addDarkmodeWidget() {
|
||||||
new Darkmode().showWidget();
|
const options = {
|
||||||
}
|
bottom: '64px', // default: '32px'
|
||||||
|
right: 'unset', // default: '32px'
|
||||||
|
left: '32px', // default: 'unset'
|
||||||
|
time: '0.5s', // default: '0.3s'
|
||||||
|
mixColor: '#fff', // default: '#fff'
|
||||||
|
backgroundColor: '#fff', // default: '#fff'
|
||||||
|
buttonColorDark: '#100f2c', // default: '#100f2c'
|
||||||
|
buttonColorLight: '#fff', // default: '#fff'
|
||||||
|
saveInCookies: false, // default: true,
|
||||||
|
label: '🌓', // default: ''
|
||||||
|
autoMatchOsTheme: true // default: true
|
||||||
|
}
|
||||||
|
|
||||||
|
const darkmode = new Darkmode(options);
|
||||||
|
darkmode.showWidget();
|
||||||
|
}
|
||||||
window.addEventListener('load', addDarkmodeWidget);
|
window.addEventListener('load', addDarkmodeWidget);
|
||||||
</script>
|
</script>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user