1document.addEventListener('DOMContentLoaded', function() { 2 fetch(oht_amm_ajax.ajax_url, { 3 method: 'POST', 4 headers: { 5 'Content-Type': 'application/x-www-form-urlencoded' 6 }, 7 body: 'action=oht_get_user_info' 8 }) 9 .then(response => response.json()) 10 .then(data => { 11 if (data.success) { 12 const userNameElement = document.querySelector('.oht-amm-user-name'); 13 if (userNameElement) { 14 userNameElement.textContent = data.data.name; 15 } 16 const userAvatarElement = document.querySelector('.oht-amm-user-avatar'); 17 if (userAvatarElement) { 18 userAvatarElement.innerHTML = data.data.avatar; 19 } 20 const welcomeMessageElement = document.querySelector('.oht-amm-top'); 21 if (welcomeMessageElement) { 22 welcomeMessageElement.style.display = 'block'; 23 } 24 } 25 }); 26});
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.