This commit is contained in:
2026-03-31 02:07:26 +09:00
parent ac8c534c9d
commit c8805bbe22
2 changed files with 11 additions and 4 deletions

View File

@@ -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 %}