1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10(function(){ 11 12/* 13 var observer = new MutationObserver(function(mutations) { 14 // For the sake of...observation...let's output the mutation to console to see how this all works 15 mutations.forEach(function(mutation) { 16 console.log(mutation.type); 17 }); 18 }); 19 20 // Notify me of everything! 21 var observerConfig = { 22 attributes: true, 23 childList: true, 24 characterData: true 25 }; 26 27 // Node, config 28 // In this case we'll listen to all changes to body and child nodes 29 var targetNode = document.body; 30 observer.observe(targetNode, observerConfig); 31*/ 32 33})(); 34 35 36 37/** 38 * Watch "nooz-posts" container element for size changes. 39 */ 40(function(){ 41 var sm = 551; 42 var views = document.getElementsByClassName('nooz-posts'); 43 function removeClassName(el, className) { 44 var arr = el.className.split(' '); 45 var idx = arr.indexOf(className); 46 if (idx === -1) return; 47 arr.splice(idx, 1); 48 el.className = arr.join(' '); 49 } 50 function addClassName(el, className) { 51 if (el.className.split(' ').indexOf(className) > -1) return; 52 el.className += ' ' + className; 53 } 54 function setBreakpoint() { 55 for (var i = 0; i < views.length; i++) { 56 var el = views[i]; 57 var rect = el.getBoundingClientRect(); 58 //console.log(rect); 59 if (rect.width >= sm) { 60 removeClassName(el, 'nooz-posts--xs'); 61 addClassName(el, 'nooz-posts--sm'); 62 } else { 63 addClassName(el, 'nooz-posts--xs'); 64 removeClassName(el, 'nooz-posts--sm'); 65 } 66 } 67 } 68 // respond to window resize event 69 window.addEventListener('resize', setBreakpoint); 70 // respond to user events 71 document.body.addEventListener('click', function(e){ 72 // wait for other behavior to complete 73 setTimeout(setBreakpoint, 200); 74 }); 75 setBreakpoint(); 76})(); 77 78}
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.