Throttle silly animals to one change per minute
This commit is contained in:
parent
7afe9e6481
commit
adc533070d
|
@ -1014,7 +1014,7 @@ function getBackBlock() {
|
||||||
function getEmptyBlock() {
|
function getEmptyBlock() {
|
||||||
const icons = ['fa-dragon', 'fa-otter', 'fa-kiwi-bird', 'fa-crow', 'fa-frog'];
|
const icons = ['fa-dragon', 'fa-otter', 'fa-kiwi-bird', 'fa-crow', 'fa-frog'];
|
||||||
const texts = ['Here be dragons', 'Otterly empty', 'Kiwibunga', 'Pump-a-Rum', 'Croak it'];
|
const texts = ['Here be dragons', 'Otterly empty', 'Kiwibunga', 'Pump-a-Rum', 'Croak it'];
|
||||||
const roll = Math.floor(Math.random() * icons.length);
|
const roll = new Date().getMinutes() % icons.length;
|
||||||
const emptyBlock = `
|
const emptyBlock = `
|
||||||
<div class="empty_block">
|
<div class="empty_block">
|
||||||
<i class="fa-solid ${icons[roll]} fa-4x"></i>
|
<i class="fa-solid ${icons[roll]} fa-4x"></i>
|
||||||
|
|
Loading…
Reference in New Issue