PageSourceSearch

https://oguri.info/js/utility.js

js oguri.info collected 2026-10-02 17:36:26 UTC 1,727 bytes, 86 lines download raw bytes

1$(window).load(function utility(ue){
2/*
3	function ffd(){
4		$('body').css({'opacity':'0'});
5		$('body').animate({opacity:0},500).animate({opacity:1},500);
6	}
7	ffd();
8*/
9
10	$('p.pagetop').hide();
11	$('#header .notes').hide();
12	ptv();
13	ntsv();
14	ftfits();
15
16
17	$('img').on('contextmenu',function(e){
18		return false;
19	}).bind('mousedown mouseup',function(e){
20		e.preventDefault();
21	});
22
23
24	$(window).scroll(function(){
25		ptv();
26		ntsv();
27	});
28
29	$(window).resize(function(){
30		ftfits();
31		ptv();
32	});
33
34	function ptv(){
35		var sct = parseInt($(this).scrollTop());
36		var wH = parseInt($(window).innerHeight())+100;
37		var bH = parseInt($('body').height());
38		if(sct < 150 && wH < bH){
39			$('p.pagetop').fadeOut();
40		}else if(sct > 150 && wH < bH){
41			$('p.pagetop').fadeIn();
42		}else if(wH > bH){
43			$('p.pagetop').show();
44		}
45	}
46
47	function ntsv(){
48		var sct = parseInt($(this).scrollTop());
49		if(sct < 100){
50			if($('#header .notes')){
51				$('#header .notes').fadeIn();
52			}
53		}
54		else if(sct >= 101){
55			if($('#header .notes')){
56				$('#header .notes').fadeOut();
57			}
58		}
59	}
60
61	function ftfits(){
62		var wH = parseInt($(window).innerHeight());
63		var bH = parseInt($('body').height());
64		if(bH + 175 < wH){
65			$('#footer').css({'position':'fixed','bottom':'0'});
66		}else if(bH > wH){
67			$('#footer').css({'position':'relative'});
68		}
69	}
70
71	$('a[href^="#"]').click(function hashScroll(event) {
72		var id = $(this).attr("href");
73		var offset = 100;
74		if(id == '#header'){
75			$('html, body').animate({scrollTop:0}, 500);
76			event.preventDefault();
77			return false;
78		}else if(id.length > 2){
79			var target = $(id).offset().top - offset;
80			$('html, body').animate({scrollTop:target}, 500);
81			event.preventDefault();
82			return false;
83		}
84	});
85
86});

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.