# photonic/3.37/include/js/front-end/src/Entries/GLightbox.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/GLightbox.js
- Raw: https://pluginprobe.com/plugins/photonic/3.37/raw/include/js/front-end/src/Entries/GLightbox.js
- Modified: 2021-09-21T00:03:32+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/GLightbox.js#L10-L20`.

```javascript
import {Core} from "../Core";
import {PhotonicGLightbox} from "../Lightboxes/GLightbox";
import * as Listeners from "../Listeners";
import * as Layout from "../Layouts/Layout";

document.addEventListener('DOMContentLoaded', () => {
	const lightbox = new PhotonicGLightbox();
	Core.setLightbox(lightbox);
	lightbox.initialize();
	lightbox.initialize('.photonic-glightbox-solo, .glightbox-video, .glightbox-html5-video');

	Core.executeCommon();
	Listeners.addAllListeners();
	Layout.initializeLayouts(lightbox);
});

```
