diff options
Diffstat (limited to 'src/app.html')
| -rw-r--r-- | src/app.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/app.html b/src/app.html index 8040c0b0..521b7730 100644 --- a/src/app.html +++ b/src/app.html @@ -82,10 +82,25 @@ <script> document.addEventListener('DOMContentLoaded', () => { const mai = document.getElementById('mai'); - const aoButa = JSON.parse(localStorage.getItem('settings')).displayAoButa; + let aoButa = JSON.parse(localStorage.getItem('settings')).displayAoButa; mai.style.display = 'block'; + if (aoButa === 'random') { + const random = Math.floor(Math.random() * 3); + switch (random) { + case 0: + aoButa = 'mai'; + break; + case 1: + aoButa = 'nodoka'; + break; + case 2: + aoButa = 'kaede'; + break; + } + } + switch (aoButa) { case 'mai': { |