Skip to content

Instantly share code, notes, and snippets.

@andreblue
Created September 28, 2016 21:42
Show Gist options
  • Select an option

  • Save andreblue/a2cc1283c484deeff53b4981bbf7f1c6 to your computer and use it in GitHub Desktop.

Select an option

Save andreblue/a2cc1283c484deeff53b4981bbf7f1c6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<!-- jQuery 2.2.4 -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<!-- Boot Strap 3.3.6 CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Boot Strap 3.3.6 JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!-- Boot Strap Theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<style>
</style>
<script>
var scammerPhrases = [
"Almost all building tools restricted",
"Custom VIP Classes",
"30 Different Printers",
"Server Redirect",
"Overused Shitty RP map",
"Overused Workshop Class Playermodels (NYCPD/Mafia)",
"Prop Push",
"Hobo King/Hobo Fortress",
"Roof Top Admin Adventure",
"/Advert Raid",
"Angry Admins",
"Basing Gun Dealers",
"PlayX/Music/DJ Spam",
"Zimbabwe Economy",
"Constant Mugging",
" Doomforts",
"Codehire for Days",
"/Advert Mug",
"Squeekers",
"Normal Advertisements",
"Loading Screen Music",
"Unreasonably Large Thug/Mafia Player Count",
"Plethora of Custom Player Models",
"Admin Guns",
"Unreasonably Large Thug/Mafia Player Count",
"Half The Server is AFK at Spawn",
"Paid Admin",
"People Shouting RDA" //28
];
function randomKey(obj) {
var ret;
var c = 0;
for (var key in obj)
if (Math.random() < 1/++c)
ret = key;
return ret;
}
$(function(){
var currentPharses = [];
Object.size = function(obj) {
var size = 0, key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return size;
};
while (Object.size(currentPharses) < 25) {
var key = randomKey(scammerPhrases);
if(!currentPharses[key]){
currentPharses[key] = scammerPhrases[key];
}
}
$(this).find('td').each (function() {
var key = randomKey(currentPharses);
$(this).text(currentPharses[key]);
delete currentPharses[key];
});
});
</script>
</head>
<body>
<div class="container">
<div id="title" class="text-center" >
<p><h1>Scammer Bingo</h1></p>
</div>
<div id="content" class="text-center " >
<table class="table table-bordered">
<tr style="height: 128px;">
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
</tr>
<tr style="height: 128px;">
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
</tr>
<tr style="height: 128px;">
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
</tr>
<tr style="height: 128px;">
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
</tr>
<tr style="height: 128px;">
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
<td style="width: 128px; height: 128px;" onclick="$(this).toggleClass('success')" ></td>
</tr>
</table>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment