Update index.html
Browse files- 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(
|
| 17 |
-
backdrop-filter:blur(
|
| 18 |
border:2px solid #ff3366;
|
| 19 |
-
box-shadow:0 0
|
| 20 |
border-radius:16px;
|
| 21 |
padding:12px;
|
| 22 |
display:none;
|
|
@@ -36,7 +36,7 @@
|
|
| 36 |
}
|
| 37 |
.media-panels {
|
| 38 |
position: fixed;
|
| 39 |
-
|
| 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:
|
| 51 |
-
background: rgba(0,0,0,0.
|
| 52 |
-
border:
|
| 53 |
-
border-radius:
|
| 54 |
-
padding:
|
| 55 |
position: relative;
|
|
|
|
| 56 |
}
|
| 57 |
.close-btn {
|
| 58 |
-
position:absolute; top:
|
| 59 |
-
background:rgba(255,60,60,0.9); width:
|
| 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
|
| 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
|
| 87 |
-
|
| 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
|
| 144 |
-
videos.forEach(v => v.muted =
|
| 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
|