PageSourceSearch

https://www.data-privacy-day.jp/wp-content/themes/dpd/common/js/nav.js?1791355386

js data-privacy-day.jp collected 2026-10-07 06:43:21 UTC 1,821 bytes, 68 lines download raw bytes

1$(function(){
2	var $commonNavi = $("#common-navi");
3	$(window).scroll(function(){
4		if ($(this).scrollTop() > 2) {
5			$commonNavi.addClass("trance");
6		} else {
7			$commonNavi.removeClass("trance");
8		}
9	});
10});
11/*$(window).load(function(){
12	var $body = $('body'),
13		$navTypeA = $('#page-navi'),
14		navTypeAOffsetTop = $navTypeA.offset().top;
15	$(window).scroll(function(){
16		if($(this).scrollTop() > navTypeAOffsetTop) {
17      $body.addClass('fixed');
18    } else {
19      $body.removeClass('fixed');
20    }
21  });
22});*/
23//ページ内スクロール
24$(document).on('click', 'a[href*=#]', function(event){
25	var headerHight = $('#common-navi').height();
26	var pageNaviHight = $('#page-navi').height();
27	if (this.href.indexOf("#") === 0 || (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname)) {
28			event.preventDefault();
29		
30			$('html,body').animate({
31				scrollTop: $(this.hash).offset().top+1
32			},1100, 'easeOutQuart');
33	}
34});
35
36$(function($){
37	var body = $('body'),
38		header = $('.header'),
39		slideMenu = $('.slide-menu'),
40        slideMenuBtn = $('#slide-navi-btn'),        
41		pageNavi = $('#page-navi'),
42		pabeNaviHeight = pageNavi.height(),
43		menuWidth = slideMenu.outerWidth();
44	 	slideMenuBtn.click(function(){
45    // body に open クラスを付与する
46    body.toggleClass('open');
47	$(".slide-btn-icon").toggleClass("close");
48        if(body.hasClass('open')){
49            slideMenu.animate({
50			'right' : 0
51		}, 300);
52		header.animate({
53			'right' : 0
54		}, 300);
55		pageNavi.animate({
56			'top' : -pabeNaviHeight
57		}, 300);                 
58        } else {
59        slideMenu.animate({
60			'right' : -menuWidth }, 300);
61        header.animate({
62			'left' : 0 }, 300);
63		pageNavi.animate({
64			'top' : 0
65		}, 300);           
66        }             
67	});
68});

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.