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
+1 -31
View File
@@ -19,40 +19,10 @@
{% endblock %}
{% block content %}
<p class="text-small text-bold"><a href="/" class="text-no-decoration">← ホーム</a></p>
<p id="version-text" class="text-highlight big-text"><span class="text-lowlight unselectable">#</span>{{ server_version }}</p>
<p class="text-highlight big-text"><span class="text-lowlight unselectable">#</span>{{ server_version }}</p>
<div class="block">
<p>このサーバーで現在使用されているソースコードのコミットID(ハッシュ)の先頭7文字です。</p>
<p>サーバーが起動されるたびに<span class="code">git rev-parse --short HEAD</span>を使用して取得しています。</p>
<p>詳しくは<a href="https://gitea.nercone.dev/nercone-dev/website/">このサーバーのソースコード</a></p>
</div>
<script>
(() => {
const el = document.getElementById('version-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 %}