I have an ontouchstart
event triggered on my mobile view, its linked to this:
function mobileLinksShow() {
document.querySelector(\'.mobile-head
You can write it this way:
var called = false;
function mobileLinksShow() {
if(!called)
document.querySelector('.mobile-head-bar-links').classList.toggle('mobile-head-bar-links-transition');
called = true;
}
}
But: If you use this code, the function can only be called once, even if you click the span twice.