PageSourceSearch

https://www.kumagayacci.or.jp/renewal/wp-content/plugins/my-snow-monkey/assets/js/script.js?ver=7.0.6

js kumagayacci.or.jp collected 2026-10-05 17:45:47 UTC 1,810 bytes, 60 lines download raw bytes

1(function($) {
2
3	// 画面幅768px未満の時は'.tel-link'に電話リンクをつける
4	if ($(window).width() < 768) {
5		$('.tel-link').each(function() {
6			var $this = $(this);
7			var tel = $this.data('tel');
8			// header_nav_tel内かどうか判定
9			if ($this.closest('.header_nav_tel').length) {
10				// header用処理
11				var number = $this.clone()
12					.children('.tel-time')
13					.remove()
14					.end()
15					.text();
16				var time = $this.find('.tel-time').prop('outerHTML');
17				$this.replaceWith(
18					'<a href="tel:' + tel + '" class="tel-link">' +
19						'<i class="fa-solid fa-phone"></i>' +
20						number +
21						time +
22					'</a>'
23				);
24			} else {
25				// その他のtel-link
26				var text = $this.text();
27				$this.replaceWith(
28					'<a href="tel:' + tel + '" class="tel-link">' + text + '</a>'
29				);
30			}
31		});
32	}
33
34
35	document.addEventListener('DOMContentLoaded', function () {
36
37  // 1) /special/ は常に別タブ
38  document.querySelectorAll('a[href*="/special/"]').forEach(function (link) {
39    link.addEventListener('click', function (e) {
40      if (e.metaKey || e.ctrlKey || e.button === 1) return;
41      e.preventDefault();
42      window.open(link.getAttribute('href'), '_blank');
43    });
44  });
45
46  // 2) voices(voiceアーカイブ)ページだけ /voice/ を全部別タブ
47  if (document.body.classList.contains('post-type-archive-voice')) {
48    document.querySelectorAll('a[href*="/voice/"]').forEach(function (link) {
49      link.addEventListener('click', function (e) {
50        if (e.metaKey || e.ctrlKey || e.button === 1) return;
51        e.preventDefault();
52        window.open(link.getAttribute('href'), '_blank');
53      });
54    });
55  }
56// 2) voices(voiceアーカイブ)ページだけ /voice/ を全部別タブ使用しなくなったら削除する
57});
58
59
60})(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.