-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (33 loc) · 1.34 KB
/
index.html
File metadata and controls
36 lines (33 loc) · 1.34 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CA Overtime Pay Calculator</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="https://raw.githubusercontent.com/LadyDaddy/ot_timecalc/main/favicon.ico" />
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/LadyDaddy/ot_timecalc/main/favicon.ico" />
</head>
<body>
<div class="container">
<h1>CA Overtime Pay Calculator</h1>
<form id="payForm">
<label for="hourlyRate">Hourly Rate ($):</label>
<input type="number" id="hourlyRate" name="hourlyRate" step="0.01" required>
<label for="hoursWorked">Total Hours Worked:</label>
<input type="number" id="hoursWorked" name="hoursWorked" step="0.1" required>
<button type="button" onclick="calculatePay()">Calculate</button>
<br>
<button type="reset" onclick="resetForm()">Reset</button>
</form>
<div id="result">
<h2>Pay Breakdown</h2>
<p id="regularPay"></p>
<p id="overtimePay"></p>
<p id="doubleTimePay"></p>
<p id="totalPay"></p>
</div>
</div>
<script src="script.js"></script>
</body>
</html>