Update index.html
Browse files- index.html +43 -9
index.html
CHANGED
|
@@ -5,12 +5,40 @@
|
|
| 5 |
<title>Holodeck</title>
|
| 6 |
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
|
| 7 |
<style>
|
| 8 |
-
#bead {
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
#myVideo { width:100%; border-radius:8px; }
|
| 13 |
-
.close-btn {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
</style>
|
| 15 |
</head>
|
| 16 |
<body>
|
|
@@ -51,8 +79,15 @@
|
|
| 51 |
|
| 52 |
function launchSky() { document.getElementById('skyInput').click(); }
|
| 53 |
function pickScreenMedia() { document.getElementById('screenInput').click(); }
|
| 54 |
-
|
| 55 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
function toggleMute() {
|
| 58 |
if (skyVideo) skyVideo.muted = !skyVideo.muted;
|
|
@@ -64,11 +99,10 @@
|
|
| 64 |
container.style.display = 'none';
|
| 65 |
}
|
| 66 |
|
| 67 |
-
// Sky Launcher
|
| 68 |
document.getElementById('skyInput').addEventListener('change', function(e) {
|
| 69 |
const file = e.target.files[0];
|
| 70 |
if (!file) return;
|
| 71 |
-
|
| 72 |
const url = URL.createObjectURL(file);
|
| 73 |
const sky = document.getElementById('sky');
|
| 74 |
|
|
|
|
| 5 |
<title>Holodeck</title>
|
| 6 |
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
|
| 7 |
<style>
|
| 8 |
+
#bead {
|
| 9 |
+
position:fixed; bottom:35px; left:30px; width:38px; height:38px;
|
| 10 |
+
background:rgba(255,30,30,0.08); border:2px solid #ff3366; border-radius:50%;
|
| 11 |
+
box-shadow:0 0 18px #ff3366, 0 0 35px #ff3366, inset 0 0 12px rgba(255,255,255,0.3);
|
| 12 |
+
z-index:1000; cursor:pointer;
|
| 13 |
+
}
|
| 14 |
+
#panel {
|
| 15 |
+
position:fixed; bottom:88px; left:22px; width:205px;
|
| 16 |
+
background:rgba(20,0,10,0.85); backdrop-filter:blur(18px);
|
| 17 |
+
border:2px solid #ff3366; box-shadow:0 0 25px #ff3366, 0 0 45px #ff3366;
|
| 18 |
+
border-radius:16px; padding:12px; display:none; flex-direction:column; gap:8px;
|
| 19 |
+
z-index:1002;
|
| 20 |
+
}
|
| 21 |
+
button {
|
| 22 |
+
background:rgba(255,50,50,0.08);
|
| 23 |
+
color:#ff99aa;
|
| 24 |
+
border:1px solid #ff3366;
|
| 25 |
+
box-shadow:0 0 12px #ff3366;
|
| 26 |
+
padding:12px 14px;
|
| 27 |
+
border-radius:10px;
|
| 28 |
+
font-size:15px;
|
| 29 |
+
text-align:left;
|
| 30 |
+
}
|
| 31 |
+
#videoContainer {
|
| 32 |
+
position:fixed; bottom:180px; left:50%; transform:translateX(-50%);
|
| 33 |
+
width:90%; max-width:400px; display:none; z-index:1000;
|
| 34 |
+
background:rgba(0,0,0,0.85); border-radius:12px; padding:8px;
|
| 35 |
+
}
|
| 36 |
#myVideo { width:100%; border-radius:8px; }
|
| 37 |
+
.close-btn {
|
| 38 |
+
position:absolute; top:8px; right:8px; color:white; font-size:28px;
|
| 39 |
+
background:rgba(255,60,60,0.9); width:32px; height:32px; border-radius:50%;
|
| 40 |
+
display:flex; align-items:center; justify-content:center; z-index:1001;
|
| 41 |
+
}
|
| 42 |
</style>
|
| 43 |
</head>
|
| 44 |
<body>
|
|
|
|
| 79 |
|
| 80 |
function launchSky() { document.getElementById('skyInput').click(); }
|
| 81 |
function pickScreenMedia() { document.getElementById('screenInput').click(); }
|
| 82 |
+
|
| 83 |
+
function playSky() {
|
| 84 |
+
if (skyVideo) skyVideo.play();
|
| 85 |
+
else screenVideo.play();
|
| 86 |
+
}
|
| 87 |
+
function pauseSky() {
|
| 88 |
+
if (skyVideo) skyVideo.pause();
|
| 89 |
+
else screenVideo.pause();
|
| 90 |
+
}
|
| 91 |
|
| 92 |
function toggleMute() {
|
| 93 |
if (skyVideo) skyVideo.muted = !skyVideo.muted;
|
|
|
|
| 99 |
container.style.display = 'none';
|
| 100 |
}
|
| 101 |
|
| 102 |
+
// Sky Launcher
|
| 103 |
document.getElementById('skyInput').addEventListener('change', function(e) {
|
| 104 |
const file = e.target.files[0];
|
| 105 |
if (!file) return;
|
|
|
|
| 106 |
const url = URL.createObjectURL(file);
|
| 107 |
const sky = document.getElementById('sky');
|
| 108 |
|