-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (31 loc) · 1.12 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Skipping Class Calculator</title>
<h1>How much money do you waste when you skip class?</h1>
<!-- <style>
body {
background-image: url('burnmoney.jpg');
background-size: 50%;
}
</style> -->
</head>
<body>
<h3>I'm glad you asked.</h3>
<p>First, how much do you pay in tuition, in dollars?</p>
<label for="tuition">$</label>
<input type="number" id="tuition" autofocus>
<p>Second, how many credit hours are you taking total?</p>
<input type="number" id="credits">
<p>Third, how many credit hours is the class your skipping?</p>
<input type="number" id="classCredits">
<p>Fourth, how many times a week does the class you're skipping meet?</p>
<input type="number" id="timesPerWeek">
<p>
<button type="button" id="calculateButton" onclick="calculate()">Calculate!</button>
</p>
<p id="results"></p>
</body>
<script src="calculator.js"></script>
</html>