-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviralnews.html
804 lines (787 loc) · 24.8 KB
/
viralnews.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
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
<!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>Viral News</title>
<link
rel="icon"
type="image/x-icon"
href="https://cdn.dnaindia.com/sites/all/themes/dnaindia/favicon-1016.ico"
/>
</head>
<style>
* {
padding: 0%;
margin: 0%;
box-sizing: border-box;
font-family: "Roboto Slab", sans-serif;
}
/* ----------------------------------------------------------------Head Advertise---------------------------------------------------- */
#headAdvertise > #headAdvertiseBrand {
display: block;
margin: 10px auto;
}
/* ----------------------------------------------------------------Icon Bar---------------------------------------------------------- */
#icon {
padding: 15px;
display: flex;
align-items: center;
justify-content: center;
justify-content: space-between;
height: 65px;
background-color: #fede2f;
position: sticky;
z-index: 10;
top: 0px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#icon > #iconchild {
padding: 0%;
margin: 0%;
height: 65px;
display: flex;
align-items: center;
justify-content: center;
justify-content: space-between;
}
#iconchild > a > #logo {
width: 90px;
}
#iconchild > a > #hinditext {
padding: 5px 10px;
border-radius: 20px;
border: 1px solid;
margin: 30px;
background-color: #fede2f;
}
#iconchild > a > #hinditext:hover {
background-color: #4c4c4c;
color: white;
border: 1px solid black;
font-weight: 15px;
cursor: pointer;
}
#icon > #searchLogout {
display: flex;
justify-content: space-between;
width: 90px;
}
#icon > #searchLogout > a > #logout {
padding: 3px 5px;
border-radius: 10px;
border: 1px solid;
background-color: #fede2f;
}
#icon > #searchLogout > a > #logout:hover {
background-color: #4c4c4c;
color: white;
border: 1px solid black;
font-weight: 15px;
cursor: pointer;
}
/* ---------------------------------------------------------------Top News Bar------------------------------------------------------- */
#topnewsbar {
display: flex;
align-items: center;
padding: 0%;
margin: 20px auto;
width: 98%;
background-color: #313131;
}
#topnewsbar > #topnewsText {
display: flex;
background-color: #aaaaaa;
padding: 0%;
width: 11%;
color: #31373c;
height: 50px;
justify-content: center;
align-items: center;
border-radius: 0% 5px 5px 0%;
}
#topnewsbar > #topnewsFlash {
display: flex;
margin: auto 3% auto 1%;
color: white;
align-items: center;
justify-content: space-between;
width: 87%;
}
#topnewsbar > #topnewsFlash > div {
display: flex;
justify-content: center;
align-items: center;
justify-content: space-between;
width: 60px;
}
#prev {
cursor: pointer;
}
#next {
cursor: pointer;
}
/* -----------------------------------------------------------------CONTENT----------------------------------------------------------*/
#pageBody {
margin: auto;
display: grid;
grid-template-columns: 1fr 2.4fr 1fr;
grid-template-rows: auto;
gap: 2%;
width: 98%;
}
/* ---------------------------------------------------------------NAVBAR------------------------------------------------------------ */
#pageBody > #navbar > div {
position: -webkit-sticky;
position: sticky;
top: 80px;
display: block;
}
#navbar > div > a > .navbarOption {
display: flex;
align-items: center;
cursor: pointer;
height: 35px;
padding-left: 7px;
}
#navbar > div > a > .navbarOption:hover {
background-color: #fede2f;
}
#navbar > div > a {
text-decoration: none;
color: black;
}
#navbar > div > a > .navbarOption > p {
margin-left: 4%;
}
/* -----------------------------------------------------------------SPORTS CONTENT---------------------------------------------------*/
#spotscontent > h6 {
display: inline;
color: #4c4c4c;
}
#spotscontent > h2 {
border-bottom: 3px solid #fede2f;
width: 99px;
}
#newsbox {
display: flex;
margin: 12px auto;
padding: 1.5%;
border-radius: 7px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#spotscontent > p {
margin: -0.4% auto;
}
#newsbox > img {
width: 27%;
}
#newsbox > p {
margin: 0.8% 1.5%;
}
#newsbox > img:hover {
cursor: pointer;
}
#newsbox > p:hover {
cursor: pointer;
color: #3b5998;
}
#morenews {
display: block;
margin: 30px auto 30px auto;
padding: 12px 40%;
border: 1px solid;
border-radius: 20px;
font-weight: bolder;
cursor: pointer;
}
#morenews:hover {
color: #fede2f;
border: 1px solid black;
}
.active {
background-color: #fede2f;
}
/* --------------------------------------------------------------------PAGE ADD IMAGE---------------------------------------------------*/
#pageBody > div:nth-child(3) > img {
width: 100%;
}
/* ----------------------------------------------------------------RESPONSIVE MEDIUM SIZE-------------------------------------------*/
@media all and (max-width: 1199px) and (min-width: 1000px) {
#icon {
padding: 15px 10%;
}
#topnewsbar {
width: 80%;
}
#pageBody {
grid-template-columns: 1fr 2.4fr 1fr;
width: 80%;
}
#topnewsbar > #topnewsText {
border-radius: 0%;
font-size: 15px;
}
#topnewsbar > #topnewsFlash {
font-size: 13px;
align-items: center;
}
#navbar > div > a > .navbarOption {
font-size: 13px;
}
#newsbox > p {
font-size: 14px;
}
}
/* ----------------------------------------------------------------RESPONSIVE SMALL SIZE--------------------------------------------*/
@media all and (max-width: 999px) {
#headAdvertiseBrand {
width: 80%;
}
#icon {
padding: 15px;
}
#topnewsbar {
width: 100%;
}
#topnewsbar > #topnewsText {
border-radius: 0%;
font-size: 13px;
}
#topnewsbar > #topnewsFlash {
font-size: 12px;
align-items: center;
}
#topnewsbar > #topnewsFlash > div {
width: 40px;
/* border: 1px solid red; */
}
#topnewsbar > #topnewsFlash > div > img {
width: 7px;
}
#topnewsbar > #topnewsFlash > div > img:nth-child(2) {
width: 15px;
}
#pageBody {
display: flex;
flex-direction: column;
}
#pageBody > #navbar > div {
display: flex;
overflow: auto;
white-space: nowrap;
position: static;
}
#navbar > div > a > .navbarOption {
margin: 5px;
height: 20px;
padding: 15px 3px;
padding-right: 10px;
font-size: 12px;
}
#pageBody > div:nth-child(3) > img {
display: block;
margin: 10px auto;
}
#newsbox > p {
font-size: 12.5px;
}
#pageBody > div:nth-child(3) > img {
width: 40%;
}
}
/*-----------------------------------------------------------------footer------------------------------------------------------------*/
#main {
color: gray;
background-color: #1c1c1c;
margin-top: 150px;
}
#main > .box {
display: flex;
align-items: center;
padding: 14.5px;
}
.box > div > img {
width: 95px;
margin-right: 100px;
}
#main > .box > .nice {
display: flex;
flex-wrap: wrap;
}
#main > .box > .nice > div {
margin: auto 15px;
white-space: nowrap;
}
#right {
justify-content: center;
}
#follow {
margin: auto 20px;
margin-right: 100px;
}
#follow > img {
width: 25px;
}
.nice > div {
font-size: small;
}
.span {
margin: 5px 20px;
margin-left: 0px;
font-size: large;
}
.rule {
border: 0.1px solid #3b3a3a;
width: 98%;
margin: auto;
}
</style>
<body>
<!-----------------------------------------------------------------Head Advertise-------------------------------------------------------->
<div id="headAdvertise">
<img
id="headAdvertiseBrand"
src="https://tpc.googlesyndication.com/simgad/1405589099521099660?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qmT7FYU2qdE9LdxHLExYTowtUtIHQ"
/>
</div>
<!-- --------------------------------------------------------------Icon Bar-------------------------------------------------------------->
<div id="icon">
<div id="iconchild">
<a href="homepage.html">
<img
id="logo"
src="https://english.cdn.zeenews.com/static/apprun/dna/icons/logodna.png"
/>
</a>
<a href="https://www.dnaindia.com/hindi"
><button id="hinditext">हिंदी में पढ़ें</button></a
>
</div>
<div id="searchLogout">
<img
src="https://english.cdn.zeenews.com/static/public/menusearch.svg"
alt=""
/>
<a href="index.html"><button id="logout">Logout</button></a>
</div>
</div>
<!-----------------------------------------------------------------Top News Bar---------------------------------------------------------->
<div id="topnewsbar">
<div id="topnewsText"><p>Top News</p></div>
<div id="topnewsFlash">
<p>
Neeraj Chopra sets new national record with a throw of 89.30m, bags
silver medal in the Paavo Nurmi Games
</p>
<div>
<img
src="https://english.cdn.zeenews.com/static/public/prev_carousel.svg"
id="prev"
/>
<img src="https://www.linkpicture.com/q/pause_2.png" />
<img
src="https://english.cdn.zeenews.com/static/public/next_carousel.svg"
id="next"
/>
</div>
</div>
</div>
<!-----------------------------------------------------------------CONTENT--------------------------------------------------------------->
<div id="pageBody">
<!-----------------------------------------------------------------NAVBAR---------------------------------------------------------------->
<div id="navbar">
<div>
<a href="latestnews.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-latestnews.svg"
/>
<p>Latest News</p>
</div>
</a>
<a href="photos.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-photos.svg"
/>
<p>Photos</p>
</div>
</a>
<a href="videos.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-videos.svg"
/>
<p>Videos</p>
</div>
</a>
<a href="explainers.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-explainer.svg"
/>
<p>Explainers</p>
</div>
</a>
<a href="india.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-india.svg"
/>
<p>India</p>
</div>
</a>
<a href="entertainment.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-entertainment.svg"
/>
<p>Entertainment</p>
</div>
</a>
<a href="sports.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-sports.svg"
/>
<p>Sports</p>
</div>
</a>
<a href="viralnews.html">
<div class="navbarOption active">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-viralNews.svg"
/>
<p>Viral News</p>
</div>
</a>
<a href="lifestyle.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-lifestyle.svg"
/>
<p>Lifestyle</p>
</div>
</a>
<a href="business.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-business.svg"
/>
<p>Business</p>
</div>
</a>
<a href="world.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/icons-world.svg"
/>
<p>World</p>
</div>
</a>
<a href="ezmall.html">
<div class="navbarOption">
<img
src="https://english.cdn.zeenews.com/static/public/icons/ezmall-icon1.png"
/>
<p>Ezmall</p>
</div>
</a>
</div>
</div>
<!-----------------------------------------------------------------SPORTS CONTENT-------------------------------------------------------->
<div id="spotscontent">
<h6>Home</h6>
<h6>>></h6>
<h6>Viral</h6>
<h2>VIRAL</h2>
</div>
<div>
<img
src="https://tpc.googlesyndication.com/simgad/14934721463224143297?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qm6qAsDF5tXXEqDpKV_6u2-4OQ2Ww"
/>
<img
src="https://tpc.googlesyndication.com/simgad/10939958548033466819"
/>
</div>
</div>
<!-- /*-----------------------------------------------------------------footer------------------------------------------------------------*/ -->
<div>
<div id="main">
<div class="box">
<div>
<img
id="img1"
src="https://english.cdn.zeenews.com/static/apprun/dna/icons/logodna.png"
alt=""
/>
</div>
<div class="nice">
<div>INDIA</div>
<div>WORLD</div>
<div>BUSSINESS</div>
<div>TECHONOLOGY</div>
<div>SPORTS</div>
<div>CRICKET</div>
<div>ENTERTAINMENT</div>
</div>
</div>
<hr class="rule" />
<div class="box">
<div>
<div class="span"><span>FOLLOW US ON</span></div>
<div id="follow">
<img
src="https://english.cdn.zeenews.com/static/apprun/dna/icons/icon-facebook.svg"
alt=""
/>
<img
src="https://english.cdn.zeenews.com/static/apprun/dna/icons/icon-twitter.svg"
alt=""
/>
<img
src="https://english.cdn.zeenews.com/static/apprun/dna/icons/youtube-white.svg"
alt=""
/>
</div>
</div>
<div class="nice">
<div>ABOUT DNA</div>
<div>CONTACT US</div>
<div>INVESTORS</div>
<div>ADVERTISE</div>
<div>PRIVACY-POLICY</div>
</div>
</div>
<hr class="rule" />
<div class="box">
<div class="span">
<span>PARTNER SITE</span>
</div>
<div class="nice">
<div>ZEE NEWS</div>
<div>HINDI NEWS</div>
<div>MARATHI NEWS</div>
<div>BENGALI NEWS</div>
<div>TAMIL NEWS</div>
<div>MALYALAM NEWS</div>
<div>ZEE NEWS</div>
<div>WION</div>
</div>
</div>
<hr class="rule" />
<div class="box" id="right">
<div>
@1918-2022 INDIA DOT COM PRIVATE LIMITED, ALL RIGHTS RESERVED.
</div>
</div>
</div>
</div>
</body>
</html>
<script>
// -------------------------------------------------------------------SPORTS CONTENT---------------------------------------------------------
let viralnews = [
{
ruler: "<hr>",
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/15/2321351-untitled-design-60.png",
newshead:
"Viral video: UP groom dances in open Audi, attracts Rs 2 lakh fine",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/15/2320403-tomb-dna.png",
newshead:
"‘Do not open’: Cursed tomb discovered at UNESCO World Heritage site in Israel issues blood-red warning",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/14/2308195-man-vs-horse.jpg",
newshead:
"British man wins 35 km race against horse, becomes first human to win in 15 years",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/14/2307090-domino-s.jpg",
newshead:
"Domino's Pizza female employee assaulted by a group of women in Indore",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/14/2306995-untitled-design-8.jpg",
newshead:
"8 ‘daredevils’ dance, jump and run atop moving metro rail in jaw-dropping viral video",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/14/2301259-putin-dna.png",
newshead:
"Vladimir Putin’s bodyguards collecting his poop on foreign trips? Know reason behind claim",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/14/2301321-untitled-design-3.png",
newshead:
"Yoga is perfect blend of Gyaan, Karm and Bhakti: Narendra Modi",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/14/2297724-viral.jpg",
newshead:
"Uttarakhand: Viral video shows CPU personnel heroically saving toddler's life who fell from e-rickshaw",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2289240-ias.jpg",
newshead:
"Class 10 marksheet of IAS officer, who secured only 35 in English, 36 in Maths, goes viral",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2288889-untitled-design-7.jpg",
newshead:
"Woman knocks down 6 men harassing her single-handedly, leaves netizens amazed",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2286773-lineman.jpg",
newshead:
"Lineman snaps police station power supply in UP after cop fines him",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2283385-shooting-dna-6.png",
newshead:
"Karnataka man quits IT job to open donkey milk farm, receives orders worth Rs 17 lakh",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2282878-shooting-dna-5.png",
newshead:
"Viral! Astronaut from ISS shares video of glorious auroras dancing over Earth, watch",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2281183-2207166-presidential-polls.jpg",
newshead:
"Lalu Prasad Yadav to contest Presidential Elections 2022? Yes, but it’s not who you think it is",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/13/2280975-shooting-dna-2.png",
newshead:
"Andhra Pradesh traffic cop suspended after video of him thrashing a drunk man went viral",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/12/2271583-untitled-design-5.jpg",
newshead:
"Norway dance crew wins netizens' hearts as they performs on Bollywood song 'Kala Chashma' at wedding",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/12/2266694-untitled-design-65.png",
newshead:
"Meet Kyra, India's first meta-influencer with over 1 lakh Instagram followers",
},
];
sportscontent(viralnews);
function sportscontent(viralnews) {
viralnews.map(function (ele) {
let sportnews = document.createElement("div");
sportnews.id = "newsbox";
let img = document.createElement("img");
img.src = ele.image;
let news = document.createElement("p");
news.innerText = ele.newshead;
let hr = document.createElement("p");
hr.innerHTML = ele.ruler;
sportnews.append(img, news);
if (ele.ruler == undefined) {
spotscontent.append(sportnews);
} else {
spotscontent.append(hr, sportnews);
}
});
let seemore = document.createElement("button");
seemore.innerText = "More News";
seemore.id = "morenews";
spotscontent.append(seemore);
}
// -------------------------------------------------See more-------------------------------------------
let more = [
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/18/2373482-internet-explorer.jpg",
newshead:
"Internet Explorer fan builds gravestone in its memory after Microsoft retires browser",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/18/2371041-agnipath-fake-news.jpg",
newshead:
"Agnipath scheme fake news ALERT: Beware of this YouTube video spreading false claim",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/17/2362872-untitled-design-86.png",
newshead:
"Netizens awestruck to watch blindfolded man make Sonu Sood’s portrait in viral video",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/17/2361108-untitled-design-83.png",
newshead:
"Netizens shocked to see clouds moving like giant tsunami waves, watch viral video",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/17/2358066-hyundai-creta-suv-goa.png",
newshead:
"Goa police arrest Delhite for driving Hyundai Creta SUV on Anjuna beach: Watch viral video",
},
{
image:
"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2022/06/16/2345111-untitled-design-2022-06-16t171108.875.jpg",
newshead:
"Nagpur ATM dispensing 5 times the money, people rushing to withdraw cash",
},
];
morenews.addEventListener("click", function () {
document
.getElementById("spotscontent")
.removeChild(document.getElementById("morenews"));
sportscontent(more);
document
.getElementById("spotscontent")
.removeChild(document.getElementById("morenews"));
});
// --------------------------------------------change news flash----------------------------
let flash = document.querySelector("#topnewsFlash>p");
let flashText = [
"Neeraj Chopra sets new national record with a throw of 89.30m, bags silver medal in the Paavo Nurmi Games",
"Assam floods: Manas, Brahmaputra rivers flowing above danger mark, 4 dead in last 24 hours",
"Talaq-e-Hasan: Supreme Court to hear plea against Muslim divorce practice today",
"PM Modi to visit Gujarat on a 2-day trip today, launch projects worth Rs 21,000 crore",
];
let flashme = 0;
prev.addEventListener("click", function () {
if (flashme == 0) {
flashme = flashText.length - 1;
} else {
flashme--;
}
flash.innerText = flashText[flashme];
});
next.addEventListener("click", function () {
if (flashme == flashText.length - 1) {
flashme = 0;
} else {
flashme++;
}
flash.innerText = flashText[flashme];
});
</script>