-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgift.html
192 lines (178 loc) · 8.36 KB
/
gift.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!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>Document</title>
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400&family=Roboto:wght@300;400&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./styles/navbar.css">
<link rel="stylesheet" href="./styles/footer.css">
<link rel="stylesheet" href="styles/gift.css">
<link rel="shortcut icon"
href="https://img.search.brave.com/aNSlvq_0L22JXvZF-X4H5gzLjBhs27qZHoYlp3apefo/rs:fit:474:225:1/g:ce/aHR0cHM6Ly90c2Uy/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5p/MmRqRnQxWVRZal9j/Z1JObmFYQmpnSGFI/YSZwaWQ9QXBp"
alt="logo">
</head>
<body>
<div id="nav"></div>
<div id="spring">
<img src="https://images.ctfassets.net/q602vtcuu3w3/5fzMSbSy2JQ1eklWYg816B/754da5f6e1b7010a48a80427246594fd/21_SPRING_GIFT_CARDS_LP_RS1.jpg?w=2160&q=80&fm=webp">
</div>
<div id="checkdiv">
<a href="#"><img src="https://images.ctfassets.net/q602vtcuu3w3/2zhSHinWOuSvvDzepgeI8k/60b572791e5b8d3507e68efccbdbdc07/21_SPRING_GIFT_CARDS_LP_RS13.jpg?w=1050&q=80&fm=webp"></a>
<a href="#"><img src="https://images.ctfassets.net/q602vtcuu3w3/Tve9yGwy4ncH7KwOISzn4/aa84da1e584d8a2524a799b8fbeff064/21_SPRING_GIFT_CARDS_LP_RS15.jpg?w=1050&q=80&fm=webp"></a>
</div>
<div id="E-Giftcard-container"></div>
<div id="uogiftcard">
<div id="uogiftcarddiv1">
<img id="uogiftcarddiv1img1" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_b?$medium$&qlt=80&fit=constrain" alt="">
<img id="uogiftcarddiv1img2" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_d?$medium$&qlt=80&fit=constrain" alt="">
</div>
<div id="uogiftcarddiv1">
<img id="uogiftcarddiv1img1" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_b?$medium$&qlt=80&fit=constrain" alt="">
<img id="uogiftcarddiv1img2" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_e?$medium$&qlt=80&fit=constrain" alt="">
</div>
<div id="uogiftcarddiv1">
<img id="uogiftcarddiv1img1" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_d?$medium$&qlt=80&fit=constrain" alt="">
<img id="uogiftcarddiv1img2" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_b?$medium$&qlt=80&fit=constrain" alt="">
</div>
<div id="uogiftcarddiv1">
<img id="uogiftcarddiv1img1" src="https://images.urbndata.com/is/image/UrbanOutfitters/50000000x_00_e?$medium$&qlt=80&fit=constrain" alt="">
<img id="uogiftcarddiv1img2" src="https://images.urbndata.com/is/image/UrbanOutfitters/40806036_000_d?$medium$&qlt=80&fit=constrain" alt="">
</div>
</div>
<div id="giftflexdiv">
<p>Uo Gift Card</p>
<p>Uo Gift Card</p>
<p>Uo Gift Card</p>
<p>Uo Gift Card</p>
</div>
<div id="footer"> </div>
</body>
</html>
<script>
var arr_obj=[
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/40805285_000_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611368_008_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26610923_004_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/34303842_000_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611699_011_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26612572_019_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26612135_015_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611913_013_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611582_010_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26610709_002_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611475_009_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611699_011_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26612028_014_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/40806036_000_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611806_012_d-1?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611251_007_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26595405_001_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611145_006_b?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26611038_005_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
{
image_Url:"https://images.urbndata.com/is/image/UrbanOutfitters/26610816_003_d?$medium$&qlt=80&fit=constrain",
name:"E-Gift Card"
},
]
arr_obj.map(function(elem){
var giftdiv=document.querySelector('#E-Giftcard-container')
var innerdiv=document.createElement('div');
var giftimage=document.createElement('img');
var giftpara=document.createElement('p');
giftimage.src=elem.image_Url;
giftimage.style.height="320px";
giftimage.style.width="100%"
giftpara.textContent=elem.name;
giftpara.style.fontSize="12px";
innerdiv.append(giftimage,giftpara)
innerdiv.style.marginBottom="5px"
giftdiv.append(innerdiv)
});
</script>
<script type="module">
// localStorage.setItem("cart", JSON.stringify("cart"))
import navbar from './components/navbar.js'
import footer from './components/footer.js'
let nav = document.getElementById("nav");
nav.innerHTML = navbar()
// let cart = JSON.parse(localStorage.getItem("cart")) || []
// document.querySelector(".fa-shopping-bag").innerHTML = cart.length;
let foot = document.getElementById("footer");
foot.innerHTML = footer()
let ws1 = document.querySelector("#ws1");
console.log(ws1);
ws1.addEventListener("click", function () {
window.location.href = "productpage.html"
})
let bag = document.querySelector(".fa-shopping-bag");
console.log(bag);
bag.addEventListener("click", function () {
window.location.href = "cart.html";
});
document.getElementById("back").addEventListener("click", function () {
window.location.href = "index.html"
})
</script>