Skip to content

Instantly share code, notes, and snippets.

@andreblue
Created July 16, 2016 03:27
Show Gist options
  • Save andreblue/bf22237c440c6a61abe3cd67f854fa92 to your computer and use it in GitHub Desktop.
Save andreblue/bf22237c440c6a61abe3cd67f854fa92 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 = [
"'netstat' Command",
"Run Box",
"Stopped Services",
"Foreign Address",
"Scan",
"One Time Charge",
"Life Time",
"Network Security",
"Secure Server",
"Command Prompt",
"'tree' Command",
"Event Viewer",
"Windows Key + R",
"Hackers",
"Russians",
"Anti Virus",
"Sys Key",
"Log Me In",
"Fire Wall",
"Warranty Expired",
"Infection",
"Not In India",
"Kevin",
"Edward",
"Virus", //25
"Spyware",
"IP",
"Tune Up",
"Protect",
"Tax",
"Generate A Code",
"Warnings",
"Engineer",
"What Do You See?",
"Notepad" //35
];
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