Skip to content

Commit

Permalink
Pin messages sent by attendees (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
haruncurak authored Nov 23, 2023
1 parent 92eafa9 commit 3712efc
Show file tree
Hide file tree
Showing 14 changed files with 949 additions and 1,570 deletions.
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
erlang 26.1.2
elixir 1.15.7-otp-26
7 changes: 7 additions & 0 deletions assets/js/presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,19 @@ export class Presenter {
if (data.value) {
document.getElementById("post-list").classList.remove("animate__animated", "animate__fadeOutLeft")
document.getElementById("post-list").classList.add("animate__animated", "animate__fadeInLeft")

document.getElementById("pinned-post-list").classList.remove("animate__animated", "animate__fadeOutLeft")
document.getElementById("pinned-post-list").classList.add("animate__animated", "animate__fadeInLeft")
} else {
document.getElementById("post-list").classList.remove("animate__animated", "animate__fadeInLeft")
document.getElementById("post-list").classList.add("animate__animated", "animate__fadeOutLeft")

document.getElementById("pinned-post-list").classList.remove("animate__animated", "animate__fadeInLeft")
document.getElementById("pinned-post-list").classList.add("animate__animated", "animate__fadeOutLeft")
}
})


this.context.handleEvent('poll-visible', data => {
if (data.value) {
document.getElementById("poll").classList.remove("animate__animated", "animate__fadeOut")
Expand Down
Loading

0 comments on commit 3712efc

Please sign in to comment.