in themes/solr/static/javascript/main.js [28:49]
$(function() {
$('h2').addClass('offset');
$('.container .row .small-12 h2').removeClass('offset');
$('.security .row .large-12 h2').removeClass('offset');
$('.topnews .row h2').removeClass('offset');
$('.smooth-scroll').smoothScroll({ offset: 100 });
// Conditionally show security news block
const latest_sec_days = (new Date() - new Date($('.security').attr('latest-date'))) / (1000 * 60 * 60 * 24);
if (latest_sec_days < 60) {
$('.security').show();
}
// Conditionally show last news entry
const latest_news_days = (new Date() - new Date($('.topnews').attr('latest-date'))) / (1000 * 60 * 60 * 24);
if (latest_news_days < 60) {
$('.topnews').show();
}
// Conditionally show last operator news entry
const latest_operator_news_days = (new Date() - new Date($('.topnews-operator').attr('latest-date'))) / (1000 * 60 * 60 * 24);
if (latest_operator_news_days < 60) {
$('.topnews-operator').show();
}
});