$(function(){ $('.user-orderBox').on('click','.delete',function(){ const del = $(this).parents('.orderProduct') const n = del.attr('data-group') const bg = `

${String.fromCharCode(parseInt(n)+65)+_jsLang.組}

${_jsLang.商品尚未選購}

` const classStr = `pic-bg num_${n}` del.find('.title').remove(); del.find('img').animate( { opacity:0 }, 300, function(){ del.html(bg).removeAttr('class style').addClass(classStr) } ); }); /* $('.combosOuter .combosBox').each(function(i, ele) { $(ele).owlCarousel({ dots: false, margin: 20, responsive: { 0:{ items : 2 }, 576:{ items : 3 }, 768:{ items : 4 }, 992:{ items : 5 }, 1400:{ items : 6 }, }, nav: true, navText: ['', ''], }); }) */ }); // ========================================================== // trigger function // ========================================================== ;(function($, jQuery, window, document) { $(window).trigger('resize') })($, jQuery, window, document)