-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (104 loc) · 5.68 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Latest News</title>
<link rel="stylesheet" href="style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
</head>
<body class="m-0 p-0">
<div class="container-fluid m-0 p-0">
<div>
<nav class="navbar navbar-expand-lg">
<div class="container-fluid m-0 p-0">
<h1 class="text-white me-auto ms-auto">News <span class="animated">Today</span></h1>
</div>
</nav>
</div>
<div id="menu-nav">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand text-white" href="#home" id="home">Top <span class="animated">Headlines</span></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#briefs" id="briefs">Briefs</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#tech" id="tech">Technology</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#business" id="business" >Business</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#sports" id="sports">Sports</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#entertainment" id="entertainment">Entertainment</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#science" id="science">Science</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#health" id="health">Health & Fitness</a>
</li>
</ul>
</div>
<div>
<form class="d-flex">
<input class="form-control me-2" type="text" id="newsQuery" placeholder="Search news">
<button class="btn btn-outline-warning" type="button" id="searchBtn">Search</button>
</form></div>
</div>
</div>
</nav>
</div>
<div class="card" id="wheather">
<div class="search">
<input type="text" class="search-bar" placeholder="Search your city here">
<button><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024" height="1.5em"
width="1.5em" xmlns="http://www.w3.org/2000/svg">
<path
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z">
</path>
</svg></button>
</div>
<div class="weather loading">
<h2 class="city">wheather of your loaction</h2>
<h1 class="temp">tempareture</h1>
<div class="flex">
<img src="https://openweathermap.org/img/wn/04n.png" alt="weather-icon" class="icon" />
<div class="description">written-data</div>
</div>
<div class="humidity">Humidity: </div>
<div class="wind">Wind speed: </div>
</div>
</div>
<div>
<div class="row m-3" id="newsType">
</div>
<hr class="border-5 bg-white">
<div class="row me-2 ms-2" id="newsdetails">
</div>
</div>
<div class="mt-5">
<div>
<nav class="navbar navbar-expand-lg navbar-dark mt-4">
<div class="container-fluid m-0 p-0">
<h5 class="text-white me-auto ms-auto">Created By <span class="text-warning">Samriddha Sil</span></h5>
</div>
</nav>
</div>
</div>
</div>
<script src="fetch\news.js"></script>
<script src="fetch\weather.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
</body>
</html>