Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
Binary file removed IMG-20220618-WA0002.jpg
Binary file not shown.
Empty file removed app.js
Empty file.
44 changes: 36 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,38 @@
<!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>BMI Calculator</title>
</head>
<body></body>
</html>
<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>Degree To Radient</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<h1>Degree Covert to Radians</h1>

<div class="container">
<label for="degree">Degrees</label>
<input type="number" name="degrees" id="degree" class="input" placeholder=" Degree">

<br>
<label for="radians">Radians</label>
<input type="number" name="radient" id="radians" class="input" placeholder=" Radians">
</div>


<script>
const degreeInput = document.getElementById("degree");
console.log(degreeInput);

function covertToRadiens() {
const degreeValue = document.getElementById("degree").value;
let radientValue = degreeValue * (3.14 / 180);
document.getElementById("radians").value = radientValue;
}

degreeInput.addEventListener("input", covertToRadiens);
</script>

</body>
</html>
32 changes: 32 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
body{
padding: 0;
margin: 0;
box-sizing: border-box;
text-align: center;
font-family: sans-serif;
}

.container{
width: 35%;
height: 40vh;
background-color: dodgerblue;
margin: 10px auto;
padding: 1rem;
border-radius: 10px;
}
.container input{
width: 80%;
height: 30px;
margin: 10px;
border-radius: 5px;
outline: none;
border: 1px solid #333;
font-family: sans-serif;
}
label{
align-items: flex-start;
justify-content: start;
color: #fff;
font-family: sans-serif;
font-size: 20px;
}
Empty file removed styles.css
Empty file.