-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheckout1.html
154 lines (127 loc) · 6.04 KB
/
checkout1.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TATA-CliQ Checkout Page</title>
<script
src="https://kit.fontawesome.com/24c494a6b6.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="checkout1.css">
<link rel="stylesheet" href="nav_js_css_file/navStyle.css">
<link rel = "icon" href = "Images/Tata-Cliq-Logo.png" type = "image/x-icon">
</head>
<body>
<!-- Header Section Navbar STARTS Here-->
<div id="navContainer" style="height:75px">
<div></div>
<div class="navMiddle">
<div class="logoHolder">
<img src="nav_js_css_file/tata_cliq.png" alt="tata-cliq_logo">
</div>
<div class="navFunctHolder">
<div class="loginDropdown" style="background-color:#212121; padding-top:20px; font-size:25px">
<span id="profileIcon" class="loginBtn" style="color:white !important">
<i class="fa-solid fa-circle-user"></i>
<i class="fa-solid fa-angle-down" style="font-size: 18px;"></i>
</span>
<div class="loginDropdown-content" style="top: 35px;">
<span style="right:0.5px; top:-10px;"><i class="fa-solid fa-sort-up"></i></span>
<!-- <p id="arrow"></p> -->
<button id="loginBtn" onclick="openNav()" style="display: none;">Login/ Register</button>
<p><a href="#"><i class="fa-regular fa-user"></i> My account</a></p>
<p><a href="#"><i class="fa-solid fa-bag-shopping"></i> Order History</a></p>
<p><a href="#"><i class="fa-regular fa-heart"></i> My Wishlist</a></p>
<p><a href="#"><i class="fa-regular fa-bell"></i> Alerts & Coupon</a></p>
<p><a href="#"><i class="fa-solid fa-gift"></i> Gift Card</a></p>
<p><a href="#"><i class="fa-solid fa-money-bill-1-wave"></i> CLiQ Cash</a></p>
<p id="logOut"><a href="#"><i class="fa-solid fa-gear"></i> Log Out</a></p>
</div>
</div>
</div>
</div>
<div></div>
</div>
<!-- Header Section Navbar ENDS Here-->
<div id="main">
<div id="top">
<h1>Checkout</h1>
</div>
<div class="bottom">
<div class="firstDiv">
<div class="sec1">
<div class="subsec1">
<div class="num">1</div>
<div><h3>Confirm Shipping Address</h3></div>
</div>
<div class="subsec2"><a href="checkout.html">Add a new address</a></div>
</div>
<!-- <form action=""> -->
<div class="sec2">
<div>
<!-- <input id="radio1" type="radio" name="opt" value="home"/> -->
<label id="label1"><i class="fa-regular fa-circle-check" style="color: red;"></i> Home</label>
</div>
</div>
<div class="sec3">
<textarea id="home" rows = "5" cols = "60" name = "description" readonly></textarea>
<div class="sec4">
<button id="btn1">Continue</button>
</div>
</div>
<!-- </form> -->
</div>
<div class="secondDiv">
<div class="total">
<div>
<p id="child1">Bag Total</p>
<p id="bagTotal1">0</p>
</div>
<div id="child2">
<p>Shipping Charge</p>
<p id="green">FREE</p>
</div>
<div>
<p>Bag SubTotal</p>
<p id="bagTotal2">0</p>
</div>
<!-- <div>
<p id="child4">Discount</p>
</div> -->
<!-- <div>
<p id="child5">You will save ₹0 on this order</p>
</div> -->
<hr>
<div style="font-size: 25px; font-weight: bold;">
<p id="total">Total</p>
<p id="bagTotal4">₹ 1799</p>
</div>
</div>
<div id="safe">
<div><img src="Images/safe_secure.png"/></div>
<div id="last">Safe and secure payments. Easy returns. 100% Authentic products.</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
var name1 = JSON.parse(localStorage.getItem("textarea"));
console.log(name1);
document.querySelector("#home").innerText = name1;
document.querySelector("#btn1").addEventListener("click",myfunction);
function myfunction(){
window.location.href="payment.html";
}
var bagItems = JSON.parse(localStorage.getItem("bagItems"))
document.querySelector("#bagTotal1").innerText = "₹ "+ bagItems[bagItems.length-1].price
document.querySelector("#bagTotal2").innerText = "₹ "+ bagItems[bagItems.length-1].price
// document.querySelector("#bagTotal3").innerText = "₹ "+ bagItems[bagItems.length-1].price
document.querySelector("#bagTotal4").innerText = "₹ "+ bagItems[bagItems.length-1].price
</script>
<script src="nav_js_css_file/brands.js"></script>
<script src="nav_js_css_file/nav.js"></script>
<script src="nav_js_css_file/pop.js"></script>