Wydarzenie na Trible Click in JS
var clicks = 0
onclick:
clicks++;
setTimer(resetClicksToZero);
if clicks == 3: tripleclickdetected(); clicks = 0;
Lovely Lemur
var clicks = 0
onclick:
clicks++;
setTimer(resetClicksToZero);
if clicks == 3: tripleclickdetected(); clicks = 0;
window.addEventListener('click', function (evt) {
if (evt.detail === 3) {
alert('triple click!');
}
});