jquery - i need help fixing my loadmore code and isotope code -


i having issues jquery code used loadmore code , isotope gallery load more code

 $(function () {     $(".candia-card").slice(0, 4).show();     $("#loadmore").on('click', function (e) {         e.preventdefault();         $(".candia-card:hidden").slice(0,4).slidedown();         if ($(".civ:hidden").length == 0) {             $("#load").fadeout('slow');         }         $('html,body').animate({             scrolltop: $(this).offset().top         }, 1500);     }); });  $('a[href=#top]').click(function () {     $('body,html').animate({         scrolltop: 0     }, 600);     return false; });  $(window).scroll(function () {     if ($(this).scrolltop() > 50) {         $('.totop a').fadein();     } else {         $('.totop a').fadeout();     } }); 

and isotope code

 function isotope() {     $('.filtering__container').each(function() {       var el = $(this);       var filtering__container = el,       filters = $('.filters');       filters.on('click', 'a', function() {         var selector = $(this).attr('data-filter');         $('.current', filters).removeclass('current');         $(this).addclass('current');         filtering__container.isotope({           filter: selector         });         return false;       });        $(window).on('resize', function() {          filtering__container.imagesloaded(function() {           filtering__container.isotope({             layoutmode: 'fitrows',             itemselector: '.candia-card',             transitionduration: '0.5s',           });         });        }).resize();        filters.find('.current').trigger('click');     });   }\\ 

the loadmore works loads 1 image , stops, deleted isotope div html, stopped isotope filters working. please how solve problem, have been battling codes while , need help


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -