Metaprime commited on
Commit
f62a04c
·
verified ·
1 Parent(s): 50a6087

Update index.html

Browse files
Files changed (1) hide show
  1. 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 { position:fixed; bottom:35px; left:30px; width:38px; height:38px; background:rgba(255,30,30,0.08); border:2px solid #ff3366; border-radius:50%; box-shadow:0 0 18px #ff3366, 0 0 35px #ff3366, inset 0 0 12px rgba(255,255,255,0.3); z-index:1000; cursor:pointer; }
9
- #panel { position:fixed; bottom:88px; left:22px; width:205px; background:rgba(20,0,10,0.85); backdrop-filter:blur(18px); border:2px solid #ff3366; box-shadow:0 0 25px #ff3366, 0 0 45px #ff3366; border-radius:16px; padding:12px; display:none; flex-direction:column; gap:8px; z-index:1002; }
10
- button { background:rgba(255,50,50,0.08); color:#ff99aa; border:1px solid #ff3366; box-shadow:0 0 12px #ff3366; padding:12px 14px; border-radius:10px; font-size:15px; text-align:left; }
11
- #videoContainer { position:fixed; bottom:180px; left:50%; transform:translateX(-50%); width:90%; max-width:400px; display:none; z-index:1000; background:rgba(0,0,0,0.85); border-radius:12px; padding:8px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  #myVideo { width:100%; border-radius:8px; }
13
- .close-btn { position:absolute; top:8px; right:8px; color:white; font-size:28px; background:rgba(255,60,60,0.9); width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; z-index:1001; }
 
 
 
 
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
- function playSky() { if (skyVideo) skyVideo.play(); }
55
- function pauseSky() { if (skyVideo) skyVideo.pause(); }
 
 
 
 
 
 
 
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 - FIXED
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