PageSourceSearch

https://netatopi.jp/js/ntp/p10/base.js

js netatopi.jp collected 2026-10-02 07:29:21 UTC 4,170 bytes, 10 lines download raw bytes

1"undefined"==typeof ntp&&(ntp={});"undefined"==typeof ntp["const"]&&(ntp["const"]={date:{month:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")}});ntp.ad={dfp:{chk101gglplcad:function(){if("object"==typeof ipc_article_info&&"object"==typeof ipc_article_info.category&&0!=ipc_article_info.category.length)for(var a=0;a<ipc_article_info.category.length;a++)0<ipc_article_info.category[a].length&&"101gglplcad"==ipc_article_info.category[a][0]&&googletag.pubads().setTargeting("101gglplcad","no")}}};
2"undefined"==typeof ntp.url&&(ntp.url={socialUrl:function(){var a;(a=$("meta[name=firstpage]"))&&a.attr&&a.attr("content")?a=a.attr("content"):(a=$('meta[property="og:url"]'))&&a.attr&&a.attr("content")?a=a.attr("content"):(a=window.location.href.split("?"),a=a[0]);0===a.indexOf("/")&&(a=window.location.protocol+"//"+window.location.host+a);return a}});ntp.url.socialUrl();
3"undefined"==typeof ntp.ajaximg&&(ntp.ajaximg={load:function(){$("img[ajax]").each(function(){$(this).attr("src",$(this).attr("ajax"));$(this).removeAttr("ajax")})}});void 0===ntp.page&&(ntp.page={});void 0===ntp.page.component&&(ntp.page.component={});
4void 0===ntp.page.component.ranking&&(ntp.page.component.ranking={init:function(a,d,e,b){$.get(d,{},function(f){var c;f.start=f.start.split(" ")[0];f.end=f.end.split(" ")[0];c=' <div class="ranking">'+('  <div class="head">'+a+"</div>");c+='  <div class="range"><span class="from">'+f.start+'</span>\uff5e<span class="to">'+f.end+"</span>\u96c6\u8a08\u5206</div>";c+='  <ul class="list">';var d=0,g;for(g in f.articles)if(f.articles[g].id){d++;if(d>e)break;var m=f.articles[g].rank,k=f.articles[g].url,h=f.articles[g].title;c+='   <li class="rank-'+m+'">';c+=
5"    <label><span>"+m+"</span></label>";c+='    <span><a href="'+k+'" target="_blank">'+h+"</a></span>";c+="   </li>"}c+="  </ul> </div>";$("#"+b).html(c)})}});
6void 0===ntp.page.component.twlist&&(ntp.page.component.twlist={init:function(a,d){var e="article";"string"==typeof d&&(e=d);var b="twlist";"string"==typeof a&&(b=a);var f="div_"+b;
6null==document.getElementById(f)&&document.write('<div class="m0 p0 div-tw-list" id="'+f+'"></div>');var c=window.location.href.replace(/\.html.*$/g,"").split("/"),c=c[c.length-1],f=c.replace(/(\d\d\d)$/g,"",c),c=c.slice(-3),l="/include/api/ntp/twsearch/"+f+"/"+c+"/";$.ajax({type:"GET",url:l+e+"_1.inc",async:!1,cache:!1,
7ul_id:b,success:function(a,c){$("#div_"+b).append($('<div class="head">').text("\u6700\u65b0\u30c4\u30a4\u30fc\u30c8"));$("#div_"+b).append($('<ul class="tw-list" id="'+b+'" next="2" url="'+l+e+'">').html(a));ntp.page.component.twlist.settime(b);setTimeout(ntp.page.component.twlist.scroll,100)},error:function(a,b,c){}})},settime:function(a){var d=+new Date;$("li.tweet span.pub_time[cv!=t]").each(function(){var a=Date.parse($(this).html().replace(/-/g,"/").replace(/\+09/," GMT+0900")),b=Math.floor((d-
8a)/6E4);$(this).attr("cv","t");60>b?$(this).html(b+"m"):(b=Math.floor(b/60),24>=b?$(this).html(b+"h"):(a=new Date(a),$(this).html(a.getDate()+" "+ntp["const"].date.month[a.getMonth()])))})},scroll:function(){for(var a=$("ul.tw-list"),d=!1,e=0;e<a.length;e++)if(0!=a[e].children.length){var b=a[e],f=b.id,c=b.scrollTop,l=c+b.clientHeight;null!=b.getAttribute("pause")&&(d=!0);for(var g=0,m=b.children.length-1,k=0;k<b.children.length;k++){var h=b.children[k],n=g,p=g+h.clientHeight,g=p+1;n>=c&&p<=l?null==
9h.getAttribute("view")&&h.setAttribute("view","t"):null!=h.getAttribute("view")&&h.removeAttribute("view");k==m&&n<l&&null==b.getAttribute("last")&&ntp.page.component.twlist.ajaxload(f)}}0==d&&setTimeout(ntp.page.component.twlist.scroll,200)},ajaxload:function(a){$("#"+a).attr("pause","t");var d=$("#"+a).attr("url"),e=$("#"+a).attr("next"),d=d+"_"+e+".inc",e=!0;if(0<=window.navigator.userAgent.toLowerCase().indexOf("iphone")||0<=window.navigator.userAgent.toLowerCase().indexOf("ipad"))e=!1;$.ajax({type:"GET",
10url:d,async:e,cache:!1,ul_id:a,success:function(b,d){$("#"+a).append(b);ntp.page.component.twlist.settime(a);var c=$("#"+a).attr("next");c++;$("#"+a).attr("next",c);$("#"+a).removeAttr("pause")},error:function(b,d,c){$("#"+a).removeAttr("pause");$("#"+a).attr("last","t")}})}});

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.