1document.addEventListener('DOMContentLoaded', function () { 2 function isOverlapping(el1, el2) { 3 const r1 = el1.getBoundingClientRect(); 4 const r2 = el2.getBoundingClientRect(); 5 return !( 6 r1.right < r2.left || 7 r1.left > r2.right || 8 r1.bottom < r2.top || 9 r1.top > r2.bottom 10 ); 11 } 12 13 function checkSelectedAccount() { 14 const selectedCustomer = document.getElementById('horde-date'); 15 const navBar = document.getElementById('horde-navigation'); 16 17 if (selectedCustomer && navBar && isOverlapping(selectedCustomer, navBar)) { 18 selectedCustomer.classList.remove('selected-customer-top'); 19 selectedCustomer.classList.add('selected-customer-bottom'); 20 } 21 } 22 23 checkSelectedAccount(); // call after DOM is ready 24});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.