1// CRM FORM STYLING HELPER JS 2// Adds the body class as quickly as possible to hide all the items on the page so we don't 3// have the site flash before the calendar shows up 4 5const paramsList = [ 6 { 7 key: 'action', 8 value: 'popupCal', 9 }, 10 { 11 key: 'action', 12 value: 'fileUploadForm', 13 }, 14]; 15 16const urlParams = new URLSearchParams(window.location.search); 17paramsList.forEach(({ key, value }) => { 18 if (urlParams.get(key) === value) { 19 document.body.classList.add('crm-calendar-popup'); 20 } 21});
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.