PageSourceSearch

https://x-zero.jp/assets/js/news.min.js

js x-zero.jp collected 2026-10-02 15:23:53 UTC 3,003 bytes, 1 lines download raw bytes

1function ajaxRequest(t,n){const e=$.ajax({url:t,type:"GET",data:n,dataType:"json",cache:!1});return e.promise()}function setNewsList(t){if($(outputTarget).length){const n=xZeroUrl+infoListEndpoint,e={page:null!==t?t:1};ajaxRequest(n,e).then(function(t){0==t.total?$(outputTarget).append('<p class="paragraph">お知らせはありません</p>'):$(outputTarget).each(function(){const n=$(this).data("number"),e=$(this).data("display-pagenation"),a=t.totalPage,s=t.page;let i='<ul id="news-list">';if($.each(t.list,function(t,e){const a=e.publishDate.split(".");if(i+="<li>",i+="<div>",i+='<span class="n-date">'+a[0]+"年"+a[1]+"月"+a[2]+"日</span>",i+='<span class="n-category '+newsCategoryClassAry[e.category]+'">'+e.category+"</span>",i+="</div>",i+="<div>",i+='<span class="n-title"><a href="/news/index.html?id='+e.id+'">'+e.title+"</a></span>",i+="</div>",i+="</li>",null!=n&&!isNaN(n)&&t+1==n)return!1}),i+="</ul>",$(this).append(i),"no"!=e){const t=window.innerWidth>640?10:5;let n,e;if(a<=t)n=1,e=a;else{let i=Math.floor(t/2),o=Math.ceil(t/2)-1;s<=i?(n=1,e=t):s+o>=a?(n=a-t+1,e=a):(n=s-i,e=s+o)}let i='<div class="news-pagenation">';1!=s&&(i+='<a class="prev-page" href="/news/index.html?page='+(s-1)+'"><</a>');for(let t=n;t<=e;t++){const n=t==s?"page-active":"";i+='<a  class="'+n+'" href="/news/index.html?page='+t+'">'+t+"</a>"}s!=a&&(i+='<a class="next-page" href="/news/index.html?page='+(s+1)+'">></a>'),i+="</div>",$(this).append(i)}$("body").hasClass("top")&&$(".top-mv-news  #news-list").on("init",function(t,n){$(this).prepend('<div class="slick-num"><span class="now-count"></span> / <span class="all-count"></span></div>'),$(".now-count").text(n.currentSlide+1),$(".all-count").text(n.slideCount)}).slick({fade:!0}).on("beforeChange",function(t,n,e,a){$(".now-count").text(a+1)})})},function(t){$(outputTarget).append('<p class="paragraph">お知らせはありません</p>')})}}function setNewsDetail(t){if($(outputTarget).length){const n=xZeroUrl+infoItemEndpoint,e={id:t};ajaxRequest(n,e).then(function(t){let n='<div id="news-detail"><span class="n-d-date">'+t.publishDate+"</span>";n+='<span class="n-d-category '+newsCategoryClassAry[t.category]+'">'+t.category+"</span>",n+='<dl class="n-d-detail">',n+='<dt class="n-d-title">'+t.title+"</dt>",n+='<dd class="n-d-body">'+t.body+"</dd>",n+="</dl></div>",n+='<div class="btn"><a  href="/news/index.html">一覧に戻る</a></div>',$(outputTarget).append(n)},function(t){$(outputTarget).append("<p>お知らせはありません</p>")})}}const xZeroUrl="x-zero.jp"===document.domain?"https://us-central1-x-zero-5d5ae.cloudfunctions.net":"https://us-central1-x-zero-staging.cloudfunctions.net",infoItemEndpoint="/v1-https-information-item",infoListEndpoint="/v1-https-information-list",newsCategoryClassAry={"お知らせ":"info","更新情報":"update"},outputTarget=$(".output-news");$(function(){const t=new URLSearchParams(window.location.search),n=t.get("page"),e=t.get("id");null!==e?setNewsDetail(e):setNewsList(n)});

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.