minor updates and fixes

This commit is contained in:
Jeff MacKinnon 2022-11-23 10:38:03 -04:00
parent c2f7e3fdd6
commit a80e7bd8f8
2 changed files with 14 additions and 11 deletions

View file

@ -141,16 +141,5 @@ $('.gallery').magnificPopup({
});
</script>
{% 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>
</html>

View file

@ -160,6 +160,20 @@
</section>
{% endif %}
{% if THEME_DARKMODE == 1 %}
<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>
{% endif %}
<!-- Footer -->
<footer id="footer">
<p class="copyright">&copy; Untitled. All rights reserved. Original design inspired by: <a href="https://html5up.net">HTML5 UP</a>. <br />