$(function(){ var breadcrumb_on =0; $('#breadcrumb .inline-block').on('click',function(){ if(breadcrumb_on==0){ $(this).addClass('on'); breadcrumb_on++; }else{ $(this).removeClass('on'); breadcrumb_on=0; } }); $(".owl-carousel").owlCarousel({ loop : true, items : 1, nav : true, dots: false, navText: ['', ''], }); if($("#picSlides .picItem").length>1){ $("#picSlides").owlCarousel({ loop : true, items : 1, nav : true, autoplay:true, autoplayTimeout:5000, dots: false, navText: ['', ''], }); } var clickbutton=0; $('.filter-button,.filterbox .close').on('click',function(){ clickbutton++; if(clickbutton==1){ $('.filterbox').css({'top':'10%'}); } if(clickbutton==2){ $('.filterbox').css({'top':'-100%'}); clickbutton=0; } }); var owl6 = $(".user-list6 .orderSlide"); owl6.owlCarousel({ responsive:{ 0:{ items : 2 }, 480:{ items : 3 }, 660:{ items : 4 }, 960:{ items : 5 }, 1023:{ items : 6 } }, nav : true, onRefresh : callback, dots: false, navText: ['', ''], }); var owl5 = $(".user-list5 .orderSlide"); owl5.owlCarousel({ responsive:{ 0:{ items : 2 }, 481:{ items : 3 }, 960:{ items : 4 }, 1023:{ items : 5 } }, nav : true, onRefresh : callback, dots: false, navText: ['', ''], }); var addowl = $(".userBox .addBox"); addowl.owlCarousel({ responsive:{ 0:{ items : 2 }, 481:{ items : 3 }, 661:{ items : 1 } }, nav : true, onRefresh : callback, dots: false, navText: ['', ''], }); function callback(event){ setTimeout(function(){ $('.hidebox').animate({'opacity':1}).removeClass('hidebox'); }, 300); } $('article > .combosBox ').on('click','.button1',function(e){ if($(this).attr("class").indexOf('add_to_cart') !=-1){ return false; } const add_array = new Array() const addBoxRegex = /\b[a-z]+?02\b/gi let img = $(this).parents('.productBox') let img_src = img.find('img').attr('src') let img_title = img.find('.title').html() let img_price = img.find('.insert-price').html() let img_spec = img.find('.color-select').find('option:selected').text(); let img_amount= img.find('.num-select').val() let img_act= img.find('.shopping-link').attr('act') let img_index = 0 let add_type = null let addHtml = '' function makeHtml(i, add_type){ const returnString = `