1window.onload = function() { 2 3 jQuery('.EWLimplement').each(function(index) { 4 5 //check if is section or column 6 let element = (jQuery(this).prop('tagName').toLowerCase() === 'section') ? 'section' : 'column'; 7 //retrieve the data 8 let url = jQuery(this).attr('data-ewl-url'); 9 let type = jQuery(this).attr('data-ewl-type'); 10 let external = jQuery(this).attr('data-ewl-external'); 11 //let extOption = (typeof(external) != "undefined" && external !== null) ? 'yes' : 'no'; 12 let extOption = (external !== '' && typeof(external) != "undefined") ? 'yes' : 'no'; 13 let extHtml = (extOption === 'yes') ? ' target="_blank" ' : ''; 14 15 if (type === 'html') { 16 //create html A tag and set styles 17 jQuery(this).wrap('<a class="EWLtag" href="' + url + '" ' + extHtml + '></a>'); 18 19 } 20 21 22 23 24 25 26 27 28 29 30 31 }); 32 33 34 jQuery('.EWLimplement').on('click', function() { 35 //let parentA = jQuery(this).parent().attr('href'); 36 let url = jQuery(this).attr('data-ewl-url'); 37 let type = jQuery(this).attr('data-ewl-type'); 38 let external = jQuery(this).attr('data-ewl-external'); 39 let extOption = (external !== '' && typeof(external) != "undefined") ? 'yes' : 'no'; 40 if (type === 'js') { 41 if (extOption === 'yes') { 42 window.open(url, '_blank').focus(); 43 } 44 if (extOption === 'no') { 45 window.location.href = url; 46 } 47 48 49 } 50 51 52 }); 53 54 55 function clickEWL(element, url) { 56 57 58 59 60 } 61 62 63 64} 65 66
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.