mirror of
https://github.com/jenil/chota.git
synced 2023-08-10 21:13:07 +03:00
test improvements
This commit is contained in:
6
docs/main.js
Normal file
6
docs/main.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function switchMode(el) {
|
||||
const bodyClass = document.body.classList;
|
||||
bodyClass.contains('dark')
|
||||
? (el.innerHTML = '☀️', bodyClass.remove('dark'))
|
||||
: (el.innerHTML = '🌙', bodyClass.add('dark'));
|
||||
}
|
||||
Reference in New Issue
Block a user