1// check and define $ as jQuery 2if (typeof jQuery != "undefined") jQuery(function ($) { 3 4 // dump(myVar); is wrapper for console.log() with check existing console object and show 5 window.dump=function(vars,name,showTrace){if(typeof console=="undefined")return false;if(typeof vars=="string"||typeof vars=="array")var type=" ("+typeof vars+", "+vars.length+")";else var type=" ("+typeof vars+")";if(typeof vars=="string")vars='"'+vars+'"';if(typeof name=="undefined")name="..."+type+" = ";else name+=type+" = ";if(typeof showTrace=="undefined")showTrace=false;console.log(name,vars);if(showTrace)console.trace();return true}; 6 7 // remove no-js class if JavaScript enabled 8 $('html.no-js').removeClass('no-js').addClass('js-ready'); 9 10 // close Joomla system messages (just example) 11 $('#system-message .close').click(function () { 12 $(this).closest('.alert').animate({height: 0, opacity: 0, MarginBottom: 0}, 'slow', function () { 13 $(this).remove(); 14 }); 15 return false; 16 }); 17 18 // your JavaScript and jQuery code here 19 // alert('JS Test!'); 20 21});
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.