1const renderBgVideos = function() { 2 3 function rend(root) { 4 Array.from(root.querySelectorAll('[data-mwvideo]')).forEach(function(node){ 5 var url = node.dataset.mwvideo.trim(); 6 node.innerHTML = `<video src="${url}" autoplay muted loop playsinline></video>`; 7 }); 8 } 9 10 rend(document); 11 12 const frame = document.querySelector('#live-editor-frame'); 13 if(frame && frame.contentDocument) { 14 rend(frame.contentDocument); 15 } 16 17} 18 19renderBgVideos(); 20 21addEventListener('DOMContentLoaded', e => renderBgVideos()); 22addEventListener('load', e => renderBgVideos());
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.