Fixed a strange bug that I added and forgot about.
This commit is contained in:
parent
c793963c9b
commit
b8bc4d8749
1 changed files with 0 additions and 11 deletions
|
@ -141,16 +141,5 @@ $('.gallery').magnificPopup({
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img src=
|
|
||||||
"https://media.geeksforgeeks.org/wp-content/uploads/20200122115631/GeeksforGeeks210.png"/>
|
|
||||||
<div>
|
|
||||||
<button onclick="darkMode()">Darkmode</button>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
function darkMode() {
|
|
||||||
var element = document.body;
|
|
||||||
element.classList.toggle("dark-mode");
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue