pull/1/head
Tanyawat Vittaypalaotai 4 years ago
parent c1a681eb7f
commit 6ce5d0479f
  1. 28
      muni.css
  2. 493
      parkingcalc.html

@ -0,0 +1,28 @@
* {
font-family: "Comic Sans MS", "Comic Sans", cursive;
box-sizing: border-box;
}
body::before {
content: "";
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
background-image: url("https://cdn.discordapp.com/emojis/744938186983080126.png?v=1");
background-size: cover;
background-repeat: no-repeat;
background-position: center calc(62% + 2%);
z-index: -1;
opacity: 0.25;
}
textarea {
background-color: transparent;
width: 100%;
}
textarea:disabled {
color: black;
}

@ -1,100 +1,206 @@
<!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" />
<link rel="stylesheet" href="muni.css" />
<title>D4DJ Parking Calculator | Powered by Muni</title>
<script> <script>
const MAXSTEPS = 10000;
const MAXSTEPS= 10000
function test() { function test() {
var start = Math.abs(Number(document.getElementById("starting").value)) var start = Math.abs(Number(document.getElementById("starting").value));
var end = Math.abs(Number(document.getElementById("ending").value)) var end = Math.abs(Number(document.getElementById("ending").value));
var maxscore = Math.abs(Number(document.getElementById("maxscore").value)) var maxscore = Math.abs(
var bonus = Number(document.getElementById("team").value) Number(document.getElementById("maxscore").value)
var type = (document.getElementById("Bingo").checked?"Bingo": );
document.getElementById("Poker").checked?"Poker/Raid": var bonus = Number(document.getElementById("team").value);
"Medley") var type = document.getElementById("Bingo").checked
var flexible = document.getElementById("flexible").checked ? "Bingo"
: document.getElementById("Poker").checked
? "Poker/Raid"
: "Medley";
var flexible = document.getElementById("flexible").checked;
//document.getElementById("console").value=flexible+"...\n\n" //document.getElementById("console").value=flexible+"...\n\n"
var step=1 var step = 1;
var flameCount=0 var flameCount = 0;
var originalTarget=start var originalTarget = start;
document.getElementById("console").value="" document.getElementById("console").value = "";
var interval = (type=="Medley")?15000:10000 var interval = type == "Medley" ? 15000 : 10000;
function EPCalc(voltage, score, bonus) { function EPCalc(voltage, score, bonus) {
if (voltage > 0) { if (voltage > 0) {
switch (type) { switch (type) {
case "Bingo":{ case "Bingo":
return voltage * Math.floor((1 + bonus)*Math.max(10,Math.floor(score/interval))) {
}break; return (
case "Medley":{ voltage *
return voltage * Math.floor((1 + bonus)*(10+Math.floor(score/interval))) Math.floor(
}break; (1 + bonus) * Math.max(10, Math.floor(score / interval))
case "Poker/Raid":{ )
return voltage * Math.floor((1 + bonus)*(50 + Math.floor(score/interval))) );
}break; }
break;
case "Medley":
{
return (
voltage *
Math.floor(
(1 + bonus) * (10 + Math.floor(score / interval))
)
);
}
break;
case "Poker/Raid":
{
return (
voltage *
Math.floor(
(1 + bonus) * (50 + Math.floor(score / interval))
)
);
}
break;
} }
} else { } else {
return Math.round(bonus*10)+10 return Math.round(bonus * 10) + 10;
} }
} }
function EvenOdd(val) { function EvenOdd(val) {
return val%2==0?"even":"odd" return val % 2 == 0 ? "even" : "odd";
} }
function TryBiggestGain(tbonus) { function TryBiggestGain(tbonus) {
var voltage=5 var voltage = 5;
for (var i = maxscore; i >= maxscore * 0.8; i -= interval) { for (var i = maxscore; i >= maxscore * 0.8; i -= interval) {
if (start + EPCalc(voltage, i, tbonus) < end - 10) { if (start + EPCalc(voltage, i, tbonus) < end - 10) {
//document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n" //document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n"
if (EvenOdd(start+EPCalc(voltage,i,tbonus))==EvenOdd(end-10)) { if (
EvenOdd(start + EPCalc(voltage, i, tbonus)) == EvenOdd(end - 10)
) {
//document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n" //document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n"
start+=EPCalc(voltage,i,tbonus) start += EPCalc(voltage, i, tbonus);
flameCount+=voltage flameCount += voltage;
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
} step++ +
} ") Using " +
} voltage +
return false " voltage w/" +
Math.round(tbonus * 100) +
"% team, score between " +
i +
"~" +
(i + interval - 1) +
" pts. EP +" +
EPCalc(voltage, i, tbonus) +
". Remaining:" +
(end - start) +
" EP \n";
return true;
}
}
}
return false;
} }
function TrySmallerGain(voltage, tbonus) { function TrySmallerGain(voltage, tbonus) {
for (var i = maxscore; i >= maxscore * 0.8; i -= interval) { for (var i = maxscore; i >= maxscore * 0.8; i -= interval) {
if (start + EPCalc(voltage, i, tbonus) < end - 10) { if (start + EPCalc(voltage, i, tbonus) < end - 10) {
//document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n" //document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n"
if (EvenOdd(start+EPCalc(voltage,i,tbonus))==EvenOdd(end-10)) { if (
EvenOdd(start + EPCalc(voltage, i, tbonus)) == EvenOdd(end - 10)
) {
//document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n" //document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n"
start+=EPCalc(voltage,i,tbonus) start += EPCalc(voltage, i, tbonus);
flameCount+=voltage flameCount += voltage;
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
} step++ +
} ") Using " +
} voltage +
return false " voltage w/" +
Math.round(tbonus * 100) +
"% team, score between " +
i +
"~" +
(i + interval - 1) +
" pts. EP +" +
EPCalc(voltage, i, tbonus) +
". Remaining:" +
(end - start) +
" EP \n";
return true;
}
}
}
return false;
} }
function TrySmolGain(voltage, tbonus) { function TrySmolGain(voltage, tbonus) {
for (var i = maxscore; i >= 0; i -= interval) { for (var i = maxscore; i >= 0; i -= interval) {
if (EPCalc(voltage,i,tbonus)>=(10+Math.round(bonus*10))&&(start+EPCalc(voltage,i,tbonus)<=end-(10+Math.round(bonus*10)))) { if (
EPCalc(voltage, i, tbonus) >= 10 + Math.round(bonus * 10) &&
start + EPCalc(voltage, i, tbonus) <=
end - (10 + Math.round(bonus * 10))
) {
//document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n" //document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n"
if (EvenOdd(start+EPCalc(voltage,i,tbonus))==EvenOdd(end-10)) { if (
EvenOdd(start + EPCalc(voltage, i, tbonus)) == EvenOdd(end - 10)
) {
//document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n" //document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n"
start+=EPCalc(voltage,i,tbonus) start += EPCalc(voltage, i, tbonus);
flameCount+=voltage flameCount += voltage;
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
step++ +
") Using " +
voltage +
" voltage w/" +
Math.round(tbonus * 100) +
"% team, score between " +
i +
"~" +
(i + interval - 1) +
" pts. EP +" +
EPCalc(voltage, i, tbonus) +
". Remaining:" +
(end - start) +
" EP \n";
return true;
} }
} }
} }
for (var i = maxscore; i >= 0; i -= interval) { for (var i = maxscore; i >= 0; i -= interval) {
if (EvenOdd(start+EPCalc(voltage,i,tbonus))!=EvenOdd(end-10)&&(start+EPCalc(voltage,i,tbonus))==end) { if (
EvenOdd(start + EPCalc(voltage, i, tbonus)) !=
EvenOdd(end - 10) &&
start + EPCalc(voltage, i, tbonus) == end
) {
//document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n" //document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n"
//document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n" //document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n"
start+=EPCalc(voltage,i,tbonus) start += EPCalc(voltage, i, tbonus);
flameCount+=voltage flameCount += voltage;
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
step++ +
") Using " +
voltage +
" voltage w/" +
Math.round(tbonus * 100) +
"% team, score between " +
i +
"~" +
(i + interval - 1) +
" pts. EP +" +
EPCalc(voltage, i, tbonus) +
". Remaining:" +
(end - start) +
" EP \n";
return true;
} }
} }
/*for (var i=maxscore;i>=0;i-=interval) { /*for (var i=maxscore;i>=0;i-=interval) {
@ -108,83 +214,157 @@
} }
}*/ }*/
for (var i = maxscore; i >= 0; i -= interval) { for (var i = maxscore; i >= 0; i -= interval) {
if (EvenOdd(start+EPCalc(voltage,i,tbonus))!=EvenOdd(end-10)&&(start+EPCalc(voltage,i,tbonus))==end) { if (
EvenOdd(start + EPCalc(voltage, i, tbonus)) !=
EvenOdd(end - 10) &&
start + EPCalc(voltage, i, tbonus) == end
) {
//document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n" //document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n"
//document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n" //document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n"
start+=EPCalc(voltage,i,tbonus) start += EPCalc(voltage, i, tbonus);
flameCount+=voltage flameCount += voltage;
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
} step++ +
} ") Using " +
return false voltage +
" voltage w/" +
Math.round(tbonus * 100) +
"% team, score between " +
i +
"~" +
(i + interval - 1) +
" pts. EP +" +
EPCalc(voltage, i, tbonus) +
". Remaining:" +
(end - start) +
" EP \n";
return true;
}
}
return false;
} }
function TryEqualGain(voltage, tbonus) { function TryEqualGain(voltage, tbonus) {
for (var i = maxscore; i >= 0; i -= interval) { for (var i = maxscore; i >= 0; i -= interval) {
//document.getElementById("console").value+=(start+EPCalc(voltage,i,tbonus))+"/"+end+"\n" //document.getElementById("console").value+=(start+EPCalc(voltage,i,tbonus))+"/"+end+"\n"
if ((start+EPCalc(voltage,i,tbonus))==end) { if (start + EPCalc(voltage, i, tbonus) == end) {
//document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n" //document.getElementById("console").value+="Ending value needs to be "+EvenOdd(end-10)+"\n"
//document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n" //document.getElementById("console").value+=EvenOdd(start+EPCalc(voltage,i,tbonus))+"/"+EvenOdd(end-10)+"\n"
start+=EPCalc(voltage,i,tbonus) start += EPCalc(voltage, i, tbonus);
flameCount+=voltage flameCount += voltage;
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
step++ +
") Using " +
voltage +
" voltage w/" +
Math.round(tbonus * 100) +
"% team, score between " +
i +
"~" +
(i + interval - 1) +
" pts. EP +" +
EPCalc(voltage, i, tbonus) +
". Remaining:" +
(end - start) +
" EP \n";
return true;
} }
} }
if (end == start) { if (end == start) {
return false return false;
} else { } else {
return undefined return undefined;
} }
} }
function TryMatchingRehearsal(tbonus) { function TryMatchingRehearsal(tbonus) {
//document.getElementById("console").value+=(Math.round(tbonus*10))+10 //document.getElementById("console").value+=(Math.round(tbonus*10))+10
if (end-start==(Math.round(tbonus*10))+10) { if (end - start == Math.round(tbonus * 10) + 10) {
var gain=(Math.round(tbonus*10))+10 var gain = Math.round(tbonus * 10) + 10;
start+=gain start += gain;
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+Math.round(tbonus*100)+"% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return false "Step " +
} step++ +
return true ") Use Rehearsal w/" +
Math.round(tbonus * 100) +
"% team. EP +" +
gain +
". Remaining:" +
(end - start) +
" EP \n";
return false;
}
return true;
} }
function TryRehearsal(tbonus) { function TryRehearsal(tbonus) {
if (end == start) { if (end == start) {
return false return false;
} }
var voltage=0 var voltage = 0;
if ((end - start) % 2 !== 0) { if ((end - start) % 2 !== 0) {
return undefined return undefined;
} }
if (end-start>(10+Math.round(tbonus*10))+10) { if (end - start > 10 + Math.round(tbonus * 10) + 10) {
var gain=(10+Math.round(tbonus*10)) var gain = 10 + Math.round(tbonus * 10);
start+=gain start += gain;
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+(tbonus*100)+"% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n" document.getElementById("console").value +=
return true "Step " +
} else step++ +
if (end-start>=20) { ") Use Rehearsal w/" +
var gain=end-start-10 tbonus * 100 +
start+=gain "% team. EP +" +
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+((gain-10)*10)+"% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n" gain +
return true ". Remaining:" +
} else (end - start) +
if ((end-start)%10==0) { " EP \n";
var gain=10 return true;
start+=gain } else if (end - start >= 20) {
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/0% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n" var gain = end - start - 10;
return false start += gain;
} else document.getElementById("console").value +=
{ "Step " +
var gain=end-start step++ +
start+=gain ") Use Rehearsal w/" +
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+((gain-10)*10)+"% team. EP +"+(gain)+". Remaining:"+(end-start)+" EP \n" (gain - 10) * 10 +
return false "% team. EP +" +
gain +
". Remaining:" +
(end - start) +
" EP \n";
return true;
} else if ((end - start) % 10 == 0) {
var gain = 10;
start += gain;
document.getElementById("console").value +=
"Step " +
step++ +
") Use Rehearsal w/0% team. EP +" +
gain +
". Remaining:" +
(end - start) +
" EP \n";
return false;
} else {
var gain = end - start;
start += gain;
document.getElementById("console").value +=
"Step " +
step++ +
") Use Rehearsal w/" +
(gain - 10) * 10 +
"% team. EP +" +
gain +
". Remaining:" +
(end - start) +
" EP \n";
return false;
} }
return false return false;
/*var voltage=0 /*var voltage=0
if (end-start>36) { if (end-start>36) {
start+=26 start+=26
@ -214,11 +394,11 @@
return true*/ return true*/
} }
if ((end-start)>1000000) { if (end - start > 1000000) {
document.getElementById("console").value="Get closer to target score before using parking calculator!" document.getElementById("console").value =
} "Get closer to target score before using parking calculator!";
else { } else {
var result=true var result = true;
while (start != end) { while (start != end) {
if (flexible) { if (flexible) {
for (var j = bonus; j >= 0; j -= 0.2) { for (var j = bonus; j >= 0; j -= 0.2) {
@ -252,14 +432,14 @@
} }
} }
for (var j = bonus; j >= 0; j -= 0.2) { for (var j = bonus; j >= 0; j -= 0.2) {
result = TryMatchingRehearsal(j) result = TryMatchingRehearsal(j);
if (!result) { if (!result) {
break; break;
} }
} }
if (result) { if (result) {
for (var j = 1.6; j >= 0; j -= 0.2) { for (var j = 1.6; j >= 0; j -= 0.2) {
result = TryMatchingRehearsal(j) result = TryMatchingRehearsal(j);
if (!result) { if (!result) {
break; break;
} }
@ -269,58 +449,71 @@
do { do {
if (flexible) { if (flexible) {
for (var j = bonus; j >= 0; j -= 0.2) { for (var j = bonus; j >= 0; j -= 0.2) {
result = TryRehearsal(j) result = TryRehearsal(j);
} }
} else { } else {
result = TryRehearsal(bonus) result = TryRehearsal(bonus);
} }
} while (result); } while (result);
} }
if (flexible) { if (flexible) {
for (var i = 5; i > 0; i--) { for (var i = 5; i > 0; i--) {
for (var j = bonus; j >= 0; j -= 0.2) { for (var j = bonus; j >= 0; j -= 0.2) {
while (result = TryEqualGain(i,j)) { while ((result = TryEqualGain(i, j))) {
//document.getElementById("console").value+="Step "+(step++)+")"+start+" EP"+"\n" //document.getElementById("console").value+="Step "+(step++)+")"+start+" EP"+"\n"
} }
} }
} }
} else { } else {
for (var i = 5; i > 0; i--) { for (var i = 5; i > 0; i--) {
while (result = TryEqualGain(i,bonus)) { while ((result = TryEqualGain(i, bonus))) {
//document.getElementById("console").value+="Step "+(step++)+")"+start+" EP"+"\n" //document.getElementById("console").value+="Step "+(step++)+")"+start+" EP"+"\n"
} }
} }
} }
start=end start = end;
if (result === undefined) { if (result === undefined) {
document.getElementById("console").value="Impossible to park using this team!" document.getElementById("console").value =
"Impossible to park using this team!";
} else { } else {
document.getElementById("console").value="Calculating from "+originalTarget+" to "+end+" for event type "+type+"...\n\t(All games are done in Free Live)\n\nFound a park! "+(step-1)+" steps and "+flameCount+" voltage required!\n\n"+document.getElementById("console").value document.getElementById("console").value =
"Calculating from " +
originalTarget +
" to " +
end +
" for event type " +
type +
"...\n\t(All games are done in Free Live)\n\nFound a park! " +
(step - 1) +
" steps and " +
flameCount +
" voltage required!\n\n" +
document.getElementById("console").value;
} }
//document.getElementById("console").value+="Step "+(step++)+")"+start+" EP"+"\n" //document.getElementById("console").value+="Step "+(step++)+")"+start+" EP"+"\n"
step++ step++;
} }
} }
} }
</script> </script>
</head>
<body>
<h1>D4DJ Event Parking Calculator</h1> <h1>D4DJ Event Parking Calculator</h1>
<fieldset> <fieldset>
<legend>Parking Configuration</legend> <legend>Parking Configuration</legend>
<input type="radio" id="Poker" name="type" value="Poker" checked> <input type="radio" id="Poker" name="type" value="Poker" checked />
<label for="Poker">Poker/Raid</label> <label for="Poker">Poker/Raid</label>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input type="radio" id="Bingo" name="type" value="Bingo"> <input type="radio" id="Bingo" name="type" value="Bingo" />
<label for="Bingo">Bingo</label> <label for="Bingo">Bingo</label>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input type="radio" id="Medley" name="type" value="Medley"> <input type="radio" id="Medley" name="type" value="Medley" />
<label for="Medley">Medley</label> <label for="Medley">Medley</label>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<hr> <hr />
<label for="team">Event Team Bonus:</label> <label for="team">Event Team Bonus:</label>
<select id="team" name="team"> <select id="team" name="team">
<option value="0">0%</option> <option value="0">0%</option>
@ -333,24 +526,42 @@
<option value="1.4">140%</option> <option value="1.4">140%</option>
<option value="1.6" selected>160%</option> <option value="1.6" selected>160%</option>
</select> </select>
&nbsp;&nbsp;&nbsp;&nbsp;<label for="flexible" alt="Yes"><b>Flexible Team?</b></label><input id="flexible" type="checkbox"> <i>If turned on, calculates scoring options using lower % teams also.</i> &nbsp;&nbsp;&nbsp;&nbsp;<label for="flexible" alt="Yes"
<br> ><b>Flexible Team?</b></label
<br> ><input id="flexible" type="checkbox" />
<label for="maxscore"><b>Max Free Live Score: </b></label><input id="maxscore" min=0 type="number" value="650000"> <i>If turned on, calculates scoring options using lower % teams also.</i>
<hr> <br />
<label for="starting"><b>Starting EP: </b></label><input id="starting" min=0 type="number" value="100000"> <br />
<label for="maxscore"><b>Max Free Live Score: </b></label
><input id="maxscore" min="0" type="number" value="650000" />
<hr />
<label for="starting"><b>Starting EP: </b></label
><input id="starting" min="0" type="number" value="100000" />
<span style="font-size: 32px; padding: 0px 10px 0px 10px"></span> <span style="font-size: 32px; padding: 0px 10px 0px 10px"></span>
<label for="ending"><b>Target EP: </b></label><input id="ending" min=0 type="number" value="104000"> <label for="ending"><b>Target EP: </b></label
<br> ><input id="ending" min="0" type="number" value="104000" />
<br> <br />
<button id="calculate" style="background-color:#CCDDFF;margin-left:20px;width:240px;height:32px;font-size:18px;" onclick="test()">Calculate</button> <br />
<button
id="calculate"
style="
background-color: #ccddff;
margin-left: 20px;
width: 240px;
height: 32px;
font-size: 18px;
"
onclick="test()"
>
Calculate
</button>
</fieldset> </fieldset>
<div style="justify-content: center;align-items: center;"> <div style="display: flex; justify-content: stretch; align-items: center">
<hr> <textarea rows="20" cols="160" id="console" disabled> </textarea>
<textarea rows=20 cols=160 id="console">
</textarea>
</div> </div>
<script> <script>
document.getElementById("ips").value="" document.getElementById("ips").value = "";
</script> </script>
</body>
</html>

Loading…
Cancel
Save