-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (48 loc) · 1.82 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gym Punchcard</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="punchcard">
<h1>Gym Punchcard</h1>
<p id="currentPunches">Current Punches: 0</p>
<p id="unredeemedPunchcards">Unredeemed Punchcards: 0</p>
<p id="redeemedPunchcards">Redeemed Punchcards: 0</p>
<div class="activity-buttons" id="activityButtons">
<!-- Buttons will be dynamically added here -->
</div>
<div class="input-container">
<select id="activityDropdown">
<!-- Options will be dynamically added here -->
</select>
<input type="text" id="activity" placeholder="Enter other activity" style="display: none;">
<button onclick="addPunch()">Add Punch</button>
</div>
<div class="input-container">
<select id="rewardDropdown">
<!-- Options will be dynamically added here -->
</select>
<input type="text" id="reward" placeholder="Enter other reward" style="display: none;">
<button onclick="redeemReward()">Redeem Reward</button>
</div>
<div class="tab-container">
<button class="tab-button active" onclick="openTab(event, 'history')">History</button>
<button class="tab-button" onclick="openTab(event, 'analytics')">Analytics</button>
</div>
<div id="history" class="tab-content active">
<h2 class="history-header">History</h2>
<ul id="historyList"></ul>
</div>
<div id="analytics" class="tab-content">
<h2 class="history-header">Activity Analytics</h2>
<canvas id="activityChart" width="400" height="200"></canvas>
</div>
</div>
<script src="scripts.js"></script>
</body>
</html>