<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="script.js">
var doccolor="ff80ff";
function calculation(a, b, c){
var a = age;
var b = gender;
var c = phone;
function calage(age){
if(age>0.5 && age<=0.6){
return 1;
else if(age>0.6 && age<=0.65){
return 2;
else if(age>0.65 && age <=7){
return 3;
else if(age>0.7 && age <=0.75){
return 4;
else if(age >0.75 && age <=0.8){
return 5:
else if(age >0.8 && age <= 0.85){
return 6:
else if(age >0.85){
return 7;
}
}
}
}
}
}
}}
function calgender(gender){
if(gender>0.6 && gender<= 0.75){
return 2;
else if(gender >0.75&& gender< 0.9){
return 4;
else if(gender > 0.9){
return 6;
}
}
}
}
function calphone(phone){
if (phone>0.2 && phone <=0.3){
return 1;
else if (phone >0.3 && phone <=0.4){
return 2;
else if (phone >0.4 && phone<= 50){
return 3;
else if(phone>0.5){
return 4;
}
}
}
}
}
var resu
a + b + c = resu
return resu;
}
</script>
</head>
<body bgcolor="ffffff" onload="resetCounters();" data-new-gr-c-s-check-loaded="14.991.0" data-gr-ext-installed="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<b>By Tylor Lee</b></font></td>
</tr>
</tbody></table>
<p>
</p><blockquote>
<font size="+1">
<b>Rating system</b>
</font><br>
Type in the following requirement to get the points of the KOL
<p>
</p><form name="powermod">
<table border="1" align="center">
<tbody><tr>
<td>Age:
<input type="text" value="" name="aaa" onchange="pmout.value='';"></td>
<td>phone:
<input type="text" value="" name="iphone" onchange="pmout.value='';"></td>
<td>gender:
<input type="text" value="" name="female" onchange="pmout.value='';"></td>
</tr>
<tr>
<td>
<input type="button" value="Compute" onclick="pmout.value = calculation(aaa,female,iphone);">
</td>
<td align="right">
<i>result</i> =
</td>
<td bgcolor="bbbbbb"><input type="text" value="" name="pmout" onchange="pmout.value='';">
</td>
</tr>
</tbody></table>
</form>
<p>
<font size="0">
The program is written in JavaScript,
and runs on the client computer.
</font>
</p><p>
</p></blockquote>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
</tr>
</tbody></table>
<p>
</body>
</html>
小白求助,很基础的问题 谢谢大神