This commit is contained in:
parent
72e7fe7873
commit
70755cc2de
@ -1,3 +1,5 @@
|
|||||||
|
import * as light from './light.css';
|
||||||
|
import * as dark from './main.css';
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
loading()
|
loading()
|
||||||
var hold, external, timeout, ac, last
|
var hold, external, timeout, ac, last
|
||||||
@ -130,10 +132,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
})
|
})
|
||||||
document.getElementById('darklight').addEventListener('click', function(event) {
|
document.getElementById('darklight').addEventListener('click', function(event) {
|
||||||
if(event.target.innerText === '☼') {
|
if(event.target.innerText === '☼') {
|
||||||
document.getElementById('css').setAttribute('href', 'light.css')
|
document.getElementById('css').setAttribute('href', light.meta.url)
|
||||||
event.target.innerText = '☽'
|
event.target.innerText = '☽'
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('css').setAttribute('href', 'main.css')
|
document.getElementById('css').setAttribute('href', dark.meta.url)
|
||||||
event.target.innerText = '☼'
|
event.target.innerText = '☼'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user