Skip to content

Instantly share code, notes, and snippets.

Created June 8, 2016 23:31
Show Gist options
  • Save anonymous/a5f67cd6bfb5d351e1be024d25d2edda to your computer and use it in GitHub Desktop.
Save anonymous/a5f67cd6bfb5d351e1be024d25d2edda to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Pad MP Calc</title>
<script type="text/javascript">
function go() {
var qparam = [];
if(this.no10mp.checked) { qparam.push("no10mp=True"); }
if(this.no1mp.checked) { qparam.push("no1mp=True"); }
if(this.no5mp.checked) { qparam.push("no5mp=True"); }
if(this.noonteam.checked) { qparam.push("noonteam=True"); }
if(this.noprio0.checked) { qparam.push("noprio0=True"); }
if(this.noprio1.checked) { qparam.push("noprio1=True"); }
if(this.noprio2.checked) { qparam.push("noprio2=True"); }
if(this.noprio3.checked) { qparam.push("noprio3=True"); }
window.location.href += "/" + this.username.value + (qparam.length ? "?" : "") + qparam.join("&");
return false;
}
</script>
</head>
<body>
<center>
<h1>Pad MP Calculator</h1>
<form id="tacocat" onsubmit="return go()" action ="#">
Padherder Username: <input type="text" class="username" id="username" value="" />
<input type="submit" value="Submit" class="buttons" /><br>
<h3>Filters(Select to remove from results)</h3><br>
<table>
<tr><td><input type="checkbox" value="True" class="no1mp" id="no1mp" /></td><td>1MP Monsters</td></tr>
<tr><td><input type="checkbox" value="True" class="no5mp" id="no5mp" /></td><td>5MP Monsters</td></tr>
<tr><td><input type="checkbox" value="True" class ="no10mp" id="no10mp" /></td><td>10MP Monsters</td></tr>
<tr><td><input type="checkbox" value="True" class ="noonteam" id="noonteam" /></td><td>On Team</td></tr>
<tr><td><input type="checkbox" value="True" class="noprio0" id="noprio0" /></td><td>Zero Priority</td></tr>
<tr><td><input type="checkbox" value="True" class="noprio1" id="noprio1" /></td><td>Low Priority</td></tr>
<tr><td><input type="checkbox" value="True" class="noprio2" id="noprio2" /></td><td>Medium Priority</td></tr>
<tr><td><input type="checkbox" value="True" class="noprio3" id="noprio3" /></td><td>High Priority</td></tr>
</table>
</form>
</center>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment