mirror of
https://github.com/AlecM33/Werewolf.git
synced 2026-01-01 16:59:29 +01:00
alphabetize cards, link to vanilla-js
This commit is contained in:
@@ -53,6 +53,9 @@ window.onload = function() {
|
||||
};
|
||||
|
||||
function renderAvailableCards() {
|
||||
cards.sort(function(a, b) {
|
||||
return a.role.toUpperCase().localeCompare(b.role);
|
||||
});
|
||||
document.getElementById("card-select").innerHTML = "";
|
||||
document.getElementById("roles").innerHTML = "";
|
||||
for (let i = 0; i < cards.length; i ++) {
|
||||
|
||||
Reference in New Issue
Block a user