Skip to main content

Town of Amherst, Inspection Services, Residential Rental Property Registration & Inspection Program

Citation
Town of Amherst, Inspection Services, Residential Rental Property Registration & Inspection Program
Jurisdiction
Amherst (municipal)
Source
Official source

Related Parts of This Source

Full Text

1,184 chars
function handleExpandCollapse(e) {
const element = e.currentTarget;
const answer = document.getElementById(element.getAttribute("aria-controls")).parentElement;
const expandArrow = element.getElementsByClassName("widgetFAQ--arrow")[0];
if (answer.classList.contains("hidden")) {
expandArrow.classList.add('widgetFAQ--arrow-expanded');
expandArrow.classList.remove('widgetFAQ--arrow-collapsed');
answer.classList.remove("hidden");
element.setAttribute("aria-expanded", "true");
} else {
expandArrow.classList.add('widgetFAQ--arrow-collapsed');
expandArrow.classList.remove('widgetFAQ--arrow-expanded');
answer.classList.add("hidden");
element.setAttribute("aria-expanded", "false");
}
e.preventDefault();
e.stopImmediatePropagation();
e.stopPropagation();
}
document.querySelectorAll(".widgetFAQ--question a").forEach(element => {
// When the link is clicked, expand or collapse the answer
element.addEventListener("click", handleExpandCollapse);
});

inner column

inner row

outer column

inner column

inner row

outer column

HelpFul Links

Home

Sign-In

Site Map

Accessibility

Privacy Policy

Copyright Notices

/QuickLinks.aspx

inner column

inner row

outer column outer row