1/** 2 * @version 4.4 3 * @package AllVideos (plugin) 4 * @author JoomlaWorks - http://www.joomlaworks.net 5 * @copyright Copyright (c) 2006 - 2012 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 remotejson = this.getRemoteJson(el.url); 32 head.appendChild(remotejson); 33 remotejson.onload = function(){ 34 document.getElementById(el.playerID).innerHTML = responseContainer.tempId[0].html; 35 } 36 } 37}
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.