1// Add your JS Code here, don't include the <script> tags 2 3document.addEventListener("DOMContentLoaded", function () { 4 const elements = document.querySelectorAll(".tag__item"); 5 const arrayElem = Array.from(elements); 6 const divider = 3; 7 8 arrayElem.forEach((item, index) => { 9 if (index % divider === 0) { 10 const randomNum = getRandomInt( 11 index, 12 arrayElem.length < index + divider 13 ? arrayElem.length - 1 14 : index + divider 15 ); 16 arrayElem[randomNum] 17 ? arrayElem[randomNum].classList.add("tag__item--dark") 18 : ""; 19 // console.log(randomNum); 20 } 21 }); 22 23 function getRandomInt(min, max) { 24 const number = Math.floor(Math.random() * (max - min + 1)) + min; 25 return number; 26 } 27 28 // Dropdown 29 30 // const dropdowns = document.querySelectorAll( 31 // "#form-bitforms_4_38_1 .b4-9-dpd-fld-wrp" 32 // ); 33 34 // dropdowns.forEach((dropdown) => { 35 // dropdown.addEventListener("click", function () { 36 // console.log("catch>>>>"); 37 // dropdown.style.bottom = "auto !important"; 38 // }); 39 // }); 40});
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.