Spaces:
Sleeping
Sleeping
Create web/index.html
Browse files- web/index.html +75 -0
web/index.html
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>LBW Hover Analysis</title>
|
7 |
+
<style>
|
8 |
+
body { font-family: Arial, sans-serif; background: #222; color: white; margin: 0; padding: 0; }
|
9 |
+
.video-container {
|
10 |
+
position: relative;
|
11 |
+
width: 100%;
|
12 |
+
max-width: 960px;
|
13 |
+
margin: 40px auto;
|
14 |
+
}
|
15 |
+
video {
|
16 |
+
width: 100%;
|
17 |
+
height: auto;
|
18 |
+
display: block;
|
19 |
+
border: 4px solid #fff;
|
20 |
+
}
|
21 |
+
.overlay {
|
22 |
+
position: absolute;
|
23 |
+
border: 2px dashed #ff0;
|
24 |
+
background-color: rgba(255, 255, 0, 0.2);
|
25 |
+
color: #000;
|
26 |
+
font-weight: bold;
|
27 |
+
padding: 4px;
|
28 |
+
border-radius: 6px;
|
29 |
+
pointer-events: all;
|
30 |
+
cursor: help;
|
31 |
+
}
|
32 |
+
.tooltip {
|
33 |
+
visibility: hidden;
|
34 |
+
width: 180px;
|
35 |
+
background-color: black;
|
36 |
+
color: #fff;
|
37 |
+
text-align: center;
|
38 |
+
border-radius: 6px;
|
39 |
+
padding: 5px 8px;
|
40 |
+
position: absolute;
|
41 |
+
z-index: 2;
|
42 |
+
bottom: 125%;
|
43 |
+
left: 50%;
|
44 |
+
margin-left: -90px;
|
45 |
+
opacity: 0;
|
46 |
+
transition: opacity 0.3s;
|
47 |
+
}
|
48 |
+
.overlay:hover .tooltip {
|
49 |
+
visibility: visible;
|
50 |
+
opacity: 1;
|
51 |
+
}
|
52 |
+
</style>
|
53 |
+
</head>
|
54 |
+
<body>
|
55 |
+
<div class="video-container">
|
56 |
+
<video controls>
|
57 |
+
<source src="replay_lbw_analysis_f175cd6fa04f4ec8882b647d4763e7d5.mp4" type="video/mp4">
|
58 |
+
Your browser does not support the video tag.
|
59 |
+
</video>
|
60 |
+
|
61 |
+
<!-- Hoverable Zones -->
|
62 |
+
<div class="overlay" style="top: 70%; left: 30%; width: 80px; height: 40px;">
|
63 |
+
<div class="tooltip">Pitching: Outside Off</div>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<div class="overlay" style="top: 48%; left: 45%; width: 90px; height: 40px;">
|
67 |
+
<div class="tooltip">Impact: In-line</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<div class="overlay" style="top: 25%; left: 50%; width: 100px; height: 40px;">
|
71 |
+
<div class="tooltip">Wickets: Hitting</div>
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
</body>
|
75 |
+
</html>
|