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.