Füge Umami-Tracking für ausgewählte Gewinner hinzu
All checks were successful
Deploy via FTP / deploy (push) Successful in 3s
All checks were successful
Deploy via FTP / deploy (push) Successful in 3s
This commit is contained in:
@@ -71,6 +71,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||
if(epoch !== selectionEpoch) return;
|
||||
const el = els[0];
|
||||
el.classList.add('winner','pulse');
|
||||
if(typeof umami !== 'undefined') umami.track('winner-selected', { fingers: 1 });
|
||||
selecting = false;
|
||||
selectionDone = true;
|
||||
return;
|
||||
@@ -102,6 +103,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||
if(i===winnerIndex){ el.classList.remove('highlight'); el.classList.add('winner','pulse'); }
|
||||
else { el.classList.remove('highlight'); el.classList.add('lost'); }
|
||||
});
|
||||
if(typeof umami !== 'undefined') umami.track('winner-selected', { fingers: n });
|
||||
selecting = false;
|
||||
selectionDone = true;
|
||||
}, cumulative + 80);
|
||||
|
||||
Reference in New Issue
Block a user