diff --git a/css/max_width.css b/css/max_width.css index 362c850..0be153f 100644 --- a/css/max_width.css +++ b/css/max_width.css @@ -29,6 +29,17 @@ transform: translateX(-50%); bottom: 120px; z-index: 1; - } - + } + + .swbutton { + background-color: rgba(200, 200, 200, 0.1); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + transition: background-color 1s ease, transform 0.5s ease; + } + + .swbutton:hover { + background-color: rgba(200, 200, 200, 0.3); + transform: scale(1.02); /* 可选的小缩放效果 */ + } } \ No newline at end of file diff --git a/index.html b/index.html index 738d65c..8aede8e 100644 --- a/index.html +++ b/index.html @@ -37,11 +37,9 @@
-
-
-
--:--:--
-
加载中...
-
+
+
--:--:--
+
加载中...

此处预留未来内容

@@ -51,7 +49,7 @@
- +
diff --git a/javascape/switch_interface.js b/javascape/switch_interface.js index 67af9d1..28d2ae3 100644 --- a/javascape/switch_interface.js +++ b/javascape/switch_interface.js @@ -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';