-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
189 lines (186 loc) · 5.44 KB
/
index.js
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
let products=[
{
img:"https://apollo-singapore.akamaized.net/v1/files/3oro0b44cmzd2-IN/image;s=300x600;q=60",
price:"₹ 3,36,000",
model:"2018- 16,998 km",
desc:"Maruti Suzuki Alto 800 LXI",
location:"Rohini,Sector 10, Delhi",
date:"Hune 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/awdqmfabzrft2-IN/image;s=300x600;q=60",
price:"₹ 1,70,000",
model:"2009- 85000 km",
desc:"Maruti Suzuki Alto LXI, 2009",
location:"Ambala Cantt, Ambala",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/nbld682a4of23-IN/image;s=300x600;q=60",
price:"₹ 7,500",
model:"2016",
desc:"Apple Iphone 7s New",
location:"Fatehpur ,Uttar pradesh",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/c9qjp5an3z013-IN/image;s=300x600;q=60",
price:"₹ 8,399",
model:"2015",
desc:"Iphone 6 plus, Apple Beast Deal",
location:"Rohini,Sector 10, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/ia1ufc5605eg3-IN/image;s=300x600;q=60",
price:"₹ 62,000",
model:"2016- 35000km",
desc:"TVS bike, less driven perfect",
location:"Karol Bagh, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/luqpliifosjd2-IN/image;s=300x600;q=60",
price:"₹ 4,10,000",
model:"2015- 25000km",
desc:"Honda City i-VTECH latest",
location:"Fatehpur ,Uttar pradesh",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/sb7lgnk40yce2-IN/image;s=300x600;q=60",
price:"₹ 1,000",
model:"2021",
desc:"Campus White Shoes comfortable",
location:"Samaypur Badli, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/jh3n3lr96nfd-IN/image;s=300x600;q=60",
price:"₹ 6,999",
model:"2015",
desc:"3200 Lumens Ultra 4K TV",
location:"Rohini,Sector 10, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/6e83h8fhr5m43-IN/image;s=300x600;q=60",
price:"₹ 15,000",
model:"2018",
desc:"Shop For rent in Pune",
location:"Pune, Maharashtra",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/dv1c5wykawip-IN/image;s=300x600;q=60",
price:"₹ 699",
model:"2021",
desc:"Perfect Condition Boat Headphones",
location:"Agra, uttar Pradesh",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/ojr0br07te8j2-IN/image;s=300x600;q=60",
price:"₹ 80,00,000",
model:"2020",
desc:"15 Acres plot for commercial ",
location:"Rohini,Sector 10, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/xsnjhis419z42-IN/image;s=300x600;q=60",
price:"₹ 7,500",
model:"2020",
desc:"Apple headsets with charging cable",
location:"Lucknow, Uttar Pradesh",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/kg22eci2k6ko2-IN/image;s=300x600;q=60",
price:"₹ 899",
model:"2021",
desc:"Campus Men's shoes comfort",
location:"Bhopal, Madhya Pradesh",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/qd1i9sbg3u8t-IN/image;s=300x600;q=60",
price:"₹ 1,700",
model:"2020",
desc:"Boat headphones with a clear voice",
location:"Dwarka Sector 3, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/v00i6hopkps12-IN/image;s=300x600;q=60",
price:"₹ 1,456",
model:"2019",
desc:"Apple Smartwatches second copy",
location:"Delhi Cantt, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/pomhkrpirx96-IN/image;s=300x600;q=60",
price:"₹ 999",
model:"None",
desc:"Jingalala offer",
location:"Bangalore, Karnataka",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/q1pgjlwldbam1-IN/image;s=300x600;q=60",
price:"₹ 968",
model:"2020",
desc:"One Plus Smart watches",
location:"Patna, Bihar",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/tuhrwon1ty483-IN/image;s=300x600;q=60",
price:"₹ 2,500",
model:"2017",
desc:"Apple headsets perfect condition",
location:"Rohini,Sector 10, Delhi",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/ginwgczgovr33-IN/image;s=300x600;q=60",
price:"₹ 1,55,000",
model:"2013-60,000km",
desc:"Chevrolet-beat",
location:"Lucknow, Uttar Pradesh",
date:"June 08"
},
{
img:"https://apollo-singapore.akamaized.net/v1/files/5lbgq11mwdfu2-IN/image;s=300x600;q=60",
price:"₹ 2,600",
model:"2018",
desc:"Mens Smartwatches for wrists",
location:"Rohini,Sector 10, Delhi",
date:"June 08"
}
];
display(products);
function display(products)
{
products.map(function(elem)
{
let div=document.createElement("div");
let div1=document.createElement("div");
let img=document.createElement("img");
img.src=elem.img;
let p1=document.createElement("p");
p1.innerText=elem.price;
let p2=document.createElement("p");
p2.innerText=elem.model;
let p3=document.createElement("p");
p3.innerText=elem.desc;
let p4=document.createElement("p");
p4.innerText=elem.location;
let p5=document.createElement("p");
p5.innerText=elem.date;
div1.append(img);
div.append(div1,p1,p2,p3,p4,p5);
document.querySelector("#container2").append(div);
});
}