From d548ae2ea0b9d23f9698ae0236ab22f2b65fde0c Mon Sep 17 00:00:00 2001 From: Arindy Date: Mon, 10 Feb 2025 01:51:18 +0100 Subject: [PATCH] moves latest result to top --- src/main/resources/templates/results.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/templates/results.html b/src/main/resources/templates/results.html index 03b02d5..eb137f2 100644 --- a/src/main/resources/templates/results.html +++ b/src/main/resources/templates/results.html @@ -32,7 +32,7 @@ } node.innerHTML = '' + data.name + ': 🎲 ' + resultText name.appendChild(node) - document.getElementById('results').appendChild(name); + document.getElementById('results').insertBefore(name, document.getElementById('results').firstChild); })