home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7faae7c
)
Fix color setting bug.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 1 Dec 2020 05:37:47 +0000
(06:37 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 1 Dec 2020 05:37:47 +0000
(06:37 +0100)
rogue_chat.html
patch
|
blob
|
history
diff --git
a/rogue_chat.html
b/rogue_chat.html
index 17747ff55462b67c66337727ad51d67d02f55b2e..0a70962a0d72e30218980101b90ecea16736789d 100644
(file)
--- a/
rogue_chat.html
+++ b/
rogue_chat.html
@@
-286,7
+286,7
@@
let terminal = {
},
set_random_colors: function() {
function rand(offset) {
- return Math.floor(offset + Math.random() * 96).toString(16);
+ return Math.floor(offset + Math.random() * 96).toString(16)
.padStart(2, '0')
;
}
this.foreground = '#' + rand(159) + rand(159) + rand(159);
this.background = '#' + rand(0) + rand(0) + rand(0);