-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (56 loc) · 2.73 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/styles.css" />
</head>
<body>
<div id="wrapper">
<h1>American Express Gold Card: Is it worth it for YOUR spending habits?</h1>
<p><strong>Are you able to get the full welcome offer of 35,000 MR points (by spending $4000)?</strong></p>
<input type="radio" name = "welcome" id = "yes" value=35000>YES<br>
<input type="radio" name = "welcome" id = "no" value=0>NO<br>
<div id="wOut"></div>
<br>
<p id="welcomeOut" class="output">Points earned from welcome bonus: </p>
<p><strong>Please input the approximate amount you spend (dollars) in each of the categories.</strong></p>
<div>Restaurants (4X points) </br> $<input type="text" id="rSpend"></div>
<div id="rOut"></div>
<div>U.S. Supermarkets (4X points) </br> $<input type="text" id="sSpend"></div>
<div id="sOut"></div>
<div>Flights booked directly or through amex portal (3X points) </br> $<input type="text" id="fSpend"></div>
<div id="fOut"></div>
<div>All other spending (1X points) </br> $<input type="text" id="aSpend"></div>
<div id="aOut"></div>
<br>
<p id="spendOut" class="output">Points earned from welcome bonus: </p>
<p><strong>Please input how much you value the credits/benefits that American Express provides you annually.</strong></p>
<div>$100 Airline Credit </br> $<input type="text" id="aCredit"></div>
<div id="aCredsOut"></div>
<div>$120 Dining Credit </br> $<input type="text" id="dCredit"></div>
<div id="dCredsOut"></div>
<div>Amex Benefits (Shoprunner, The Hotel Collection, Pre-sale tickets, etc) </br> $<input type="text" id="oCredit"></div>
<div id="oCredsOut"></div>
<br>
<p id="creditsOut" class="output">Value of credits in year 1 (w/ double dipping in Airline Credits): </p>
<p id="creditsOut2" class="output">Value of credits in year 2 (w/ no Airline Credits): </p>
<p><strong>How do you plan to redeem your MR points (CPP = Cents Per Point)?</strong></p>
<input type="radio" name = "redemption" id = "statement">Statement credit = 0.6 CPP<br>
<input type="radio" name = "redemption" id = "amazon">Amazon = 0.7 CPP<br>
<input type="radio" name = "redemption" id = "gift">Gift cards/Uber/Travel = 1 CPP<br>
<input type="radio" name = "redemption" id = "schwab">Schwab Platinum = 1.25 CPP<br>
<input type="radio" name = "redemption" id = "transfer">Transfer partners = 2 CPP<br>
<div id="redOut"></div>
<br>
<p id="redeemOut" class="output">Expected Value in Year 1: </p>
<p id="redeemOut2" class="output">Expected Value in Year 2: </p>
<br>
<div id="invalidUser"></div>
<div style="text-align:center;">
<p></p>
<button onclick="mainFunction()">Enter</button>
</div>
</div>
</body>
<script src="js/script.js"></script>
</html>