1$(document).ready(function(){ 2 3 // 4 5 6 7 8}); 9 10 11function goList(url){ 12 if(window.location.hash){ 13 location.href = url + "#p" 14 }else{ 15 location.href = url; 16 } 17} 18 19$(document).on('click','.txt .link', function(){ 20 var href = $(this).attr('href'); 21 if(window.location.hash){ 22 if( href.indexOf('/event') >= 0 || 23 href.indexOf('/news') >= 0 || 24 href.indexOf('/insights') >= 0 || 25 href.indexOf('/blog') >= 0){ 26 27 $(this).attr('href',href+"#p"); 28 } 29 } 30}) 31 32 33function getFromJsonStr(jsonString){ 34 35 var obj; 36 37 if(jsonString != undefined && jsonString != ''){ 38 obj = $.parseJSON(jsonString); 39 } 40 41 return obj; 42 43} 44 45function textEllipsis(content, ellipsisLimit, ellipsisDot){ 46 if(content == null || content == ''){return;} 47 var dot = ellipsisDot || '...'; 48 var t = content; 49 var l = t.length; 50 var limit = ellipsisLimit || l; 51 var res = t; 52 if (l > 0 && l > limit) { 53 var ellipsisVal = t.slice(0, limit); 54 if (ellipsisVal[limit - 1] === ' ') { // last blank 55 res = ellipsisVal.trim() + dot; 56 } else { 57 var slicedVal = t.slice(limit, l); 58 if (slicedVal[0] === ' ') { // next blank 59 res = ellipsisVal + dot; 60 } else { // doesn't have blank. 61 var arrWords = ellipsisVal.split(' '); 62 arrWords.pop(); 63 res = arrWords.join(' ').trim() + dot; 64 } 65 } 66 } 67 return res; 68}; 69 70function setMetaImage(){ 71 var heroImg = $('.hero_vb .im_box').css('background-image'); 72 heroImg = heroImg.replace('url(','').replace(')','').replace(/\"/gi, ""); 73 $('meta[property="og:image"]').attr('content',heroImg); 74}; 75function setType(){ 76 sessionStorage.clear(); 77 var filter_box_type=$('.cate').text(); 78 sessionStorage.setItem('filter_box_type',filter_box_type); 79};
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.