Current Path : /var/www/clients/client35/web46/web/js/ |
Current File : /var/www/clients/client35/web46/web/js/ImgModal.js |
function showImgModal(img){ var modal = $('#bannerModal'); var imgsrc = modal.find('img'); var imgs = img.split(','); var items = ''; $.map(imgs, function(i, key){ var active = key == 1 ? 'active' : ''; items += '<div class="item '+active+'">'; items += '<img src="img-modal/'+i+'" alt="'+i+'">'; items += '</div>'; $('#modalSlider').append(items); }); }