Create templates/index.html
Browse files- templates/index.html +29 -0
templates/index.html
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Cricket LBW Analysis</title>
|
| 5 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 6 |
+
</head>
|
| 7 |
+
<body>
|
| 8 |
+
<h1>Cricket T20 Ball Tracking & LBW Analysis</h1>
|
| 9 |
+
<form id="lbw-form">
|
| 10 |
+
<label>Pitching X (0 to 1):</label>
|
| 11 |
+
<input type="number" name="pitching_x" step="0.1" min="0" max="1" value="0.5"><br>
|
| 12 |
+
<label>Pitching Y (0 to 1):</label>
|
| 13 |
+
<input type="number" name="pitching_y" step="0.1" min="0" max="1" value="0.0"><br>
|
| 14 |
+
<label>Impact X (0 to 1):</label>
|
| 15 |
+
<input type="number" name="impact_x" step="0.1" min="0" max="1" value="0.5"><br>
|
| 16 |
+
<label>Impact Y (0 to 1):</label>
|
| 17 |
+
<input type="number" name="impact_y" step="0.1" min="0" max="1" value="0.5"><br>
|
| 18 |
+
<label>Speed (m/s):</label>
|
| 19 |
+
<input type="number" name="speed" min="0" value="30"><br>
|
| 20 |
+
<label>Spin (rps):</label>
|
| 21 |
+
<input type="number" name="spin" min="0" value="0"><br>
|
| 22 |
+
<button type="submit">Analyze LBW</button>
|
| 23 |
+
</form>
|
| 24 |
+
<h2>Result</h2>
|
| 25 |
+
<p id="decision"></p>
|
| 26 |
+
<canvas id="pitchCanvas" width="400" height="600"></canvas>
|
| 27 |
+
<script src="/static/script.js"></script>
|
| 28 |
+
</body>
|
| 29 |
+
</html>
|