PageSourceSearch

https://www.frees-life.com/wp-content/themes/freeslife/common/js/header_fixed.js

js frees-life.com collected 2026-10-08 04:30:18 UTC 1,433 bytes, 66 lines download raw bytes

1// JavaScript Document
2//if(!navigator.userAgent.match(/(iPhone|iPad|Android)/)){]
3if (window.matchMedia('(max-width: 699px)').matches) {
4
5	// SP
6	$(function() {
7		var nav = $('.midArea');
8		//表示位置
9		var navTop = nav.offset().top+250;
10		var navHeight = nav.height()+10;
11		var showFlug = false;
12		nav.css('top', -navHeight+'px');
13		$(window).scroll(function () {
14			var winTop = $(this).scrollTop();
15			if (winTop >= navTop) {
16				if (showFlug == false) {
17					showFlug = true;
18					nav
19						.addClass('fixed')
20						.stop().animate({'top' : '0px'}, 200);
21				}
22			} else if (winTop <= navTop) {
23				if (showFlug) {
24					showFlug = false;
25					nav.stop().animate({'top' : -navHeight+'px'}, 200, function(){
26						nav.removeClass('fixed');
27					});
28				}
29			}
30		});
31	});
32}else{
33
34	// PC
35	$(function() {
36		var nav = $('header');
37		//表示位置
38		var navTop = nav.offset().top+250;
39		var navHeight = nav.height()+10;
40		var showFlug = false;
41		nav.css('top', -navHeight+'px');
42		$(window).scroll(function () {
43			var winTop = $(this).scrollTop();
44			if (winTop >= navTop) {
45				if (showFlug == false) {
46					showFlug = true;
47					nav
48						.addClass('fixed')
49						.stop().animate({'top' : '0px'}, 200);
50				}
51			} else if (winTop <= navTop) {
52				if (showFlug) {
53					showFlug = false;
54					nav.stop().animate({'top' : -navHeight+'px'}, 200, function(){
55						nav.removeClass('fixed');
56					});
57				}
58			}
59		});
60	});
61
62}
63
64//}
65
66

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.