mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
Merge pull request #33 from AlecM33/custom-role-saving
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 ++) {
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
</div>
|
||||
<footer id="footer">
|
||||
<div>
|
||||
<a href="http://vanilla-js.com/">
|
||||
<img src="../assets/images/vanilla_js.png">
|
||||
</a>
|
||||
<p>Created by Alec M.</p>
|
||||
<a href="https://github.com/AlecM33/Werewolf">Github</a>
|
||||
<a href="mailto:maier.144@osu.edu?Subject=Werewolf App Question" target="_top">Contact</a>
|
||||
|
||||
Reference in New Issue
Block a user