Joel H. Schwartz, PC helps accident and injury victims recover monetary compensation from those who hurt them through misconduct or negligence. Click on any of the locations listed below for driving directions to our office in Framingham, Massachusetts:
Joel H. Schwartz, PC
945 Concord St
Framingham, MA 01701
so banner styles never leak into it (same place the old plugin rendered them).
document.querySelectorAll('dialog.jhs-popup').forEach(function(d){ if (d.parentNode !== document.body) document.body.appendChild(d); });
function unlock(){ if (!document.querySelector('dialog.jhs-popup[open]')) document.body.classList.remove('jhs-popup-open'); }
document.querySelectorAll('dialog.jhs-popup').forEach(function(d){ d.addEventListener('close', unlock); });
document.addEventListener('click', function(e){
var t = e.target; if (!t || !t.closest) return;
var trigger = t.closest('[data-jhs-popup]');
if (trigger) {
var d = document.getElementById(trigger.getAttribute('data-jhs-popup'));
if (d && typeof d.showModal === 'function') { e.preventDefault(); if (!d.open) { d.showModal(); document.body.classList.add('jhs-popup-open'); } }
return; // no dialog support: the link's normal href (the contact page) still works
}
if (t.closest('.jhs-popup-close')) { var c = t.closest('dialog'); if (c) c.close(); return; }
if (t.tagName === 'DIALOG' && t.classList.contains('jhs-popup')) t.close(); // click on the dark overlay
});
})();