1/*global window */ 2 3(function (w) { 4 5 'use strict'; //Force strict mode 6 7 const 8 document = w.document, 9 load = () => { 10 document 11 .querySelectorAll('[data-disable-links]') 12 .forEach( 13 (el) => { 14 el 15 .addEventListener( 16 'click', 17 (e) => { 18 e.preventDefault(); 19 } 20 ) 21 ; 22 } 23 ) 24 ; 25 }, 26 27 init = () => { 28 if (['complete', 'interactive'].includes(document.readyState)) { 29 //If the DOM is already set then invoke our load function 30 load(); 31 } else { 32 //Otherwise, wait for the ready event 33 document.addEventListener('DOMContentLoaded', load); 34 } 35 } 36 ; 37 38 //Kick everything off 39 init(); 40 } 41)(window);
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.