LilithX6X commited on
Commit
a2dcd2b
·
verified ·
1 Parent(s): 674a31c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +57 -18
index.html CHANGED
@@ -1,19 +1,58 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Telegram Video Player</title>
7
+ <script src="https://telegram.org/js/telegram-web-app.js"></script>
8
+ <style>
9
+ body {
10
+ font-family: Arial, sans-serif;
11
+ margin: 0;
12
+ padding: 0;
13
+ background-color: #f0f0f0;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ height: 100vh;
18
+ }
19
+ .video-container {
20
+ width: 90%;
21
+ max-width: 800px;
22
+ background-color: #fff;
23
+ padding: 20px;
24
+ border-radius: 10px;
25
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
26
+ }
27
+ video {
28
+ width: 100%;
29
+ border-radius: 10px;
30
+ }
31
+ </style>
32
+ </head>
33
+ <body>
34
+ <div class="video-container">
35
+ <h2>Video Player</h2>
36
+ <video controls>
37
+ <source src="https://your-server-url.com/video.mp4" type="video/mp4"> <!-- Replace with your hosted video URL -->
38
+ Your browser does not support HTML5 video.
39
+ </video>
40
+ </div>
41
+
42
+ <script>
43
+ // Initialize Telegram Web App
44
+ const tg = window.Telegram.WebApp;
45
+
46
+ // Notify Telegram that the app is ready
47
+ tg.ready();
48
+
49
+ // Optionally expand the app to full screen
50
+ tg.expand();
51
+
52
+ // Main button functionality (optional)
53
+ tg.MainButton.setText("Close App").show().onClick(() => {
54
+ tg.close();
55
+ });
56
+ </script>
57
+ </body>
58
  </html>