Merge pull request #33 from AlecM33/custom-role-saving

alphabetize cards, link to vanilla-js
This commit is contained in:
Alec Maier
2020-04-15 00:41:20 -04:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -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 ++) {

View File

@@ -28,7 +28,9 @@
</div>
<footer id="footer">
<div>
<img src="../assets/images/vanilla_js.png">
<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>