Move all assets to assets directory
This commit is contained in:
parent
84bbbce9b9
commit
544cbfcb6a
22 changed files with 15 additions and 17 deletions
assets/js
9
assets/js/global.js
Normal file
9
assets/js/global.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
document.addEventListener('alpine:init', () => {
|
||||
Alpine.store('darkMode', {
|
||||
on: Alpine.$persist(false).as('darkMode'),
|
||||
|
||||
toggle() {
|
||||
this.on = ! this.on
|
||||
}
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue