Art gallery – online gallery with the famous pictures
var posts_already_showed = 20;
function get_works() { gt3_get_port_posts("port", 20, posts_already_showed, "port_massonry_template", ".fs_blog_module" ); posts_already_showed = posts_already_showed + 20; }
jQuery(function() { jQuery(document).endlessScroll({ bottomPixels: 500, fireDelay: 10, callback: function() { get_works(); } }); });
jQuery(window).load(function () { jQuery('.is_masonry').masonry(); setTimeout("jQuery('.is_masonry').masonry();",1000); }); jQuery(window).resize(function () { jQuery('.is_masonry').masonry(); }); jQuery(document).ready(function($){ jQuery('.is_masonry').masonry(); });
jQuery(document).ready(function($){
jQuery('.gallery_likes_add').click(function(){ var gallery_likes_this = jQuery(this); if (!jQuery.cookie(gallery_likes_this.attr('data-modify')+gallery_likes_this.attr('data-attachid'))) { jQuery.post(gt3_ajaxurl, { action:'add_like_attachment', attach_id:jQuery(this).attr('data-attachid') }, function (response) { jQuery.cookie(gallery_likes_this.attr('data-modify')+gallery_likes_this.attr('data-attachid'), 'true', { expires: 7, path: '/' }); gallery_likes_this.addClass('already_liked'); gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart'); gallery_likes_this.find('span').text(response); }); } });
setTimeout(function(){ jQuery('.fullscreen_block').removeClass('hided'); },2500); setTimeout("jQuery('.preloader').remove()",2700); });