1$(window).load(function () { 2 3 var $header = $('.s-hny-header') 4 var headerHeight = $header.height() 5 6 $('.s-slidebtn').click(function () { 7 var href = $(this).attr('href'); 8 var target = $(href == "#" || href == "" ? 'html' : href); 9 var position = target.offset().top - headerHeight; 10 $('body,html').animate({scrollTop:position}, 400, 'swing'); 11 return false; 12 }); 13 14 var url = jQuery(location).attr('href'); 15 if (url.indexOf("?id=") != -1) { 16 // ã¹ã ã¼ãºã¹ã¯ãã¼ã«ã®å¦ç 17 var url_sp = url.split("?id="); 18 var hash = '#' + url_sp[url_sp.length - 1]; 19 var tgt = $(hash); 20 var pos = tgt.offset().top - headerHeight; 21 $("html, body").animate({scrollTop:pos}, 400, "swing"); 22 } 23 24 // topã¸æ»ããã¿ã³ 25 $(window).on('scroll', function() { 26 if ($(this).scrollTop() > 250) { 27 $('.hny-footer__topbtn').fadeIn(); 28 } else { 29 $('.hny-footer__topbtn').fadeOut(); 30 } 31 }); 32 33 // ãã³ãã 34 var str = location.pathname; 35 if(str.match(/news_category/) || str.match(/press_category/) || str.match(/news\/date/)) { 36 var insert_html = '' 37 , news_html = '<span><!--ãã³ãããªã³ã¯--><span><a href="/">ããããã¼ã¸</a></span> <!--ãã³ãããªã³ã¯--><span>></span> <!--ãã³ãããªã³ã¯--><span><a href="/news">ã·ã§ãããã¥ã¼ã¹</a></span> <!--ãã³ãããªã³ã¯--><span>></span> <!--ãã³ããã©ãã«-->' 38 , press_html = '<span><!--ãã³ãããªã³ã¯--><span><a href="/">ããããã¼ã¸</a></span> <!--ãã³ãããªã³ã¯--><span>></span> <!--ãã³ãããªã³ã¯--><span><a href="/company">伿¥æ å ±</a></span> <!--ãã³ãããªã³ã¯--><span>></span> <!--ãã³ãããªã³ã¯--><span><a href="/company/press">ãã¬ã¹ãªãªã¼ã¹</a></span> <!--ãã³ãããªã³ã¯--><span>></span> <!--ãã³ããã©ãã«-->' 39 if(str.match(/news_category\/news/)) { insert_html = news_html + '<span>ãç¥ãã</span></span>'; } 40 if(str.match(/news_category\/shop/)) { insert_html = news_html + '<span>ã·ã§ãã</span></span>'; } 41 if(str.match(/news_category\/press/)) { insert_html = news_html + '<span>ãã¬ã¹</span></span>'; } 42 if(str.match(/news_category\/campaign/)) { insert_html = news_html + '<span>ãã£ã³ãã¼ã³</span></span>'; } 43 if(str.match(/news_category\/media/)) { insert_html = news_html + '<span>ã¡ãã£ã¢æ²è¼</span></span>'; } 44 if(str.match(/news\/date/)) { 45 var url = str.split("/") 46 , year = url[3] 47 , month = url[4] 48 insert_html = news_html + '<span>' + year + 'å¹´' + month + 'æ</span></span>'; 49 } 50 if(str.match(/news\/date/)) { 51 var url = str.split("/") 52 , year = url[3] 53 , month = url[4] 54 insert_html = news_html + '<span>' + year + 'å¹´' + month + 'æ</span></span>'; 55 } 56 if(str.match(/press_category/)) { 57 var url = str.split("/") 58 , year = url[4] 59 insert_html = press_html + '<span>' + year + 'å¹´5ææ</span></span>'; 60 } 61 $(".hny-breadcrumb__inner").html(insert_html); 62 } 63}); 64 65$(function() { 66 // ãã¡ã¤ã«ãµã¤ãºè¨ç® 67 function bytesToSize(bytes) { 68 bytes = Number(bytes.split(',').join('')); 69 var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; 70 if (bytes == 0) return 'n/a'; 71 var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); 72 if (i == 0) return bytes + ' ' + sizes[i]; 73 return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i]; 74 }; 75 76 $(".s-bytes").each(function(i) { 77 text = $(this).text(); 78 text = bytesToSize(text); 79 $(this).text(text); 80 }); 81});
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.