1 2 3 4window.onresize = function (event) { 5 6 if (window.location.pathname == "/") { 7 8 SetWidthHeight(); 9 } 10} 11 12function SetWidthHeight() { 13 var height = $(window).height(); 14 var width = $(window).width(); 15 $.ajax({ 16 url: "./windowSize.ashx", 17 data: { 18 'Height': height, 19 'Width': width 20 }, 21 contentType: "application/json; charset=utf-8", 22 dataType: "json" 23 }).done(function (data) { 24 if (data.isFirst) { 25 // window.location.reload(); 26 }; 27 }).fail(function (xhr) { 28 // alert("Problem to retrieve browser size."); 29 }); 30 31} 32 33$(function () { 34 SetWidthHeight(); 35});
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.