Skip to content

Commit

Permalink
stored result in core_elements
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Jun 4, 2024
1 parent 30b5b79 commit 5240897
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -164,5 +164,8 @@ function repo_init(){
},
'storage-menu': '<table><tr><td><input class=mini id=repeat min=1 step=any type=number><td>Repeat</table>',
'title': 'RockPaperScissors.htm',
'ui-elements': [
'results',
],
});
}

0 comments on commit 5240897

Please sign in to comment.