Init google analytics

This commit is contained in:
bogo
2024-10-04 22:17:45 +02:00
parent 767f0d2476
commit 785a4b48e6
3 changed files with 21 additions and 2 deletions

View File

@@ -25,6 +25,17 @@
</style>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5M29D7J2B6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5M29D7J2B6');
</script>
<body class="bg-gray-100 font-sans">
<div class="max-w-4xl mx-auto p-6 bg-white shadow-md rounded-lg mt-10">
<h1 class="text-2xl font-bold mb-6 text-center text-gray-700">Steel Training</h1>

View File

@@ -103,7 +103,11 @@
{% if i==0 %}
<div class="mounting-info">{%trans%}ZERO point{%endtrans%} (El Presidente)</div>
{% else %}
<div class="mounting-info">{{ i * gap|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%} (El Presidente)</div>
<div class="mounting-info">{{ i * gap|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%}
{% if i > 1%}
{%trans%}or{%endtrans%} {{gap|round(1,'ceil')}}cm {%trans%}from previous marker{%endtrans%}
{% endif %}
(El Presidente)</div>
{% endif %}
<div class="mounting-point"></div>
</div>

View File

@@ -123,7 +123,11 @@
{% if i==0 %}
<div class="mounting-info">{%trans%}ZERO point{%endtrans%} (Shootoff)</div>
{% else %}
<div class="mounting-info">{{ i * gap|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%} (Shootoff)</div>
<div class="mounting-info">{{ (i * gap)|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%}
{% if i > 1%}
{%trans%}or{%endtrans%} {{gap|round(1,'ceil')}}cm {%trans%}from previous marker{%endtrans%}
{% endif %}
(Shootoff)</div>
{% endif %}
<div class="mounting-point"></div>
</div>