forked from DevSankalp1894/swank-meeting-7218
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.js
348 lines (325 loc) · 14.5 KB
/
gallery.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
let arr_entertainment=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-3e60l6v07vk8jd76r50eikc391-20201209155425.jpeg",
para: "Niharika and Chaitanya wedding ceremony"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-56jppbb2ma6gekbm96p73imdm3-20220811234016.jpeg",
para: "Ananya Panday, Vijay Deverakonda spotted at coffee shop"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-an4v33r20oo3l8ussn00bv8gu2-20200810174058.jpeg",
para: "Rana Daggubati and and Miheeka Bajaj performed the traditional Satyanrayanara Vratam"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-es84r4783g3f7ti3uq07f80o40-20200809175935.jpeg",
para: "Actor RanaDaggubati and entrepreneur Miheeka Bajaj tied the knot on Saturday evening"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-nb73u1i5ep3absdussa9dhj7t3-20200406113529.jpeg",
para: "South stars stand in solidarity with PM's 9 baje 9 minute initiative"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-iovn97hgi9q8i57g1r8c83p5v4-20200215115257.jpeg",
para: "Fashion on streets: Here's the best looks from New York Fashion Week"
}
];
let arr_lifestyle=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-5c1droacmv2cna13ff287lhjo0-20200429082552.jpeg",
para: "My life in Covid-19 quarantine"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-rcf7i7ej6lusuevh8j9d3rg7f1-20200314144258.jpeg",
para: "Framing the Mundane"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-lm5svqiloml481tidqq5t09s82-20200209162556.jpeg",
para: "The best picture from New York Fashion Week"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-i2h2i9buncmtmekijibjlr84d0-20200308125825.jpeg",
para: "A selection of photographer TK Sandeep's Work"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-80hhgc3rhafp4ke60e8pp9v0e6-20191108134146.jpeg",
para: "Valentno fashionably interprets A Midsummer's Night Dream"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-5p043kci875a3lf3rj2m4v6476-20191001145309.jpeg",
para: "India gears up for Navratri"
},
];
let arr_technology=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-uite3ht17d3qokiucq4k6ha7u0-20200106124032.jpeg",
para: "CES 2020: Samsung QLED 8K TV gets shown-off"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-v49nbrup06ddnafqs6nqrig784-20191115100410.jpeg",
para: "Experience Guruparab in Amritsar with Samsung's stunning #lndiaonGalaxy series"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-iiil0cn21ludapnv2i1v17hgq6-20191011100718.jpeg",
para: "Dussehra festivities shot on iPhone 11 Pro Max"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-pchrhofirmi4uto5gh0ttbqp05-20190911133837.jpeg",
para: "Everything Apple launched at its September iPhone event"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-tb6kspf4gfd5bg8l1ai8kaesq7-20190903183325.jpeg",
para: "Best budget fitness trackers under Rs 3000"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-tb6kspf4gfd5bg8l1ai8kaesq7-20190827154942.jpeg",
para: "Top True Wireless Earbuds under Rs 5,000"
},
];
let arr_sports=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-q3qaemi975snai7kir9mh9om61-20210723191813.jpeg",
para: "Tokyo Olympics: Tribute to Athletes amidst empty Seats at the Olympic Stadium"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-oju0aqlan3ibacnr9820japfh1-20200321100524.jpeg",
para: "On or off? Who's saying what over status of 2020 Tokyo Olympics"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-2opdlm8e3v8ae0k4t2p5ckifh7-20200311154914.jpeg",
para: "Leipzig's date with UEFA Champions League quarter-finals"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-028qhhsmm59okfnpe6p457r137-20200302180557.jpeg",
para: "Vanquished Virat's boys trudge back to the pavilion"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-mgu4v858rtpfe9u7f1jcutptk1-20200229175350.jpeg",
para: "India Vs New Zealand 2nd Test, Day One Highlights"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-a1kunmdk653l858i15m2fgfnr7-20200227164622.jpeg",
para: "India Vs New Zealand Women's T20 World Cup 2020 Highlights"
},
];
let arr_nation=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-730tkg416tgs0554ergr923ea3-20220917081643.jpeg",
para : "HYDERABAD WINS FREEDOM"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-jcdppve1p57gslfudkjj2o3sd5-20220502133355.jpeg",
para : "In Pictures | India reels under intense heatwave"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-mbrh668e4c5hlkkhd8ul33njk5-20220412003743.jpeg",
para : "In Pictures | TRS protest in Delhi"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-8g2q1og4pt9pmf7nan3h7rjjg1-20211119134558.jpeg",
para : "In Pictures | Celebrations at Ghazipur border after farm laws repeal announcement"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-1nskatpnrbcp2vgdumm7bkn1e6-20211105110754.jpeg",
para : "In Pictures | ltchy throats, watery eyes: Delhi's AQI severe after Diwali"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-0527023ub19rimmp63roouu6q0-20210812224011.jpeg",
para : "Digital surveillance: Drones used ahead of lIndependence Day celebrations in J&K"
},
];
let arr_world=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-dmaetsmltie50e4okrnrnbo723-20211113155011.jpeg",
para: "In Pictures | COP265 protesters in Glasgow"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-v7hd9r03mm20tbn9h879icamc1-20200727100733.jpeg",
para: "This year, Hajj pilgrims to be given sterilised pebbles"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-2gjsa7d44bh66b9jqdbr045ht4-20200725181931.jpeg",
para: "In Pictures | Standoff with federal agents continues in Portland"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-e4iu0nlq73brfqqkkb7ritd8j1-20200501124511.jpeg",
para: "For these penguinsin Singapore's city zoo, lockdown is flippin' fun"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-r6faopjndrq2sjtkfp8oisapu3-20200312173616.jpeg",
para: "Coronavirus fear leaves streets of Rome empty"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-cdj6o68j4kf9p7o19n2jqvq5r5-20200311123700.jpeg",
para: "Coronavirus and the impact on daily life"
},
]
let arr_business=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-qo4lkc94037m2ug36rq5r9q8a6-20200803135711.jpeg",
para: "Jammu & Kashmir's economy struggles amid lockdowns"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-enq280v3aelhlh9s7f4bnb2b17-20200802220936.jpeg",
para: "Mumbai malls to reopen but the experience will be very different"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-dqcarg2ev66gnde9l9rsmdq000-20190830125943.jpeg",
para: "Photos: Revolt RV 400 electric bike"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-ph5u7r3a8likhbtbqvon9gknb7-20190729125019.jpeg",
para: "7 expensive sports bikes in India"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-k22vk4bh9koiobgjav2c126g25-20190703143343.jpeg",
para: "Top 5 car news of the week"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-ggafn70bhln0kag3c87ml9r0u3-20190429113423.jpeg",
para: "Budget Rs 10 lakhs: 8 cars that you can check out right now"
},
]
let arr_science=[
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-tifd6jonrf42dofiq3p162qom5-20200621151859.jpeg",
para: "Pics: Annular Solar Eclipse as seen in different parts of the world"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-16tmj1d7trb1pbtss5i1e24p30-20180917101524.jpeg",
para: "ISRO gains success in putting two UK satellites into orbit"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-slunbbh328v9e8iekli3to6rc6-20180728140203.jpeg",
para: "How the world enjoyed the Blood Moon spectacle"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-0broo9fg0ebr874kkasuq2n253-20180402122626.jpeg",
para: "GSAT-6A's track lost before final orbit manoeuvre, scientists still searching"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-ncl43iqlvhlghsmuv0ecpv2fe3-20180207114750.jpeg",
para: "SpaceX blasts off Elon Musk's Tesla Roadster into space"
},
{
image: "https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-8o2c6fbf36c5sl5iiiop4fhdk1-20180201091158.jpeg",
para: "Supermoon: How the world saw the blue-blood lunar surface"
},
]
let container_enter=document.getElementById("d1_inner");
function renderDOM(data){
container_enter.innerHTML=null;
data.forEach((el)=>{
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_enter.append(div)
})
}
renderDOM(arr_entertainment)
let container_style=document.getElementById("d2_inner");
function renderDOMlife(data){
container_style.innerHTML=null;
data.forEach((el)=>{
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_style.append(div)
})
}
renderDOMlife(arr_lifestyle);
let container_tech=document.getElementById("d3_inner");
function renderDOMtech(data){
data.forEach((el) => {
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_tech.append(div)
})
}
renderDOMtech(arr_technology);
let container_sports=document.getElementById("d4_inner");
function renderDOMsports(data){
data.forEach((el) => {
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_sports.append(div)
})
}
renderDOMsports(arr_sports);
let container_nation=document.getElementById("d5_inner");
function renderDOMnation(data){
data.forEach((el) => {
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_nation.append(div)
})
}
renderDOMnation(arr_nation);
let container_world=document.getElementById("d6_inner");
function renderDOMworld(data){
data.forEach((el) => {
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_world.append(div)
})
}
renderDOMworld(arr_world);
let container_business=document.getElementById("d7_inner");
function renderDOMbusiness(data){
data.forEach((el) => {
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_business.append(div)
})
}
renderDOMbusiness(arr_business);
let container_science=document.getElementById("d8_inner");
function renderDOMscience(data){
data.forEach((el) => {
let div=document.createElement("div");
div.className="d1_div";
let img=document.createElement("img");
img.src=el.image;
let headline=document.createElement("h4");
headline.innerText=el.para;
div.append(img,headline);
container_science.append(div)
})
}
renderDOMscience(arr_science);
import navbar from './componets/navbar.js';
let nav=document.getElementById('navbar');
nav.innerHTML=navbar();