Update index.html
Browse files- index.html +10 -1
index.html
CHANGED
@@ -315,7 +315,16 @@ footer {
|
|
315 |
</label>
|
316 |
</div>
|
317 |
|
318 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
|
320 |
<div class="main">
|
321 |
<h2>Introduction</h2>
|
|
|
315 |
</label>
|
316 |
</div>
|
317 |
|
318 |
+
<script>
|
319 |
+
document.getElementById('theme-switch').addEventListener('change', function() {
|
320 |
+
var dot = document.querySelector('.dot');
|
321 |
+
if (this.checked) {
|
322 |
+
dot.style.transform = 'translateX(24px)';
|
323 |
+
} else {
|
324 |
+
dot.style.transform = 'translateX(0)';
|
325 |
+
}
|
326 |
+
});
|
327 |
+
</script>
|
328 |
|
329 |
<div class="main">
|
330 |
<h2>Introduction</h2>
|