Skip to content

Instantly share code, notes, and snippets.

View sandeshtandan's full-sized avatar

Sandesh Tandan sandeshtandan

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Indian Currency to Nepalese Currency Converter</title>
<link rel="stylesheet" href="style.css">
</head>
@import url("https://fonts.googleapis.com/css2?family=Poppins: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,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body,
head {
font-family: "Poppins", sans-serif;
}
.converter {
max-width: 700px;
margin: 4rem auto;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Indian Currency to Nepalese Currency Converter</title>
<link rel="stylesheet" href="style.css">
</head>
function convert() {
var usDollor = document.getElementById("us-dollor").value;
var nepaleseCurrency = document.getElementById("nepalese-currency").value;
var convert = document.getElementById("convert");
if (usDollor == 0) {
convert.innerHTML =
"Your US Dollor is: " + "<b>" + nepaleseCurrency * 0.0083 + "</b>";
} else {
convert.innerHTML =
@import url("https://fonts.googleapis.com/css2?family=Poppins: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,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body,
head {
font-family: "Poppins", sans-serif;
}
.converter {
max-width: 700px;
margin: 4rem auto;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>US Dollor to Nepalese Currency Converter</title>
<link rel="stylesheet" href="style.css">
</head>
function convert() {
var nepalese = document.getElementById("nepalese").value;
var indianRupees = (document.getElementById("indian-rupees").innerHTML =
"Your Indian Rupees Are: " + "<b>" + nepalese * 0.63 + "</b>");
}
@import url("https://fonts.googleapis.com/css2?family=Poppins: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,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body,
head {
font-family: "Poppins", sans-serif;
}
input {
padding: 1rem;
width: 40%;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nepalese to Indian Rupees Converter</title>
<link rel="stylesheet" href="style.css">
</head>
// getting all required elements
const button = document.querySelector("#button");
const commentList = document.querySelector("#comment-list");
showComments();
function myFunction() {
var name = document.getElementById("name").value; //getting value of input field
var email = document.getElementById("email").value;
var comment = document.getElementById("comment").value;