-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4f8b79b
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Beden Kitle Endeksi Uygulaması | ||
|
||
## 29 Mayıs 2023 | ||
|
||
### Javascript ile yapıldı. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
* { | ||
background-color: #f6ffa5; | ||
} | ||
|
||
|
||
div>h1 { | ||
text-align: center; | ||
background-color:green; | ||
color: white; | ||
} | ||
|
||
div>p { | ||
text-align: center; | ||
font-size: 1em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="tr"> | ||
|
||
<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>Beden Kitle Endeksi Uygulaması</title> | ||
<link rel="stylesheet" href="css/style.css"> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<h1>Beden Kitle Endeksi</h1> | ||
<p> <strong> Kilonuz:</strong></p> | ||
<p id="kilo"> | ||
</p> | ||
<p> <strong> Boyunuz:</strong></p> | ||
<p id="boy"> | ||
</p> | ||
<p> <strong> Sonuç:</strong></p> | ||
<p id="sonuc"> | ||
</p> | ||
<p> <strong> Durum:</strong></p> | ||
<p id="durum"> | ||
</p> | ||
</div> | ||
|
||
|
||
<script src="js/app.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
let kilo=Number(prompt("Kilonuzu giriniz : ")) | ||
document.getElementById("kilo").innerHTML = kilo; | ||
|
||
let boy=Number(prompt("Boyunuzu giriniz : ")) | ||
document.getElementById("boy").innerHTML = boy; | ||
|
||
|
||
let sonuc=kilo/((boy/100)*(boy/100)) | ||
document.getElementById("sonuc").innerHTML=sonuc; | ||
|
||
|
||
if(sonuc>0 && sonuc<18.5){ | ||
document.getElementById("durum").innerHTML="İdeal kilonun altındasınız !"; | ||
} | ||
else if(sonuc>18.5 && sonuc<24.9) { | ||
document.getElementById("durum").innerHTML="İdeal kilonuzdasınız! Tebrikler!"; | ||
} | ||
|
||
else if (sonuc>30 && sonuc<39.9){ | ||
document.getElementById("durum").innerHTML="İdeal kilonun çok üstündesiniz! (Obez)"; | ||
} | ||
else if (sonuc>40) { | ||
document.getElementById("durum").innerHTML="İdeal kilonun çok üstündesiniz! (morbid obez)"; | ||
} | ||
else { | ||
document.getElementById("durum").innerHTML="Lütfen pozitif sayılar giriniz..."; | ||
} |