Skip to content

Commit

Permalink
adding card visualization and updating the deck
Browse files Browse the repository at this point in the history
  • Loading branch information
jon committed Jul 26, 2024
1 parent f132438 commit 056e482
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 110 deletions.
105 changes: 57 additions & 48 deletions assets/dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,31 @@ var arraybluecard = new Array(
"Coordinated Inauthentic __",
"__ , that's why I drink",
"Well, actually, the real solution is __",
"Using Virtual Reality to solve __",
"Hostile environment training for __",
"Every single domain in the .zip TLD serves __",
"Using Generative AI to replace __",
"Dual-use surveillance technology exports are being legitimized by __",
"My digital security trainings now only cover __",
//IF Dictionary
"Dual-use surveillance technology exports are being legitimized by __",
"USG funded __",
"We need rapid-response capabilities to mitigate __",
"According to Freedom on the Net, this is the 10th consecutive year of worsening __",
"My digital security trainings now only cover __",
"__ resolved internet freedom issues in my country",
"Peer to peer __ for marginalized groups",
"The only source of pure tech funding is from __",
"A venture capital styled approach for __",
"__ - definitely the best way to get a cost extension",
"__ enabled __ is big with donors this year",
"overworked, underpaid, and looking for __",
"__ in a suitcase"
"USG funded __",
"We need rapid-response capabilities to mitigate __",
"According to Freedom on the Net, this is the 10th consecutive year of worsening __",
"__ resolved internet freedom issues in my country",
"Peer to peer __ for marginalized groups",
"Confirmed. __ has shut down the Internet nationwide.",
"The only source of pure tech funding is from __",
"Our code of conduct now requires explicit trigger warnings for __ ",
"A venture capital styled approach for __",
"__ - definitely the best way to get a cost extension",
"__ enabled __ is big with donors this year",
"Overworked, underpaid, and looking to find __",
"__ in a suitcase",
"Putting people directly in harms' way using __"
//"Using Virtual Reality to solve __",
//"The next branded vulnerability will break __",
//"We're launching a next-generation anti-virus solution for __",
// "It's like __ but for __",
//"The next Russian APT group will be named __ Bear",
//"The USGov is now providing a venture capital styled funding approach for __",
//"Mesh-enabled __",
);

Expand Down Expand Up @@ -82,7 +84,6 @@ var arrayredcard = new Array(
"'use Signal, use tor'",
"troll farms",
"RFC 2549 compliant encrypted carrier-pigeons",
"Fancy Bear",
"correct horse battery staple (xkcd.com/936)",
"Flash as a hard requirement",
"the 'dark web'",
Expand All @@ -98,7 +99,6 @@ var arrayredcard = new Array(
"tinfoil hats",
"offshore data havens in dubious jurisdictions",
"Rubber-hose cryptoanalysis",
"Project Zero's issue queue",
"sexting",
"ignoring an email from the only legitimate Nigerian official",
"smart devices with dumb passwords",
Expand All @@ -111,7 +111,6 @@ var arrayredcard = new Array(
"a critical, open, 21-year old usability bug marked #wontfix",
"entry/exit policies that don't cover social media accounts",
"measuring expertise by the number of cybers per page",
"crypto - but in reference to cryptocurrency",
"hacking back",
"rockstars",
"The NSA",
Expand All @@ -124,46 +123,56 @@ var arrayredcard = new Array(
"being able to drunk-type a high-entropy passphrase",
"NFT rug-pulls",
"metaverse griefers",
"Using buggy javascript to define contracts for DAOs",
"self-doxxing",
"dumpster fires",
"a SCIF",
"right-click, save-as",
"accidentally viewing source with F12",
"centralized shitcoin scams masquerading as decentralization",
"some copies of SIMS 3",
"X5O! P%@AP[4\PZX54( P^ )7CC )7} $EICAR- STANDARD- ANTIVIRUS- TEST- FILE! $H+H*",
"some copies of SIMS 3", // https://www.vice.com/en/article/88gpmg/russia-sims-3
"X5O!P%@AP [4\PZXS4(P^)7CC)7} $EICAR-STANDARD-ANTIVIRUS- TEST-FILE! $H+H*",
"Generative AI hallucinations",
"dumpster fires",
"Shrimp Jesus", // https://www.404media.co/email/1cdf7620-2e2f-4450-9cd9-e041f4f0c27f/
"cryptobros neglecting opsec",
"all my apes, gone",
"an A/C PRIV designation of dubious provenance",
//IF Dictionary
"cyber-nefarious countries",
"zero-rated services accidentally providing open proxies",
"rejecting government funding in favor of corporate funding",
"1-page copypasta risk assessments",
"circumventing censorship but not surveillance",
"yet another digital security training/guide/curricula",
"the eternal confusion between a guide and a curricula",
"freedom of expression",
"Internet shutdowns",
"diaspora communities",
"vulnerable populations",
"Meetings at Casey's Coffee",
"internet freedom grant proposals",
"taking the grant money and running",
"Unpaid internships at a social justice NGO",
"ADIDS",
"Trainings of trainers of trainers of trainers of trainers",
"Finding local high risk partners through public social media posts",
"accepting the risk on behalf of the beneficiary",
"a definitely winnable - but absolutely unsafe to implement grant proposal",
"Glitter",
"Actually doing the fucking work",
"Qubes",
"Post-it notes",
"Cuban p2p mesh twitter"
"Actually doing the fucking work",
"freedom of expression",
"1-page copypasta risk assessments",
"ignore all previous instructions",
"Shallow defense in depth",
"IOCs released only in PDF tables",
//"Project Zero's issue queue",
// "crypto - but in reference to cryptocurrency",
// "Using buggy javascript to define contracts for DAOs",
// IF Dictionary
"cyber-nefarious countries",
"zero-rated services accidentally providing open proxies",
"Internet shutdowns",
"circumventing censorship but not surveillance",
"prioritizing mesh network nodes over human lives",
"anti-censorship tools that add censorship",
"yet another digital security training/guide/curricula",
"the eternal confusion between a guide and a curricula",
"diaspora communities",
"Meetings at Casey's Coffee",
"An obscure provision of 2 CFR §200",
"internet freedom grant proposals",
"taking the grant money and running",
"rejecting government funding in favor of corporate funding",
"a definitely winnable - but absolutely unsafe to implement grant proposal",
"Unpaid internships at a social justice NGO",
"ADIDS",
"Trainings of trainers of trainers of trainers of trainers",
"accepting the risk on behalf of the beneficiary",
"Glitter",
"the year of Qubes on the desktop",
"Post-it notes",
"tool-shaming",
"Satellite based solutions",
"smashing buzzwords together until you hit the proposal page limit"
);
//"Fancy Bear",
//"Linux on the desktop",
//"getting @'d by taviso on Friday",
//"the Morris Worm",
Expand Down
76 changes: 38 additions & 38 deletions assets/ifdictionary.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
var arrayifredcard = new Array(
"Dual-use surveillance technology exports are being legitimized by __",
"USG funded __",
"We need rapid-response capabilities to mitigate __",
"According to Freedom on the Net, this is the 10th consecutive year of worsening __",
"My digital security trainings now only cover __",
"__ resolved internet freedom issues in my country",
"Peer to peer __ for marginalized groups",
"The only source of pure tech funding is from __"
"A venture capital styled approach for __",
"__ - definitely the best way to get a cost extension",
"__ enabled __ is big with donors this year",
"overworked, underpaid, and looking for __",
"__ in a suitcase"
"USG funded __",
"We need rapid-response capabilities to mitigate __",
"According to Freedom on the Net, this is the 10th consecutive year of worsening __",
"__ resolved internet freedom issues in my country",
"Peer to peer __ for marginalized groups",
"The only source of pure tech funding is from __",
"Our code of conduct now requires explicit trigger warnings for __ ",
"A venture capital styled approach for __",
"__ - definitely the best way to get a cost extension",
"__ enabled __ is big with donors this year",
"Overworked, underpaid, and looking to find __",
"__ in a suitcase",
"Putting people directly in harms' way using __"
);

var arrayifwhitecard = new Array(
"cyber-nefarious countries",
"zero-rated services accidentally providing open proxies",
"rejecting government funding in favor of corporate funding",
"1-page copypasta risk assessments",
"circumventing censorship but not surveillance",
"yet another digital security training/guide/curricula",
"the eternal confusion between a guide and a curricula",
"freedom of expression",
"Internet shutdowns",
"diaspora communities",
"vulnerable populations",
"Meetings at Casey's Coffee",
"internet freedom grant proposals",
"taking the grant money and running",
"Unpaid internships at a social justice NGO",
"ADIDS",
"Trainings of trainers of trainers of trainers of trainers",
"Finding local high risk partners through public social media posts",
"accepting the risk on behalf of the beneficiary",
"a definitely winnable - but absolutely unsafe to implement grant proposal",
"Glitter",
"Actually doing the fucking work",
"Qubes",
"Post-it notes",
"Cuban p2p mesh twitter"
"Glitter",
"zero-rated services accidentally providing open proxies",
"Internet shutdowns",
"circumventing censorship but not surveillance",
"prioritizing mesh network nodes over human lives",
"anti-censorship tools that add censorship",
"yet another digital security training/guide/curricula",
"the eternal confusion between a guide and a curricula",
"diaspora communities",
"Meetings at Casey's Coffee",
"An obscure provision of 2 CFR §200",
"internet freedom grant proposals",
"taking the grant money and running",
"rejecting government funding in favor of corporate funding",
"a definitely winnable - but absolutely unsafe to implement grant proposal",
"Unpaid internships at a social justice NGO",
"ADIDS",
"Trainings of trainers of trainers of trainers of trainers",
"accepting the risk on behalf of the beneficiary",
"Glitter",
"the year of Qubes on the desktop",
"Post-it notes",
"tool-shaming",
"Satellite based solutions",
"smashing buzzwords together until you hit the proposal page limit"
);

arraywow = new Array (
Expand Down
Binary file added images/key-redblue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 59 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,37 @@ <h2>Is this another fork of that <em>other</em> card game?</h2>
<header class="major">
<h2>Test Drive</h2>
</header>
<a href="https://decks.rereadgames.com/decks/06QRZ" class="button" style="background-color: #C2113A; color: white !important; font-weight: bold;">Play online!</a>
<p>Head over to <a href="https://md.rereadgames.com/#new">Massive Decks</a> and use Deck Code <a href="https://decks.rereadgames.com/decks/06QRZ">06QRZ</a>. You, uh, have to have at least 2 other friends tho</p>
<div align="center"><form name="frmTest" onsubmit="return false">
<h2 align="center" style="font-size: 2em !important; font-weight: bold;" id="innovation"></h2>
<div align="center">
<form name="frmTest" onsubmit="return false">

<input type="BUTTON" value="Show me cards!" id="button" onclick="getResult();" style="background-color: #C2113A; color: white !important; font-weight: bold; ">

<input type="BUTTON" value="" id="buttonwhite" onclick="getnewred();" style="display: none;">
<br /> <br />

<!-- <a style="visibility: hidden; background-color: #0084b4; color: white !important; " class="button" href="" id="tweetit"><i class="fa fa-twitter" aria-hidden="true"></i> Tweet it</a>
-->


<input type="BUTTON" value="Show me random cards instead" id="button" onclick="getResult();" style="background-color: #C2113A; color: white !important; font-weight: bold; "> <br /> <br />
<h2 align="center" style="font-size: 2em !important; font-weight: bold;" id="innovation"></h2>

<input type="BUTTON" value="" id="buttonwhite" onclick="getnewred();" style="visibility: hidden;">
<div style="position: relative; width: 100%; min-width: 700px; min-height: 500px; padding-top: 5%; ">
<div style="box-sizing: border-box; position: absolute; left: 20%; width: 300px; height: 400px; background: #FFFFFF; background-image: url(images/key-redblue.png); border: 5px solid #000099; border-radius: 15px; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5); transform: rotate(-16deg);">
<p id="visbluecard" align="center" style="padding: 45% 5% 5% 5%; font-size: 1.25em !important; line-height: 1em; font-weight: bold;"><br /><br /></div>

<a style="visibility: hidden; background-color: #0084b4; color: white !important; " class="button" href="" id="tweetit"><i class="fa fa-twitter" aria-hidden="true"></i> Tweet it</a>
<div style="box-sizing: border-box; position: absolute; top: 5%; left: 50%; width: 300px; height: 400px; background: #FFFFFF; background-image: url(images/key-redblue.png); border: 5px solid #C2113A; border-radius: 15px; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5); transform: rotate(10deg);">
<p id="visredcard1" align="center" style="padding: 45% 5% 5% 5%; font-size: 1.25em !important; line-height: 1em; font-weight: bold;"><br /><br /></p>
</div>

<div id="redcard2box" style="visibility: hidden; box-sizing: border-box; position: absolute; left: 75%; width: 300px; height: 400px; background: #FFFFFF; background-image: url(images/key-redblue.png); border: 5px solid #C2113A; border-radius: 15px; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5); transform: rotate(18deg);">
<p id="visredcard2" align="center" style="padding: 45% 5% 5% 5%; font-size: 1.25em !important; line-height: 1em; font-weight: bold;"> </p>
</div>
</div>
</form>

<a href="https://decks.rereadgames.com/decks/06QRZ" class="button" style="background-color: #C2113A; color: white !important; font-weight: bold;">Play online!</a>
<p>Head over to <a href="https://md.rereadgames.com/#new">Massive Decks</a> and use Deck Code <a href="https://decks.rereadgames.com/decks/06QRZ">06QRZ</a>. You, uh, have to have at least 2 other friends tho</p>

<p>Like it?</p>
<ul class="actions">

Expand Down Expand Up @@ -346,31 +364,42 @@ <h2>Contact us!</h2>
return Math.random();
}

function getResult(bluered)
{
indexbluecard = Math.floor(safeRand() * maxbluecard);
function getResult() {
document.getElementById("redcard2box").style.visibility = "hidden";

indexwow = Math.floor(Math.random() * maxwow);
indexredcard = Math.floor(safeRand() * maxredcard);

indexbluecard = Math.floor(safeRand() * maxbluecard);
bluecard = arraybluecard[indexbluecard];

bluered = bluecard.replace("__", "<u id=\"redcard1\">" + arrayredcard[indexredcard] + "</u>");
indexredcard = Math.floor(safeRand() * maxredcard);
redcard1 = arrayredcard[indexredcard];

indexredcard2 = Math.round(Math.random() * maxredcard);
redcard2 = arrayredcard[indexredcard2];

indexredcard2 = Math.round(Math.random() * maxredcard);
if (bluecard.match(/__.*__/)) {
document.getElementById("redcard2box").style.visibility = "visible";
}

bluered = bluered.replace("__", "<u id=\"redcard2\">" + arrayredcard[indexredcard2] + "</u>");
bluered = bluecard.replace("__", "<u id=\"textredcard1\">" + redcard1 + "</u>");

bluered = bluered.replace("__", "<u id=\"textredcard2\">" + redcard2 + "</u>");
blueredtweet = bluered.replace(/<[^>]+>/g, '_');

tweeturl = "https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fmalicious-content.com&ref_src=twsrc%5Etfw&text=\"" + blueredtweet + "\"&tw_p=tweetbutton&via=malic_content";
// alert (indexbluecard + ", " + indexredcard);
// document.getElementById("announce").innerHTML = arraywow[indexwow] + ":";
document.getElementById("innovation").innerHTML = bluered;
document.getElementById("visbluecard").innerHTML = bluecard;
document.getElementById("visredcard1").innerHTML = redcard1;
document.getElementById("visredcard2").innerHTML = redcard2;
document.getElementById("button").value = "Again!";
document.getElementById("buttonwhite").value = "Swap Answer?";
document.getElementById("buttonwhite").style.visibility = "visible";
document.getElementById("tweetit").style.visibility = "visible";
document.getElementById("buttonwhite").style.display = "inline";

document.getElementById("tweetit").href = tweeturl;
// fuck elon document.getElementById("tweetit").style.visibility = "visible";
// document.getElementById("tweetit").href = tweeturl;

}

Expand All @@ -384,17 +413,23 @@ <h2>Contact us!</h2>
indexredcard3 = Math.floor(Math.random() * maxredcard);
indexwow = Math.floor(Math.random() * maxwow);
newred = arrayredcard[indexredcard];
newred2 = arrayredcard[indexredcard2];
newred2 = arrayredcard[indexredcard2];
var newbluered = document.getElementById("innovation").innerHTML;
newred2 = "_" + newred2 + "_";
newblueredtweet = newbluered.replace(/<.*>/g, );

tweeturl = "https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fmalicious-content.com&ref_src=twsrc%5Etfw&text=\"" + newblueredtweet + "\"&tw_p=tweetbutton&via=malic_content";
document.getElementById("tweetit").href = tweeturl;
// newred2 = "_" + newred2 + "_";
// newblueredtweet = newbluered.replace(/<.*>/g, );
// tweeturl = "https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fmalicious-content.com&ref_src=twsrc%5Etfw&text=\"" + newblueredtweet + "\"&tw_p=tweetbutton&via=malic_content";
// document.getElementById("tweetit").href = tweeturl;

// document.getElementById("announce").innerHTML = arraywow[indexwow] + ":";
document.getElementById("redcard1").innerHTML = newred;
document.getElementById("redcard2").innerHTML = newred2;
document.getElementById("visredcard1").innerHTML = newred;
document.getElementById("textredcard1").innerHTML = newred;

if (!!document.getElementById("textredcard2")) {
document.getElementById("visredcard2").innerHTML = newred2;
document.getElementById("textredcard2").innerHTML = newred2;
}

document.getElementById("button").value = "Play Again!";
document.getElementById("buttonwhite").value = "Swap Answer?";
}
Expand Down

0 comments on commit 056e482

Please sign in to comment.