-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculate.html
108 lines (104 loc) · 4.7 KB
/
calculate.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description"
content="A simple tool to predict if your favourite team will qualify for the IPL 2024 playoffs or not." />
<meta name="keywords"
content="IPL, team qualification, predictor, playoffs, 2024, calculator, RCB, CSK, GT, LSG, KKR, PBKS, MI, SRH, DC, RR, ROYAL CHALLENGERS BENGALURU, Chennai Super Kings, Gujarat Titans, Lucknow Super Giants, Kolkata Knight Riders, Punjab Kings, Mumbai Indians, Sunrisers Hyderabad, Delhi Capitals, Rajasthan Royals" />
<meta name="author" content="Ayush Jain" />
<meta property="og:title" content="Will My Team Qualify?" />
<meta property="og:description"
content="A simple tool to predict if your favourite team will qualify for the IPL 2024 playoffs or not." />
<meta property="og:image" content="https://i.ibb.co/4sSJS3G/bb.png" />
<meta property="og:url" content="https://ipl-calculator-ayushjain01.vercel.app/">
<link rel="shortcut icon" type="image/png" href="/static/favicon.ico" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@AyushGanna" />
<meta name="twitter:title" content="Will My Team Qualify?" />
<meta property="twitter:description"
content="A simple tool to predict if your favourite team will qualify for the IPL 2024 playoffs or not." />
<meta name="twitter:image" content="https://i.ibb.co/4sSJS3G/bb.png" />
<meta property="description"
content="A simple tool to predict if your favourite team will qualify for the IPL 2024 playoffs or not." />
<script defer src="/_vercel/insights/script.js"></script>
<title>Will My Team Qualify?</title>
<link rel="stylesheet" href="styles/styles3.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script defer src="https://pyscript.net/releases/2022.12.1/pyscript.js"
data-pyscript-loading-text="Loading, please wait..."></script>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet">
</head>
<body>
<h1>Calculate Chances</h1>
<hr>
<div class="container">
<p for="teams">Choose a team:</p>
<select id="teams" name="teams">
<option value="GT">GT</option>
<option value="CSK">CSK</option>
<option value="MI">MI</option>
<option value="LSG">LSG</option>
<option value="RCB">RCB</option>
<option value="KKR">KKR</option>
<option value="PBKS">PBKS</option>
<option value="DC">DC</option>
<option value="SRH">SRH</option>
<option value="RR">RR</option>
</select>
<p for="iterations">Choose number of scenarios:</p>
<select id="iterations" name="iterations">
</select>
</div>
<center id="records">
<p>Current Standings- </p>
<table>
<thead>
<tr>
<th>POS</th>
<th>TEAM</th>
<th>P</th>
<th>W</th>
<th>L</th>
<th>NR</th>
<th>NNR</th>
<th>PTS</th>
</tr>
</thead>
<tbody id="points-table">
</tbody>
</table>
<div class="button-container">
<button id="calc-button" class="button">Calculate Chances</button>
</div>
<p style ="font-size: medium;">Note - Results may take a moment to load. Please be patient! Try refreshing the page after every calculation for faster results.😏</p>
<br>
<p id="results" class="title-para" style="display:none;margin-top:-1%;"></p>
<center id="copy-content" style="display:none;">
</center>
</center>
<py-config type="toml">
packages = ["pandas"]
[[fetch]]
from = 'static/teams/'
files = ['CSK.png', 'DC.png', 'GT.png',
'KKR.png','LSG.png','MI.png','PBKS.png','RCB.png','RR.png','SRH.png']
to_folder = 'static/teams'
packages = ["pandas"]
[[fetch]]
files = ['points_table.py']
[[fetch]]
from = 'data/'
files = ['ipl_fixtures.csv', 'ipl_matches.csv','points.csv']
to_folder = 'data'
</py-config>
<py-script src="./predict_points.py"></py-script>
</body>
<footer>
<p><a href="index.html">Home</a>
<p>Check out my <a href="https://github.com/ayushjain01/IPL-Calculator">GitHub repository</a></p>
</footer>
</html>