PageSourceSearch

https://typemoon.com/js/tmweb.js

js typemoon.com collected 2026-09-24 09:18:17 UTC 1,957 bytes, 58 lines download raw bytes

1$(document).ready(function(){
2/*メニュー制御*/
3	var navTop= $("#hd_main").offset().top;
4		
5$(window).bind("scroll resize touchmove", function() {			
6	if($(document).width()<=768 && $("#container").offset().top<=$(window).scrollTop()){
7		$('#hd_main').addClass('fixed');
8		$("#hd_main").stop(); 
9		$('#hd_main').css('display', 'none').delay(25).fadeIn('slow');
10	} else {
11	if($(document).width()>768 && $(window).scrollTop() > navTop){
12		$('#hd_main').addClass('fixed');
13	} else 
14		$('#hd_main').removeClass('fixed');
15	}
16});
17
18/*余韻のあるスクロールhttp://black-flag.net/jquery/20140312-5031.html*/
19    scrLength = 250;
20    scrSpeed = 750;
21    scrEasing = 'easeOutCirc';
22 
23    var mousewheelevent = 'onwheel' in document ? 'wheel' : 'onmousewheel' in document ? 'mousewheel' : 'DOMMouseScroll';
24    $(document).on(mousewheelevent,function(e){
25        e.preventDefault();
26        var delta = e.originalEvent.deltaY ? -(e.originalEvent.deltaY) : e.originalEvent.wheelDelta ? e.originalEvent.wheelDelta : -(e.originalEvent.detail);
27		
28        if (delta < 0){
29            scrSet =  $(document).scrollTop()+scrLength;
30        } else {
31            scrSet =  $(document).scrollTop()-scrLength;
32        }
33        $('html,body').stop().animate({scrollTop:scrSet},scrSpeed,scrEasing);
34        return false;
35    });
36	
37/*TOPへ戻るボタン*/
38	$('.page-top').click(function(){
39           $('html,body').animate({ scrollTop: 0 }, 'slow');
40	});
41});
42$(window).bind("scroll resize", function() {
43	var scrollTop= $(window).scrollTop()+$(window).height();
44	var footerTop= $("footer").offset().top;
45
46	if(scrollTop/$(document).height()>=0.5 && $(window).height() < $("#contents-box").height()){
47	 $('.page-top').fadeIn('slow');
48	}else{
49	 $('.page-top').fadeOut('slow');
50	}
51/*footer領域に戻るボタンが入り込んだ時の制御*/
52	if(footerTop<=scrollTop){
53	 $('.page-top').addClass('ft-fixed');
54	}else{
55	 $('.page-top').removeClass('ft-fixed');
56	}
57	
58});

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.