File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,29 +74,29 @@ function switchTheme() {
74
74
function loadButtonScript() {
75
75
let switchBtn = document.getElementById("scheme-switch");
76
76
if (switchBtn) {
77
- switchBtn.addEventListener("click", function () {
77
+ switchBtn.onclick = function () {
78
78
switchTheme()
79
- }) ;
79
+ };
80
80
}
81
81
82
82
let settingBtn = document.getElementById("display-settings-switch");
83
83
if (settingBtn) {
84
- settingBtn.addEventListener("click", function () {
84
+ settingBtn.onclick = function () {
85
85
let settingPanel = document.getElementById("display-setting");
86
86
if (settingPanel) {
87
87
settingPanel.classList.toggle("float-panel-closed");
88
88
}
89
- }) ;
89
+ };
90
90
}
91
91
92
92
let menuBtn = document.getElementById("nav-menu-switch");
93
93
if (menuBtn) {
94
- menuBtn.addEventListener("click", function () {
94
+ menuBtn.onclick = function () {
95
95
let menuPanel = document.getElementById("nav-menu-panel");
96
96
if (menuPanel) {
97
97
menuPanel.classList.toggle("float-panel-closed");
98
98
}
99
- }) ;
99
+ };
100
100
}
101
101
}
102
102
You can’t perform that action at this time.
0 commit comments