Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

French version of the Core v2.2 + Expansion Deck #3

Open
wants to merge 7 commits into
base: ICS-OT-V1.1
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update deck-script.js
Fa-Brice committed Jul 5, 2024
commit 4784445a5d25c16abf08b72445075a99e720cf9b
53 changes: 29 additions & 24 deletions play.backdoorsandbreaches.com-Engine-V1/App/deck-script.js
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ function opendeckselector() {
{
cardlist = "decks/DenSecure/carddb.json";
}
if (selecteddeck == "Trimarc")
if(selecteddeck == "Trimarc")
{
cardlist = "decks/Trimarc/carddb.json";
}
@@ -85,30 +85,35 @@ function opendeckselector() {
if (selecteddeck == "French")
{
cardlist = "decks/French/carddb.json";
}

let result = $.getJSON(cardlist, function(h) {
$(a).html("<img class='full' src='"+h.red+"'>");
$(b).html("<img class='full' src='"+h.yellow+"'>");
$(c).html("<img class='full' src='"+h.brown+"'>");
$(d).html("<img class='full' src='"+h.purple+"'>");

$(inita).html("<img src='"+h.red+"'>");
$(initb).html("<img src='"+h.yellow+"'>");
$(initc).html("<img src='"+h.brown+"'>");
$(initd).html("<img src='"+h.purple+"'>");

$(e).html("<img style='width:200px;' src='"+h.grey+"'>");
}
try{
let result = $.getJSON(cardlist, function(h) {
$(a).html("<img class='full' src='"+h.red+"'>");
$(b).html("<img class='full' src='"+h.yellow+"'>");
$(c).html("<img class='full' src='"+h.brown+"'>");
$(d).html("<img class='full' src='"+h.purple+"'>");

//Update Consultant image
$(f).html('<img style="width:200px;" src="' + h.green +'">');

//update logo
$(copyright).html("<a target='_blank' href='https://www.blackhillsinfosec.com/projects/backdoorsandbreaches'><div id='bb'></div></a><a target='_blank' href='https://www.blackhillsinfosec.com/'><div id='bh'></div></a><a target='_blank' href='"+h.link+"'><div class='sponsor' style=' background-image: url("+h.logo+");'></div></a>");

cardData = h; //set cardData to equal the JSON, so we simply reference memory rather than download again
});
await result;
$(inita).html("<img src='"+h.red+"'>");
$(initb).html("<img src='"+h.yellow+"'>");
$(initc).html("<img src='"+h.brown+"'>");
$(initd).html("<img src='"+h.purple+"'>");

$(e).html("<img style='width:200px;' src='"+h.grey+"'>");

//Update Consultant image
$(f).html('<img style="width:200px;" src="' + h.green +'">');

//update logo
$(copyright).html("<a target='_blank' href='https://www.blackhillsinfosec.com/projects/backdoorsandbreaches'><div id='bb'></div></a><a target='_blank' href='https://www.blackhillsinfosec.com/'><div id='bh'></div></a><a target='_blank' href='"+h.link+"'><div class='sponsor' style=' background-image: url("+h.logo+");'></div></a>");

cardData = h; //set cardData to equal the JSON, so we simply reference memory rather than download again
});
await result;
}
catch(error)
{
console.log(error);
}