Skip to content

Commit

Permalink
Here's your fucking Die of Judgement @Lomeli12
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Jan 7, 2016
1 parent 3391392 commit 16d0ba6
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions utility/dieofjudgement.html
@@ -0,0 +1,52 @@
<!--3 apathy ashens
2 chef excellence
1 silver skull-->
<html>
<head>
<title>Die of Judgement</title>

<link rel="stylesheet" href="../css/pure-min-0.6.0.css">

<style>
.centered {
margin: auto;
max-width: 600px;
}
</style>

<script>
function roll() {
var d6 = Math.floor(Math.random() * 6);
var result;
switch(d6) {
case 0:
case 1:
case 2:
result = "Ashens - You must wait until another day.";
case 3:
case 4:
result = "Chef Excellence - The item in question is worthy.";
case 5:
result = "Silver Skull - The item in question must <b><i>burn</i></b>.<br />(If the item in question is digital, you must print it out and burn it.)";
default:
result = "Amazingly, you managed to roll a six-sided die, and get a 7th result. Contact <a href='https://twitter.com/Lomeli12_'>@Lomeli12_</a> for help, as he once managed to make an array contain -1 items, and is equally likely to understand what the fuck is going on as you.";
}
document.getElementById("output").innerHTML = result;
}
</script>
</head>
<body>
<table class="pure-table pure-table-bordered centered">
<tbody>
<tr>
<td>
<button class="pure-button" onclick="javascript:roll();" title="Roll the Die of Judgement">Roll</button>
</td>
<td>
<span id="output">Click "Roll"</span>
</td>
</tr>
</tbody>
</table>
</body>
</html>

1 comment on commit 16d0ba6

@TangentFoxy
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.