Every line of 'jquery cdn url' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
51 function getCdnUrl(url) { 52 return '//mib.bdstatic.com/doc/detail/' + encodeURIComponent(url) + '/0/#from=sub'; 53 }
17 function loadjQuery(url, callback) { 18 var script_tag = document.createElement('script'); 19 script_tag.setAttribute("src", url) 20 script_tag.onload = callback; // Run callback once jQuery has loaded 21 script_tag.onreadystatechange = function () { // Same thing but for IE... bad for IE 10, it supports all 22 if (this.readyState == 'complete' || this.readyState == 'loaded') {callback();} 23 } 24 script_tag.onerror = function() { 25 loadjQuery("http://code.jquery.com/jquery-1.8.2.min.js", main); 26 } 27 document.getElementsByTagName("head")[0].appendChild(script_tag); 28 }
34 function cdnImage (url, width) { 35 return 'https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?url=' + url + '&container=focus&refresh=2592000&resize_w=' + width 36 }
20 function notcdnjs(url){ 21 return url.indexOf(baseURL) != 0 || exceptions.some(function(item){ 22 return url.indexOf(baseURL + item) == 0; 23 }); 24 }
42 function __carrotware_SetJQueryURL(jqPath) { 43 jqURL = jqPath; 44 45 __carrotware_LoadJQuery(); 46 }
5 function createDynamicCdnObject(moduleName, version, globalVarName, url) { 6 return { 7 name: moduleName, 8 var: globalVarName, 9 url, 10 version 11 }; 12 }
24 function loadJQuery() { 25 if(!window.jQuery) {// load only if its required as it is giving problem on many pages. 26 addLibrary("/thirdparty/pratikabu-jquery.js", function(result) { 27 eval(result); 28 pratikabusttjquery = window.jQuery.noConflict(true);// this line will replace any existing mapping of $ and jQuery on the current page 29 loadCompleteFile(); 30 }); 31 } else { 32 pratikabusttjquery = window.jQuery; 33 loadCompleteFile(); 34 } 35 }