PageSourceSearch

https://www.npa.go.jp/bureau/safetylife/sos47/assets/js/script.js

js npa.go.jp collected 2026-10-01 07:43:46 UTC 3,926 bytes, 1 lines download raw bytes

1$(function(){$("img").on("contextmenu",function(t){return!1}),$("img").on("mousedown mouseup",function(t){return!1});var e=location.hash;$(window).width();e&&($("body,html").stop().scrollTop(0),setTimeout(function(){var t=$(e).offset().top-70;$("body,html").stop().animate({scrollTop:t},500)},100)),$('a[href^="#"]').click(function(){var t=$(this).attr("href"),e=$(t).offset().top-70;$("body,html").stop().animate({scrollTop:e},500)}),$(".sp-header__menu").on("click",function(){$(".sp-header__content").css("opacity","1"),$(".sp-header").toggleClass("is-active"),($(".sp-header").hasClass("is-active")?t:a)()});var o,n,t=function(){$("body").css("overflow","hidden"),$(".sp-header__bg").fadeIn(),$(".sp-header__logo").css("opacity","0.2").css("pointer-events","none"),$(".sp-header__menu-text").text("CLOSE"),$(".sp-header__content").css("transform","translateX(0)")},a=function(){$("body").css("overflow","visible"),$(".sp-header__bg").fadeOut(),$(".sp-header__logo").css("opacity","1").css("pointer-events","all"),$(".sp-header__menu-text").text("MENU"),$(".sp-header__content").css("transform","translateX(100%)")},s={inner:function(t){if($("#yt-overlay")[0])return!1;$("body").append('<div id="yt-overlay"></div>'),o=$("#yt-overlay"),n=$("#yt-content"),o.fadeIn("slow"),$(".yt-content__inner").append('<iframe id="yt-player" src="https://www.youtube.com/embed/'+t+'?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>'),this.resize(),n.fadeIn("fast"),$(o).unbind().click(function(){$(".yt-content__inner").empty(),n.add(o).fadeOut("fast",function(){o.remove()})})},resize:function(){var t=$(window).width(),e=$(window).height(),o=$("#yt-content").outerWidth(),n=$("#yt-content").outerHeight();$("#yt-content").css({left:(t-o)/2+"px",top:(e-n)/2+"px"})}};$(document).on("click",".js-yt-modal",function(){var t=$(this).attr("id");s.inner(t)}),$(window).resize(s.resize),$(".embed-movie__frame iframe").length&&$(".embed-movie__frame iframe").each(function(t,e){var o=$(this).data("src");$(this).attr("src",o)});var i,r,c,l,d=".pc-header__fontsize__button",_=function(t){$("html").css("font-size",t+"px"),$(d+"[data-font!="+t+"]").removeClass("active"),$(d+"[data-font="+t+"]").addClass("active"),sessionStorage.setItem("fontSize",t)};i=sessionStorage.getItem("fontSize")?sessionStorage.getItem("fontSize"):"10",_(i),$(d).on("click",function(){_($(this).data("font"))}),$(".statistics-module__regional").length&&($(".statistics-module__regional__nav").on("click.changeRegion",".statistics-module__regional__nav__item",function(t){$(".statistics-module__regional__nav__item").removeClass("statistics-module__regional__nav__item--current"),$(t.target).addClass("statistics-module__regional__nav__item--current");var e=$(t.target).data("region");$(".statistics-module__regional__data").addClass("statistics-module__regional__data--hide"),$(".statistics-module__regional__data[data-region=".concat(e,"]")).removeClass("statistics-module__regional__data--hide"),l[$(t.target).index()].update()}),r=document.querySelectorAll(".statistics-module__regional__data__scroller"),c=Array.prototype.slice.call(r),console.log(r),l=[],c.forEach(function(t){l.push(new PerfectScrollbar(t,{minScrollbarLength:100,useBothWheelAxes:!0}))}
1))}),$(document).ready(function(){var t=location.pathname.split("/")[4];navList=$("#nav").find("a"),navList.each(function(){$(this).attr("href").split("/")[4]==t&&$(this).addClass("active")})}),$(function(){var t=$(window),e=$("header"),o="smaller";t.on("load scroll",function(){$(".header-compact").length||(200<$(this).scrollTop()?e.addClass(o):e.removeClass(o))})}),document.documentMode&&navigator.msSaveOrOpenBlob&&window.addEventListener("click",function(t){var e,o,n=t.target;n.hasAttribute("download")&&(t.preventDefault(),e=n.getAttribute("download"),(o=new XMLHttpRequest).open("GET",n.href),o.responseType="blob",o.send(),o.onload=function(){navigator.msSaveOrOpenBlob(o.response,e)})});

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.