PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.33
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.33
3.36 3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 2.44 All 141 releases
photonic / include / js / front-end / src / Layouts / Layout.js

Layout.js in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 3.33, at include/js/front-end/src/Layouts/Layout.js

22 lines 634 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {JustifiedGrid} from "./Justified";
2 import {Mosaic} from "./Mosaic";
3 import {Masonry} from "./Masonry";
4 import {MasonryHorizontal} from "./MasonryHorizontal";
5 import * as Slider from "./Slider";
6
7 export const initializeLayouts = (lightbox) => {
8 JustifiedGrid(false, false, null, lightbox);
9 Mosaic(false, false);
10 Masonry(false, false);
11 MasonryHorizontal(false, false);
12
13 Slider.initializeSliders();
14
15 window.addEventListener('resize', () => {
16 JustifiedGrid(true, false, '.photonic-random-layout.sizes-missing');
17 Mosaic(true, false);
18 Masonry(true, false);
19 MasonryHorizontal(true, false);
20 });
21 };
22