Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Here's your fucking Die of Judgement @Lomeli12
- Loading branch information
1 parent
3391392
commit 16d0ba6
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
16d0ba6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lomeli12 Actually, HTTPS doesn't work :( http://guard13007.com/utility/dieofjudgement.html