PageSourceSearch

https://winchesterroyalhotel.com/wp-content/plugins/cn-core-widgets/widgets/gallery/js/gallery.js

js winchesterroyalhotel.com collected 2026-10-08 23:36:27 UTC 843 bytes, 33 lines download raw bytes

1(function($) {
2    'use strict';
3
4    $(document).on('cnInitGallery', function (event, data) {
5
6        var element = data && data.element || document;
7
8        $(element).find('[data-module="grid-image-filter"]').each(function(){
9            new CN.GridFilter( $(this), {
10                'itemSelector': '.js-thumbnail',
11                'layoutMode': 'masonry'
12            } );
13        });
14
15        $(element).find('[data-module="image-gallery"]').each(function(){
16            new CN.ImageGallery( $(this) );
17        });
18
19        $('.pswp__button--close').on('click', function() {
20
21            if (window.currentVideoPlayer) {
22                try {
23                    window.currentVideoPlayer.stop();
24                }
25                catch (err) {}
26            }
27        });
28
29    });
30
31    $(document).trigger('cnInitGallery');
32
33})(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.