'; if (current_src == $(this).attr('naturl')) { current_index = swiper_index; } swiper_index++; }); // console.log(current_index); // $('.swiper-wrapper').html(swiper_html); $('#swiper-wrapper').html(swiper_html); $('.img_layer').show(); var swiper = new Swiper('.swiper-container', { pagination: '.swiper-pagination', paginationType: 'fraction', paginationClickable: true, initialSlide: current_index, autoplayDisableOnInteraction: false }); if ($('.swiper-pagination-total').html() == 1) { $('.swiper-pagination').hide(); } }); $(document).on("click", ".img_layer", function () { $('.img_layer').hide().html('