mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-22 10:52:19 +00:00
use js for cabin event ping
This commit is contained in:
parent
f2feafa49b
commit
751eb9b03c
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
const emojiSpan = kudosButton.querySelector('.emoji');
|
||||
|
||||
kudosButton.addEventListener('click', () => {
|
||||
cabin.event('kudos')
|
||||
kudosButton.disabled = true;
|
||||
kudosButton.classList.add('clicked');
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
{{- if eq $reply true }}
|
||||
<hr>
|
||||
<div class="kudos-container">
|
||||
<button class="kudos-button" data-cabin-event="kudos">
|
||||
<button class="kudos-button">
|
||||
<span class="emoji">👍</span>
|
||||
</button>
|
||||
<span class="kudos-text">Enjoyed this?</span>
|
||||
|
|
Loading…
Reference in a new issue