This commit is contained in:
2026-04-13 21:57:31 +09:00
parent 9eb12d9117
commit 5e92d1a8b1
3 changed files with 36 additions and 36 deletions
+32 -2
View File
@@ -7,7 +7,7 @@
flex: 1;
display: flex;
}
.aaaa {
.inner {
flex: 1;
display: flex;
align-items: center;
@@ -29,10 +29,40 @@
</style>
{% endblock %}
{% block content %}
<div class="aaaa">
<div class="inner">
<div class="flex-vertical">
<p class="text-highlight big-text" style="padding-bottom: 0px; margin-bottom: 0px; text-box: trim-both cap alphabetic;">NERCONE</p>
<p class="text-bold" style="padding-top: 0px; margin-top: 0px; text-box: trim-both cap alphabetic;">ようこそ・Welcome・<span class="text-sc">欢迎</span><span class="text-tc">歡迎</span><span class="text-kr">환영해요</span></p>
</div>
</div>
<script>
(() => {
const el = document.getElementsByClassName('big-text');
if (!el) return;
let tapCount = 0, tapTimer = null, lastTouch = 0;
function onTap() {
tapCount++;
if (tapCount >= 3) {
clearTimeout(tapTimer);
tapCount = 0;
location.href = '/qr-code/';
return;
}
clearTimeout(tapTimer);
tapTimer = setTimeout(() => { tapCount = 0; }, 600);
}
el.addEventListener('touchend', (e) => {
e.preventDefault();
lastTouch = Date.now();
onTap();
}, { passive: false });
el.addEventListener('click', () => {
if (Date.now() - lastTouch < 500) return;
onTap();
});
})();
</script>
{% endblock %}