修改切换按钮样式并添加基础动效
This commit is contained in:
1 parent
677f6270fe
commit
3f3abdcd66
3 files changed
+19
-10
No files matched your search
@@ -1,11 +1,11 @@
|
||||
const Panel_left = document.getElementById('leftPanel');
|
||||
const Panel_right = document.getElementById('rightPanel');
|
||||
|
||||
function hideLeftPanel() {
|
||||
function switchPanel() {
|
||||
if (Panel_right.style.display === 'none' || Panel_right.style.display === '') {
|
||||
Panel_left.style.display = 'none';
|
||||
Panel_right.style.display = 'flex';
|
||||
}
|
||||
}
|
||||
else {
|
||||
Panel_left.style.display = 'flex';
|
||||
Panel_right.style.display = 'none';
|
||||
|
||||
Reference in new issue
Block a user