');
$(".hero-slider").slick({
arrows: true,
infinite: true,
fade: false,
autoplay: false,
autoplaySpeed: 7000,
slidesToShow: 1,
slidesToScroll: 1,
prevArrow:
'
',
nextArrow:
'
',
});
if ($(".hero-slide").length <= 1) {
$(".hero-slider").slick("unslick");
}
if ($(".hero-slide.date").length) {
$(".hero-slide.date").each(function () {
// get todays date and format it as day of week, month, day, year ex. Tuesday, October 28, 2025
let date = new Date();
let options = {
weekday: "long",
year: "numeric",
month: "long",
day: "numeric",
};
let dateText = date.toLocaleDateString("en-US", options);
$(this).find(".HtmlContent").prepend(`
${dateText}
`);
});
}
};
const handleNewsFeed = () => {
$(
'.news-feed .HLLandingControl div[id*="ContentPanel"] > .col-md-12 > ul > li',
).each(function () {
var self = $(this);
handleAjaxCall(self);
handleLink(self);
let textContainer = self.find(".text-container");
$(`
See More
`).insertAfter(
textContainer,
);
});
};
const handleByLines = () => {
$(".move-bylines .HLLandingControl .col-md-12 > ul li").each(function () {
let self = $(this);
let byline = self.find(".ByLine");
let communityName = self.find("h5");
if (byline.length > 0) {
communityName.insertAfter(byline);
}
});
};
const handleViewOnly = () => {
$(".allcommunities .community-list").each(function () {
let self = $(this);
let viewOnly = $(this).find('div[id*="pnlViewOnly"]');
$(viewOnly).appendTo(self);
});
};