1function toggleMC() { 2 let menu = document.getElementById("mcMenu"); 3 menu.style.display = (menu.style.display === "block") ? "none" : "block"; 4} 5 6function closeMC() { 7 document.getElementById("mcModal").style.display = "none"; 8} 9 10function loadMC(type) { 11 document.getElementById("mcModal").style.display = "block"; 12 document.getElementById("mcTable").innerHTML = "Loading..."; 13 14 fetch(mc_ajax.ajax_url, { 15 method: "POST", 16 headers: { "Content-Type": "application/x-www-form-urlencoded" }, 17 body: "action=mc_load_table&type=" + type 18 }) 19 .then(res => res.text()) 20 .then(data => { 21 document.getElementById("mcTable").innerHTML = data; 22 }); 23} 24 25// Close on outside click 26window.onclick = function(e) { 27 let modal = document.getElementById("mcModal"); 28 if (e.target === modal) { 29 modal.style.display = "none"; 30 } 31}; 32 33function toggleMC() { 34 const menu = document.getElementById('mcMenu'); 35 menu.style.display = (menu.style.display === 'block') ? 'none' : 'block'; 36} 37 38// Close dropdown when clicking outside 39document.addEventListener('click', function(event) { 40 const dropdown = document.querySelector('.mc-dropdown'); 41 const menu = document.getElementById('mcMenu'); 42 43 if (!dropdown.contains(event.target)) { 44 menu.style.display = 'none'; 45 } 46});
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.