PageSourceSearch

https://celebrity-house.jp/wp/wp-content/themes/celebrity_wp/js/common.js?261004

js celebrity-house.jp collected 2026-10-04 15:20:59 UTC 3,291 bytes, 103 lines download raw bytes

1$(function(){
2// Fonts
3	(function(d) {
4		var config = {
5			kitId: 'cpq8oyw',
6			scriptTimeout: 3000,
7			async: true
8		},
9		h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
10	})(document);
11
12	setTimeout(function() {
13		if (document.getElementsByTagName("html")[0].classList.contains('wf-active') != true) {
14			document.getElementsByTagName("html")[0].classList.add('loading-delay');
15		}
16	});
17
18
19// navi
20	var state = false;
21	var scrollpos;
22	$('.sp-header-navi-button').on('click', function(){
23		if(state == false) {
24			scrollpos = $(window).scrollTop();
25			$('body').addClass('sp-header-open').css({'top': -scrollpos});
26			state = true;
27		} else {
28			$('body').removeClass('sp-header-open').css({'top': 0});
29			window.scrollTo( 0 , scrollpos );
30			state = false;
31		}
32	});
33
34
35// navi accordion
36	$(".sp-header-navi-accordion").on("click", function() {
37		$('.sp-header-navi-accordion .accordion').slideToggle();
38		$(this).toggleClass("open");
39	});
40
41	$(".top-faq-item-question").on("click", function() {
42		$(this).next().slideToggle();
43		$(this).toggleClass("active");
44	});
45
46	$(".footer-navi-title").on("click", function() {
47		$(this).next().slideToggle();
48		$(this).toggleClass("active");
49	});
50	$(".footer-navi-box-title").on("click", function() {
51		$(this).next().slideToggle();
52		$(this).toggleClass("active");
53	});
54	
55$(function() {
56  $('.tab').children('li').click(function() {
57		var index = $('.tab li').index(this);
58		$(this).parents().parents().children('.tab_contents').children('li').css('display','none');
59		$('.tab_contents li').eq(index).css('display','block');
60		$(this).parents().children().removeClass('tab_current');
61		$(this).addClass('tab_current')
62	});
63});
64	// callcenter
65  $(function() {
66   $('.call .tabs a[href^="#panel"]').click(function(){
67        $(".call .tabs .panel").hide();
68        $(this.hash).fadeIn();
69        return false;
70    });
71    $('.call .tabs a[href^="#panel"]:eq(0)').trigger('click');  
72  });
73  
74  
75  
76// tel-modal
77$('.modal-open').click(function(){
78        $('body').append('<div class="modal-overlay"></div>');
79        $('.modal-overlay').fadeIn('slow');
80        var modal = '#' + $(this).attr('data-target');
81        modalResize();
82        $(modal).fadeIn('slow');
83        $('.modal-overlay, .modal-close').off().click(function(){
84            $(modal).fadeOut('slow');
85            $('.modal-overlay').fadeOut('slow',function(){
86                $('.modal-overlay').remove();
87            });
88        });
89        $(window).on('resize', function(){
90            modalResize();
91        });
92        function modalResize(){
93            var w = $(window).width();
94            var h = $(window).height();
95            var x = (w - $(modal).outerWidth(true)) / 2;
96            var y = (h - $(modal).outerHeight(true)) / 2;
97            $(modal).css({'left': x + 'px','top': y + 'px'});
98        }
99    });  
100  
101});
102
103

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.