-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment_options.html
66 lines (63 loc) · 3.16 KB
/
payment_options.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
<!DOCTYPE html>
<html lang="en">
<script>
var cost = localStorage['cost'];
var drink = localStorage['drink'];
var desc = localStorage['description'];
//localStorage.removeItem( 'cost' ); // Clear the localStorage
// localStorage.removeItem('drink');
//localStorage.removeItem('description');
</script>
<head>
<meta charset="UTF-8">
<title>JUVA Juice</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="main2">
<div class="header">
<button onclick="window.location.href=sessionStorage.getItem('back');" class="back">
<img class="backbutton" src="./img/BackButton.png">
</button>
<button onclick="window.location.href='index.html';" class="home">
<img class="homebutton" src="./img/JUVA_Blueberry_Logo.png">
</button>
</div>
<div class="rectangle">
<strong style="position: relative; top:50px">
<FONT COLOR="000000">
<FONT size="4" face="arial">
<h1 id="total_cost">Total: <br><span id="c"></span></h1>
<script>
// Gets total cost from previous page
document.getElementById("c").innerHTML = sessionStorage.getItem("cost");
</script>
</FONT>
</FONT>
<FONT COLOR="000000">
<FONT size="6.5" face="arial">
<p id="juice_drink">You selected: <span id="j"></span></p>
<script>
// Gets the drink name from previous page
document.getElementById("j").innerHTML = sessionStorage.getItem("drink");
</script>
</FONT>
</FONT>
</strong>
</div>
<div>
<p style="margin-top: -35px;text-align: center;">
<FONT color="000000" size="6.5" face="arial">
Payment Options:
</FONT>
<button onclick="window.location.href='pay_with_cash.html';" class="paybutton buttonpay">Cash</button>
<button onclick="window.location.href='pay_with_card.html';" class="paybutton buttonpay">Debit/Credit</button>
<button style="margin: 5px" onclick="window.location.href='pay_with_phone.html';" class="paybutton buttonpay">Apple/Google Pay</button>
</p>
</div>
</div>
</div>
</body>
</html>