1function sendDataAccessibleWP(){const eventData={events:[{"event":"Accessibility-Toolbar-click","content":"user click Accessibility Toolbar button","siteUrl":AccessibleWPData.siteUrl,}]};const jsonData=JSON.stringify(eventData);fetch('https://api.userway.org/api/abn/events',{method:'POST',headers:{'Content-Type':'application/json',},body:jsonData,}).then(response=>{if(!response.ok){throw new Error('An error occurred while executing the request: ${response.statusText}')} 2return response.json()}).then(data=>{console.log('Response from the server:',data)}).catch(error=>{console.error('An error has occurred:',error.message)})} 3document.addEventListener('DOMContentLoaded',(event)=>{const wpButton=document.getElementById('acwp-toolbar-btn');if(wpButton){wpButton.addEventListener('click',sendDataAccessibleWP)}else{console.error('Button with ID "plugin-button-notice" not found.')}});function sendDataPageLoad(){const eventData={events:[{"event":"Accessibility-Page-load","content":"Page load with AccessibleWP widget","siteUrl":AccessibleWPData.siteUrl,}]};const jsonData=JSON.stringify(eventData);fetch('https://api.userway.org/api/abn/events',{method:'POST',headers:{'Content-Type':'application/json',},body:jsonData,}).then(response=>{if(!response.ok){throw new Error(`An error occurred while executing the request: ${response.statusText}`)} 4return response.json()}).then(data=>{console.log('Response from the server:',data)}).catch(error=>{console.error('An error has occurred:',error.message)})} 5function checkFirstLoadAndSendData(){if(!sessionStorage.getItem('dataSent')){sendDataPageLoad();sessionStorage.setItem('dataSent','true')}} 6document.addEventListener('DOMContentLoaded',(event)=>{checkFirstLoadAndSendData()})
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.