PageSourceSearch

https://www.hiltes.com/wp-content/themes/ark/assets/scripts/components/magnific-popup.js?ver=6.9.7

js hiltes.com collected 2026-09-24 13:16:34 UTC 3,728 bytes, 132 lines download raw bytes

1(function($){
2// Magnific Popup
3
4	window.ffHandleMagnificPopup = function( $parent ) {
5		// image popup;
6		$parent.find('.image-popup-vertical-fit').each(function(){
7			var $opener = $(this);
8			var settings = {
9				type: 'image',
10				closeOnContentClick: true,
11				mainClass: 'mfp-img-mobile',
12				image: {
13					verticalFit: true
14				}
15			};
16			$opener.magnificPopup( settings );
17		});
18
19		// lightbox popup
20		$parent.find('.freshframework-lightbox-image, .image-popup-up').each(function(){
21			var $opener = $(this);
22			var settings = {
23				type: 'image',
24				closeOnContentClick: true,
25				mainClass: 'mfp-img-mobile',
26				image: {
27					verticalFit: true
28				}
29			};
30			if( $opener.attr('data-freshframework-internal-html') ){
31				settings.image.markup = $opener.attr('data-freshframework-internal-html');
32			}
33			$opener.magnificPopup( settings );
34		});
35
36		// Popup gallery
37		$parent.find('.popup-gallery').each(function(){
38			var $opener = $(this);
39			var settings = {
40				delegate: 'a.popup-gallery-child',
41				type: 'image',
42				mainClass: 'mfp-img-mobile',
43				gallery: {
44					enabled: true,
45					navigateByImgClick: true,
46					preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
47				},
48				image: {
49					tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
50				}
51			};
52			$opener.magnificPopup( settings );
53		});
54
55		// Multiple Galleries with a single popup
56		$parent.find('.popup-multiple-image').each(function(){
57			var $opener = $(this);
58			var settings = {
59				type: 'image',
60				tLoading: 'Loading image #%curr%...',
61				fixedContentPos: true,
62				gallery: {
63					enabled: true,
64					navigateByImgClick: true,
65					arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',
66					preload: [0,1] // Will preload 0 - before current, and 1 after the current image
67				}
68			};
69			$opener.magnificPopup( settings );
70		});
71
72		// Video iframes
73		$parent.find('.freshframework-lightbox-external-video, .popup-youtube, .popup-vimeo').each(function(){
74			var $opener = $(this);
75			var settings = {
76				// disableOn: 700,
77				type: 'iframe',
78				mainClass: 'mfp-fade mfp-zoom-out-cur',
79				removalDelay: 160,
80				preloader: false,
81				fixedContentPos: true,
82				iframe: {}
83			};
84
85			if( $opener.attr('data-freshframework-internal-html') ){
86				settings.iframe.markup = $opener.attr('data-freshframework-internal-html');
87			}
88
89			$opener.magnificPopup( settings );
90
91            //$(this).on('click',function(){
92            //    return false;
93            //});
94		});
95
96		// freshframework-internal-video
97		$parent.find('.freshframework-internal-html').each(function(){
98			var $opener = $(this);
99			var settings = {
100				items: {
101					src: $opener.attr('data-freshframework-internal-html'), // can be a HTML string, jQuery object, or CSS selector
102					type: 'inline'
103				},
104				mainClass: 'freshframework-internal-html-mpf mfp-zoom-out-cur'
105			};
106			$opener.magnificPopup( settings );
107		});
108
109		// Link Block iframes
110		$parent.find('.freshframework-lightbox-page, .link-block-open-lightbox').each(function(){
111			var $opener = $(this);
112			var settings = {
113				// disableOn: 700,
114				type: 'iframe',
115				mainClass: 'mfp-fade mfp-zoom-out-cur',
116				removalDelay: 160,
117				preloader: false,
118				fixedContentPos: true,
119				iframe: {}
120			};
121			if( $opener.attr('data-freshframework-internal-html') ){
122				settings.iframe.markup = $opener.attr('data-freshframework-internal-html');
123			}
124			$opener.magnificPopup( settings );
125		});
126
127	};
128
129	$(document).ready(function(){
130		ffHandleMagnificPopup( $('body') );
131	});
132})(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.