PageSourceSearch

https://yoshinori-kobayashi.com/wordpress/wp-content/themes/kobayashi-2025/js/page-single.js

js yoshinori-kobayashi.com collected 2026-10-02 10:25:55 UTC 1,182 bytes, 54 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2	const copyButtons = document.querySelectorAll('.single-sns-sidebar .icon-link .copy');
3
4	copyButtons.forEach(button => {
5		button.addEventListener('click', () => {
6			const url = window.location.href;
7
8			navigator.clipboard.writeText(url).then(() => {
9				const iconLink = button.closest('.icon-link');
10				if (iconLink) {
11				iconLink.classList.add('is-copy');
12
13				// 任意:2秒後にクラスを削除
14				setTimeout(() => {
15					iconLink.classList.remove('is-copy');
16				}, 2000);
17				}
18			}).catch(err => {
19				console.error('コピーに失敗しました:', err);
20			});
21		});
22	});
23
24
25
26
27
28	const singleSideSwiper = new Swiper('.single-side-swiper', {
29		autoplay: false,
30		centeredSlides: false,
31		disableOnInteraction: false,
32		freeMode: false,
33		loop: false,
34		slidesPerView: "auto",
35		slidesPerGroup: 1,
36		spaceBetween: 24,
37		navigation: {
38			nextEl: '.swiper-button-next',
39			prevEl: '.swiper-button-prev',
40		},
41		breakpoints: {
42			780: {
43				slidesPerView: "auto",
44				spaceBetween: 32,
45				slidesPerGroup: 2
46			},
47			1600: {
48				slidesPerView: "auto",
49				spaceBetween: 36,
50				slidesPerGroup: 2
51			}
52		}
53	});
54});

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.