1$(document).ready(function () { 2 pic = $('#news .news_image img'); 3 if (pic.length > 0) { 4 picsize = pic.attr('src').split('?'); 5 picsize = picsize[0]+'?thumbnail_height=500&thumbnail_width=1140&resize_type=CropToFit'; 6 pic.attr('src',picsize); 7 } 8 9 //$( ".news_footer" ).insertAfter( "#news h1" ); 10 11 $("#news .news_image").insertAfter("#news h1"); 12 13 $(".news_footer").append($(".byline")); 14 15 $("#newnews").removeClass(); 16 $("#newnews").addClass("row"); 17 18 cLink = window.location.pathname; 19 cLinkArr = cLink.split("/"); 20 cLink = cLinkArr[cLinkArr.length-2]; 21 22 var ra = 0; 23 24 $( "#newnews .news_item" ).each(function( index ) { 25 26 ra++; 27 tLink = $(this).find("a").attr("href").replace("../", ""); 28 if ((tLink === cLink) || ra == 4) { 29 ra--; 30 $(this).remove(); 31 } else { 32 $(this).removeClass(); 33 $(this).addClass("news_item col-6 col-sm-4"); 34 $(this).find("h5").prependTo($(this)); 35 $(this).find(".news_image").prependTo($(this)); 36 $(this).find(".news_image").addClass("img-responsive"); 37 $(this).find(".news_item_inner").remove(); 38 $(this).find(".killfloat").remove(); 39 } 40 }); 41 if (ra === 0) { 42 $("#relnews").remove(); 43 $("#newnews span").remove(); 44 } 45 $(".news_body").addClass("col-lg-10 offset-lg-1") 46 47var campus = getCookie("campus"); 48if (campus != "") { 49 switch (campus) { 50 case "edinburgh": 51 52 $(".edinburgh").each(function(){ 53 $(this).removeClass("hide"); 54 $(this).removeClass("disappear"); 55 }); 56 break; 57 case "sbc": 58 $(".sbc").each(function(){ 59 $(this).removeClass("hide"); 60 $(this).removeClass("disappear"); 61 }); 62 } 63 $(".both").each(function(){ 64 $(this).removeClass("hide"); 65 }); 66 67 $(".init").addClass("hide"); 68 69 $("#show-campus").each(function(){ 70 $(this).html(getCampus()); 71 }); 72 73 74} 75 76 77});
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.