Keep news open for longer

This commit is contained in:
JonnyWong16 2020-12-27 14:53:33 -08:00
parent 33fc079318
commit 4975cad4fa
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -3105,7 +3105,7 @@ $(document).ready(function() {
if (news_item.subtitle) { content.append(subtitle); }
content.append(body);
var li = $('<li/>').append(header).append(content)
if (index === 0 && Math.abs(now.diff(date, 'days')) < 7) {
if (index === 0 && Math.abs(now.diff(date, 'days')) <= 30) {
li.addClass('open');
content.css('display', 'block');
}