1window.onload = function() { 2 if (!isZbPlayerFlashEnabled()) { 3 // replace current player code with standard audio 4 var elements = document.getElementsByClassName("zbPlayerNative"); 5 var index; 6 for (index = 0; index < elements.length; ++index) { 7 elements[index].style.display = "inline"; 8 } 9 // hide current flash player 10 var flash = document.getElementsByClassName('zbPlayerFlash'); 11 for (index = 0; index < flash.length; ++index) { 12 flash[index].style.display = "none"; 13 } 14 } 15}; 16 17function isZbPlayerFlashEnabled() { 18 var hasFlash = false; 19 try { 20 var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); 21 if(fo) hasFlash = true; 22 } catch(e) { 23 if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true; 24 } 25 return hasFlash; 26}
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.