PageSourceSearch

https://www.shinshu-u.ac.jp/assets/js/page/top.js

js shinshu-u.ac.jp collected 2026-10-01 10:28:40 UTC 2,845 bytes, 1 lines download raw bytes

1var slickTimeout,currentSlide,$slick,$pause,slideLength,player,slideSecondArray=[];if($(function(){slideLength=$(".top-mainvisual__slide").length;for(var e=0;e<slideLength;e++){var i=8e3;$(".top-mainvisual__slide").eq(e).data("second")&&(i=$(".top-mainvisual__slide").eq(e).data("second")),slideSecondArray.push(i)}($slick=$(".js-top-slider")).on("afterChange",function(e,i){$pause.hasClass("is-pause")||(i=$slick.slick("slickCurrentSlide"),slickTimeout=setTimeout(function(){$slick.slick("slickNext")},slideSecondArray[i]))}),$slick.on("beforeChange",function(e,i){clearTimeout(slickTimeout)}),$slick.slick({dots:!0,infinite:!0,speed:800,slidesToShow:1,slidesToScroll:1,variableWidth:!0,arrows:!0,centerMode:!0,responsive:[{breakpoint:768,settings:{variableWidth:!1,centerMode:!1,slidesToShow:1,slidesToScroll:1}}]}),$pause=$(".js-top-slider-pause");var s=40*slideLength/2+15;$pause.css({"margin-left":s}),$pause.on("click",function(){$pause.hasClass("is-pause")?(currentSlide=$slick.slick("slickCurrentSlide"),slickTimeout=setTimeout(function(){$slick.slick("slickNext")},slideSecondArray[currentSlide]),$pause.text("PAUSE").removeClass("is-pause")):($pause.text("PLAY").addClass("is-pause"),clearTimeout(slickTimeout))})}),$.cookie("movie"))$(function(){$("html").removeClass("movie-on").addClass("slide-on"),slickTimeout=setTimeout(function(){$slick.slick("slickNext")},slideSecondArray[0])});else{var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];function onYouTubeIframeAPIReady(){player=new YT.Player("player",{height:"675",width:"1200",videoId:"V999yzSIRAk",playerVars:{playsinline:1,showControls:0,modestbranding:1,showinfo:0,controls:0,rel:0},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}}),player2=new YT.Player("player_sp",{height:"675",width:"1200",videoId:"cIyiy9t0bj4",playerVars:{playsinline:1,showControls:0,modestbranding:1,showinfo:0,controls:0,rel:0},events:{onReady:onPlayerReadySP,onStateChange:onPlayerStateChangeSP}})}firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}function onPlayerReady(e){e.target.mute(),e.target.playVideo(),window.innerWidth>=768&&$("html").addClass("movie-on"),$.cookie("movie","true",{expires:7})}function onPlayerStateChange(e){e.data==YT.PlayerState.ENDED&&window.innerWidth>=768&&($("html").removeClass("movie-on").addClass("slide-on"),slickTimeout=setTimeout(function(){$slick.slick("slickNext")},slideSecondArray[0]))}function onPlayerReadySP(e){e.target.mute(),e.target.playVideo(),window.innerWidth<768&&$("html").addClass("movie-on")}function onPlayerStateChangeSP(e){e.data==YT.PlayerState.ENDED&&window.innerWidth<768&&($("html").removeClass("movie-on").addClass("slide-on"),slickTimeout=setTimeout(function(){$slick.slick("slickNext")},slideSecondArray[0]))}

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.