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,255 chars
if (fixedBottomTS.css('position') === 'fixed') {
bodyContainerTS.css('padding-bottom', fixedBottomTS.outerHeight());
} else {
bodyContainerTS.css('padding-bottom', '');
}
})();

// Fixed left script
(function () {
if (!fixedLeftTS || fixedLeftTS.length === 0) return;

if (editing) {
fixedLeftTS[0].classList.add(forceUnfixClassTS);
} else {
fixedLeftTS[0].classList.remove(forceUnfixClassTS);
}

if (fixedLeftTS.css('position') === 'fixed') {
const anchorHeight = anchor.outerHeight() - 1;
const headerHeight = headerContainerTS.outerHeight() - 1;
fixedLeftTS.css('top', anchorHeight + headerHeight + 100);
const leftBoundingTS = fixedLeftTS[0].getBoundingClientRect();
iterateLeftpads(function (containerTS) {
const containerBoundingTS = containerTS.getBoundingClientRect();
if (containerBoundingTS.left <= leftBoundingTS.right) {
$(containerTS).css('padding-left', leftBoundingTS.width + 16);
}
});
} else {
fixedLeftTS.css('top', '');
iterateLeftpads(function (containerTS) {
$(containerTS).css('padding-left', '');
});
}
})();

// Fixed right script
(function () {
if (!fixedRightTS || fixedRightTS.length === 0) return;

if (editing) {
fixedRightTS[0].classList.add(forceUnfixClassTS);
} else {
fixedRightTS[0].classList.remove(forceUnfixClassTS);
}