1;var jackbox; 2 3(function($) { 4 5 var domain = jackboxOptions.domain, scripts, count, total; 6 7 function init() { 8 9 var header = $("head"), 10 url = document.URL, splits = url.split("?url="); 11 if(splits.length === 2) window.location = splits[0] + "#/" + splits[1]; 12 13 if(url.search("https") === -1 && domain.search("https") !== -1) { 14 domain = jackboxOptions.domain = domain.split("https").join("http"); 15 } 16 17 var style = $("<link />").attr("rel", "stylesheet").attr("type", "text/css").appendTo(header); 18 style.attr("href", domain + "jackbox/css/jackbox.css"); 19 20 var custom = jackboxOptions["custom-css"]; 21 if(custom) $("<style />").attr("type", "text/css").html(custom).appendTo(header); 22 23 if(jackboxOptions["minified-scripts"] === "yes") { 24 25 $.getScript(domain + "jackbox/js/jackbox-packed.js"); 26 27 } 28 else { 29 30 scripts = [ 31 32 "jackbox/js/libs/jquery.address-1.5.min.js", 33 "jackbox/js/libs/Jacked.js", 34 "jackbox/js/jackbox-swipe.js", 35 "jackbox/js/libs/StackBlur.js", 36 "jackbox/js/jackbox.js" 37 38 ] 39 40 count = 0; 41 total = 5; 42 loadScript(); 43 44 } 45 46 $("<img />").attr("src", domain + "jackbox/img/graphics/panel_left_over.png"); 47 $("<img />").attr("src", domain + "jackbox/img/graphics/panel_right_over.png"); 48 49 } 50 51 function loadScript() { 52 53 if(count < 5) { 54 55 $.getScript(domain + scripts[count], loadScript); 56 count++; 57 58 } 59 60 } 61 62 $(document).ready(function() { 63 64 jackbox = $(".jackbox"); 65 66 // scripts and css loaded asynchronously only if page contains a jackbox item 67 if(jackbox.length) init(); 68 69 }); 70 71})(jQuery);
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.