1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00

test improvements

This commit is contained in:
Gaurav Panchal
2020-05-16 19:55:33 +05:30
parent 8eae720abc
commit 24497e764e
9 changed files with 69 additions and 37 deletions

6
docs/main.js Normal file
View 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'));
}