1var spWidth = 767; 2 3/* 4å³æåæ 5-------------------------*/ 6$(function () { 7 var ua = navigator.userAgent; 8 if (ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) { 9 // ã¹ãã¼ããã©ã³ç¨ã³ã¼ã 10 } else if (ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0) { 11 // ã¿ãã¬ããç¨ã³ã¼ã 12 $("meta[name='viewport']").attr('content', 'width=1100'); 13 //$('head').append('<meta name="viewport" content="width=1200">'); 14 } 15 16 17 18 // ããããã¥ã¼ã¹ã¢ã³ã¼ãã£ãªã³ 19 $('.head_news_list').hide(); 20 $('.js-accordion').on('click', function() { 21 $('.head_news_btn').toggleClass('open'); 22 $('.head_news_list').slideToggle(300); 23 }); 24 25 26 //ã°ãããã¢ã³ã¼ãã£ãªã³ 27 $('#menu_open').click(function () { 28 if (!$(this).hasClass('active')) { 29 $(this).addClass('active'); 30 $('#gnav_menu').slideDown(); 31 $('#menu_open > span').html('ã¨ãã'); 32 if (windowSizeChk() < spWidth) { 33 $('body').addClass('fixed'); 34 $('.gnav_overlay').fadeIn(); 35 } 36 37 } else { 38 $(this).removeClass('active'); 39 $('#gnav_menu').slideUp(); 40 $('#menu_open > span').html('ã¡ãã¥ã¼'); 41 $('body').removeClass('fixed'); 42 if (windowSizeChk() < spWidth) { 43 $('.gnav_overlay').fadeOut(); 44 $('body').removeClass('fixed'); 45 } 46 } 47 }); 48 49 //ããã¿ã¼SPã¢ã³ã¼ãã£ãªã³ 50 $('.footer_link li').click(function () { 51 if (windowSizeChk() < spWidth) { 52 if (!$(this).hasClass('active')) { 53 $(this).addClass('active'); 54 $(this).children('.link_list').addClass('flx flxcol2 js-justify'); 55 //$(this).children('.link_list').slideDown(); 56 } else { 57 $(this).removeClass('active'); 58 $(this).children('.link_list').addClass('flx flxcol2 js-justify'); 59 } 60 } 61 }); 62 63 //SPãµã¼ããã§ã¼ãã¤ã³ 64 $(window).scroll(function () { 65 if (windowSizeChk() < spWidth && $(this).scrollTop() > 100) { 66 $('.search_sp').fadeIn(); 67 } else { 68 $('.search_sp').fadeOut(); 69 } 70 }); 71 72 //TOPããã¹ã¯ãã¼ã«ã§è¡¨ç¤º 73 var topBtn = $('.totop'); 74 75 topBtn.click(function () { 76 $('body, html').animate({ 77 scrollTop: 0 78 }, 300); 79 return false; 80 }); 81 82 $('.favorite,.favorite_btn').click(function () { 83 if ($(this).hasClass('favorite_btn')) { 84 if (!$(this).children('.btn').hasClass('active')) { 85 $(this).children('.btn').addClass('active'); 86 $(this).children('.btn').html('ãæ°ã«å ¥ã'); 87 } else { 88 $(this).children('.btn').removeClass('active'); 89 $(this).children('.btn').html('ãæ°ã«å ¥ãã«è¿½å ãã'); 90 } 91 } else { 92 if (!$(this).hasClass('active')) { 93 $(this).addClass('active'); 94 } else { 95 $(this).removeClass('active'); 96 } 97 } 98 }); 99 100 /*ã¢ã¼ãã£ã¹ãã»ã·ãªã¼ãºæ¤ç´¢ã¾ãã*/ 101 $('a.artist_pop').click(function () { 102 if (windowSizeChk() < spWidth) { 103 $('.search_initial').css({ 104 height: '0', 105 overflow: 'hidden' 106 }); 107 $('#artist_list').fadeIn(); 108 $('#artist_list').css('left', '0'); 109 $('#artist_list').addClass('sp_open'); 110 111 //$('body').addClass('po_fixed'); 112 var spscroll = $(window).scrollTop(); 113 $('body').css({'position':'fixed','top':-spscroll}); 114 115 116 $('#artist_list .initial').hide(); 117 $('#artist_list .initial').eq(0).show(); 118 var heighttemp = $('#artist_list .btnwrap').outerHeight(true); 119 heighttemp += $('#artist_list .heading_border').outerHeight(true); 120 heighttemp += $('#artist_list .seach_submit ').outerHeight(true); 121 heighttemp += $('#artist_list .initial_select ').outerHeight(true); 122 wh = $(window).height(); 123 heighttemp = wh - heighttemp; 124 $('#artist_list_box').css('height', heighttemp); 125 } else { 126 $('.search_initial').css({ 127 height: 'auto', 128 overflow: '' 129 }); 130 $('#artist_list').css('left', ''); 131 $('#artist_list').hide(); 132 133 134 135 $('#artist_list .initial').css('display', ''); 136 $('#artist_list_box').css('height', ''); 137 modalOpen('#artist_list'); 138 139 140 141 var artistList = new PerfectScrollbar('#artist_list_box .initial_inner'); 142 } 143 return false; 144 145 }); 146 147 //ã·ãªã¼ãºä¸è¦§ã£è¡¨ç¤º 148 $('a.series_pop').click(function () { 149 if (windowSizeChk() < spWidth) { 150 $('.search_initial').css({ 151 height: '0', 152 overflow: 'hidden' 153 }); 154 $('#series_list').fadeIn(); 155 $('#series_list').css('left', '0'); 156 $('#series_list').addClass('sp_open'); 157 158 //$('body').addClass('po_fixed'); 159 var spscroll = $(window).scrollTop(); 160 $('body').css({'position':'fixed','top':-spscroll}); 161 162 163 $('#series_list .initial').hide(); 164 $('#series_list .initial').eq(0).show(); 165 var heighttemp = $('#series_list .btnwrap').outerHeight(true); 166 heighttemp += $('#series_list .heading_border').outerHeight(true); 167 heighttemp += $('#series_list .seach_submit ').outerHeight(true); 168 heighttemp += $('#series_list .initial_select ').outerHeight(true); 169 wh = $(window).height(); 170 heighttemp = wh - heighttemp; 171 $('#series_list_box').css('height', heighttemp); 172 } else { 173 $('.search_initial').css({ 174 height: 'auto', 175 overflow: '' 176 }); 177 $('#series_list').css('left', ''); 178 $('#series_list').hide(); 179 $('#series_list .initial').css('display', ''); 180 $('#series_list_box').css('height', ''); 181 modalOpen('#series_list'); 182 183 var artistList = new PerfectScrollbar('#series_list_box .initial_inner'); 184 } 185 return false; 186 187 }); 188 189 $('.initial_select select').change(function () { 190 var selectP = $(this).closest('.search_inline'); 191 var selectVal = $(this).val(); 192 selectP.find('.initial').hide(); 193 if ($(selectVal).length) { 194 195 selectP.find(selectVal).show(); 196 197 } else { 198 selectP.find('.other_list').show(); 199 } 200 selectP.find('.initial_box').scrollTop(0); 201 }); 202 203 //ãã§ãã¯ããã¯ã¹ã«ããæ¤ç´¢æ¹æ³å¤æ´ 204 $('input[name="search_choose"]').change(function () { 205 $('.search_artist').hide(); 206 $('.search_series').hide(); 207 switch ($('input[name="search_choose"]:checked').val()) { 208 case "all": 209 $('.search_artist').show(); 210 $('.search_series').show(); 211 break; 212 case "series": 213 $('.search_series').show(); 214 break; 215 case "artist": 216 $('.search_artist').show(); 217 break; 218 } 219 }); 220 221 //ã¢ã¼ãã«å¦ç 222 $(document).on("click", ".overlay, .modal_close", function () { 223 modalClose(); 224 }); 225 226 //SPæ¤ç´¢é ç®è¡¨ç¤º 227 $('.search_sp').click(function () { 228 $('.l_column').fadeIn(); 229 $('.l_column').css('left', '0'); 230 }); 231 232 //SPæ¤ç´¢é ç®ã»ã¢ã¼ãã£ã¹ããä½åãªã¹ãé表示
233 $('#artist_list .back, #series_list .back, .l_column > .btnwrap .back').click(function () { 234 $(this).parent().parent().fadeOut(); 235 //$('#artist_list').fadeOut(); 236 $(this).parent().parent().css('left', '-100%'); 237 if ($(this).parent().parent().hasClass('sp_open')) { 238 $(this).parent().parent().removeClass('sp_open'); 239 240 //$('body').removeClass('po_fixed'); 241 var spPosition = $('body').css('top'); 242 spPosition = spPosition.slice( 1 ) ; 243 spPosition = spPosition.slice(0, -2) ; 244 $('body').css({'position':'','top':'0'}); 245 $('html,body').scrollTop(spPosition); 246 } 247 }); 248 249 $('.seach_submit .cancel').click(function () { 250 var chkList = $('.initial').find('input'); 251 $(chkList).prop('checked', false); 252 253 }); 254 255 //ã¢ã¼ãã£ã¹ãåé¤ 256 $('.artist_choose span').click(function () { 257 $(this).parent().parent().next().empty(); 258 259 $('#artist_list .initial [type="checkbox"]:checked').map(function () { 260 //$(this)ã§jQueryãªãã¸ã§ã¯ããåå¾ã§ãããval()ã§å¤ãvalueå¤ãåå¾ã 261 return $(this).prop('checked', false); 262 }).get(); 263 }); 264 265 //ã¢ã¼ãã£ã¹ãã鏿ãã 266 $('.seach_submit .artist_submit').click(function () { 267 if (windowSizeChk() < spWidth) { 268 $('#artist_list').fadeOut(); 269 $('#artist_list').css('left', '-100%'); 270 271 //$('body').removeClass('po_fixed'); 272 var spPosition = $('body').css('top'); 273 spPosition = spPosition.slice( 1 ) ; 274 spPosition = spPosition.slice(0, -2) ; 275 $('body').css({'position':'','top':'0'}); 276 $('html,body').scrollTop(spPosition); 277 278 } else { 279 modalClose(); 280 } 281 var area = $('#artist_list .initial [type="checkbox"]:checked').map(function () {
282 //$(this)ã§jQueryãªãã¸ã§ã¯ããåå¾ã§ãããval()ã§å¤ãvalueå¤ãåå¾ã 283 return $(this).val(); 284 }).get(); 285 //mapã®çµæãjQueryãªãã¸ã§ã¯ãã®é åã§è¿ã£ã¦ããã®ã§ãget()ã§çé åãåå¾ããã 286 287 $('.artist_choose_list').empty(); 288 for (var i = 0; i < area.length; i++) { 289 $('.artist_choose_list').append('<li>' + area[i] + '</li>'); 290 } 291 292 }); 293 294 //ä½ååé¤ 295 $('.series_choose span').click(function () { 296 $(this).parent().parent().next().empty(); 297 298 $('#series_list .initial [type="checkbox"]:checked').map(function () { 299 //$(this)ã§jQueryãªãã¸ã§ã¯ããåå¾ã§ãããval()ã§å¤ãvalueå¤ãåå¾ã 300 return $(this).prop('checked', false); 301 }).get(); 302 }); 303 304 //ä½åã鏿ãã 305 $('.seach_submit .series_submit').click(function () { 306 if (windowSizeChk() < spWidth) { 307 $('#series_list').fadeOut(); 308 $('#series_list').css('left', '-100%'); 309 var spPosition = $('body').css('top'); 310 spPosition = spPosition.slice( 1 ) ; 311 spPosition = spPosition.slice(0, -2) ; 312 $('body').css({'position':'','top':'0'}); 313 $('html,body').scrollTop(spPosition); 314 } else { 315 modalClose(); 316 } 317 var area = $('#series_list .initial [type="checkbox"]:checked').map(function () {
318 //$(this)ã§jQueryãªãã¸ã§ã¯ããåå¾ã§ãããval()ã§å¤ãvalueå¤ãåå¾ã 319 return $(this).val(); 320 }).get(); 321 //console.log(area); 322 //mapã®çµæãjQueryãªãã¸ã§ã¯ãã®é åã§è¿ã£ã¦ããã®ã§ãget()ã§çé åãåå¾ããã 323 324 $('.series_choose_list').empty(); 325 for (var i = 0; i < area.length; i++) { 326 $('.series_choose_list').append('<li>' + area[i] + '</li>'); 327 } 328 329 }); 330 331 //ã¹ã¯ãã¼ã«ããã¯ã¹å ã¹ã¯ãã¼ã«å¦ç 332 $("#artist_list .search_initial a[href^='#']").click(function () { 333 //data-box屿§ããªãå ´åã¯é常ã®ã¹ã ã¼ãºã¹ã¯ãã¼ã« 334 if (!$(this).data("boxa")) { 335 $("body,html").stop().animate({ 336 scrollTop: $($(this).attr("href")).offset().top 337 }); 338 339 //data-box屿§ãããå ´åã¯data-boxå ãã¹ã ã¼ãºã¹ã¯ãã¼ã« 340 } else { 341 var box_a = ''; 342 var tareget_a = ''; 343 var dist_a = ''; 344 box_a = $($(this).data("boxa")); 345 tareget_a = $($(this).attr("href")); 346 dist_a = tareget_a.position().top - box_a.position().top; 347 box_a.stop().animate({ 348 scrollTop: box_a.scrollTop() + dist_a 349 }); 350 } 351 return false; 352 }); 353 354 //ã¹ã¯ãã¼ã«ããã¯ã¹å ã¹ã¯ãã¼ã«å¦ç 355 $("#series_list .search_initial a[href^='#']").click(function () { 356 //data-box屿§ããªãå ´åã¯é常ã®ã¹ã ã¼ãºã¹ã¯ãã¼ã« 357 if (!$(this).data("box")) { 358 $("body,html").stop().animate({ 359 scrollTop: $($(this).attr("href")).offset().top 360 }); 361 362 //data-box屿§ãããå ´åã¯data-boxå ãã¹ã ã¼ãºã¹ã¯ãã¼ã« 363 } else { 364 var box_s = ''; 365 var tareget_s = ''; 366 var dist_s = ''; 367 box_s = $($(this).data("box")); 368 tareget_s = $($(this).attr("href")); 369 dist_s = tareget_s.position().top - box_s.position().top; 370 box_s.stop().animate({ 371 scrollTop: box_s.scrollTop() + dist_s 372 }); 373 } 374 return false; 375 }); 376 377 //ãã¤ã¬ã¯ãã«ã¼ãã¤ã³ ãã¼ã¸å ã«è¤æ°ããå ´å 378 $('.direct_cart_each').on('click', function () { 379 if ($(this).find('input').prop('checked') == true) { 380 directOrdercheckAllItem(1); 381 return false; 382 } 383 384 }); 385 386 //ãã¤ã¬ã¯ãã«ã¼ãã¤ã³ãè¤æ°ååã®è³¼å ¥æ°ã夿´ãã¾ã¨ãã¦ã«ã¼ãã«å ¥ãããã¿ã¼ã³ 387 $(".direct_cart_all_wrap select").change(function () { 388 valCheck = $(this).val(); 389 parentWrap = $(this).closest(".direct_cart_all_wrap"); 390 391 if (valCheck != 0) { 392 parentWrap.find(".direct_cart_ordercheck input[type='checkbox']").prop("checked", true); 393 } else { 394 395 parentWrap.find(".direct_cart_ordercheck input[type='checkbox']").prop("checked", false); 396 } 397 }); 398 399 //ãã¼ã¸ã®ã«ã¦ã³ãã0ã¹ã¿ã¼ãã®çºãè¨ç®ãå ¥å 400 if ($('.navforSP') && !$('.navforSP').hasClass('noadd01')) { 401 var navmax = parseInt($('.navforSP span').text(), 10); 402 var activepageCnt = $('#pageNav li:not([class]), #pageNav li.active').length; 403 if(activepageCnt > 0){ 404 navmax += 1; 405 }else{ 406 $('.navforSP').addClass('nopage'); 407 } 408 409 $('.navforSP span').text(navmax); 410 } 411 412}); 413 414 415 416/* 417roadæ 418-------------------------*/ 419$(window).on('load', function () { 420 421}); 422 423/* 424road ãªãµã¤ãºæ 425----------------------------------------------------------------------*/ 426$(window).on('load resize', function () { 427 var ww = windowSizeChk(); 428 if (ww < spWidth) { 429 //SPæ 430 431 //$('.search_sp').fadeIn(); 432 modalClose(); 433 434 //ã°ããããSPæã¯ãªã¼ãã¼ã¬ã¤ãä»ãã 435 if ($('#menu_open').hasClass('active')) { 436 $('body').addClass('fixed'); 437 $('.gnav_overlay').fadeIn(); 438 } 439 440 if ($('.cartListItem')) { 441 var imght = $('.cartListItem').eq(0).find('.item_img').outerHeight(); 442 $('.cartListItem li').css({ 443 "min-height": imght, 444 'box-sizing': 'content-box', 445 '-webkit-box-sizing': 'content-box' 446 }); 447 } 448 449 sliderChk(ww); 450 } else { 451 //PCæ 452 453 $('.search_sp').hide(); 454 if ($('#artist_list').hasClass('sp_open')) { 455 $('#artist_list').css('left', ''); 456 $('#artist_list').hide(); 457 $('#artist_list').removeClass('sp_open'); 458 } 459 460 $('.main_slider .slider .slick-slide').css('width', ''); 461 $('.l_column').css({ 462 display: '', 463 left: '' 464 }); 465 466 //ã°ãããPCæã¯ãªã¼ãã¼ã¬ã¤ãåé¤ 467 if ($('#menu_open').hasClass('active')) { 468 $('body').removeClass('fixed'); 469 $('.gnav_overlay').fadeOut(); 470 } 471 var slide = $('.item_filter input[type="radio"]:checked').val(); 472 $('.cartListItem li').css(""); 473 sliderChk(ww, slide); 474 } 475 476 477}); 478 479 480/* 481颿° 482-------------------------*/ 483 484//windowå¹ ãåå¾ ãºã¬å¯¾çã®çºjqueryã®è¨è¿°ã§ã¯ããã¾ããã 485function windowSizeChk() { 486 var temp = window.innerWidth; 487 return temp; 488} 489 490function sliderChk(ww, slide) { 491 //console.log(ww);
492 //ã¢ã¤ãã ã¹ã©ã¤ãã¼ã¬ã¹ãã³ã·ãç¨ 493 var wwie = $('.item_' + slide).width(); 494 var wbnr = $('#special .slider_inner').width(); 495 var wres = $('#resclose .item_wrap').width(); 496 var w = wwie * 0.86 497 if (!slide) { 498 var slide = ''; 499 } 500 501 if (ww > spWidth) { 502 $('.item_' + slide + ' .slider .item_slide').css('width', w); 503 $('#special .slider_inner li').css('width', wbnr * 0.34); 504 $('#resclose .slick-initialized .items').css({ 505 'width': wres * 0.25, 506 'padding': wres * 0.02 507 }); 508 } else { 509 //$('#resclose .resclose_slide .items:nth-child(odd)').css({'width':wres*0.5,'padding-right':wres*0.035}); 510 $('#resclose .slick-initialized .items').css({ 511 'width': wres * 0.46, 512 'margin-left': wres * 0.07 513 }); 514 } 515 516 if ($('.item_' + slide + ' .slider').hasClass('slick-initialized')) { 517 $('.item_' + slide + ' .slider').slick('setPosition'); 518 } 519 520 if ($('#special .slider').hasClass('slick-initialized')) { 521 $('#special .slider').slick('setPosition'); 522 } 523 524 if ($('#resclose .slider').hasClass('slick-initialized')) { 525 $('#resclose .slider').slick('setPosition'); 526 } 527 528 529 530} 531 532//ååæ å ±ã®é«ãæã 533function heightCheckItem(ww) { 534 if (ww < spWidth) { 535 $('#items_4x5 .item_name').tile(2); 536 $('#items_4x5 .artist_name').tile(2); 537 } else { 538 $('#items_4x5 .item_name').tile(4); 539 $('#items_4x5 .artist_name').tile(4); 540 } 541} 542 543//ã¢ã¼ãã«ãéãã 544function modalClose() { 545 $('.modal').hide(); 546 $('.overlay').fadeOut(); 547 $('.modal').removeClass('modal'); 548 $('.overlay').remove(); 549} 550 551//ã¢ã¼ãã«ãéã 552function modalOpen(elment) { 553 $(elment).parent().append('<div class="overlay"></div>'); 554 $(elment).fadeIn(); 555 $(elment).addClass('modal'); 556} 557 558 559 560///append by m 561 562//ã¹ã¯ãã¼ã«ãã¼ã®å¦ç 563$(function () { 564 var psb = []; 565 566 $(window).on('load resize', function () { 567 var ww = windowSizeChk(); 568 569 if (ww < spWidth) { 570 //SPæ 571 572 if ($('.perfectScroll').hasClass('ps--active-y')) { 573 for (i = 0; i < psb.length; i++) psb[i].destroy(); 574 } 575 576 577 } else { 578 579 $('.sp_open').hide(); 580 $('.sp_open').removeClass('sp_open'); 581 //PCæ 582 if (!$('.perfectScroll').eq(0).hasClass('ps--active-y')) { 583 psb = []; 584 $(".perfectScroll").each(function () { 585 psb.push(new PerfectScrollbar("#" + $(this).attr("id"))); 586 }); 587 } 588 589 590 591 } 592 }); 593 594 595}); 596 597//ã¹ã ã¼ãºã¹ã¯ãã¼ã«ã®å¦ç 598$(function () { 599 $('.idx_head').click(function () { 600 var ww = windowSizeChk(); 601 602 if (ww < spWidth) { 603 var speed = 500; 604 var href = $(this).attr("id"); 605 var target = href.replace("pbchara_", "#"); 606 var position = $(target).offset().top; 607 $("html, body").animate({ 608 scrollTop: position 609 }, speed, "swing"); 610 return false; 611 } 612 }); 613}); 614 615 616//ã¹ã ã¼ãºã¹ã¯ãã¼ã«ã®å¦ç 617$(function () { 618 $('.scroll[href^="#"]').click(function () { 619 var speed = 500; 620 var href = $(this).attr("href"); 621 var target = $(href == "#" || href == "" ? 'html' : href); 622 var position = target.offset().top; 623 $("html, body").animate({ 624 scrollTop: position 625 }, speed, "swing"); 626 return false; 627 }); 628}); 629 630 631/* 632ã«ã¼ããã¿ã³ 633*/ 634 635function makePbDirectCartTable(data) { 636 var getItems = data.items; 637 //console.log(getItems); 638 var sales_period_cart = ""; 639 var _sales_period = 0; 640 641 getItems.forEach(function (item) { 642 643 // table col 種é¡ã表ç¾ã¨æ¨ªä¸¦ã³é ãå®ç¾© 644 var variationsLayer = [{ 645 exists: 1, 646 key: 'select', 647 name: '鏿' 648 }, { 649 exists: 0, 650 key: 'color', 651 name: 'ã«ã©ã¼' 652 }, { 653 exists: 0, 654 key: 'size', 655 name: 'ãµã¤ãº' 656 }, { 657 exists: 0, 658 key: 'kind', 659 name: '種é¡' 660 }, { 661 exists: 0, 662 key: 'taste', 663 name: 'å³' 664 }, { 665 exists: 0, 666 key: 'amount', 667 name: 'å 容é' 668 }, { 669 exists: 1, 670 key: 'state', 671 name: 'ç¶æ ' 672 }, { 673 exists: 1, 674 key: 'cart', 675 name: 'ã«ã¼ã' 676 }]; 677 678 //console.data(item); 679 680 //console.log('modelid:'+item.model_id+',model_name:'+item.model_name); 681 $.each(item.variations, function (i, val) { 682 //console.log(this.order_no); 683 var cartTarget = $('#unit_' + val.order_no); 684 var cartTargetChk = $('#check_' + val.order_no); 685 var optionHtml = ''; 686 var restricion = item.buy_restriction_cnt; 687 688 689 //console.log(restricion); 690 $.each(variationsLayer, function () { 691 // cart button 692 //console.log(restricion); 693 if (this.key == 'cart') { 694 if (!val.cart == 1) { 695 // ã«ã¼ãæå ¥NGã®å ´å 696 cartTarget.find('.cart_btn').addClass('cart_disabled'); 697 cartTarget.find('.cart_btn').removeAttr("onclick"); 698 optionHtml += '<option value="0">Ã</option>'; 699 cartTarget.find('select').empty(); 700 cartTargetChk.prop({ 701 'disabled': true 702 });
703 cartTarget.find('.c-button').after('<p class="soldout">â»å¨åº«ãããã¾ããã</p>'); 704 //cartTargetChk.html('<p>test</p>'); 705 } else { 706 console.log(); 707 for (numCont = 1; numCont <= restricion; numCont++) { 708 optionHtml += '<option value="' + numCont + '">' + numCont + '</option>'; 709 } 710 cartTarget.find('.c-button').after('<p class="soldout"> </p>'); 711 } 712 cartTarget.find('select').append(optionHtml); 713 return true; 714 } 715 if ($('#sales_period_cart').length) { 716 _sales_period = val.sales_period; 717 } 718 }); 719 720 }); 721 }); 722 723 if ($('#sales_period_cart').length) { 724 if (_sales_period == '0') { 725 sales_period_cart = "äºç´éå§å"; 726 $('#sales_period_cart').click(function() { 727 return false; 728 }); 729 } else { 730 sales_period_cart = "ã«ã¼ãã«å ¥ãã"; 731 $('#sales_period_cart').click(function() { 732 aonCartAddSelect(); 733 }); 734 } 735 if (sales_period_cart != "") { 736 // äºç´éå§ããã§ãã¯ãã¦è¡¨ç¤º 737 $('#sales_period_cart').text(sales_period_cart); 738 } 739 } 740 741} 742 743$(function () { 744 $('.cartadd_select select').change(function () { 745 //alert($(this).val()); 746 valCheck = $(this).val(); 747 parentWrap = $(this).closest(".cartadd_select"); 748 749 if (valCheck != 0) { 750 parentWrap.find(".add_check").prop("checked", true); 751 } else { 752 parentWrap.find(".add_check").prop("checked", false); 753 } 754 }); 755 756}); 757 758function aonCartAdd(order_no) { 759 setOrder = {}; 760 if ($('#num_' + order_no).val() > 0) { 761 setOrder[order_no] = $('#num_' + order_no).val(); 762 } else if ($('#num_' + order_no).val() == 0) { 763 alert('åæ°ã鏿ãã¦ãã ããã'); 764 } else { 765 setOrder[order_no] = 1; 766 } 767 if (Object.keys(setOrder).length !== 0) { 768 pbOrderLayer = []; 769 pbOrderLayer.push(setOrder); 770 pbCartAddMethod(); 771 } 772} 773 774function aonCartAddTogether() { 775 setOrder = {}; 776 $(".cartadd_check").find('input[type="checkbox"]:checked').each(function () { 777 var order_no = this['value']; 778 setOrder[order_no] = 1; 779 }); 780 if (Object.keys(setOrder).length !== 0) { 781 pbOrderLayer = []; 782 pbOrderLayer.push(setOrder); 783 pbCartAddMethod(); 784 } 785} 786 787function aonCartAddSelect() { 788 setOrder = {}; 789 $(".cartadd_select").find('input[type="checkbox"]:checked').each(function () { 790 var order_no = this['value']; 791 if ($('#num_' + order_no).val() > 0) { 792 setOrder[order_no] = $('#num_' + order_no).val(); 793 } else { 794 setOrder[order_no] = 1; 795 } 796 }); 797 798 if (Object.keys(setOrder).length !== 0) { 799 pbOrderLayer = []; 800 pbOrderLayer.push(setOrder); 801 pbCartAddMethod(); 802 } else { 803 alert('åæ°ã鏿ãã¦ãã ããã'); 804 } 805} 806 807 808// 809// [å¿ç¨] 810// æ»ãå¤ãå¦çããã³ã¼ã«ããã¯é¢æ°ãåçã«åãæ¸¡ã 811// 812 813// ã³ã¼ã«ããã¯ç¨ã®ã¯ã©ã¹ãå®ç¾© 814var pbDirectCartCallbackClass = function () { 815 816 this.callbackMethod = function (data) { 817 alert("exec callback function!") 818 }; 819 820}; 821var pbDirectCartCallback = new pbDirectCartCallbackClass();
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.