更新
This commit is contained in:
parent
2ee1ac46c9
commit
b4dc952e1b
@ -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();
|
||||
|
2
assets/js/joe.global.min.js
vendored
2
assets/js/joe.global.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user