You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.7 KiB
2 lines
1.7 KiB
(function($){'use strict';$(window).on('load',function(){$('.preloader').fadeOut(300);});$('.navigation').headroom();$('[data-background]').each(function(){$(this).css({'background-image':'url('+$(this).data('background')+')'});});$('.featured-post-slider').slick({dots:false,speed:300,autoplay:true,arrows:false,slidesToShow:4,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:2}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]});setTimeout(function(){$('.masonry-container').masonry({itemSelector:'.masonry-container > div',columnWidth:1});},500);if(($('#instafeed').length)!==0){var userId=$('#instafeed').attr('data-userId');var accessToken=$('#instafeed').attr('data-accessToken');var userFeed=new Instafeed({get:'user',userId:userId,resolution:'low_resolution',accessToken:accessToken,template:'<div class="instagram-post"><img class="img-fluid w-100" src="{{image}}" alt="instagram-image"><ul class="list-inline text-center"><li class="list-inline-item"><a href="{{link}}" target="_blank" class="text-white"><i class="ti-heart mr-2"></i>{{likes}}</a></li><li class="list-inline-item"><a href="{{link}}" target="_blank" class="text-white"><i class="ti-comments mr-2"></i>{{comments}}</a></li></ul></div>'});userFeed.run();}
|
|
setTimeout(function(){$('.instagram-slider').slick({dots:false,speed:300,autoplay:true,arrows:false,slidesToShow:6,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:4}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:2}}]});},1000);$('article').each(function(){let _this=$(this);_this.readingTime({readingTimeTarget:_this.find('.eta'),remotePath:_this.attr('data-file'),remoteTarget:_this.attr('data-target')});});})(jQuery); |