From 52408973dffda327895b1050e6539875a0e0a4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ho=C5=99ava?= Date: Tue, 4 Jun 2024 07:29:45 -0700 Subject: [PATCH] stored result in core_elements --- repo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repo.js b/repo.js index 4359056..a1e9581 100644 --- a/repo.js +++ b/repo.js @@ -88,7 +88,7 @@ function play(selected){ scissors += 'ties) ' + percent(results[2], core_storage_data['repeat']); } - document.getElementById('results').innerHTML = 'You played ' + core_elements['results'].innerHTML = 'You played ' + selected + ' ' + core_number_format({ 'decimals-min': 0, @@ -164,5 +164,8 @@ function repo_init(){ }, 'storage-menu': '
Repeat
', 'title': 'RockPaperScissors.htm', + 'ui-elements': [ + 'results', + ], }); }