1/** 2 * @version 4.5.0 3 * @package AllVideos (plugin) 4 * @author JoomlaWorks - http://www.joomlaworks.net 5 * @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved. 6 * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html 7 */ 8 9var allvideos = { 10 ready: function(cb) { 11 /in/.test(document.readyState) ? setTimeout('allvideos.ready('+cb+')', 9) : cb(); 12 }, 13 14 getRemoteJson: function(url) { 15 var remoteJsonScript = document.createElement('script'); 16 remoteJsonScript.setAttribute('charset', 'utf-8'); 17 remoteJsonScript.setAttribute('type', 'text/javascript'); 18 remoteJsonScript.setAttribute('async', 'true'); 19 remoteJsonScript.setAttribute('src', url); 20 return remoteJsonScript; 21 }, 22 23 embed: function(el){ 24 var jsonpCallback = el.callback; 25 var tempId = Math.floor(Math.random()*1000)+1; 26 var responseContainer = []; 27 window[jsonpCallback] = function(response){ 28 responseContainer.tempId = [response]; 29 }; 30 var head = document.getElementsByTagName('head')[0]; 31 var jsonp = this.getRemoteJson(el.url); 32 jsonp.onloadDone = false; 33 jsonp.onload = function(){ 34 if (!jsonp.onloadDone){ 35 jsonp.onloadDone = true; 36 document.getElementById(el.playerID).innerHTML = responseContainer.tempId[0].html; 37 } 38 }; 39 jsonp.onreadystatechange = function(){ 40 if (("loaded" === jsonp.readyState || "complete" === jsonp.readyState) && !jsonp.onloadDone) { 41 jsonp.onloadDone = true; 42 document.getElementById(el.playerID).innerHTML = responseContainer.tempId[0].html; 43 } 44 } 45 head.appendChild(jsonp); 46 } 47}
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.