Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added metrics converter #1009

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions Public/MetricsConverter/capasitance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>Capasitance Conveter</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/animate.css">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/style.css">
<!--===============================================================================================-->
<style type="text/css">
body {
background-color: Thistle;
animation-name: backgroundAnimi;
animation-duration: 10s;
animation-iteration-count: infinite;
}

@keyframes backgroundAnimi {
0% {
background-color: rgb(66, 11, 66);
}
25% {
background-color: rgb(110, 2, 110);
}
50% {
background-color: rgb(184, 0, 184);
}
75% {
background-color: rgb(110, 2, 110);
}
100% {
background-color: rgb(66, 11, 66);
}
}
</style>
<!--===============================================================================================-->
</head>

<body>

<div class="container">
<h1 class="heading animated bounceInDown">Capasitance Conveter <i class="fas fa-industry"></i></h1>
<div class="row">
<div class="col">
<input type="number" id="Farad" class="input animated bounceInRight" placeholder="Farad" oninput="capasitanceConverter(this.id,this.value)" onchange="capasitanceConverter(this.id,this.value)"><br>
</div>
</div>
<div class="row">
<div class="col">
<input type="number" id="nF" class="input animated bounceInLeft" placeholder="Nano Farad" oninput="capasitanceConverter(this.id,this.value)" onchange="capasitanceConverter(this.id,this.value)"><br>
</div>
</div>
<div class="row">
<div class="col">
<input type="number" id="pF" class="input animated bounceInRight" placeholder="Pico Farad" oninput="capasitanceConverter(this.id,this.value)" onchange="capasitanceConverter(this.id,this.value)">
</div>
</div>
<div class="back"><a href="index.html">Home <i class="fa fa-home"></i></a></div>
</div>

<script type="text/javascript">
function capasitanceConverter(weightType, userVal) {

userVal = parseFloat(userVal);

var userFarad = document.getElementById("Farad");
var usernF = document.getElementById("nF");
var userpF = document.getElementById("pF");

if (weightType == "Farad") {
usernF.value = (userVal * 1000000000).toFixed();
userpF.value = (userVal * 1000000000000).toFixed();
}
if (weightType == "nF") {
userFarad.value = (userVal / 1000000000).toFixed(12);
userpF.value = (userVal * 1000).toFixed();
}
if (weightType == "pF") {
userFarad.value = (userVal / 1000000000000).toFixed(15);
usernF.value = (userVal / 1000).toFixed(12);
}
}
</script>

</body>

</html>
94 changes: 94 additions & 0 deletions Public/MetricsConverter/current.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>Electric Current Conveter</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/animate.css">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/style.css">
<!--===============================================================================================-->
<style type="text/css">
body {
background-color: Thistle;
animation-name: backgroundAnimi;
animation-duration: 10s;
animation-iteration-count: infinite;
}

@keyframes backgroundAnimi {
0% {
background-color: rgb(185, 116, 4);
}
25% {
background-color: rgb(221, 138, 5);
}
50% {
background-color: rgb(245, 183, 84);
}
75% {
background-color: rgb(221, 138, 5);
}
100% {
background-color: rgb(185, 116, 4);
}
}
</style>
<!--===============================================================================================-->
</head>

<body>

<div class="container">
<h1 class="heading animated bounceInDown">Electric Current Conveter <i class="fa fa-battery-half"></i></h1>
<div class="row">
<div class="col">
<input type="number" id="mA" class="input animated bounceInRight" placeholder="Mili Ampere" oninput="currentConverter(this.id,this.value)" onchange="currentConverter(this.id,this.value)"><br>
</div>
</div>
<div class="row">
<div class="col">
<input type="number" id="ampere" class="input animated bounceInLeft" placeholder="Ampere" oninput="currentConverter(this.id,this.value)" onchange="currentConverter(this.id,this.value)"><br>
</div>
</div>
<div class="row">
<div class="col">
<input type="number" id="kA" class="input animated bounceInRight" placeholder="Kilo Ampere" oninput="currentConverter(this.id,this.value)" onchange="currentConverter(this.id,this.value)">
</div>
</div>
<div class="back"><a href="index.html">Home <i class="fa fa-home"></i></a></div>
</div>

<script type="text/javascript">
function currentConverter(weightType, userVal) {

userVal = parseFloat(userVal);

var usermA = document.getElementById("mA");
var userampere = document.getElementById("ampere");
var userweightMg = document.getElementById("kA");

if (weightType == "mA") {
userampere.value = (userVal / 1000).toFixed(6);
userkA.value = (userVal / 1000000).toFixed(6);
}
if (weightType == "ampere") {
usermA.value = (userVal * 1000).toFixed(2);
userkA.value = (userVal / 1000).toFixed(6);
}
if (weightType == "kA") {
usermA.value = (userVal * 1000000).toFixed(2);
userampere.value = (userVal * 1000).toFixed(2);
}
}
</script>

</body>

</html>
112 changes: 112 additions & 0 deletions Public/MetricsConverter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Convert Me</title>

<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<link rel="stylesheet" type="text/css" href="vendors/styleMain.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.css">
</head>

<body>

<div class="container">
<h1 class="headingMain animated bounceInUp">Convert Me <i class="fa fa-calculator"></i></h1>
<div class="row">
<div class="col-sm-3 mt-4 animated bounceInDown column">
<div class="content">
<a href="weight.html">
<div class="btns">
<i class="fas fa-weight"></i>
<p>Weight</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInLeft">
<div class="content">
<a href="length.html">
<div class="btns">
<i class="fas fa-ruler-horizontal"></i>
<p>Length</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInRight">
<div class="content">
<a href="temprature.html">
<div class="btns">
<i class="fa fa-fw fa-thermometer-empty"></i>
<p>Temprature</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInDown">
<div class="content">
<a href="volume.html">
<div class="btns">
<i class="fa fa-cube"></i>
<p>Volume</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInUp">
<div class="content">
<a href="resistance.html">
<div class="btns">
<i class="fas fa-ticket-alt"></i>
<p>Resistance</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInRight">
<div class="content">
<a href="current.html">
<div class="btns">
<i class="fa fa-battery-half"></i>
<p>Electric Current</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInLeft">
<div class="content">
<a href="capasitance.html">
<div class="btns">
<i class="fas fa-industry"></i>
<p>Capacitance</p>
</div>
</a>
</div>
</div>

<div class="col-sm-3 mt-4 animated bounceInUp specialBottom">
<div class="content">
<a href="speed.html">
<div class="btns">
<i class="fas fa-tachometer-alt"></i>
<p>Speed</p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</body>

</html>
Loading
Loading