PageSourceSearch

https://sasaki-naika.com/wp-content/plugins/custom-editer-wevery/js/wevery_custom_style.js?20260930092336

js sasaki-naika.com collected 2026-09-30 23:13:32 UTC 6,160 bytes, 192 lines download raw bytes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17$(function() {
18    $('.plgwv_tab_01').each(function() {
19        var $container = $(this);
20
21        // 初期設定:最初のタブパネルのみ表示
22        $container.find('.tab_panel').hide();
23        $container.find('.tab_panel').eq(0).show();
24
25        // タブクリック時の挙動
26        $container.find('.tab_menu .tab').click(function() {
27            var index = $(this).data('tab');
28
29            // クリックされたタブのパネルを表示、他を非表示
30            $container.find('.tab_panel').hide();
31            $container.find('.tab_panel').eq(index).fadeIn();
32
33            // タブのスタイルを更新
34            $container.find('.tab').removeClass('selected');
35            $(this).addClass('selected');
36        });
37    });
38});
39$(function() {
40    $('.plgwv_tab_02').each(function() {
41        var $container = $(this);
42
43        // 初期設定:最初のタブパネルのみ表示
44        $container.find('.tab_panel').hide();
45        $container.find('.tab_panel').eq(0).show();
46
47        // タブクリック時の挙動
48        $container.find('.tab_menu .tab').click(function() {
49            var index = $(this).data('tab');
50
51            // クリックされたタブのパネルを表示、他を非表示
52            $container.find('.tab_panel').hide();
53            $container.find('.tab_panel').eq(index).fadeIn();
54
55            // タブのスタイルを更新
56            $container.find('.tab').removeClass('selected');
57            $(this).addClass('selected');
58        });
59    });
60});
61$(function() {
62    $('.plgwv_tab_03').each(function() {
63        var $container = $(this);
64
65        // 初期設定:最初のタブパネルのみ表示
66        $container.find('.tab_panel').hide();
67        $container.find('.tab_panel').eq(0).show();
68
69        // タブクリック時の挙動
70        $container.find('.tab_menu .tab').click(function() {
71            var index = $(this).data('tab');
72
73            // クリックされたタブのパネルを表示、他を非表示
74            $container.find('.tab_panel').hide();
75            $container.find('.tab_panel').eq(index).fadeIn();
76
77            // タブのスタイルを更新
78            $container.find('.tab').removeClass('selected');
79            $(this).addClass('selected');
80        });
81    });
82});
83  $(function() {
84    $('.plgwv_acco_01 > .ttl').on('click', function() {
85      const $ttl = $(this);
86      const $content = $ttl.next('.content');
87
88      $content.slideToggle(200, function() {
89        if ($content.is(':visible')) {
90          $ttl.addClass('open');
91        } else {
92          $ttl.removeClass('open');
93        }
94      });
95    });
96  });
97  $(function() {
98    $('.plgwv_acco_02 .item > .acco_head').on('click', function() {
99      const $ttl = $(this);
100      const $content = $ttl.next('.content');
101
102      $content.slideToggle(200, function() {
103        if ($content.is(':visible')) {
104          $ttl.addClass('open');
105        } else {
106          $ttl.removeClass('open');
107        }
108      });
109    });
110  });
111
112
113
114
115
116
117$(function(){
118  $('.plgwv_info_blog .newsdate').each(function(){
119    var txt =  $(this).html();
120    $(this).html(txt.replace(/\[/g,'').replace(/]/g,'').slice(0,-8));
121  });
122
123  $('.plgwv_info_blog .columndate').each(function(){
124    var txt =  $(this).html();
125    $(this).html(txt.replace(/\[/g,'').replace(/]/g,'').replace(/更新/g,''));
126  });
127});
128
129(function(){
130  const boot = () => {
131    document.querySelectorAll('.plgwv_cal_02').forEach(container => {
132      try {
133        const labelThis = container.querySelector('.cal_label0');
134        const labelNext = container.querySelector('.cal_label1');
135        const holderNext = container.querySelector('.cal_next_holder');
136        const iframeThis = container.querySelector('iframe');
137
138        if (!iframeThis) { console.warn('[gcal] iframeが見つかりません', container); return; }
139
140        // ベースURLを取得
141        let baseUrl = (iframeThis.getAttribute('src') || '').trim().replace(/&/g, '&');
142        if (!baseUrl) { console.warn('[gcal] iframeのsrcが空です', iframeThis); return; }
143
144        // URL妥当性チェック
145        let urlObj;
146        try { urlObj = new URL(baseUrl); }
147        catch(e){ console.error('[gcal] 不正なURLです:', baseUrl, e); return; }
148
149        // 既存の dates パラメータを削除
150        urlObj.searchParams.delete('dates');
151        baseUrl = urlObj.toString();
152
153        // ラベル設定
154        const setMonthLabel = (el, dateObj)=>{
155          if (!el) return;
156          el.textContent = dateObj.toLocaleDateString('ja-JP', { month:'long' });
157        };
158        const now = new Date();
159        setMonthLabel(labelThis, now);
160
161        // 来月dates生成
162        const fmt = (y,m,d)=> String(y)+String(m).padStart(2,'0')+String(d).padStart(2,'0');
163        const firstNext = new Date(now.getFullYear(), now.getMonth()+1, 1);
164        const firstAfter = new Date(now.getFullYear(), now.getMonth()+2, 1);
165        const datesParam = `dates=${fmt(firstNext.getFullYear(), firstNext.getMonth()+1, 1)}/${fmt(firstAfter.getFullYear(), firstAfter.getMonth()+1, 1)}`;
166        setMonthLabel(labelNext, firstNext);
167
168        // 来月iframe生成
169        if (holderNext) {
170          holderNext.textContent = '';
171          const ifr = document.createElement('iframe');
172          ifr.src = `${baseUrl}${baseUrl.includes('?') ? '&' : '?'}${datesParam}`;
173          ifr.width = iframeThis.getAttribute('width') || '800';
174          ifr.height = iframeThis.getAttribute('height') || '600';
175          ifr.style.borderWidth = '0';
176          ifr.frameBorder = '0';
177          ifr.scrolling = 'no';
178          ifr.loading = 'lazy';
179          holderNext.appendChild(ifr);
180        }
181
182      } catch(err) {
183        console.error('[gcal] 予期せぬエラー:', err);
184      }
185    });
186  };
187  if (document.readyState === 'loading') {
188    document.addEventListener('DOMContentLoaded', boot, { once:true });
189  } else {
190    boot();
191  }
192})();

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.