# photonic/3.37/include/js/front-end/src/Entries/PhotoSwipe5.js

Photonic Gallery &amp; Lightbox for Flickr, SmugMug &amp; Others, version 3.37. 16 lines.

- Page: https://pluginprobe.com/plugins/photonic/3.37/code/include/js/front-end/src/Entries/PhotoSwipe5.js
- Raw: https://pluginprobe.com/plugins/photonic/3.37/raw/include/js/front-end/src/Entries/PhotoSwipe5.js
- Modified: 2022-05-04T23:58:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/photonic/3.37/code/include/js/front-end/src/Entries/PhotoSwipe5.js#L10-L20`.

```javascript
import {Core} from "../Core";
import {PhotonicPhotoSwipe5} from "../Lightboxes/PhotoSwipe5";
import * as Listeners from "../Listeners";
import * as Layout from "../Layouts/Layout";

document.addEventListener('DOMContentLoaded', () => {
	const lightbox = new PhotonicPhotoSwipe5();
	Core.setLightbox(lightbox);
	lightbox.initialize();
	lightbox.initializeForExisting();

	Core.executeCommon();
	Listeners.addAllListeners();
	Layout.initializeLayouts(lightbox);
});

```
