PageSourceSearch

https://jinjer.co.jp/wp/wp-content/themes/global-assets/js/common.js

js jinjer.co.jp collected 2026-10-01 11:59:48 UTC 725 bytes, 33 lines download raw bytes

1// header
2function commonHeader() {
3	let stickyNav = $('.js-sticky');
4	stickyNav.each(function(e) {
5		let $window = $(window),
6					$header = $(this),
7					$body   = $('body'),
8					headerOffsetTop = $header.offset().top;
9		$window.on('scroll', function(e) {
10			if ($window.scrollTop() > headerOffsetTop) {
11				$body.addClass('sticky');
12			} else {
13				$body.removeClass('sticky');
14			}
15		});
16		$window.trigger('scroll');
17	});
18}
19
20// acoodion
21function commonAcoodion() {
22	let acContents = $('.js-ac-conts');
23	let acHead = $('.js-ac-head');
24	acHead.on('click', function () {
25		$(this).toggleClass('open');
26		$(this).stop().next(acContents).slideToggle();
27	});
28}
29
30;(function($) {
31	commonHeader();
32	commonAcoodion();
33})(jQuery);

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.