Rahul Kiran G commited on
Commit
d08ec62
·
verified ·
1 Parent(s): f519c69

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +14 -6
index.html CHANGED
@@ -3,18 +3,26 @@
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Minecraft CV</title>
7
- <!-- MediaPipe Scripts (Must be in Head) -->
 
8
  <script src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js" crossorigin="anonymous"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js" crossorigin="anonymous"></script>
10
 
11
- <!-- Link to your CSS file in assets -->
12
  <link rel="stylesheet" crossorigin href="./assets/index-BviU6qZO.css">
 
 
 
 
 
 
13
  </head>
14
- <body style="margin: 0; background-color: #f0f0f0;">
 
15
  <div id="root"></div>
16
-
17
- <!-- Link to your JS file in assets -->
18
  <script type="module" crossorigin src="./assets/index-DNecEowW.js"></script>
19
  </body>
20
  </html>
 
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Minecraft CV Controller</title>
7
+
8
+ <!-- 1. MediaPipe AI Scripts -->
9
  <script src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js" crossorigin="anonymous"></script>
10
  <script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js" crossorigin="anonymous"></script>
11
 
12
+ <!-- 2. YOUR CSS FILE (Check your assets folder and copy the name exactly!) -->
13
  <link rel="stylesheet" crossorigin href="./assets/index-BviU6qZO.css">
14
+
15
+ <style>
16
+ /* This ensures the page isn't white even if the JS fails */
17
+ body { margin: 0; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; height: 100vh; font-family: sans-serif; }
18
+ #loading-msg { position: absolute; color: #666; }
19
+ </style>
20
  </head>
21
+ <body>
22
+ <div id="loading-msg">Loading AI and 3D Scene...</div>
23
  <div id="root"></div>
24
+
25
+ <!-- 3. YOUR JS FILE (Check your assets folder and copy the name exactly!) -->
26
  <script type="module" crossorigin src="./assets/index-DNecEowW.js"></script>
27
  </body>
28
  </html>