-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (49 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weacast</title>
<link rel="stylesheet" href="./style.css" type="text/css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div class="backdrop">
<main>
<div class="header_title"><h1>W E A C A S T</h1></div>
<div class="input">
<!-- <label for="inputplace">
<h3 style="margin-bottom: 2rem;font-size: 2rem;color: #42000f;"> Enter place</h3>
</label> -->
<input type="text" id="val" placeholder="Enter place ex: Rajahmundry">
</input>
<button class="submitbtn" onclick="weather()">
Get</button>
</div>
<div class="details">
<div class="de">
<h1 id="temp"></h1>
<h3 id="place"></h3>
<h3 id="des"></h3>
<h3 id="humidity"></h3>
</div>
<!-- <img src="" alt="" class="how"> -->
</div>
<div id="icon">
</div>
</main>
</div>
<script src="index.js">
</script>
</body>
</html>
<!-- {
var tempValue = data['main']['temp'];
var nameValue = date.name;
var descValue = data['weather'][0]['description'];
console.log(tempValue,nameValue,descValue);
document.getElementById("place").innerHTML = nameValue;
document.getElementById("des").innerHTML = "Desc - " + descValue;
document.getElementById("temp").innerHTML = "Temp - " + tempValue;
document.getElementById("val").value = "";
} -->