Professional Documents
Culture Documents
Lavanya 2
Lavanya 2
Lavanya 2
WEB DEVELOPMENT
Submitted in partial fulfilment of the requirement for the award of degree of
BACHELOR OF TECHNOLOGY
In
K. SANTHOSH 20FF1A0524
Mr. D. VENKATESWARLU
Assistant Professor
Mr. M. SUNDARPAUL
Assistant Professor
2023
MINOR PROJECT
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div align="center">
<header>
<br><br><br><br>
<div>
<fieldset>
<legend><h1>Lotus temple</h1></legend>
<p id="s">The Lotus Temple, located in Delhi, India, is a Bahá'í House of Worship that was
dedicated in December 1986, costing $10 million.
Notable for its flowerlike shape, it has become a prominent attraction in the city.</p>
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>Hampi</h1></legend>
<p id="t">Hampi is located in hilly terrain formed by granite boulders The Hampi
monuments comprising the UNESCO
Almost all of the monuments were built between 1336 and 1570 CE during the
Vijayanagara rule.</p>
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>mysore palace</h1></legend>
<p id="m">Mysore Palace is built in the Indo-Saracenic style with a touch of Hindu, Mughal,
Rajput, and Gothic architectural styles.
was built using fine grey granite while deep pink marble was used for the domes.</p>
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>Ajanta cavas</h1></legend>
<p id="u">The caves at Ajanta are excavated out of a vertical cliff above the left bank of the
river Waghora in the hills of Ajanta.
They are thirty in number, including the unfinished ones, of which five
(caves 9, 10, 19, 26 and 29) are chaityagrihas (sanctuary) and the rest,
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>Hawa Mahal</h1></legend>
<p id="y">The Hawa Mahal is a five-storey building, and it is the tallest building in the
world that has been built without a foundation.
and a pyramidal shape which has helped it stay erect for centuries.
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<p id="w">The Gateway of India is an arch monument built during the 20th century in
Bombay, India.
</fieldset>
</div>
<br><br><br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>Tajmahal</h1></legend>
<p id="z">
The Taj Mahal is an ivory-white marble mausoleum on the south bank of the Yamuna river
in the Indian city of Agra.
It was commissioned in 1632 by the Mughal emperor, Shah Jahan (reigned from 1628
to 1658), to house the tomb of his favourite wife, Mumtaz
Mahal.
</p>
</fieldset>
</div>
<br><br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>Jantar mantar</h1></legend>
<p class="k">
Jantar Mantar is located in the modern city of New Delhi. "Jantar Mantar" means
"instruments for measuring the harmony of the heavens".
The site is one of five built by Maharaja Jai Singh II of Jaipur, from 1723 onwards,
revising the calendar and astronomical tables.
</p>
<p><a href="https://en.wikipedia.org/wiki/Jantar_Mantar,_New_Delhi">Read
More......</a></p>
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<p class="m">
The Victoria Memorial is a large marble building on the Maidan in Central Kolkata,
having its entrance on the Queen's Way.
It is dedicated to the memory of Queen Victoria, Empress of India from 1876 to 1901.
</p>
<p><a href="https://en.wikipedia.org/wiki/Victoria_Memorial,_Kolkata">Read
More......</a></p>
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
The Great Living Chola Temples is a UNESCO World Heritage Site designation for a
group of
Chola dynasty era Hindu temples in the Indian state of Tamil Nadu.
<p><a href="https://en.wikipedia.org/wiki/Great_Living_Chola_Temples">Read
More......</a></p>
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<p class="o">
The jail is stranded on a secluded island and was used by Britishers to punish
miscreants.
Cellular Jail means Kala Pani that translates to exile till death.
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
A historic hindu temple located on the southern bank of the Vaigai River in Madurai,
this majestic temple is all about seeking good vibes, positivity and wholesome
spirituality.
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<p class="c">
Only 11 km from the Pink City Jaipur, Amer Fort is one of the most magnificent forts in
India.
Built by Maharaja Man Singh in 1592, it was truly the residence of kings.
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
<fieldset>
<legend><h1>Charminar</h1></legend>
<p class="d">
It was believed that Muhammad Quli Qutb Shah built the Charminar in 1591 to honor
Allah.
However in reality this historical tourist place in India was built to signify the end of
plague in the city.
</fieldset>
</div>
<br><br><br><br><br><br>
<div>
</audio>
</div>
<br><br><br>
</div>
<div>
</div>
</body>
</html>
……….CSS CODE………
header{ background-color:
footer{ background-
color: blue;
center; font-family: fantasy; text-shadow: 3px 3px 3px black; background: linear-
5px;
font-family: sans-serif;
background-color: #6ca3b4;
myanim; animation-name:
myanim;
5;
}
@keyframes myanim{
0%{background-color: #433bb2;}
99);} 75%{background-color:
cornflowerblue;} 100%{background-
color: khaki;}
h1{
color:#fff;
padding:20px;
decoration:underline;
transition: .5s;
}
img{ margin:50px;
width:30%;
height:30%;
border-radius:60px;
blue;
p{ color:#0e0f0f;
text-align:center;
font-size: 20px;
#x{ text-align:
justify;
margin:20px; font-
size:
23px;
} #t{ text-align:
justify;
margin:20px; font-
size: 23px;
#u{
text-align: justify;
margin:22px; font-size:
23px;
#w{
text-align: justify;
margin:22px; font-
size: 23px;
#y{ text-align:
justify;
margin:22px; font-
size: 23px;
#z{ text-align:
justify;
margin:22px; font-
size: 23px; }
#m{
text-align: justify;
margin:22px; font-size:
23px;
} #s{ text-align:
justify;
margin:22px;
font-size:
24px;
.k{ text-align:
justify;
margin:22px; font-
size: 23px;
.m{
text-align: justify;
margin:20px; font-
size: 23px;
.o{ text-align:
justify;
margin:20px;
font-size:
23px;
} .c{ text-align:
justify;
margin:20px;
font-size:
23px;
} .d{ text-align:
justify;
margin:20px;
font-size:
23px;
a{ color:rgb(244, 238,
font-size: 15px;
h1{ background-color: coral; color:rgb(17, 255, 0); font-family: Georgia, 'Times New Roman',
Times, serif; text-shadow: 3px 3px 3px rgb(11, 10, 10); border-radius: 30px; box-shadow: 5px
5px 5px blue; background: linear-gradient(rgb(146, 28, 119), rgb(52, 45, 163), rgb(168, 168,
}
Major Project Web Development
Make a web app for users to see the current weather and the weather forecast
for the next 7 days. Requirements An input for users to type city name Display
current weather including weather condition, temperature, humidity, wind
speed, and date and time Visualization to display the temperature change,
humidity change, and weather conditions of each day. Suggested
Implementation Fetch user's device position. If you're unable to get the user's
position, set Delhi as the default location. Fetch weather data (forecast data and
current weather data) of the location from weather API Format the data into
charts Display the chart and current weather
……….HTML CODE………
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<h1>Weather forecasting</h1>
<div class="container">
<div class="weather-input">
<h3>Enter a City Name</h3>
<button class="search-btn">Search</button>
<div class="separator"></div>
</div>
<div class="weather-data">
<div class="current-weather">
<div class="details">
<h2> ( )</h2>
<h6>Temperature: °C</h6>
<h6>Wind: M/S</h6>
<h6>Humidity: %</h6>
</div>
</div>
<div class="days-forecast">
<h2>5-Day Forecast</h2>
<ul class="weather-cards">
<li class="card">
<h3>( )</h3>
<h6>Temp: °C</h6>
<h6>Wind: M/S</h6>
<h6>Humidity: %</h6>
</li>
<li class="card">
<h3>( )</h3>
<h6>Temp: °C</h6>
<h6>Wind: M/S</h6>
<h6>Humidity: %</h6>
</li>
<li class="card">
<h3>( )</h3>
<h6>Temp: °C</h6>
<h6>Wind: M/S</h6>
<h6>Humidity: %</h6>
</li>
<li class="card">
<h3>( )</h3>
<h6>Temp: °C</h6>
<h6>Wind: M/S</h6>
<h6>Humidity: %</h6>
</li>
<li class="card">
<h3>( )</h3>
<h6>Temp: °C</h6>
<h6>Wind: M/S</h6>
<h6>Humidity: %</h6>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
………...CSS CODE………
@import
url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
*{
Sans', sans-serif;
142, 20));
h1 { background:
#f59d03; font-size:
1.75rem; text-align:
0;
color: #fff;
.container {
35px; padding:
30px;
.weather-input {
width: 550px;
.weather-input input {
font-size: 1.07rem;
padding: 0 17px;
margin: 10px 0 20px
0; border-radius: 4px;
.weather-input input:focus {
.weather-input .separator
margin: 25px 0;
background: #BBBBBB;
content: center;
.weather-input .separator::before{
background: #E3F2FD;
.weather-input button
{ width: 100%;
padding: 10px 0;
cursor: pointer;
none; border-radius:
color: #fff;
background: #5372F0;
transition: 0.2s ease;
.weather-input .search-btn:hover
black;
.weather-input .location-btn
{ background: #f008cd;
.weather-input .location-btn:hover {
.weather-data {
width: 100%;
.weather-data .current-weather {
color: #ffffff;
20px 20px;
space-between;
.current-weather h2 { font-
1.7rem;
}
.weather-data h6 { margin-
font-weight: 500;
align: center;
-15px;
.current-weather .icon h6 {
capitalize;
.days-forecast h2 {
1.5rem;
h2{
.days-forecast .weather-cards
.weather-cards .card {
color: #fff;
padding: 18px
16px; list-style:
none;
background: #4ae71a;
border-radius: 5px;
600;
5px 0 -12px 0;
.weather-cards {
flex-wrap: wrap;
.weather-cards .card {
calc(100% / 3 - 15px);
}
@media (max-width: 950px) {
.weather-input { width:
450px;
.weather-cards .card {
{ h1 { font-size:
1.45rem; padding:
16px 0;
.container { flex-
wrap: wrap;
padding: 15px;
.weather-input {
width: 100%;
.weather-data h2 { font-
size: 1.35rem;
currentWeatherDiv = document.querySelector(".current-weather");
`<div class="details">
<h6>Humidity: ${weatherItem.main.humidity}%</h6>
</div>
<div class="icon">
<img
src="https://openweathermap.org/img/wn/${weatherItem.weather[0].icon}@4x.png"
alt="weathericon">
<h6>${weatherItem.weather[0].description}</h6>
</div>`;
} else {
<h3>(${weatherItem.dt_txt.split(" ")[0]})</h3>
<img
src="https://openweathermap.org/img/wn/${weatherItem.weather[0].icon}@4x.png"
alt="weathericon">
<h6>Humidity: ${weatherItem.main.humidity}%</h6>
</li>`;
}
const WEATHER_API_URL =
`https://api.openweathermap.org/data/2.5/forecast?lat=${latitude}&lon=${longitude}&appid=${API
_KEY}`;
new Date(forecast.dt_txt).getDate(); if
(!uniqueForecastDays.includes(forecastDate)) { return
uniqueForecastDays.push(forecastDate);
});
cityInput.value = "";
currentWeatherDiv.innerHTML = "";
weatherCardsDiv.innerHTML = "";
weatherItem, index);
if (index === 0) {
currentWeatherDiv.insertAdjacentHTML("beforeend", html);
} else {
weatherCardsDiv.insertAdjacentHTML("beforeend", html);
});
}).catch(() => {
alert("An error occurred while fetching the weather forecast!");
});
cityName = cityInput.value.trim(); if
const API_URL =
`https://api.openweathermap.org/geo/1.0/direct?q=${cityName}&limit=1&appid=${API_KEY}`;
alert(`No coordinates found for ${cityName}`); const { lat, lon, name } = data[0];
});
navigator.geolocation.getCurrentPosition(
`https://api.openweathermap.org/geo/1.0/reverse?lat=${latitude}&lon=${longitude}&limit=1&appid
=${API_KEY}`; fetch(API_URL).then(response =>
response.json()).then(data => {
});
},
error => {
if (error.code === error.PERMISSION_DENIED) { alert("Geolocation request denied.
} else {
});
locationButton.addEventListener("click", getUserCoordinates);