-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlatestnews.html
666 lines (571 loc) · 28 KB
/
latestnews.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
<!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 rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./Styles/index.css">
<link rel="stylesheet" href="./Styles/footer.css">
<link rel="stylesheet" href="./Styles/middle.css">
<link rel="stylesheet" href="./Styles/latestnews.css">
</head>
<body>
<!-- --------------------------------------------- -->
<div class="container">
<header>
<div class="add">
<img
src="https://tpc.googlesyndication.com/daca_images/simgad/17234506914789377170">
</div>
<!-- navbar -->
<div class="nav">
<a href="./index.html"> <img src="https://www.cricbuzz.com/images/cb_logo.svg"></a>
<div class="nav-items">
<a href="./Live Scores.html" title="live Cricet Score" class="nav-item">Live Scores</a>
<a href="#" title="Cricket Schedule" class="nav-item">Schedule</a>
<a href="#" title="Cricket Scorecard Archives" class="nav-item">Archives</a>
<span class="rightmenu">
<a href="#" title="Cricket News" class="nav-item">News</a><span><i
class="fa-solid fa-caret-down"></i></span>
<span class="dropdown-menu">
<a href="#">All Stories</a>
<a href="#">Cricbuzz Plus </a>
<a href="#">Latest News </a>
<a href="#">Topics</a>
<a href="#">Spotlight</a>
<a href="#">Opinion</a>
<a href="#">Specials</a>
<a href="#">Stats & Analysis</a>
<a href="#">Interviws</a>
<a href="#">Live Blogs</a>
<a href="#">Harsha Bhogle</a>
</span>
</span>
<span class="rightmenu">
<a href="#" title="Cricket Series" class="nav-item">Series</a><span><i
class="fa-solid fa-caret-down"></i></span>
<span class="dropdown-menufirst">
<a href="#">Srilanka tour of india 2022</a>
<a href="#">Indian Women tour of New Zealand,2022 </a>
<a href="#">South Africa tour of New Zealand,2022 </a>
<a href="#">Afganistan tour of Bangladesh,2022</a>
<a href="#">Rangi trophy 2021-22</a>
<a href="#">Pakisthan Super League,2022</a>
<a href="#">CSA T20 Challenge 2022</a>
<a href="#">Icc Mens T20 World Cup Qualifier A 2022</a>
<a href="#"> All Series>></a>
</span>
</span>
<span class="rightmenu">
<a href="#" title="Cricket Teams" class="nav-item">Teams</a><span><i
class="fa-solid fa-caret-down"></i></span>
<span class="dropdown-menusecond">
<a href="#"><strong>Test Teams</strong></a>
<a href="#">India </a>
<a href="#">Pakisthan </a>
<a href="#">Australia </a>
<a href="#">Sri lanka</a>
<a href="#">Bangladesh</a>
<a href="#">England</a>
<a href="#">West Indies</a>
<a href="#">South-Africa</a>
<a href="#">Zimbambe</a>
<a href="#">New-Zealand</a>
</span>
</span>
<span class="rightmenu">
<a href="#" title="Cricket Videos" class="nav-item">Videos</a> <span><i
class="fa-solid fa-caret-down"></i></span>
<span class="dropdown-menusecond">
<a href="#">All Videos </a>
<a href="#">Categories</a>
<a href="#">Playlist </a>
</span>
</span>
<span class="rightmenu">
<a href="#" title="ICC Ranking" class="nav-item">Ranking</a><span><i
class="fa-solid fa-caret-down"></i></span>
<span class="dropdown-menusecond">
<a href="#">ICC Ranking-Men </a>
<a href="#">ICC Ranking-Women</a>
</span>
</span>
<span class="rightmenu">
<a href="#" class="nav-item">More</a><span><i class="fa-solid fa-caret-down"></i></span>
<span class="dropdown-menusecond">
<a href="#">World-Test Championship </a>
<a href="#">World Cup Super League</a>
<a href="#">Quiz </a>
<a href="#">Photos</a>
<a href="#">Mobile-App</a>
<a href="#">Careers</a>
<a href="#">Contact Us</a>
</span>
</span>
</div>
<div class="cricplus">
<button>Cricbuzz Plus</button>
<!-- search bar -->
<i class="fa-solid fa-magnifying-glass search"></i>
<i class="fa-solid fa-user"></i>
</div>
</div>
</header>
<!-- ------------------------------------------------ -->
<nav class="navbarsahu">
<div class="halfnav">
<div> <a>MATCHES</a></div>
<div> <a href="./matches copy.html">NZW vs INDW...</a></div>
<div> <a href="./matches copy 2.html">LHQ vs PSZ - Complete</a></div>
<div> <a>IND vs WI - IND Won</a></div>
<div> <a>MS vs ISU - MS Won</a></div>
<div> <a>MS vs ISU - MS Won</a></div>
</div>
<div class="halfright">
<span class="dropdownsahu" ondblclick="closed()">ALL<i class="fa-solid fa-caret-down"></i></span>
</div>
</nav>
<div class="headersahu">
<nav>
<span><a href="">All</a></span>
<span><a href="">Live now</a></span>
<span><a href="">Today</a></span>
</nav>
<div class="navbaritem">
<ul>
<div style="color: #00deaa;
font-weight: 700;">INTERNATIONAL</div>
<li>
<div>
<div>
<a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>1st T20I</div>
</div>
</div>
</li>
<li>
<div>
<div>New Zealand v South Africa, 2022</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>1st Test</div>
</div>
</div>
</li>
<li>
<div>
<div>Bangladesh v Afghanistan, 2022</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Bangladesh v Afghanistan</span>
</a>
<div>1st ODI</div>
</div>
</div>
</li>
<li>
<div>
<div>ICC Mens T20WC Qualifier A</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>9th Match, Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>United Arab Emirates vs Bahrain
</span>
</a>
<div></div>
<div>10th Match, Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Oman vs Philippines
</span>
</a>
<div></div>
<div>12th Match, Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Nepal vs Canada
</span>
</a>
<div></div>
<div>11th Match, Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Bahrain vs Philippines
</span>
</a>
<div></div>
<div>7th Place Semi-Finals (B3 v A4)</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Canada vs Germany
</span>
</a>
<div></div>
<div> 5th Place Semi-Finals (A3 v B4)</div>
</div>
</div>
</li>
</ul>
<ul>
<div style="color: #00deaa;
font-weight: 700;">T20 LEAGUE</div>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>1st T20I</div>
</div>
</div>
</li>
<li>
<div>
<div>New Zealand v South Africa, 2022</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>1st Test</div>
</div>
</div>
</li>
<li>
<div>
<div>Bangladesh v Afghanistan, 2022</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Bangladesh v Afghanistan</span>
</a>
<div>1st ODI</div>
</div>
</div>
</li>
<li>
<div>
<div>ICC Mens T20WC Qualifier A</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>9th Match, Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>10th Match, Group B</div>
</div>
</div>
</li>
</ul>
<ul>
<div style="color: #00deaa;
font-weight: 700;">DOMESTIC</div>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Ranji Trophy</span>
<span>Delhi vs Jharkhand</span>
</a>
<div>Elite Group H</div>
</div>
</div>
</li>
<li>
<div>
<div>Bengal vs Hyderabad</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
</a>
<div>Elite Group B</div>
</div>
</div>
</li>
<li>
<div>
<div>Manipur vs Mizoram</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
</a>
<div>Plate</div>
</div>
</div>
</li>
<li>
<div>
<div>Baroda vs Chandigarh</div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
</a>
<div>Elite Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>India vs Sri Lanka</span>
</a>
<div>10th Match, Group B</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Bihar vs Sikkim
</span>
</a>
<div>Plate</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Railways vs Puducherry
</span>
</a>
<div>Elite Group C</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Uttar Pradesh vs Assam
</span>
</a>
<div> Elite Group G</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Karnataka vs Jammu and Kashmir
</span>
</a>
<div>Elite Group C</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Vidarbha vs Maharashtra
</span>
</a>
<div>Elite Group G</div>
</div>
</div>
</li>
<li>
<div>
<div><a target="_self"
href="/live-cricket-scores/38632/ind-vs-sl-1st-t20i-india-v-sri-lanka-2022"
title="India v Sri Lanka, 1st T20I - Upcoming">
<span>Himachal Pradesh vs Tripura
</span>
</a>
<div> Elite Group F</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- --------------------------------------------- -->
<div class="main">
<a href="#">All Stories</a>
<a href="#">Cricbuzz Plus</a>
<a href="#">News</a>
<a href="#">Topics</a>
<a href="#"> Spotlight</a>
<a href="#">Opinions</a>
<a href="#">Special</a>
<a href="#">Stats</a>
<a href="#">Interviews</a>
<a href="#">Live Blogs</a>
</div>
<div class="info">
<div class="left">
<h2>Cricket News and Editorials</h2>
<div class="data"></div>
</div>
<div class="right">
<div class="added"><img src="https://tpc.googlesyndication.com/simgad/600601516124118067?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qm9stiLFEESO5FHuPElqeBJP3jt-g"></div>
<h5>LATEST PHOTOS</h5>
<div class="datas"></div>
<div class="added"><img src="https://tpc.googlesyndication.com/simgad/600601516124118067?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qm9stiLFEESO5FHuPElqeBJP3jt-g"></div>
</div>
</div>
</div>
<!-- ------------------------------------------------------- -->
<!-- footer -->
<div id="footer">
<div id="child">
<div id="lab">
<a href="./home.html">
<img src="https://www.cricbuzz.com/images/cb_logo.svg" alt="" />
</a>
</div>
<div id="others">
<div class="sub-links">
<p class="title">MOBILE SITE & APPS</p>
<p class="links"><i class="fab fa-android icon-color"></i><a href="">m.cricbuzz.com</a></p>
<p class="links"><i class="fab fa-android icon-color"></i><a href="">Android</a> </p>
<p class="links"><i class="fab fa-apple icon-color"></i><a href="">iOS</a> </p>
</div>
<div class="sub-links">
<p class="title">FOLLOW US ON</p>
<p class="links"><i class="fab fa-facebook-f icon-color"></i><a href="">facebook</a></p>
<p class="links"><i class="fab fa-twitter icon-color"></i><a href="">twitter</a> </p>
<p class="links"><i class="fab fa-youtube icon-color"></i><a href="">youtube</a> </p>
<p class="links"><i class="fab fa-pinterest icon-color"></i><a href="">Pinterest</a> </p>
</div>
<div class="sub-links">
<p class="title">COMPANY</p>
<p class="links"><a href="">Careers</a> </p>
<p class="links"><a href="">Advertise</a> </p>
<p class="links"><a href="">Privacy Policy</a> </p>
<p class="links"><a href="">Terms of Use</a></p>
<p class="links"><a href="">Cricbuzz TV Ads</a></p>
</div>
</div>
</div>
<div class="copy">© 2022 Cricbuzz.com, Times Internet Limited. All rights reserved | The Times of India | Navbharat
Times</p>
</div>
</div>
<!-- ------------------------------------------------------- -->
</body>
</html>
<script src="./Script/middle.js"></script>
<script src="./Script/news.js"></script>
<script src="./Script/news1.js"></script>
<script>
var arr = JSON.parse(localStorage.getItem("newsdata")) || [];
console.log(arr)
arr.map(function (elem) {
var maindiv = document.createElement("div");
maindiv.setAttribute("class", "cardfornews")
var imgdiv = document.createElement("div");
imgdiv.setAttribute("class", "first")
var img = document.createElement("img");
img.setAttribute("src", elem.image);
imgdiv.append(img)
var seconddiv = document.createElement("div");
seconddiv.setAttribute("class", "second");
var para = document.createElement("p");
para.innerHTML = elem.head1;
var head = document.createElement("h3");
head.innerHTML = elem.headingh3;
var para1 = document.createElement("p");
para1.setAttribute("class","para")
para1.innerHTML = elem.para;
var time = document.createElement("p");
time.innerHTML = elem.time;
var second = document.createElement("div");
second.setAttribute("class", "border");
seconddiv.append(para, head, para1, time);
maindiv.append(imgdiv, seconddiv)
document.querySelector(".data").append(maindiv, second )
});
var arrayofobj = JSON.parse(localStorage.getItem("latest")) || [];
console.log(arrayofobj)
arrayofobj.map(function(elem){
var maindiv = document.createElement("div");
maindiv.setAttribute("class", "rightbar");
var leftdiv = document.createElement("div");
leftdiv .setAttribute("class", "leftdiv");
var rightdiv = document.createElement("div");
rightdiv.setAttribute("class", "rightdiv");
var img = document.createElement("img");
img.setAttribute("src", elem.img);
leftdiv.append(img);
var head = document.createElement("h5");
head.innerHTML = elem.head;
var time = document.createElement("p");
time.innerHTML = elem.time;
rightdiv.append(head,time);
maindiv.append( leftdiv, rightdiv);
var second = document.createElement("div");
second.setAttribute("class", "bordered");
document.querySelector(".datas").append(maindiv, second )
})
</script>