PageSourceSearch

https://www.nipr.ac.jp/js/setting.js

js nipr.ac.jp collected 2026-09-24 08:59:37 UTC 2,031 bytes, 89 lines download raw bytes

1/*--- drawer  ---*/
2$(document).ready(function() {
3    $('.drawer').drawer();
4    $('.drawer-nav li').on('click', function() {
5        $('.drawer').drawer('close');
6    });
7});
8
9$(function(){
10	$('img[usemap]').rwdImageMaps();
11});
12
13/*--- flexbok 最後の行 左寄せ ---*/
14$(function(){
15	var elem = "";
16		for (var i = -1; ++i < 3;) {
17			elem +='<section class="empty"></section>';
18		}
19	$(".child-inner, .menu-contents-top, .column.number, .column.pamphlet").append(elem);
20});
21
22/*--- スクロールフェード ---*/
23jQuery(function(){
24    jQuery(window).scroll(function (){
25        jQuery('.fade-up, .fade-left, .fade-right').each(function(){
26            var elemPos = jQuery(this).offset().top;
27            var scroll = jQuery(window).scrollTop();
28            var windowHeight = jQuery(window).height();
29            if (scroll > elemPos - windowHeight + 0){
30                jQuery(this).addClass('scrollin');
31            }
32        });
33    });
34    jQuery(window).scroll();
35  });
36 
37/*--- inview ---*/
38$(function() {
39  $('.img-fade').on('inview', function(event, isInView) {
40    if (isInView) {
41    //表示領域に入った時
42      $(this).addClass('img-blur');
43    } else {
44    //表示領域から出た時
45      $(this).removeClass('img-blur');
46    }
47  });
48});
49
50/*--- ティッカー ---*/
51$(function() {
52$('.ticker').slick({
53  slidesToScroll: 1,
54  autoplay: true,
55  pauseOnHover: true,
56  speed: 9000,
57  autoplaySpeed:0,
58  cssEase:"linear",
59  variableWidth: true,
60	});
61$('.ticker-left').slick({
62  slidesToScroll: 1,
63  autoplay: true,
64  pauseOnHover: true,
65  speed: 9000,
66  autoplaySpeed:0,
67  cssEase:"linear",
68  variableWidth: true,
69  rtl: true,
70	});
71});
72
73/*--- Page Top ---*/
74$(function(){
75	$(window).scroll(function(){
76		var now = $(window).scrollTop();
77
78		var under = $('body').height() - (now + $(window).height());
79		if(now > 100 && under > 10){
80			$('#page-top').fadeIn('10');
81		}else{
82			$('#page-top').fadeOut('10');
83		}
84	});
85 
86	$('#move-page-top').click(function(){
87		$('html,body').animate({scrollTop:0});
88	});
89});

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.