Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
WEATHER FORECASTING
12209200 ABHISHEK
SINGH ROLL 55
12209300 JARMANPREET
SINGH ROLL 56
12209532 AKSHUNNA
PATIDAR ROLL 57
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<section class="main">
<section class="inputs">
<input type="text" placeholder="Enter any city..." id="cityinput">
<input type="submit" value="Submit" id="add">
<button placeholder="submit" id="add"></button>
</section>
<section class="display">
<div class="wrapper">
<h2 id="cityoutput"></h2>
<p id="description"></p>
<p id="temp"></p>
<p id="wind"></p>
</div>
</section>
</section>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
body
background: #116396;
.container-fluid
width: 400px;
margin: 60px auto;
padding: 10px;
.inputs
}
.inputs input[type="text"]
height: 4rem;
width: 20rem;
background: #212121;
font-weight: bold;
font-size: 1rem;
padding: 10px;
border: none;
background-color: transparent;
border: 2px solid #c2c2c2;
border-radius: 2px;
margin-right:4px ;
}
.inputs input[type="submit"]
height: 3rem;
width: 6rem;
background: #0a67ca;
font-weight: bold;
color: white;
font-size: 1rem;
margin-top: 20px;
border: none;
border-radius:
2px;
}
.display
text-align: center;
width: 400px;
color: #16a864;
}
.wrapper
margin: 0 9rem;
background-color:
white; height: 45vh;
.wrapper h2
padding: 5px 0;
text-align: center;
background: #0548b5;
color: white;
font-family: sans-serif;
.wrapper p
margin:20px 50px;
margin-right: 20px;
text-align: left;
color: #04214c;
font-size:23px;
.wrapper h2 span
font-size: 26px;
color: #9beefb;
}
.wrapper p span
{
color: #f4780d;
font-size: 25px
var inputval = document.querySelector('#cityinput')
{
return (val - 273).toFixed(2)
btn.addEventListener('click', function()
fetch('https://api.openweathermap.org/data/2.5/weather?q='+inputval.value+'&
appid='+apik)
.then(data =>
})