From 4670666421e87a9fde649dfd8223f13daee8e290 Mon Sep 17 00:00:00 2001 From: Martin Tazl Date: Tue, 7 Jul 2026 16:20:27 +0200 Subject: [PATCH] Restore diameter result and uncertainty display --- access_log.json | 7 +++++++ templates/roll_calculator.html | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/access_log.json b/access_log.json index 9a43159..2c39a17 100644 --- a/access_log.json +++ b/access_log.json @@ -635,5 +635,12 @@ "endpoint": "/", "method": "GET", "status": 200 + }, + { + "timestamp": "2026-07-07T16:19:41.488752", + "username": "mtazl", + "endpoint": "/", + "method": "GET", + "status": 200 } ] \ No newline at end of file diff --git a/templates/roll_calculator.html b/templates/roll_calculator.html index 494bf00..e67b01c 100644 --- a/templates/roll_calculator.html +++ b/templates/roll_calculator.html @@ -1006,8 +1006,8 @@ document.getElementById('d-calc').addEventListener('click', () => { const aw = parseFloat(document.getElementById('d-aw').value) || 0; const L_final = parseFloat(document.getElementById('d-le').value) || 0; if (wi > 0 && aw > 0 && L_final > 0) { - const weight = (aw * L_final * wi / 1000).toFixed(1); - document.getElementById('d-wo').value = weight; + const weight = aw * L_final * wi / 1000; + document.getElementById('d-wo').value = weight.toFixed(1); checkForklift(weight, d, category); } else { document.getElementById('forkliftCheck').classList.remove('show');