--
This commit is contained in:
@@ -16,10 +16,27 @@
|
||||
font-size: 48pt;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const el = document.getElementById('version-text');
|
||||
let tapCount = 0, tapTimer = null;
|
||||
el.addEventListener('click', () => {
|
||||
tapCount++;
|
||||
if (tapCount === 3) {
|
||||
clearTimeout(tapTimer);
|
||||
tapCount = 0;
|
||||
location.href = '/qr-code/';
|
||||
return;
|
||||
}
|
||||
clearTimeout(tapTimer);
|
||||
tapTimer = setTimeout(() => { tapCount = 0; }, 1000);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<p class="text-small text-bold"><a href="/" class="text-no-decoration">← ホーム</a></p>
|
||||
<p class="text-highlight big-text"><span class="text-lowlight unselectable">#</span>{{ server_version }}</p>
|
||||
<p id="version-text" 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>
|
||||
|
||||
Reference in New Issue
Block a user