-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathothercode.js
36 lines (32 loc) · 1.23 KB
/
othercode.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// // index.js
// const shortenButton = document.querySelector("#show-short")
// shortenButton.addEventListener("click", Member.short)
// //index.js
// const cancelCharButt = () => {
// let actorsContainer = document.getElementById("actor-container")
// actorsContainer.innerHTML = ""
// Member.fetchMembers()
// document.querySelector("#new-char-form-cont").classList.toggle("hidden-char-form")
// }
//member.js
// static short = () => {
// let actorsContainer = document.getElementById("actor-container")
// actorsContainer.innerHTML = ""
// fetch(memberURL)
// .then(resp => resp.json())
// .then(json => {
// json.forEach(player => {
// let mem = new Member(player.id, player.first, player.last, player.joined, player.left, player.image, player.characters)
// console.log(mem)
// if (mem.last.length <= 5) {
// mem.renderMember()
// }
// })
// })}
// add-a-character button
// let addCharButton = document.querySelector("#addCharacter")
// addCharButton.addEventListener("click", () => {
// console.log("show that char button!")
// debugger
// Character.newCharacter(charID)
// })