wp_back/wp-content/plugins/visual-portfolio/assets/js/layout-justified.js
2024-05-20 15:37:46 +03:00

20 lines
498 B
JavaScript

import $ from 'jquery';
// Init Options.
$(document).on('initOptions.vpf', (event, self) => {
if (event.namespace !== 'vpf') {
return;
}
self.defaults.justifiedRowHeight = 250;
self.defaults.justifiedRowHeightTolerance = 0.25;
if (!self.options.justifiedRowHeight) {
self.options.justifiedRowHeight = self.defaults.justifiedRowHeight;
}
if (!self.options.justifiedRowHeightTolerance) {
self.options.justifiedRowHeightTolerance =
self.defaults.justifiedRowHeightTolerance;
}
});