File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 42
42
{% endif %}
43
43
< link rel ="stylesheet " href ="{{ '/assets/css/main.css' | relative_url }} ">
44
44
< link rel ="canonical " href ="{{ page.url | replace:'index.html','' | relative_url }} ">
45
+
46
+ {% if site.enable_darkmode %}
47
+ <!-- Dark Mode -->
48
+ < script src ="{{ '/assets/js/theme.js' | relative_url }} "> </ script >
49
+ < script src ="{{ '/assets/js/dark_mode.js' | relative_url }} "> </ script >
50
+ {% endif %}
51
+
Original file line number Diff line number Diff line change 1
- {% if site.enable_darkmode %}
2
- <!-- Dark Mode -->
3
- < script src ="{{ '/assets/js/theme.js' | relative_url }} "> </ script >
4
- < script src ="{{ '/assets/js/dark_mode.js' | relative_url }} "> </ script >
5
- {% endif %}
6
-
7
1
{% if site.enable_tooltips %}
8
2
<!-- Enable Tooltips -->
9
3
< script type ="text/javascript ">
Original file line number Diff line number Diff line change 1
- $ ( document ) . ready ( function ( ) {
1
+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
2
2
const mode_toggle = document . getElementById ( "light-toggle" ) ;
3
3
4
4
mode_toggle . addEventListener ( "click" , function ( ) {
5
5
toggleTheme ( localStorage . getItem ( "theme" ) ) ;
6
6
} ) ;
7
7
} ) ;
8
+
You can’t perform that action at this time.
0 commit comments