1/** 2 * Created by PhpStorm 3 * Project: www.ranepa.ru 4 * User: bash 5 * Date: 19.12.2024 6 * Time: 17:13 7 * Version: 1.00 8 */ 9 10document.addEventListener('DOMContentLoaded', () => { 11 const hrefElementsList = document.querySelectorAll('[href]'); 12 const regexp = /^POPUP-ID=.+$/; 13 14 hrefElementsList.forEach(el => { 15 const hrefValue = el.getAttribute('href'); 16 if (regexp.test(hrefValue)) { 17 el.dataset.openModal = hrefValue.replace('POPUP-ID=', ''); 18 } 19 }); 20});
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.