Css Microproject (Final)
Css Microproject (Final)
PROJECT REPORT ON
“Website for currency conversion”
SUBMITTED BY
Mr. PREM CHUNIYAN [237]
Page 1
CERTIFICATE
This is certify that the project report entitled
“Website for currency conversion”
SUBMITTED BY
Mr. Prem Chuniyan [237]
Place: - Kopargaon
Date: ----------------
Page 2
INTRODUCTION
Problem Statement:
Page 3
Hardware Requirements:
Software Requirements:
2.A modern web browser for testing and debugging your game. Google
Chrome, Mozilla Firefox, and Microsoft Edge are commonly used for web
development.
Page 4
Source code:
<!DOCTYPE html>
<head>
<meta charset=”utf-8”>
<title>Currency Converter</title>
<style>
@import
url(‘https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swa
p’);
*{
Margin: 0;
Padding: 0;
Box-sizing: border-box;
Body{
Display: flex;
Align-items: center;
Justify-content: center;
Min-height: 100vh;
Padding: 0 10px;
Background-image: url(“image1.jpeg”);
Page 5
}
::selection{
Color: #fff;
Background: #675AFE;
.wrapper{
Width: 460px;
Padding: 60px;
Border-radius: 11px;
Background: #fff;
.wrapper header{
Font-size: 28px;
Font-weight: 500;
Text-align: center;
.wrapper form{
Width: 100%;
Page 6
Outline: none;
Border-radius: 5px;
Border: none;
Form p{
Font-size: 18px;
Margin-bottom: 5px;
Form input{
Height: 50px;
Font-size: 17px;
Padding: 0 15px;
Form input:focus{
Padding: 0 14px;
Form .drop-list{
Display: flex;
Margin-top: 20px;
Align-items: center;
Page 7
Justify-content: space-between;
.drop-list .select-box{
Display: flex;
Width: 115px;
Height: 45px;
Align-items: center;
Border-radius: 5px;
Justify-content: center;
.select-box img{
Max-width: 21px;
.select-box select{
Width: auto;
Font-size: 16px;
Background: none;
.select-box select::-webkit-scrollbar{
Width: 8px;
Page 8
}
.select-box select::-webkit-scrollbar-track{
Background: #fff;
.select-box select::-webkit-scrollbar-thumb{
Background: #888;
Border-radius: 8px;
.drop-list .icon{
Cursor: pointer;
Margin-top: 30px;
Font-size: 22px;
Form .exchange-rate{
Font-size: 17px;
Form button{
Height: 52px;
Color: #fff;
Font-size: 17px;
Page 9
Cursor: pointer;
Background: #675AFE;
Form button:hover{
Background: #4534fe;
</style>
</head>
<body>
<div class=”wrapper”>
<header>Currency Converter..!!</header>
<form action=”#”>
<div class=”amount”>
<p>Enter Amount</p>
</div>
<div class=”drop-list”>
Page 10
<div class=”from”>
<p>From</p>
<div class=”select-box”>
<select> </select>
</div>
</div>
<div class=”to”>
<p>To</p>
<div class=”select-box”>
<select></select>
</div>
</div>
</div>
</form>
</div>
<script>
Page 11
Let country_list = {
“AED” : “AE”,
“AFN” : “AF”,
“XCD” : “AG”,
“ALL” : “AL”,
“AMD” : “AM”,
“ANG” : “AN”,
“AOA” : “AO”,
“AQD” : “AQ”,
“ARS” : “AR”,
“AUD” : “AU”,
“AZN” : “AZ”,
“BAM” : “BA”,
“BBD” : “BB”,
“BDT” : “BD”,
“XOF” : “BE”,
“BGN” : “BG”,
“BHD” : “BH”,
“BIF” : “BI”,
“BMD” : “BM”,
“BND” : “BN”,
Page 12
“BOB” : “BO”,
“BRL” : “BR”,
“BSD” : “BS”,
“NOK” : “BV”,
“BWP” : “BW”,
“BYR” : “BY”,
“BZD” : “BZ”,
“CAD” : “CA”,
“CDF” : “CD”,
“XAF” : “CF”,
“CHF” : “CH”,
“CLP” : “CL”,
“CNY” : “CN”,
“COP” : “CO”,
“CRC” : “CR”,
“CUP” : “CU”,
“CVE” : “CV”,
“CYP” : “CY”,
“CZK” : “CZ”,
“DJF” : “DJ”,
“DKK” : “DK”,
“DOP” : “DO”,
Page 13
“DZD” : “DZ”,
“ECS” : “EC”,
“EEK” : “EE”,
“EGP” : “EG”,
“ETB” : “ET”,
“EUR” : “FR”,
“FJD” : “FJ”,
“FKP” : “FK”,
“GBP” : “GB”,
“GEL” : “GE”,
“GGP” : “GG”,
“GHS” : “GH”,
“GIP” : “GI”,
“GMD” : “GM”,
“GNF” : “GN”,
“GTQ” : “GT”,
“GYD” : “GY”,
“HKD” : “HK”,
“HNL” : “HN”,
“HRK” : “HR”,
“HTG” : “HT”,
“HUF” : “HU”,
Page 14
“IDR” : “ID”,
“ILS” : “IL”,
“INR” : “IN”,
“IQD” : “IQ”,
“IRR” : “IR”,
“ISK” : “IS”,
“JMD” : “JM”,
“JOD” : “JO”,
“JPY” : “JP”,
“KES” : “KE”,
“KGS” : “KG”,
“KHR” : “KH”,
“KMF” : “KM”,
“KPW” : “KP”,
“KRW” : “KR”,
“KWD” : “KW”,
“KYD” : “KY”,
“KZT” : “KZ”,
“LAK” : “LA”,
“LBP” : “LB”,
“LKR” : “LK”,
“LRD” : “LR”,
Page 15
“LSL” : “LS”,
“LTL” : “LT”,
“LVL” : “LV”,
“LYD” : “LY”,
“MAD” : “MA”,
“MDL” : “MD”,
“MGA” : “MG”,
“MKD” : “MK”,
“MMK” : “MM”,
“MNT” : “MN”,
“MOP” : “MO”,
“MRO” : “MR”,
“MTL” : “MT”,
“MUR” : “MU”,
“MVR” : “MV”,
“MWK” : “MW”,
“MXN” : “MX”,
“MYR” : “MY”,
“MZN” : “MZ”,
“NAD” : “NA”,
“XPF” : “NC”,
“NGN” : “NG”,
Page 16
“NIO” : “NI”,
“NPR” : “NP”,
“NZD” : “NZ”,
“OMR” : “OM”,
“PAB” : “PA”,
“PEN” : “PE”,
“PGK” : “PG”,
“PHP” : “PH”,
“PKR” : “PK”,
“PLN” : “PL”,
“PYG” : “PY”,
“QAR” : “QA”,
“RON” : “RO”,
“RSD” : “RS”,
“RUB” : “RU”,
“RWF” : “RW”,
“SAR” : “SA”,
“SBD” : “SB”,
“SCR” : “SC”,
“SDG” : “SD”,
“SEK” : “SE”,
“SGD” : “SG”,
Page 17
“SKK” : “SK”,
“SLL” : “SL”,
“SOS” : “SO”,
“SRD” : “SR”,
“STD” : “ST”,
“SVC” : “SV”,
“SYP” : “SY”,
“SZL” : “SZ”,
“THB” : “TH”,
“TJS” : “TJ”,
“TMT” : “TM”,
“TND” : “TN”,
“TOP” : “TO”,
“TRY” : “TR”,
“TTD” : “TT”,
“TWD” : “TW”,
“TZS” : “TZ”,
“UAH” : “UA”,
“UGX” : “UG”,
“USD” : “US”,
“UYU” : “UY”,
“UZS” : “UZ”,
Page 18
“VEF” : “VE”,
“VND” : “VN”,
“VUV” : “VU”,
“YER” : “YE”,
“ZAR” : “ZA”,
“ZMK” : “ZM”,
“ZWD” : “ZW”
dropList[i].insertAdjacentHTML(“beforeend”, optionTag);
dropList[i].addEventListener(“change”, e =>{
loadFlag(e.target);
});
Page 19
}
Window.addEventListener(“load”, ()=>{
getExchangeRate();
});
getButton.addEventListener(“click”, e =>{
e.preventDefault();
getExchangeRate();
});
exchangeIcon.addEventListener(“click”, ()=>{
fromCurrency.value = toCurrency.value;
toCurrency.value = tempCode;
getExchangeRate();
})
Function getExchangeRate(){
Page 20
Amount.value = “1”;
amountVal = 1;
}).catch(() =>{
});
}</script>
</body>
</html>
Page 21
OUTPUT:
Page 22
CONCLUSION:
In summary, this project has successfully harnessed the power of HTML, CSS,
and JavaScript to create an intuitive and efficient currency conversion tool. The
HTML framework provides a solid foundation for user interaction, while CSS
styling ensures a visually appealing and engaging interface. The JavaScript
functionality drives the core mechanics, allowing users to seamlessly convert
currencies in real-time, enhancing their financial decision-making. Our project
not only addresses the technical challenges of sourcing reliable currency
exchange rates and providing accurate calculations but also strives to offer a
secure and responsive platform for users worldwide. By enabling easy, cross-
browser currency conversion, we’ve aimed to simplify the complexities of
international finance and enhance the user experience. With this project, we’ve
not only met our objectives but also laid the groundwork for future
enhancements, including support for additional currencies and user-centric
features. It serves as a testament to the potential of these technologies to create
practical and interactive web-based tools that empower users in today’s global
economy.
Reference:
1. BookName- Javascript Demystified Author-Keogh, Jim
Publication-McGraw-Hill 2015, NewDelhiISBN:0-07060347-2.
Page 23