PageSourceSearch

https://kyhd.co.jp/js/all.js

js kyhd.co.jp collected 2026-10-03 01:02:57 UTC 2,285 bytes, 93 lines download raw bytes

1
2// rollover
3$(function() {
4	var image_cache = new Object();
5	$('img.roll, input.roll, .rollBox img').not("[src*='_act.']").each(function(i){
6		var i = $(this).attr('class');
7		if(i != 'noneSwap'){
8			var imgsrc = this.src,
9      dot = this.src.lastIndexOf('.'),
10      imgsrc_ovr = this.src.substr(0,dot)+'_on'+this.src.substr(dot,4);
11      image_cache[this.src] = new Image();
12      image_cache[this.src].src = imgsrc_ovr;
13      $(this).hover(function(){
14        this.src = imgsrc_ovr;
15        $(this).css('cursor','pointer');
16        $(this).click(function(){
17         this.src = imgsrc;
18       });
19      },function(){
20        this.src = imgsrc;
21        $(this).css('cursor','default');
22      });
23    }
24  });
25});
26
27
28// スムーススクロール
29$(function(){
30	$('a[href^=#]').click(function(){
31		var speed = 500;
32		var href= $(this).attr("href");
33		var target = $(href == "#" || href == "" ? 'html' : href);
34		var position = target.offset().top;
35		$("html, body").animate({scrollTop:position}, speed, "swing");
36		return false;
37	});
38});
39
40
41
42// SP menu
43$(function(){
44  $("header.global .menu_button").click(function(){
45    $(".gnav").slideToggle('fast');
46    if ($(this).hasClass('close')){
47      $(this).removeClass('close');
48    } else {
49      $(this).addClass('close');
50    }
51  });
52  $(".gnav a").click(function(){
53    $(".gnav").slideUp('fast');
54    if ($("header.global .menu_button").hasClass('close')){
55      $("header.global .menu_button").removeClass('close');
56    }
57  });
58  $(window).scroll(function(){
59    $(".gnav").slideUp('fast');
60    if ($("header.global .menu_button").hasClass('close')){
61      $("header.global .menu_button").removeClass('close');
62    }
63  });
64});
65
66
67
68function fixSideNav(){
69  var nav = $('header.global.second');
70  if (nav.length) {
71    var navOffset = nav.offset();
72    $(window).scroll(function(){
73      if ( $(window).scrollTop() > navOffset.top ) {
74        nav.addClass('fixed');
75        nav.addClass('fade');
76        $('nav.global .gnav').addClass('fixed');
77      } else {
78        nav.removeClass('fixed');
79        nav.removeClass('fade');
80        $('nav.global .gnav').removeClass('fixed');
81      }
82    });
83  }
84}
85$(function() {
86  var win = $(window).width();
87  var x = 640;
88  if(win > x){
89    $(window).on("load", fixSideNav);
90  } else {
91
92  }
93});

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.