diff --git a/calendario/calendario.html b/calendario/calendario.html
index 6648dc9..d108184 100644
--- a/calendario/calendario.html
+++ b/calendario/calendario.html
@@ -2,7 +2,7 @@
-
+
@@ -30,6 +30,10 @@
-
+
+
+ Toggle
+
+
diff --git a/function.js b/function.js
new file mode 100644
index 0000000..0fd4f43
--- /dev/null
+++ b/function.js
@@ -0,0 +1,18 @@
+var checkbox = document.querySelector('input[name=mode]');
+
+ checkbox.addEventListener('change', function() {
+ if(this.checked) {
+ trans()
+ document.documentElement.setAttribute('data-theme', 'dartheme')
+ } else {
+ trans()
+ document.documentElement.setAttribute('data-theme', 'lighttheme')
+ }
+ })
+
+ let trans = () => {
+ document.documentElement.classList.add('transition');
+ window.setTimeout(() => {
+ document.documentElement.classList.remove('transition');
+ }, 1000)
+ }
\ No newline at end of file
diff --git a/index.html b/index.html
index 20d92cd..ca865ed 100644
--- a/index.html
+++ b/index.html
@@ -23,7 +23,6 @@
-