Skip to content

Commit

Permalink
feat: adicionado distinção de evento no alerts.html (#15)
Browse files Browse the repository at this point in the history
Adicionei só a distinção do evento no alerts.html, já que deixamos todos outros detalhes encaminhados.

Closes #3
  • Loading branch information
Limatucano committed Jan 25, 2022
1 parent be75da1 commit 3471bb8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/alerts.html
Expand Up @@ -67,13 +67,22 @@
});
});

socket.on('raided', (msg) => {
const raidBox = createAlertBox(`Obrigado pela raid <b>${msg.username}</b>, sejam todos bem vindos!`);

window.requestAnimationFrame(() => {
appendAlertWithAnimation(raidBox)
})
})

socket.on('cheer', function(msg) {
const cheerBox = createAlertBox(`Obrigado pelos ${msg.bits} bits ${msg.username}!!!`);

window.requestAnimationFrame(() => {
appendAlertWithAnimation(cheerBox)
});
});

</script>
</body>
</html>

0 comments on commit 3471bb8

Please sign in to comment.