";
$(greeting).prependTo('#Welcome_Content .Welcome');
}
function handleNavClasses() {
$('#NAV .navbar-nav > li > a').each(function () {
var self = $(this),
text = $(self).find('span').text();
text = $.trim(text);
text = text.toLowerCase();
text = text.replace(/\s+/g, '-');
text = text.replace(/[^A-Za-z0-9\-]/g, '');
$(self).addClass(text);
});
}
function handleByLines() {
$('.HLLandingControl ul li').each(function () {
var self = $(this),
byline = $(self).find('.ByLine'),
postedIn = $(self).find('.content-row h5');
$(postedIn).insertAfter(byline);
});
}
function handleFindItFast() {
$('.fif').wrapAll('').removeClass('fif');
}
function handleIAmAla() {
$('.i-am-ala .HtmlContent img').wrap('');
$('.i-am-ala .HtmlContent > *:not(.img-container').wrapAll('');
$('.i-am-ala h2').prependTo('.i-am-ala .text-container');
}
function handleFooter() {
$('.copyright, .powered-by, .attribution').wrapAll('');
$('.footer-bottom').appendTo('#MPOuterFooter');
}
function handleInteriorHeaders() {
$('#PageTitleH1').wrapInner('');
}
function handleCommunities() {
var navigator = $('.community .nested-community'),
tabContainer = $('.community .nested-community + div');
$(navigator).insertAfter(tabContainer);
$('.JoinLeaveLink').appendTo('#PageTitleH1');
}
function handleCtaTiles() {
$('.cta-tile').wrapAll('');
}
function handleMembershipRenewalAlert() {
$('#MPheader > div.row:nth-child(2):not(#Logo)').insertAfter('#MPimage + div');
}
';
$('[id*="_ucMessageList_rptMessageList_pnlMessage_"]').append(ReportFlag);
// Hide single flag button, which is visible only on legacy browsers that don't support these report buttons on individual posts
$('#ReportFlagContainerSingle').hide();
});
$(function(){
const reportbuttons = document.querySelectorAll('.report-flag-button');
for (i = 0; i