Metaprime commited on
Commit
c773cba
路
verified 路
1 Parent(s): 07b1542

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +20 -20
index.html CHANGED
@@ -13,10 +13,10 @@
13
  }
14
  #panel {
15
  position:fixed; bottom:88px; left:22px; width:205px;
16
- background:rgba(10,0,20,0.45);
17
- backdrop-filter:blur(20px);
18
  border:2px solid #ff3366;
19
- box-shadow:0 0 25px #ff3366, 0 0 45px #ff3366;
20
  border-radius:16px;
21
  padding:12px;
22
  display:none;
@@ -36,7 +36,7 @@
36
  }
37
  .media-panels {
38
  position: fixed;
39
- bottom: 190px;
40
  left: 50%;
41
  transform: translateX(-50%);
42
  display: flex;
@@ -45,19 +45,21 @@
45
  justify-content: center;
46
  z-index: 1001;
47
  max-width: 95%;
 
48
  }
49
  .video-wrapper {
50
- width: 170px;
51
- background: rgba(0,0,0,0.6);
52
- border: 1px solid #ff3366;
53
- border-radius: 12px;
54
- padding: 6px;
55
  position: relative;
 
56
  }
57
  .close-btn {
58
- position:absolute; top:4px; right:4px; color:white; font-size:22px;
59
- background:rgba(255,60,60,0.9); width:26px; height:26px; border-radius:50%;
60
- display:flex; align-items:center; justify-content:center;
61
  }
62
  </style>
63
  </head>
@@ -71,7 +73,7 @@
71
 
72
  <div id="panel">
73
  <button onclick="launchSky()">馃寣 Sky Launcher</button>
74
- <button onclick="addMediaPanel()">馃摵 Add Media Panel</button>
75
  <button onclick="playAll()">鈻讹笍 Play All</button>
76
  <button onclick="pauseAll()">鈴革笍 Pause All</button>
77
  <button onclick="toggleMuteAll()">馃攪 Mute All</button>
@@ -83,13 +85,11 @@
83
 
84
  <script>
85
  function togglePanel() {
86
- const panel = document.getElementById('panel');
87
- panel.style.display = panel.style.display === 'flex' ? 'none' : 'flex';
88
  }
89
 
90
- function launchSky() {
91
- document.getElementById('skyInput').click();
92
- }
93
 
94
  function addMediaPanel() {
95
  const container = document.getElementById('mediaPanels');
@@ -140,8 +140,8 @@
140
 
141
  function toggleMuteAll() {
142
  const videos = document.querySelectorAll('video');
143
- const isMuted = videos[0] ? videos[0].muted : false;
144
- videos.forEach(v => v.muted = !isMuted);
145
  }
146
 
147
  // Sky Launcher
 
13
  }
14
  #panel {
15
  position:fixed; bottom:88px; left:22px; width:205px;
16
+ background:rgba(15,0,25,0.35);
17
+ backdrop-filter:blur(22px);
18
  border:2px solid #ff3366;
19
+ box-shadow:0 0 30px #ff3366;
20
  border-radius:16px;
21
  padding:12px;
22
  display:none;
 
36
  }
37
  .media-panels {
38
  position: fixed;
39
+ top: 50px;
40
  left: 50%;
41
  transform: translateX(-50%);
42
  display: flex;
 
45
  justify-content: center;
46
  z-index: 1001;
47
  max-width: 95%;
48
+ padding: 10px;
49
  }
50
  .video-wrapper {
51
+ width: 220px;
52
+ background: rgba(0,0,0,0.65);
53
+ border: 2px solid #ff3366;
54
+ border-radius: 14px;
55
+ padding: 8px;
56
  position: relative;
57
+ box-shadow: 0 0 20px rgba(255,51,102,0.4);
58
  }
59
  .close-btn {
60
+ position:absolute; top:8px; right:8px; color:white; font-size:26px;
61
+ background:rgba(255,60,60,0.9); width:30px; height:30px; border-radius:50%;
62
+ display:flex; align-items:center; justify-content:center; z-index:10;
63
  }
64
  </style>
65
  </head>
 
73
 
74
  <div id="panel">
75
  <button onclick="launchSky()">馃寣 Sky Launcher</button>
76
+ <button onclick="addMediaPanel()">馃摵 Add New Screen</button>
77
  <button onclick="playAll()">鈻讹笍 Play All</button>
78
  <button onclick="pauseAll()">鈴革笍 Pause All</button>
79
  <button onclick="toggleMuteAll()">馃攪 Mute All</button>
 
85
 
86
  <script>
87
  function togglePanel() {
88
+ const p = document.getElementById('panel');
89
+ p.style.display = p.style.display === 'flex' ? 'none' : 'flex';
90
  }
91
 
92
+ function launchSky() { document.getElementById('skyInput').click(); }
 
 
93
 
94
  function addMediaPanel() {
95
  const container = document.getElementById('mediaPanels');
 
140
 
141
  function toggleMuteAll() {
142
  const videos = document.querySelectorAll('video');
143
+ const shouldMute = !videos[0]?.muted;
144
+ videos.forEach(v => v.muted = shouldMute);
145
  }
146
 
147
  // Sky Launcher