1jQuery(function($){ 2 var _ua = (function(u){ 3 return { 4 Tablet:(u.indexOf("windows") != -1 && u.indexOf("touch") != -1 && u.indexOf("tablet pc") == -1) 5 || u.indexOf("ipad") != -1 6 || (u.indexOf("android") != -1 && u.indexOf("mobile") == -1) 7 || (u.indexOf("firefox") != -1 && u.indexOf("tablet") != -1) 8 || u.indexOf("kindle") != -1 9 || u.indexOf("silk") != -1 10 || u.indexOf("playbook") != -1, 11 Mobile:(u.indexOf("windows") != -1 && u.indexOf("phone") != -1) 12 || u.indexOf("iphone") != -1 13 || u.indexOf("ipod") != -1 14 || (u.indexOf("android") != -1 && u.indexOf("mobile") != -1) 15 || (u.indexOf("firefox") != -1 && u.indexOf("mobile") != -1) 16 || u.indexOf("blackberry") != -1 17 } 18 })(window.navigator.userAgent.toLowerCase()); 19 20 if(_ua.Mobile){ 21 $('head').prepend('<meta name="viewport" content="width=640">'); 22 } else { 23 $('head').prepend('<meta name="viewport" content="width=1260">'); 24 } 25 26 // ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 27 $('#go_top').css('display', 'none'); 28 $('#wovn-translate-widget').css('bottom', 0); 29 var sHeight = $(document).height() - $(window).height(); 30 $(window).scroll(function() { 31 if($(this).scrollTop() < 100) { 32 $('#go_top').fadeOut(); 33 $('#wovn-translate-widget').css('bottom', 0); 34 } else if($(this).scrollTop() < sHeight) { 35 $('#go_top').fadeIn(); 36 $('#go_top').css('bottom', 30); 37 $('#wovn-translate-widget').css('bottom', 0); 38 } else { 39 $('#go_top').fadeIn(); 40 } 41 }); 42 43 // ã¹ã¯ãã¼ã«ãã¦ããã㸠44 $("#go_top").click(function() { 45 $('#go_top').hide(); 46 $("html,body").animate({scrollTop:$('body').offset().top}); 47 }); 48 49 $('#header > div').append($('#social')); 50 $('body').wrapInner('<div></div>').wrapInner('<div id="sp_wrap"></div>'); 51 $('#sp_wrap > div').append('<div id="cover"></div>'); 52 $('#header h1').after('<a href="#" id="sp_btn"><span></span></a>'); 53 $('#sp_btn').click(function() { 54 $('#sp_wrap > div').toggleClass('active'); 55 $(this).toggleClass('close'); 56 $('#cover').fadeToggle(); 57 return false; 58 }); 59 $('#cover').click(function() { 60 $('#sp_wrap > div').toggleClass('active'); 61 $('#sp_btn').toggleClass('close'); 62 $(this).fadeToggle(); 63 }); 64 65 if ($('select').size()) { 66 $('select').wrap('<div class="select_box"></div>'); 67 } 68 69 if ($('#Home').size()) { 70 // èªè¾¼ã¿æåæã®å¦ç 71 var successCallback = function (response) { 72 if(response == 'false'){ 73 $("#feeds2").html(""); 74 }else{ 75 $("#feeds2").hide(); 76 $("#feeds2").html(response); 77 $("#feeds2").slideDown(500); 78 79 console.log('success'); 80 $('#feeds2 dl dt').each(function() { 81 var ngp = $(this).text().split(/(å¹´|æ|æ¥)/); 82 $(this).html('<span>' + ngp[0] + '</span>' + '<span>' + month_en(ngp[2]) + '</span>' + '<span>' + ngp[4] + '</span>'); 83 }); 84 } 85 }; 86 // èªè¾¼ã¿å¤±ææã®å¦ç 87 var errorCallback = function (xml, status, e) { 88 $("#feeds2").html(""); 89 }; 90 // ãªã¯ã¨ã¹ãå¦ç 91 $.ajax({ 92 type: 'GET', 93 url: '/feed/index/2', 94 cache: false, 95 success: successCallback, 96 error: errorCallback 97 }); 98 $('#Home #contents dl dt').each(function() { 99 var ngp = $(this).text().split(/(å¹´|æ|æ¥)/); 100 $(this).html('<span>' + ngp[0] + '</span>' + '<span>' + month_en(ngp[2]) + '</span>' + '<span>' + ngp[4] + '</span>'); 101 }); 102 } 103 function month_en($text) { 104 switch ($text) { 105 case '12': $text = 'DEC'; break; 106 case '11': $text = 'NOV'; break; 107 case '10': $text = 'OCT'; break; 108 case '09': $text = 'SEP'; break; 109 case '08': $text = 'AUG'; break; 110 case '07': $text = 'JUL'; break; 111 case '06': $text = 'JUN'; break; 112 case '05': $text = 'MAY'; break; 113 case '04': $text = 'APR'; break; 114 case '03': $text = 'MAR'; break; 115 case '02': $text = 'FEB'; break; 116 case '01': $text = 'JAN'; break; 117 } 118 return $text; 119 } 120});
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.