Skip to content

Instantly share code, notes, and snippets.

@NightBrownie
Created September 8, 2012 15:39
Show Gist options
  • Select an option

  • Save NightBrownie/3676181 to your computer and use it in GitHub Desktop.

Select an option

Save NightBrownie/3676181 to your computer and use it in GitHub Desktop.
Help for Vadim
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Узнайте свою оптимальную физическую форму</title>
<style type="text/css">
h3 {font-family: Arial;color: "yellow";}
</style>
<script type="text/javascript">
function Calculate() {
if (document.Healthy.Gender.value == "Woman"){
m0=Math.round(50+(document.Healthy.Heigth.value- 150)*0.32+(document.Healthy.Age.value-21)/5); adv0=Math.round(102+0.7*document.Healthy.Age.value+0.15*m0);
n0=Math.round(78+0.17*document.Healthy.Age.value+0.1*m0);
dv1=Math.round(102+0.7*document.Healthy.Age.value+0.15*document.Healthy.Weigth.value);
dn1=Math.round(78+0.17*document.Healthy.Age.value+0.1*document.Healthy.Weigth.value);
}
else{
m0=Math.round(50+(document.Healthy.Heigth.value-150)*0.75+(document.Healthy.Age.value-21)/4);
adv0=Math.round(109+0.5*document.Healthy.Age.value+0.1*m0);
adn0=Math.round(74+0.1*document.Healthy.Age.value+0.15*m0);
adv1=Math.round(109+0.5*document.Healthy.Age.value+0.1*document.Healthy.Weigth.value);
adn1=Math.round(74+0.1*document.Healthy.Age.value+0.15*document.Healthy.Weigth.value);
};
alert("Ваш оптимальный вес: "+m0+" кг Оптимальное давление для "+m0+" кг : "+adv0+"/"+adn0+" Оптимальное давление для "+document.Healthy.Weigth.value+" кг —"+adv1+"/"+adn1);
}
</script>
</head>
<body bgcolor="gray">
<CENTER>
<FORM name="Healthy" >
<h3>
Пол
<SELECT name="Gender" >
<OPTION value="Man" selected>Женский
<OPTION value="Woman" >Мужской
</SELECT>
Возраст
<INPUT type="text" name="Age" size=3>,лет Рост
<INPUT type="text" name="Heigth" size=3>,см Вес
<INPUT type="text" name="Weigth"size=3>,кг <br> <br>
<INPUT type="button" name="Calculating" value="Calculate" onClick="Calculate()">
</h3>
</FORM>
<a href="mailto:aaa@bbb.ru">Напишите мне письмо</a>
</CENTER>
</body>
</html>
@Eugeny

Eugeny commented Sep 9, 2012

Copy link
Copy Markdown

что за поебота?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment