Skip to content

Commit

Permalink
Add characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Aug 11, 2019
1 parent 918af1f commit fe99024
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 4 deletions.
64 changes: 63 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,70 @@
</thead>
<tbody>
<tr>
<td></td>
<td><input type="checkbox"/>Edelgard</td>
<td><input type="checkbox"/>Dimitri</td>
<td><input type="checkbox"/>Claude</td>
<td><input type="checkbox"/>Manuela</td>
</tr>
<tr>
<td><input type="checkbox"/>Hubert</td>
<td><input type="checkbox"/>Dedue</td>
<td><input type="checkbox"/>Hilda</td>
<td><input type="checkbox"/>Hanneman</td>
</tr>
<tr>
<td><input type="checkbox"/>Dorothea</td>
<td><input type="checkbox"/>Felix</td>
<td><input type="checkbox"/>Lorenz</td>
<td><input type="checkbox"/>Catherine</td>
</tr>
<tr>
<td><input type="checkbox"/>Ferdinand</td>
<td><input type="checkbox"/>Mercedes</td>
<td><input type="checkbox"/>Raphael</td>
<td><input type="checkbox"/>Alois</td>
</tr>
<tr>
<td><input type="checkbox"/>Bernadetta</td>
<td><input type="checkbox"/>Ashe</td>
<td><input type="checkbox"/>Lysithea</td>
<td><input type="checkbox"/>Seteth</td>
</tr>
<tr>
<td><input type="checkbox"/>Caspar</td>
<td><input type="checkbox"/>Annette</td>
<td><input type="checkbox"/>Ignatz</td>
<td><input type="checkbox"/>Flayn</td>
</tr>
<tr>
<td><input type="checkbox"/>Petra</td>
<td><input type="checkbox"/>Sylvain</td>
<td><input type="checkbox"/>Marianne</td>
<td><input type="checkbox"/>Gilbert</td>
</tr>
<tr>
<td><input type="checkbox"/>Linhardt</td>
<td><input type="checkbox"/>Ingrid</td>
<td><input type="checkbox"/>Leonie</td>
<td><input type="checkbox"/>Shamir</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td><input type="checkbox"/>Cyril</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td><input type="checkbox"/>Rhea</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td><input type="checkbox"/>Sothis</td>
</tr>
</tbody>
</table>
Expand Down
39 changes: 36 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
class Character {
constructor(image, houseName) {
this.image = image;
constructor(houseName) {
this.houseName = houseName;
}
}

let allCharacters = new Map([
["Bernadetta", new Character("img/Bernadetta.png", "Blue Lions")]
["Edelgard", new Character("Black Eagles")],
["Hubert", new Character("Black Eagles")],
["Dorothea", new Character("Black Eagles")],
["Ferdinand", new Character("Black Eagles")],
["Bernadetta", new Character("Black Eagles")],
["Caspar", new Character("Black Eagles")],
["Petra", new Character("Black Eagles")],
["Linhardt", new Character("Black Eagles")],
["Dimitri", new Character("Blue Lions")],
["Dedue", new Character("Blue Lions")],
["Felix", new Character("Blue Lions")],
["Mercedes", new Character("Blue Lions")],
["Ashe", new Character("Blue Lions")],
["Annette", new Character("Blue Lions")],
["Sylvain", new Character("Blue Lions")],
["Ingrid", new Character("Blue Lions")],
["Claude", new Character("Golden Deer")],
["Hilda", new Character("Golden Deer")],
["Lorenz", new Character("Golden Deer")],
["Raphael", new Character("Golden Deer")],
["Lysethia", new Character("Golden Deer")],
["Ignatz", new Character("Golden Deer")],
["Marianne", new Character("Golden Deer")],
["Leonie", new Character("Golden Deer")],
["Manuela", new Character("Others")],
["Hanneman", new Character("Others")],
["Catherine", new Character("Others")],
["Alois", new Character("Others")],
["Seteth", new Character("Others")],
["Flayn", new Character("Others")],
["Gilbert", new Character("Others")],
["Shamir", new Character("Others")],
["Cyril", new Character("Others")],
["Rhea", new Character("Others")],
["Sothis", new Character("Others")]
])

function process() {
Expand Down

0 comments on commit fe99024

Please sign in to comment.