Andres Raudjalg

Organizing conferences

A great conference requires careful consideration of each component! Conferences are organized so that people have the opportunity to acquire new and useful knowledge. It is also a great opportunity to meet new people and cooperation partners. This is part of development and broadening of horizons. Human nature is actually very simple – their attention…

Read More
© 2019 Notio
jQuery(function ($) { const selector = '.vc_masonry_media_grid [data-vc-grid-content="true"]'; let timer; function refreshLayout() { clearTimeout(timer); timer = setTimeout(function () { if (!$.fn.masonry) return; $(selector).each(function () { const $grid = $(this); // Refresh only galleries already initialized by WPBakery. if ($grid.data('masonry')) { $grid.masonry('reloadItems'); $grid.masonry('layout'); } }); }, 150); } // WPBakery fires this after inserting and displaying grid items. $(window).on('grid:items:added.galleryFix', function () { refreshLayout(); setTimeout(refreshLayout, 600); }); // Also handle images that finish loading later. document.addEventListener('load', function (event) { if ( event.target.tagName === 'IMG' && event.target.closest('.vc_masonry_media_grid') ) { refreshLayout(); } }, true); $(window).on('load.galleryFix pageshow.galleryFix', refreshLayout); refreshLayout(); });