--
This commit is contained in:
@@ -17,8 +17,9 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
(() => {
|
||||
const el = document.getElementById('version-text');
|
||||
if (!el) return;
|
||||
let tapCount = 0, tapTimer = null, lastTouch = 0;
|
||||
|
||||
function onTap() {
|
||||
@@ -30,7 +31,7 @@
|
||||
return;
|
||||
}
|
||||
clearTimeout(tapTimer);
|
||||
tapTimer = setTimeout(() => { tapCount = 0; }, 1000);
|
||||
tapTimer = setTimeout(() => { tapCount = 0; }, 600);
|
||||
}
|
||||
|
||||
el.addEventListener('touchend', (e) => {
|
||||
@@ -40,10 +41,10 @@
|
||||
}, { passive: false });
|
||||
|
||||
el.addEventListener('click', () => {
|
||||
if (Date.now() - lastTouch < 1000) return;
|
||||
if (Date.now() - lastTouch < 500) return;
|
||||
onTap();
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
Reference in New Issue
Block a user