PageSourceSearch

https://t-point.tsite.jp/assets/js/header-footer/header.js

js tsite.jp collected 2026-09-24 08:26:31 UTC 5,964 bytes, 1 lines download raw bytes

1!function(){var e=navigator.userAgent;window.isSP=Boolean(e.match(/iPhone|iPod|iPad|Android/)),window.isAndroid=Boolean(e.match(/Android/)),window.isIos=Boolean(e.match(/iPhone|iPod|iPad/)),(-1!=e.search(/iPad/)||-1!=e.search(/Macintosh/)&&"ontouchend"in document)&&(window.isIos=!0)}(),$(function(){var g,n,w=window.tsite.dynamicLink.img+"resources/tsite/top/",e=window.tsite.dynamicLink.img+"system/shirase/",m=$("#newt-ghedaer"),a=($("#newt-gnav .pd-list"),$("#newt-gnav .pd-link"),$("#newt-ghedaer .newt-gnav-box")),t=$("body"),i=$("html"),o=0,r=!1,s=!1;function d(){g=window.matchMedia("(min-width: 769px)").matches,n=$("#newt-ghedaer-sp-bnr")[0]?$("#newt-ghedaer-sp-bnr").height():0,s||l(),g&&($("#newt-ghedaer .main-header").css({position:"relative"}),$(".newt-ghedaer-inner-box").css({padding:0}))}function l(){r?($("#newt-ghedaer-sp-bnr").css({position:"fixed",top:-o}),$(".main-header").css({position:"fixed",top:n-o}),$(".newt-gnav-wrap").css({position:"fixed",paddingTop:n+50-o,top:0,height:"100%"}),$(".newt-ghedaer-inner-box").css({paddingTop:n+50})):($("#newt-ghedaer-sp-bnr").css({position:"relative",top:0}),$(".main-header").css({position:"absolute",top:0}),$(".newt-gnav-wrap").css({position:"absolute",paddingTop:n+50,top:0,height:"100%"}),$(".newt-ghedaer-inner-box").css({paddingTop:50}))}function c(){r=!1,i.removeClass("nav-open"),$(".newt-overlay").removeClass("on"),setTimeout(()=>{a.css("visibility","hidden"),s||l()},400)}window.tsite.isLogin?($(".newt-header-register-box").remove(),$(".newt-gnav-login").remove()):($(".newt-gnav-logout").remove(),$(".newt-sub-nav-logout").remove(),$(".newt-sub-nav-info a").attr("href","https://info.tsite.jp/?page=info"),$(".newt-nav-info a").attr("href","https://info.tsite.jp/?page=info")),window.tsite.isTapp&&($("#newt-ghedaer-sp-bnr").remove(),$(".newt-nav-app").addClass("hide"),$(".newt-ghedaer-inner-box").addClass("ignore-sp")),window.isAndroid&&t.addClass("mode-android"),window.isIos&&t.addClass("mode-ios"),$(".newt-header-register-box")[0]&&t.addClass("mode-fix-register"),d(),$(window).resize(function(){d()}),$(window).scroll(function(){var e;e=$(window).scrollTop(),s=n<(o=e)?(i.addClass("fix-header"),!0):(i.removeClass("fix-header"),!1)}),$(".newt-btn-nav-open a").on("click",function(){r=!0,i.addClass("nav-open"),a.css("visibility","visible"),$(".newt-overlay").addClass("on"),s?$(".newt-gnav-wrap").css({position:"fixed",paddingTop:50,top:0,height:"100%"}):l()}),$(".newt-btn-nav-close a").on("click",function(){c()}),$(".newt-overlay").on("click",function(){c()}),$.ajax({url:e+"maintenance.json",type:"GET",dataType:"jsonp",jsonpCallback:"__maintenance_info"}).done(function(e){var n=[],a=[],t=[],i=[],o=new Date;if(e["000"]||e["007"])if(n=e["000"]?e["000"].info:[],a=e["007"]?e["007"].info:[],n.length||a.length){if($(".newt-header-info").length){$(".newt-header-info")[0].style.visibility="visible";var r=$("#newt-header-info-list")[0];if(!r)return;for(var s=0;s<n.length;s++){var d=new Date(n[s].start.replace(/-/g,"/")),l=new Date(n[s].end.replace(/-/g,"/"));n[s].start=n[s].start.replace(/-/g,"/"),n[s].end=n[s].end.replace(/-/g,"/"),d<o&&o<l&&t.push(n[s])}for(s=0;s<a.length;s++){d=new Date(a[s].start.replace(/-/g,"/")),l=new Date(a[s].end.replace(/-/g,"/"));a[s].start=a[s].start.replace(/-/g,"/"),a[s].end=a[s].end.replace(/-/g,"/"),d<o&&o<l&&i.push(a[s])}t.sort((e,n)=>new Date(n.start)-new Date(e.start)),i.sort((e,n)=>new Date(n.start)-new Date(e.start));for(var c=Math.min(t.length,5),s=0;s<c;s++){var p=document.createElement("p");t[s].link?((g=document.createElement("a")).href=t[s].link,g.innerHTML=t[s].message,g.onClick=function(){dataLayer.push({category:"common",action:"header",label:"info_important",event:"clickEventTrigger"})},p.appendChild(g)):((w=document.createElement("span")).innerHTML=t[s].message,p.appendChild(w)),r.appendChild(p)}if(c<5)for(var h=Math.min(i.length,5-c),s=0;s<h;s++){var g,w,p=document.createElement("p");i[s].link?((g=document.createElement("a")).href=i[s].link,g.innerHTML=i[s].message,g.onClick=function(){dataLayer.push({category:"common",action:"header",label:"info_
1important",event:"clickEventTrigger"})},p.appendChild(g)):((w=document.createElement("span")).innerHTML=i[s].message,p.appendChild(w)),r.appendChild(p)}t.length||i.length||(m.addClass("no-info"),$(".newt-header-info").remove())}}else $(".newt-header-info").remove();else $(".newt-header-info").remove()}),$.ajax({url:w+"json/topbanner.json",type:"GET",dataType:"jsonp",jsonpCallback:"callback_topbanner"}).done(function(e){var n=e;if(null===n&&$(".newt-header-info-bnr").remove(),null!==n){var a=$("#newt-info-bnr")[0];if(a){for(var t=document.createElement("ul"),i=Math.min(n.length,5),o=0;o<i;o++){var r=document.createElement("li"),s=document.createElement("a"),d=new Image,l=(d.src=w+"banner/"+n[o].pcimg,d.className="ignore-sp",new Image);l.src=w+"banner/"+n[o].spimg,l.className="ignore-pc",s.href=n[o].link,s.rel=o,s.onclick=function(){var e=this.rel;g?dataLayer.push({category:"common",action:"header",label:n[e].pcimg,event:"clickEventTrigger"}):dataLayer.push({category:"common",action:"header",label:n[e].spimg,event:"clickEventTrigger"})},s.appendChild(d),s.appendChild(l),r.appendChild(s),t.appendChild(r),a.appendChild(t),r.style.display="none",!function(n,e,a){var e=e.split("-"),a=a.split("-"),t=new Date(e[0]+"/"+e[1]+"/"+e[2]+" "+e[3]+":"+e[4]),i=new Date(a[0]+"/"+a[1]+"/"+a[2]+" "+a[3]+":"+a[4]);function o(){var e=new Date;t<=e&&e<=i?(n.style.display="block",n.dataset.status="visible"):(n.style.display="none",n.dataset.status="hidden")}o(),setInterval(function(){o()},1e3)}(r,n[o].release_start,n[o].release_end)}var c=$(".newt-header-info-bnr li"),p=!0;h(),setInterval(function(){h()},1e3)}}function h(){for(var e=0,n=0;n<c.length;n++){var a=c.attr("data-status");"visible"==a&&(p=!1),(p="hidden"==a&&++e==c.length?!0:p)?m.addClass("no-bnr"):m.removeClass("no-bnr")}}}),t=$(".newt-gnav-list").clone(),$(".newt-gnav-pc").append(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.