-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
749ce15
commit 10cd9a4
Showing
21 changed files
with
362 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
resources/js/front-end/actions/counters/reset-ability-counters.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { oppContainersDocument, p1, selfContainersDocument, socket } from "../../front-end.js"; | ||
|
||
export const resetCounters = (received = false) => { | ||
selfContainersDocument.querySelectorAll('.self-tab, .opp-tab').forEach(element => { | ||
element.handleRemove(); | ||
}); | ||
oppContainersDocument.querySelectorAll('.self-tab, .opp-tab').forEach(element => { | ||
element.handleRemove(); | ||
}); | ||
if (!p1[0] && !received){ | ||
const data = { | ||
roomId : roomId, | ||
received: true | ||
}; | ||
socket.emit('resetCounters', data); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
resources/js/front-end/event-listeners/context-menu/general-buttons.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { moveToBoardButton, moveToBottomButton, moveToTopButton, sCard, shuffleIntoDeckButton, socket } from '../../front-end.js'; | ||
import { moveToBoard, moveToDeckBottom, moveToDeckTop, shuffleIntoDeck } from '../../actions/container/deck-actions.js'; | ||
import { moveToBoardButton, moveToBottomButton, moveToTopButton, shuffleIntoDeckButton, switchWithTopButton } from '../../front-end.js'; | ||
import { moveToBoard, moveToDeckBottom, moveToDeckTop, shuffleIntoDeck, switchWithDeckTop } from '../../actions/container/deck-actions.js'; | ||
|
||
moveToTopButton.addEventListener('click', moveToDeckTop); | ||
|
||
moveToBottomButton.addEventListener('click', moveToDeckBottom); | ||
|
||
switchWithTopButton.addEventListener('click', switchWithDeckTop); | ||
|
||
shuffleIntoDeckButton.addEventListener('click', shuffleIntoDeck); | ||
|
||
moveToBoardButton.addEventListener('click', moveToBoard); |
3 changes: 3 additions & 0 deletions
3
resources/js/front-end/event-listeners/p1-chatbox/chat-buttons.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
resources/js/front-end/event-listeners/table/containers-and-documents.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.