$result=array_diff($all_files,$current_files);
Архив
2021 год
Всего: 40 записей
jquery after fadein
Чтобы выполнить следующее действие полсе завершения fadeOut
$('.catalog .item').hover(function(){ $(this).find('source').remove(); var photo2=$(this).data('photo2'); if(photo2!=''){ var img=$(this).find('.photo a img'); img.fadeOut(400,function(){ img.attr('src',photo2); img.fadeIn(400); }); } },function(){ var photo1=$(this).data('photo'); if(photo1!=''){ var img=$(this).find('.photo a img'); img.fadeOut(400,function(){ img.attr('src',photo1); img.fadeIn(400); }); } });
вместо
$('.catalog .item').hover(function(){ $(this).find('source').remove(); var photo2=$(this).data('photo2'); if(photo2!=''){ $(this).find('.photo a img').fadeOut(400).attr('src',photo2).fadeIn(400); } },function(){ var photo1=$(this).data('photo'); if(photo1!=''){ $(this).find('.photo a img').fadeOut(400).attr('src',photo1).fadeIn(400); } });
jquery on click after append
$(document).on('click','.addresses .delete a',function(){ $(this).closest('.address').remove(); return false; });
вместо:
$('.addresses .delete a').on('click',function(){ $(this).closest('.address').remove(); return false; });
jquery get css background image url
$('.block_4,.block_5').each(function(){ var img=$(this).find('.wrap').css('background-image'); img=img.replace('url(','').replace(')','').replace(/\"/gi,""); $(this).find('.wrap').css('background-image',''); console.log(img); $('<div class="photo"><img src="'+img+'" alt=""/></div>').insertAfter($(this).find('.title')); });
input date своя иконка
input[type=date]::-webkit-calendar-picker-indicator{ display:none; } input[type=date]{ background:url("../images/icon_calendar.svg") #f7f9fc no-repeat 90% 50%; }