This commit is contained in:
杜恒 2021-04-14 13:50:58 +08:00
parent 2ee1ac46c9
commit b4dc952e1b
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ document.addEventListener('DOMContentLoaded', () => {
return Math.floor(Math.random() * (max - min + 1)) + min;
};
const toggle = () => {
$('.joe_aside__item.flatterer .content').html(arr[Math.floor(Math.random() * arr.length)].replace(/\*\*(.*?)\*\*/g, '<mark>$1</mark>'));
$('.joe_aside__item.flatterer .content').html(arr[random(0, arr.length - 1)].replace(/\*\*(.*?)\*\*/g, '<mark>$1</mark>'));
$('.joe_aside__item.flatterer .content').attr('class', 'content type' + random(1, 6));
};
toggle();

File diff suppressed because one or more lines are too long