PageSourceSearch

https://www.fasys.com/_assets/899ed28dbbb45fa84e7b24e1d5f6713f/js/examples/examples.lightboxes.js?1775268788

js fasys.com collected 2026-10-10 00:26:22 UTC 2,077 bytes, 100 lines download raw bytes

1/*
2Name: 			Elements - Lightboxes - Examples
3Written by: 	Okler Themes - (http://www.okler.net)
4Theme Version:	10.2.0
5*/
6
7(function( $ ) {
8
9	'use strict';
10
11	/*
12	Popup with video or map
13	*/
14	theme.fn.execOnceTroughEvent( $('.popup-youtube, .popup-vimeo, .popup-gmaps'), 'mouseover.trigger.iframe.lightbox', function(){
15		$(this).magnificPopup({
16			type: 'iframe',
17			mainClass: 'mfp-fade',
18			removalDelay: 160,
19			preloader: false,
20
21			fixedContentPos: false
22		});
23	});
24
25	/*
26	Dialog with CSS animation
27	*/
28	theme.fn.execOnceTroughEvent( $('.popup-with-zoom-anim'), 'mouseover.trigger.zoom.lightbox', function(){
29		$(this).magnificPopup({
30			type: 'inline',
31
32			fixedContentPos: false,
33			fixedBgPos: true,
34
35			overflowY: 'auto',
36
37			closeBtnInside: true,
38			preloader: false,
39
40			midClick: true,
41			removalDelay: 300,
42			mainClass: 'my-mfp-zoom-in'
43		});
44	});
45
46	theme.fn.execOnceTroughEvent( $('.popup-with-move-anim'), 'mouseover.trigger.slide.lightbox', function(){
47		$(this).magnificPopup({
48			type: 'inline',
49
50			fixedContentPos: false,
51			fixedBgPos: true,
52
53			overflowY: 'auto',
54
55			closeBtnInside: true,
56			preloader: false,
57
58			midClick: true,
59			removalDelay: 300,
60			mainClass: 'my-mfp-slide-bottom'
61		});
62	});
63
64	/*
65	Form
66	*/
67	theme.fn.execOnceTroughEvent( $('.popup-with-form'), 'mouseover.trigger.form.lightbox', function(){
68		$(this).magnificPopup({
69			type: 'inline',
70			preloader: false,
71			focus: '#name',
72			callbacks: {
73				open: function() {
74					$('html').addClass('lightbox-opened');
75				},
76				close: function() {
77					$('html').removeClass('lightbox-opened');
78				}
79			}
80		});
81	});
82
83	/*
84	Ajax
85	*/
86	theme.fn.execOnceTroughEvent( $('.simple-ajax-popup'), 'mouseover.trigger.ajax.lightbox', function(){
87		$(this).magnificPopup({
88			type: 'ajax',
89			callbacks: {
90				open: function() {
91					$('html').addClass('lightbox-opened');
92				},
93				close: function() {
94					$('html').removeClass('lightbox-opened');
95				}
96			}
97		});
98	});
99
100}).apply( this, [ jQuery ]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.