(function(){
function fix(){
if(!document.querySelector('h1')){
var h=document.createElement('h1');
h.textContent='Security System Installation in Los Angeles';
h.style.cssText='position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;';
var h2=document.querySelector('h2');
if(h2)h2.parentNode.insertBefore(h,h2);
else document.body.prepend(h);
}
document.querySelectorAll('.wpforms-field input:not([type=hidden]):not([type=submit]),.wpforms-field textarea,.wpforms-field select').forEach(function(el){
if(!el.getAttribute('aria-label')&&!el.getAttribute('aria-labelledby')){
var lbl=el.closest('.wpforms-field')&&el.closest('.wpforms-field').querySelector('.wpforms-field-label');
var hint=(lbl&&lbl.textContent.trim().replace(/\s*\*\s*$/,''))||el.placeholder||el.name||'';
if(hint)el.setAttribute('aria-label',hint.charAt(0).toUpperCase()+hint.slice(1));
}
});
document.querySelectorAll('a').forEach(function(a){
if(!a.textContent.trim()&&!a.getAttribute('aria-label')&&!a.querySelector('img[alt]')){
var h=a.href||'',c=(a.className||'').toLowerCase();
var t=h.includes('facebook')||c.includes('facebook')?'Facebook':
h.includes('twitter')||c.includes('twitter')?'Twitter':
h.includes('instagram')||c.includes('instagram')?'Instagram':
h.includes('youtube')||c.includes('youtube')?'YouTube':
h.includes('linkedin')||c.includes('linkedin')?'LinkedIn':
h.includes('tel:')?'Call us':h.includes('mailto:')?'Email us':'';
if(!t){var ic=a.querySelector('[class*="fa-"],[class*="icon-"],[class*="fab "],[class*="fas "]');if(ic){var m=(ic.className||'').match(/fa-([a-z-]+)/);if(m)t=m[1].replace(/-/g,' ');}}
if(t)a.setAttribute('aria-label',t);
}
});
var linkMap={'Intercom':'/services/intercom-system-for-home/','Theater':'/services/home-theater/','Smart Home':'/services/smart-home-automation/','Security Camera':'/services/security-cameras/','Access Control':'/services/access-control/','Alarm':'/services/alarm-system-installation/'};
document.querySelectorAll('a[href="#"]').forEach(function(a){
var t=a.textContent.trim();
for(var k in linkMap){if(t.includes(k)){a.href=linkMap[k];break;}}
});
document.querySelectorAll('iframe:not([title])').forEach(function(f){
var s=f.src||'';
f.title=s.includes('youtube')?'YouTube video':s.includes('maps')?'Google Maps':'Embedded content';
});
}
document.readyState==='loading'?document.addEventListener('DOMContentLoaded',fix):fix();
window.addEventListener('load',fix);
})();
Call Now Button