We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b3d5c commit 2cbdddbCopy full SHA for 2cbdddb
_includes/footer_custom.html
@@ -1,5 +1,5 @@
1
<script>
2
-window.addEventListener('load', function(){
+window.addEventListener('DOMContentLoaded', function(){
3
const button = document.getElementById('edit-this-page');
4
const oldUrl = button.href;
5
const newUrl = oldUrl.replace('/main-repo/', '/');
_includes/header_custom.html
@@ -27,7 +27,7 @@
27
<a class="site-button" id="theme-toggle" style="cursor: pointer;"></a>
28
29
30
+(function(){
31
const light = 'light';
32
const dark = 'dark';
33
const system = 'system';
@@ -89,5 +89,5 @@
89
90
button.addEventListener('click', toggleTheme);
91
setTheme(loadedTheme);
92
-});
+})();
93
</script>
0 commit comments