1document.addEventListener("DOMContentLoaded", function () { 2 document.querySelectorAll('select').forEach(function (select) { 3 // Create a hidden input field 4 let hiddenInput = document.createElement("input"); 5 hiddenInput.type = "hidden"; 6 hiddenInput.name = select.name + "-gsc-pipe-selected-index"; 7 hiddenInput.value = select.selectedIndex; 8 9 // Append the hidden input next to the select 10 select.parentNode.appendChild(hiddenInput); 11 12 // Update hidden input on select change 13 select.addEventListener("change", function () { 14 hiddenInput.value = select.selectedIndex; 15 }); 16 }); 17});
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.