1(function () { 2/* Polyfills */ 3 4 if (window.NodeList && !NodeList.prototype.forEach) { 5 NodeList.prototype.forEach = Array.prototype.forEach; 6 } 7 8 var initialized = false; 9 var initialize = function () { 10 if (!initialized) { 11 initialized = true; 12 document.querySelectorAll('.expandable-node').forEach(function (x) { 13 x.addEventListener('click', function (e) { 14 if (window.DataIntelligenceSubmitScript && e.currentTarget.hasAttribute('aria-expanded') === 'false') { 15 DataIntelligenceSubmitScript._client.sentenceClient.writeSentence({ 16 predicate: "Toggle navigation", 17 object: e.currentTarget.innerText.trim(), 18 objectMetadata: [{ 19 'K': 'PageTitle', 20 'V': document.title 21 }, 22 { 23 'K': 'PageUrl', 24 'V': location.href 25 } 26 ] 27 }); 28 } 29 }); 30 }); 31 } 32 }; 33 34 document.addEventListener('DOMContentLoaded', function () { 35 initialize(); 36 }); 37 38 if (window.personalizationManager) { 39 window.personalizationManager.addPersonalizedContentLoaded(function () { 40 initialize(); 41 }); 42 } 43}());
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.