PageSourceSearch

https://impression-ilc.jp/common-files/js/base.js

js impression-ilc.jp collected 2026-10-04 15:19:27 UTC 4,584 bytes, 142 lines download raw bytes

1$(function(){
2	$(window).load(function(){
3		var $setElm = $('.ticker');
4		var effectSpeed = 1000;
5		var switchDelay = 9000;
6		var easing = 'swing';
7
8		$setElm.each(function(){
9			var effectFilter = $(this).attr('rel');
10
11			var $targetObj = $(this);
12			var $targetUl = $targetObj.children('ul');
13			var $targetLi = $targetObj.find('li');
14			var $setList = $targetObj.find('li:first');
15
16			var ulWidth = $targetUl.width();
17			var listHeight = $targetLi.height();
18			$targetObj.css({height:(listHeight)});
19			$targetLi.css({top:'0',left:'0',position:'absolute'});
20
21			if(effectFilter == 'fade') {
22				$setList.css({display:'block',opacity:'0',zIndex:'98'}).stop().animate({opacity:'1'},effectSpeed,easing).addClass('showlist');
23				setInterval(function(){
24					var $activeShow = $targetObj.find('.showlist');
25					$activeShow.animate({opacity:'0'},effectSpeed,easing,function(){
26						$(this).next().css({display:'block',opacity:'0',zIndex:'99'}).animate({opacity:'1'},effectSpeed,easing).addClass('showlist').end().appendTo($targetUl).css({display:'none',zIndex:'98'}).removeClass('showlist');
27					});
28				},switchDelay);
29			} else if(effectFilter == 'roll') {
30				$setList.css({top:'3em',display:'block',opacity:'0',zIndex:'98'}).stop().animate({top:'0',opacity:'1'},effectSpeed,easing).addClass('showlist');
31				setInterval(function(){
32					var $activeShow = $targetObj.find('.showlist');
33					$activeShow.animate({top:'-3em',opacity:'0'},effectSpeed,easing).next().css({top:'3em',display:'block',opacity:'0',zIndex:'99'}).animate({top:'0',opacity:'1'},effectSpeed,easing).addClass('showlist').end().appendTo($targetUl).css({zIndex:'98'}).removeClass('showlist');
34				},switchDelay);
35			} else if(effectFilter == 'slide') {
36				$setList.css({left:(ulWidth),display:'block',opacity:'0',zIndex:'98'}).stop().animate({left:'0',opacity:'1'},effectSpeed,easing).addClass('showlist');
37				setInterval(function(){
38					var $activeShow = $targetObj.find('.showlist');
39					$activeShow.animate({left:(-(ulWidth)),opacity:'0'},effectSpeed,easing).next().css({left:(ulWidth),display:'block',opacity:'0',zIndex:'99'}).animate({left:'0',opacity:'1'},effectSpeed,easing).addClass('showlist').end().appendTo($targetUl).css({zIndex:'98'}).removeClass('showlist');
40				},switchDelay);
41			}
42		});
43	});
44});
45$(function() {
46    $('button').click(function(){
47        $('#head_ban').css('display', 'none');
48    });
49});
50
51$(function() {
52  var $win = $(window),
53      $main = $('#mainBox'),
54      $nav = $('nav'),
55      navHeight = $nav.outerHeight(),
56      navPos = $nav.offset().top,
57      fixedClass = 'is-fixed';
58
59  $win.on('load scroll', function() {
60    var value = $(this).scrollTop();
61    if ( value > navPos ) {
62      $nav.addClass(fixedClass);
63      $main.css('margin-top', navHeight);
64    } else {
65      $nav.removeClass(fixedClass);
66      $main.css('margin-top', '0');
67    }
68  });
69});
70
71jQuery(function($) {
72			$("#whole").effectChain({
73				css: {
74					opacity: 0,
75					visibility: "visible"
76				},
77				target: ".effectChain",
78				delay: 0,
79				interval: 150,
80				reverse: false,
81				args: [{
82					opacity: 1
83				}, {
84					duration: 500,
85					easing: "swing"
86				}]
87			});
88});
89$(function() {
90	var topBtn = $('#page-top');	
91	topBtn.hide();
92	$(window).scroll(function () {
93		if ($(this).scrollTop() > 100) {
94			topBtn.fadeIn();
95		} else {
96			topBtn.fadeOut();
97		}
98	});
99	//スクロールしてトップ
100    topBtn.click(function () {
101		$('body,html').animate({
102			scrollTop: 0
103		}, 400);
104		return false;
105    });
106});
107//規約を一番下までスクロールするとチェックできる、そしてチェックするとボタンが押せる
108$(window).on('load', function() {
109  //disabledを設定しておく
110  $('#kiyakudoui [type="checkbox"], .form-submit').prop('disabled', true);
111  
112  //一番下までスクロールするとチェック可能
113  var scrollend = false;
114  
115  $('.kiyaku').on('scroll touchmove', function(event){
116  var $this = $(this);
117  if (
118    scrollend == false
119    && $this[0].scrollTop + $this[0].clientHeight >= $this[0].scrollHeight - 5
120  ) {
121    $('#kiyakudoui [type="checkbox"]').prop('disabled', false);
122    scrollend = true;
123  }
124  });
125
126  //disabledのイベント解除設定
127  var practicableEvent = function(self, target){
128    target.prop('disabled', false);
129    setTimeout(function(){
130      self.prop('disabled', true);
131    }, 0);
132  }
133
134  $('#kiyakudoui [type="checkbox"]').on({
135    "click touchstart":function(){
136      practicableEvent($(this), $(".form-submit"));
137    },
138    "change":function(){
139      practicableEvent($(this), $(".form-submit"));
140    }
141  }); 
142});

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.