PageSourceSearch

https://shirosai.shop/common/js/config.js

js shirosai.shop collected 2026-10-01 06:44:00 UTC 1,549 bytes, 63 lines download raw bytes

1
2/*	ƒ[ƒ‹ƒI[ƒo[
3-------------------------------------------------------- */
4jQuery(function($) {
5	var suffix = '_on';
6	$('.over').each(function() {
7		var img  = $(this);
8		var src  = img.attr('src');
9		var name = src.substr(0, src.lastIndexOf('.'));
10		var ext  = src.substring(src.lastIndexOf('.'));
11		if (name.match(suffix + '$')) return;
12		var src_on = name + suffix + ext;
13		$('<img>').attr('src', src_on);
14		img.hover(
15			function() { img.attr('src', src_on); },
16			function() { img.attr('src', src); }
17			);
18	});
19});
20
21
22/*	ƒ[ƒ‹ƒI[ƒo[‚Å”¼“§–¾
23-------------------------------------------------------- */
24$(function() {
25	$(".fade").hover(function(){ 
26		$(this).stop(true).fadeTo(200,0.8);
27	},function() {
28		$(this).fadeTo(200,1);
29	});
30	
31});
32
33
34/*	ƒXƒ€[ƒYƒXƒNƒ[ƒ‹
35-------------------------------------------------------- */
36$(function(){
37   $('.pagetop a').click(function() {
38      // ƒXƒNƒ[ƒ‹‚Ì‘¬“x
39      var speed = 400; // ƒ~ƒŠ•b
40      // ƒAƒ“ƒJ[‚Ì’lŽæ“¾
41      var href= $(this).attr("href");
42      // ˆÚ“®æ‚ðŽæ“¾
43      var target = $(href == "#" || href == "" ? 'html' : href);
44      // ˆÚ“®æ‚𐔒l‚Ŏ擾
45      var position = target.offset().top;
46      // ƒXƒ€[ƒXƒXƒNƒ[ƒ‹
47      $('body,html').animate({scrollTop:position}, speed, 'swing');
48      return false;
49   });
50});
51
52
53
54/*	ƒtƒ[ƒeƒBƒ“ƒOLINEƒoƒi[
55-------------------------------------------------------- */
56jQuery(window).on("scroll", function($) {
57  if (jQuery(this).scrollTop() > 100) {
58    jQuery('.floating').show();
59  } else {
60    jQuery('.floating').hide();
61  }
62});
63

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.