PageSourceSearch

https://www.bornelund.co.jp/contents/themes/bornelund/js/script.js?ver=1790886840

js bornelund.co.jp collected 2026-10-01 11:34:48 UTC 29,390 bytes, 790 lines download raw bytes

1/*----------------------------------------------------
2    ヘッダー
3----------------------------------------------------*/
4$(window).scroll(function(){
5  if ($(window).scrollTop() > 30) {
6    $('#header--wrap').addClass('header--min');
7  } else {
8    $('#header--wrap').removeClass('header--min');
9  }
10});
11
12
13$(function(){
14
15/*----------------------------------------------------
16	画像 sp pc置換
17----------------------------------------------------*/
18var widthFlag = '';
19$(function() {
20	widthCheck();
21	$(window).on('load resize', function() {
22	widthCheck();
23	});
24});
25
26function widthCheck() {
27	var winWidth = $(window).width();
28	var imgSwithc = $('.img-switch');
29	if(winWidth <= 768 && widthFlag != 'sp') {
30		widthFlag = 'sp';
31		imgSwithc.each(function(){
32			$(this).attr("src",$(this).attr("src").replace('images/', 'images/sp/'));
33		});
34	} else if(winWidth > 768 && widthFlag != 'pc') {
35		widthFlag = 'pc';
36		imgSwithc.each(function(){
37			$(this).attr("src",$(this).attr("src").replace('images/sp/', 'images/'));
38		});
39	}
40}
41
42/*----------------------------------------------------
43	TOP
44----------------------------------------------------*/
45//TOP slider
46var ww = $(window).width();
47/*$(".slider").bxSlider({
48    mode: 'fade',
49    auto: true,
50    infiniteLoop: true,
51    responsive: true,
52    speed: 2000,
53    displaySlideQty: 1,
54    pager: true,
55    //slideWidth: 1580,
56    startSlide: 0,
57    minSlides: 1,
58    maxSlides: 1,
59    moveSlides: 1,
60    slideMargin: 0,
61    pause: 7000,
62});*/
63//$('.slider li').animate({'opacity':'1'}, 1000);
64
65// 動画のミュート
66$('#mute').click(function() {
67	// ミュートされているかどうか
68	if(ytPlayer.isMuted()) {
69		// ミュートの解除
70		ytPlayer.unMute();
71	} else {
72		// ミュート
73		ytPlayer.mute();
74	}
75	//画像切り替え
76	$(this).toggleClass("on");
77});
78
79//top調整
80$('.elementary__wrap__inner div:nth-child(odd)').addClass("odd");
81
82//recruit背景切り替えループ
83var current = 0,
84    box = $(".recruit-bg");
85    thumb = $(".thumb li");
86    var recruitbg = setInterval(function(){
87        box.eq(current).fadeOut(1700);
88        thumb.eq(current).removeClass("ac");
89        next = current + 1;
90        if (box.eq(next).length === 0)
91          next = 0;
92        box.eq(next).fadeIn(1700);
93        thumb.eq(next).addClass("ac");
94        current = next;
95}, 7000);
96//サムネイルで切り替え
97thumb.click(function() {
98    clearInterval(recruitbg);
99    thumb.not(this).removeClass("ac");
100    $(this).addClass("ac");
101    var num = $("ul.thumb li").index(this);
102    box.fadeOut();
103    box.eq(num).fadeIn();
104});
105//サムネイル数によってclass追加
106var thum_size = $('ul.thumb li').length;
107if( thum_size <= 6){
108	$('ul.thumb').addClass('min');
109} else {
110	$('ul.thumb').addClass('max');
111}
112
113//ループの中に要素挿入
114// $('.asobi-no-mori .contents0').after("<div class='anq'><p>「あそびのもり」のご感想をお寄せください。抽選であそび道具をプレゼントしております。<br>よりよい子育て応援誌にするため、ご協力をよろしくお願いいたします。</p><p class='link'><a href='https://ec.bornelund.co.jp/shop/everyform/form.aspx?questionnaire=asobinomori54' target='_blank'>最新号のアンケートフォームはこちら</a></p></div>");
115
116/*----------------------------------------------------
117	page.php
118----------------------------------------------------*/
119
120//下層ページ 背景効果
121$(window).scroll(function(){
122var y = $(this).scrollTop();
123$('body').css('background-position', 'center ' + parseInt( -y / 4 + 0 ) + 'px');
124});
125
126//shoplist
127$(".sidebar dl dt").click(function(){
128    if ( $(this).parent().find("dd").is(".open") ) {
129       $(this).removeClass("active")
130       $(this).parent().find("dd").removeClass("open").slideUp("fast");
131    } else {
132       $(this).addClass("active")
133       $(this).parent().find("dd").addClass("open").slideDown("fast");
134    }
135});
136//shoplist-tab
137(function($){
138    $(function() {
139        $('.shop-list_tab>li').click(function() {
140        var num = $(this).parent().children('li').index(this);
141        $('.shop-list_tab').each(function(){
142        $('>li',this).removeClass('js-current').eq(num).addClass('js-current');
143        });
144        $('.tabSection .shop-list_contents .shop-locality').hide().eq(num).show();
145        }).first().click();
146    });
147})(jQuery);
148$(document).ready(function(e) {
149  $('.shop-list_area img[usemap]').rwdImageMaps();
150
151});
152
153
154//TOPページから各ショップエリアへ
155$(function() {
156  //URL取得とチェック
157  var url = location.href;
158 
159	if (url.match(/shop\?shoparea=\d#/)) {
160
161		//取得したURLを「?」で分割
162		var params = url.split("?");
163
164		//params内のデータを「=」で分割
165		var tab = params[1].split("=");
166
167		//tab内のデータをtabnameに格納 ,先頭1文字取得
168		if($(tab).length){
169		var tabname = tab[1].slice(0, 1)-1;
170		}
171		$('.shop-list_tab.top li').removeClass('js-current').eq(tabname).addClass('js-current');
172		$('.shop-list_tab.bottom li').removeClass('js-current').eq(tabname).addClass('js-current');
173		$('.tabSection .shop-list_contents .shop-locality').hide().eq(tabname).show();
174	}
175});
176
177/*----------------------------------------------------
178	playville FAQ
179----------------------------------------------------*/
180$(".question dl dt").click(function(){
181       if ( $(this).next().is(".open") ) {
182           $(this).next().removeClass("open").slideUp("fast");
183       } else {
184           $(this).next().addClass("open").slideDown("fast");
185       }
186   });
187  $('#pre_link').click(function(){
188      $('.question dl dd').eq(0).addClass("open").slideDown("fast");
189  });
190
191/*----------------------------------------------------
192	会社案内パートナー モーダル
193----------------------------------------------------*/
194$('ul.brandlist li').click(function(){
195	var index = $('ul.brandlist li').index(this);
196
197    var modalHeight = $('ul.modal li').eq(index).height();
198    var modalOuterHeight = $('ul.modal li').eq(index).outerHeight();
199    var modalPad = modalOuterHeight - modalHeight;
200
201	_winHeight = $(window).height();
202
203	if(modalOuterHeight > _winHeight){
204		modalOuterHeight = _winHeight - 138;
205	}
206
207    var secHeight = modalOuterHeight *0.5;
208	var secWidth = $('ul.modal li').eq(index).outerWidth() *0.5;
209
210	var Heightpx = secHeight * -1;
211	var Widthpx = secWidth * -1;
212
213	$('ul.modal li').eq(index).fadeIn().css({
214        "margin-top" : Heightpx + "px" ,
215		"margin-left" : Widthpx + "px",
216		"height" : modalOuterHeight - modalPad + "px"
217    });
218    $('#whiteOut').fadeIn();
219
220    return false;
221});
222
223$('ul.modal li , #whiteOut').click(function(){
224	$('ul.modal li , #whiteOut').fadeOut();
225});
226
227/*----------------------------------------------------
228	あそび場づくりの実績
229----------------------------------------------------*/
230
231//カテゴリーフィルタリング
232//$('#listArea').mixItUp();
233
234function getParam(name, url) {
235    if (!url) url = window.location.href;
236    name = name.replace(/[\[\]]/g, "\\$&");
237    var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
238        results = regex.exec(url);
239    if (!results) return null;
240    if (!results[2]) return '';
241    return decodeURIComponent(results[2].replace(/\+/g, " "));
242}
243
244if ($('body').hasClass('page-id-362')) {
245	var filter = getParam('filter');
246	if(filter==='kompan'){
247	  $('#listArea').mixItUp({
248		  load:{
249			filter:".kompan"
250		  }
251	  });
252	} else {
253		$('#listArea').mixItUp();
254	}
255}
256
257//サムネイルで切り替え
258$("ul.thumb li").click(function() {
259    var num = $("ul.thumb li").index(this);
260    $("ul.main li").fadeOut();
261    $("ul.main li").eq(num).fadeIn();
262});
263
264//singleページ写真自動ループ
265/*
266var flg = 2;
267var max = $('ul.main li').length;
268if(max > 2){
269    setInterval(function() {
270    	switch(flg){
271    		case 1:
272    			$("#main1").fadeIn();
273                $("ul.main li").not("#main1").fadeOut();
274    			break;
275    		case 2:
276                $("#main2").fadeIn();
277                $("ul.main li").not("#main2").fadeOut();
278    			break;
279            case 3:
280                $("#main3").fadeIn();
281                $("ul.main li").not("#main3").fadeOut();
282                break;
283            case 4:
284                $("#main4").fadeIn();
285                $("ul.main li").not("#main4").fadeOut();
286    			break;
287    	}
288    	flg ++;
289    	if(flg > max){
290    		flg = 1;
291    	}
292    }, 8000);
293}
294*/
295
296/*----------------------------------------------------
297	お問合わせ
298----------------------------------------------------*/
299
300//コンタクトフォーム住所自動入力
301$('#zip2').keyup(function(event){
302    AjaxZip3.zip2addr(this,'','pref1','addr1');
303});
304
305//その他にチェックで入力欄有効(希望職種)
306$(".other").attr("disabled", true);
307$("[name='job']").click(function(){
308        var num = $("[name='job']").index(this);
309        if(num == 3){
310            $(".other").attr("disabled", false);
311        } else {
312            $(".other").attr("disabled", true);
313        }
314    });
315
316//その他にチェックで入力欄有効(勤務ご希望のエリア)
317$(".other2").attr("disabled", true);
318$("[name='job_area']").click(function(){
319        var num = $("[name='job_area']").index(this);
320        if(num == 7){
321            $(".other2").attr("disabled", false);
322        } else {
323            $(".other2").attr("disabled", true);
324        }
325    });
326
327	/*----------------------------------------------------
328		ショップ詳細
329	----------------------------------------------------*/
330
331	//高さ合わせる
332	// var columns = 4;
333	// var liLen = $('.playville .events-wrap div').length;
334	// var lineLen = Math.ceil(liLen / columns);
335	// var liHiArr = [];
336	// var lineHiArr = [];
337	// for (i = 0; i <= liLen; i++) {
338	//     liHiArr[i] = $('.events-wrap div').eq(i).height();
339	//     if (lineHiArr.length <= Math.floor(i / columns)
340	//         || lineHiArr[Math.floor(i / columns)] < liHiArr[i])
341	//     {
342	//         lineHiArr[Math.floor(i / columns)] = liHiArr[i];
343	//     }
344	// }
345	// $('.events-wrap div').each(function(i){
346	//     $(this).css('height',lineHiArr[Math.floor(i / columns)] + 'px');
347	// });
348
349/*----------------------------------------------------
350	ショップ詳細
351----------------------------------------------------*/
352
353//高さ合わせる
354var columns = 3;
355var liLen = $('.events-wrap .events-height').length;
356var lineLen = Math.ceil(liLen / columns);
357var liHiArr = [];
358var lineHiArr = [];
359for (i = 0; i <= liLen; i++) {
360    liHiArr[i] = $('.events-wrap .events-height').eq(i).height();
361    if (lineHiArr.length <= Math.floor(i / columns)
362        || lineHiArr[Math.floor(i / columns)] < liHiArr[i])
363    {
364        lineHiArr[Math.floor(i / columns)] = liHiArr[i];
365    }
366}
367$('.events-wrap .events-height').each(function(i){
368    $(this).css('height',lineHiArr[Math.floor(i / columns)] + 'px');
369});
370
371//スライダー
372$('#main-gallery').flickity({
373    cellAlign: 'left',
374    prevNextButtons: false,
375    autoPlay: 5000
376});
377$('.shop-gallery').flickity({
378    cellAlign: 'left',
379    prevNextButtons: false,
380    autoPlay: 5000
381});
382
383//マップモーダル
384if($('#accessmap').length){
385	var accessmap = $('#accessmap');
386	var whiteOut = $('#whiteOut');
387	var accessmap_width = accessmap.outerWidth();
388	var accessmap_height = accessmap.outerHeight();
389}
390$('#mapmodal').click(function(){
391	_win_width = $(window).width();
392	_win_height = $(window).height();
393	_mdl_top = (_win_height - accessmap_height) / 2;
394	_mdl_left = (_win_width - accessmap_width) / 2;
395    whiteOut.fadeIn();
396    accessmap.css({
397	    top: _mdl_top,
398	    left: _mdl_left
399    }).fadeIn();
400})
401$('#whiteOut').click(function(){
402    $('#accessmap , #whiteOut').fadeOut();
403})
404
405/*----------------------------------------------------
406	画面スクロール
407----------------------------------------------------*/
408$("a[rel*=jump]").on('click',function(e){
409    e.preventDefault();
410    $('body, html').animate({
411        scrollTop: $($(this).attr('href')).offset().top - 20
412    }, 2000, 'easeOutQuart');
413});
414$("a[rel*=anc]").on('click',function(e){
415    e.preventDefault();
416    $('body, html').animate({
417        scrollTop: $($(this).attr('href')).offset().top - 138
418    }, 2000, 'easeOutQuart');
419});
420/*----------------------------------------------------
421	IE8
422----------------------------------------------------*/
423if(!jQuery.support.opacity){
424	if($(".image--svg").length){
425		$("img.image--svg").each(function(){
426	        $(this).attr("src",$(this).attr("src").replace(".svg",".png"));
427	    });
428	}
429}
430
431/*----------------------------------------------------
432	展示会フォーム
433----------------------------------------------------*/
434$(".add_name").click(function () {
435    $(this).parent().next().slideDown();
436    $(this).hide();
437});
438$(".close").click(function(){
439    $(this).parent().slideUp();
440    $(this).parent().prev().find('.add_name').show();
441});
442
443});
444/*----------------------------------------------------
445    店舗詳細 googlemap
446----------------------------------------------------*/
447$(function(){
448    // スクロールバーの横幅を取得
449    $('html').append('<div class="scrollbar" style="overflow:scroll;"></div>');
450    var scrollsize = window.innerWidth - $('.scrollbar').prop('clientWidth');
451    $('.scrollbar').hide();
452
453    // 「.js-modal-open」をクリック
454    $('.js-modal-open').click(function(){
455        // html、bodyを固定(overflow:hiddenにする)
456        $('html, body').addClass('lock');
457
458        // オーバーレイ用の要素を追加
459        $('body').append('<div class="modal-overlay"></div>');
460
461        // オーバーレイをフェードイン
462        $('.modal-overlay').fadeIn('slow');
463
464        // モーダルコンテンツのIDを取得
465        var modal = '#' + $(this).attr('data-target');
466
467         // モーダルコンテンツを囲む要素を追加
468        $(modal).wrap("<div class='modal-wrap'></div>");
469
470        // モーダルコンテンツを囲む要素を表示
471        $('.modal-wrap').show();
472
473        // モーダルコンテンツの表示位置を設定
474        modalResize();
475
476         // モーダルコンテンツフェードイン
477        $(modal).fadeIn('slow');
478
479        // モーダルコンテンツをクリックした時はフェードアウトしない
480        $(modal).click(function(e){
481            e.stopPropagation();
482        });
483
484        // 「.modal-overlay」あるいは「.js-modal-close」をクリック
485        $('.modal-wrap, .js-modal-close').off().click(function(){
486            // モーダルコンテンツとオーバーレイをフェードアウト
487            $(modal).fadeOut('slow');
488            $('.modal-overlay').fadeOut('slow',function(){
489                // html、bodyの固定解除
490                $('html, body').removeClass('lock');
491                // オーバーレイを削除
492                $('.modal-overlay').remove();
493                // モーダルコンテンツを囲む要素を削除
494                $(modal).unwrap("<div class='modal-wrap'></div>");
495           });
496        });
497
498        // リサイズしたら表示位置を再取得
499        $(window).on('resize', function(){
500            modalResize();
501        });
502
503        // モーダルコンテンツの表示位置を設定する関数
504        function modalResize(){
505            // ウィンドウの横幅、高さを取得
506            var w = $(window).width();
507            var h = $(window).height();
508
509            // モーダルコンテンツの横幅、高さを取得
510            var mw = $(modal).outerWidth(true);
511            var mh = $(modal).outerHeight(true);
512
513            // モーダルコンテンツの表示位置を設定
514            if ((mh > h) && (mw > w)) {
515                $(modal).css({'left': 0 + 'px','top': 0 + 'px'});
516            } else if ((mh > h) && (mw < w)) {
517                var x = (w - scrollsize - mw) / 2;
518                $(modal).css({'left': x + 'px','top': 0 + 'px'});
519            } else if ((mh < h) && (mw > w)) {
520                var y = (h - scrollsize - mh) / 2;
521                $(modal).css({'left': 0 + 'px','top': y + 'px'});
522            } else {
523                var x = (w - mw) / 2;
524                var y = (h - mh) / 2;
525                $(modal).css({'left': x + 'px','top': y + 'px'});
526            }
527        }
528
529    });
530});
531
532/*----------------------------------------------------
533    page/play_educator_1805 アコーディオン
534----------------------------------------------------*/
535$(function(){
536    $('.play_educator_area .js-accordion_voice').click(function(){
537        $(this).next('.js-accordion_next').slideToggle();
538    });
539    $('.play_educator_area .js-accordion_qa').click(function(){
540    $(this).next('li').slideToggle();
541    });
542});
543
544
545/*----------------------------------------------------
546    LINE フッター固定
547----------------------------------------------------*/
548
549$(function(){
550  if($.cookie("open-panel")){
551    $(".js-app-bg").hide();
552  } else {
553    $(".js-app-bg").show();
554  }
555  $(".js-app-area_btn-close").click(function() {
556    if($.cookie("open-panel")){
557      $(".js-app-bg").show();
558      $.removeCookie("open-panel" , { path: "/" });
559    } else {
560      $(".js-app-bg").hide();
561      $.cookie("open-panel" , "open" , { expires: 1,  path: "/" });
562    }
563  return false;
564  });
565
566});
567/*----------------------------------------------------
568    topへ戻るスクロール
569----------------------------------------------------*/
570var WIN = $(window),
571    WIN_TOP;
572var pagetop = $('#content--pagetop');
573WIN.scroll(function () {
574    if ($(this).scrollTop() > 100) {
575        pagetop.fadeIn();
576    } else {
577        pagetop.fadeOut();
578    }
579});
580pagetop.click(function () {
581    $('body, html').animate({ scrollTop: 0 }, fast);
582    return false;
583});
584
585  $(function(){
586    $(".js-name").on("click", function(){
587      $(this).next('p').slideToggle();
588    });
589  });
590
591/*----------------------------------------------------
592    page/summer_special_1907 アコーディオン
593----------------------------------------------------*/
594$(function(){
595    $('.summer_special_1907 .main_menu').on('click', function() {
596        $(this).next('ul:not(:animated)').slideToggle();
597        $(this).children('span').toggleClass('open');
598    });
599
600});
601
602/*----------------------------------------------------
603    page/supporter-course アコーディオン
604----------------------------------------------------*/
605$(function(){
606    $('.supporter-course .main_menu, .supporter-course-training .main_menu').on('click', function() {
607        $(this).next('ul:not(:animated)').slideToggle();
608        $(this).children('span').toggleClass('open');
609    });
610});
611
612/*----------------------------------------------------
613    共通 アコーディオン titleクリック
614----------------------------------------------------*/
615$(function(){
616    $('.js-accordion-title').on('click', function() {
617        $(this).next('.js-accordion_wrap').slideToggle();
618        $(this).children('span').toggleClass('open');
619    });
620});
621
622/*----------------------------------------------------
623    共通class アコーディオン ボタンクリック
624----------------------------------------------------*/
625$(function(){
626  var $accBtn = $('.js-accordion'),
627      $accContents = $('.js-accordion_box');
628      $accContents.hide(); 
629  $accBtn.each(function() {
630    var flag = "close";
631    $(this).click(function(e) {
632      e.preventDefault(); //aタグのリンク無効化
633      $(this).toggleClass('is-active').prev().slideToggle(); //クラスを追加してすぐ次の要素をスライド
634      if(flag == "close"){ //もしflagがcloseだったら
635        $(this).text("閉じる");
636        flag = "open"; //flagをopenにする
637      }
638      else{ //もしflagがopenだったら
639        $(this).text("もっと見る");
640        flag = "close"; //flagをcloseにする
641      }
642
643    });
644
645  });
646});
647
648
649/*----------------------------------------------------
650    特設ページ スライダー /page/shop-honten_1911
651----------------------------------------------------*/
652$('.js-special-page_slider').flickity({
653    autoPlay: 6000
654});
655
656
657/*----------------------------------------------------
658    クリップボード copy /page/summer_special_2007
659----------------------------------------------------*/
660$(function() {
661  $('#js-copybtn').on('click', function(){
662    // コピーする文章の取得
663    let text = $('#js-copytext').text();
664    // テキストエリアの作成
665    let $textarea = $('<textarea></textarea>');
666    // テキストエリアに文章を挿入
667    $textarea.text(text);
668    // テキストエリアを挿入
669    $(this).append($textarea);
670    // テキストエリアを選択
671    $textarea.select();
672    // コピー
673    document.execCommand('copy');
674    // テキストエリアの削除
675    $textarea.remove();
676    // アラート文の表示
677    $('#js-copyalert').show().delay(2000).fadeOut(400);
678  });
679});
680
681/*----------------------------------------------------
682    あそびの森 発達別「あそび道具」カレンダー
683    自己主張の芽生えと 表象の発達で あそびの幅が拡大 用
684----------------------------------------------------*/
685$(function() {
686	if($('body').hasClass('postid-9015') || $('body').hasClass('postid-5538')) {
687		$("a:contains('「Le Voyage d’Olga」 おしゃぶりタオル')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gMLR714043/" target="_blank">「Le Voyage d’Olga」 オルガのオルゴール</a></h4><p class="toy_price">¥5,280</p>');
688		$("a:contains('お世話人形 リトル・ベビーステラ')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gMAN159760/" target="_blank">リトル・ベビーステラ オムツ替えバッグ</a></h4><p class="toy_price">¥4,730</p>');
689	}
690});
691
692/*----------------------------------------------------
693    あそびの森 発達別「あそび道具」カレンダー
694    子どもの成長サインとあそび道具 用
695----------------------------------------------------*/
696$(function() {
697	if($('body').hasClass('postid-13410') || $('body').hasClass('postid-6389')) {
698		$("a:contains('ボブルス ゾウ (ピンク)')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gBO03024220/" target="_blank"><span></span><span>ボブルス チキン(ブルー)</span></a></h4><p class="toy_price">¥7,040</p>');
699		$("a:contains('お世話人形 リトル・ベビーステラ')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gMAN158980/" target="_blank"><span></span><span>リトル・ベビーステラ ごはんの時間</span></a></h4><p class="toy_price">¥3,520</p>');
700		$("a:contains('スティック・オー フォレストフレンズ(左)')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gSO901003/" target="_blank"><span></span><span>ベーシックセット30ピース(右)</span></a></h4><p class="toy_price">¥5,940</p>');
701	}
702});
703
704/*----------------------------------------------------
705    あそびの森 発達別「あそび道具」カレンダー
706    子どもの自発的なあそびをうながすあそび道具 用
707----------------------------------------------------*/
708$(function() {
709	if($('body').hasClass('postid-7399') || $('body').hasClass('postid-6908')) {
710		$("a:contains('ボブルス ゾウ(ブルー)')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gBO03024110/" target="_blank"><span></span><span>ボブルス チキン(ピンク)</span></a></h4><p class="toy_price">¥7,040</p>');
711		$("a:contains('スティック・オーフォレスト フレンズセット16ピース')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gSO901003/" target="_blank"><span></span><span>スティック・オー ベーシック30ピース</span></a></h4><p class="toy_price">¥5,940</p>');
712	}
713});
714
715
716
717/*----------------------------------------------------
718    あそびの森 発達別「あそび道具」カレンダー
719    子どもの身近な世界が広がる、遊び道具。 用
720----------------------------------------------------*/
721$(function() {
722	if($('body').hasClass('postid-7725') || $('body').hasClass('postid-7536')) {
723		$("a:contains('ボブルス ゾウ')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gBO03024110/" target="_blank"><span></span><span>ボブルス チキン</span></a></h4><p class="toy_price">¥8,800</p>');
724		$("a:contains('「トディーズ」ベティ・ ブリンキー')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gTO0124/" target="_blank"><span></span><span>「トディーズ」ハリー・ヘルピー</span></a></h4><p class="toy_price">¥4,440</p>');
725		$("a:contains('お世話人形 リトル・ベビーステラ(29cm)')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gMAN160940/" target="_blank"><span></span><span>リトル・ベビーステラおやすみベッド</span></a></h4><p class="toy_price">¥5,390</p>');
726		$("a:contains('しわくちゃボール')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gVO250-FBB-P/" target="_blank"><span></span><span>ソフトソーサー</span></a></h4><p class="toy_price">¥2,090</p>');
727	}
728});
729
730
731/*----------------------------------------------------
732    あそびの森 プロが語る子育てのヒント
733   子育ても人間も 光があれば暗い部分もある。それも含めて、通り過ぎると宝物になります。
734----------------------------------------------------*/
735$(function() {
736	if($('body').hasClass('postid-7726') || $('body').hasClass('postid-7529')) {
737		$('h1').replaceWith('<h1>子育ても人間も 光があれば暗い部分もある。<br>それも含めて、通り過ぎると宝物になります。</h1>');
738	}
739});
740
741
742/*----------------------------------------------------
743    あそびの森 発達別「あそび道具」カレンダー
744    子どもの身近な世界が広がる、遊び道具。 用 vol60
745----------------------------------------------------*/
746$(function() {
747	if($('body').hasClass('postid-9068') || $('body').hasClass('postid-7912')) {
748		$("a:contains('ボブルス ゾウ(ブルーグレー)')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gBO103024111/" target="_blank"><span></span><span>ボブルス チキン(ローズ)</span></a></h4><p class="toy_price">¥8,800</p>');
749		$("a:contains('スーパータフ・バケツ')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gHP1132Y/" target="_blank"><span></span><span>スーパータフ・シャベル</span></a></h4><p class="toy_price">各¥550</p><h4><a href="https://ec.bornelund.co.jp/shop/g/gHP1750B/" target="_blank"><span></span><span>ジョーロ</span></a></h4><p class="toy_price">各¥495</p>');
750		$("a:contains('スティック・オーベーシック30ピース')").parents('.toy_text').find('.toy_price').after('<h4><a href="https://ec.bornelund.co.jp/shop/g/gSO902002/" target="_blank"><span></span><span>スティック・オーフォレストフレンズセット16ピース</span></a></h4><p class="toy_price">¥3,300</p>');
751		$('.content--section:nth-of-type(1)').append('<a id="age01"></a>');//1歳~2歳の前にアンカー追加
752	}
753});
754
755
756/*----------------------------------------------------
757    あそびの森 プロが語る子育てのヒント
758   まだ言葉で表現できないとしても、子どもたちはたくさんの意見を持っているのです。
759----------------------------------------------------*/
760$(function() {
761	if($('body').hasClass('postid-9200') || $('body').hasClass('postid-7957')) {
762		$('h1').replaceWith('<h1>まだ言葉で表現できないとしても、<br>子どもたちはたくさんの意見を持っているのです。</h1>');
763	}
764});
765
766
767
768$(function(){
769  $(".view_timer").each(function(index, target) {
770    var startDate = $(this).attr("data-start-date");
771    var endDate = $(this).attr("data-end-date");
772    var nowDate = new Date();
773
774    if (startDate) {
775      startDate = new Date(startDate);
776    } else {
777      startDate = nowDate;
778    }
779
780    if (endDate) {
781      endDate = new Date(endDate);
782    }
783
784	if (startDate <= nowDate && (!endDate || nowDate <= endDate)) {
785      $(this).removeClass("end");
786    } else {
787      $(this).addClass("end");
788    }
789  });
790});

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.