PageSourceSearch

https://scti.co.nz/mc-4ae19cb4-2340-482b-9937-16c9-cdn-endpoint.az…&hash=133F377828507032768BC4DF0EDA6DED

js scti.co.nz collected 2026-10-02 15:01:46 UTC 1,770 bytes, 53 lines download raw bytes

1/**
2 * Component Galleria
3 * @module Galleria
4 * @param  {jQuery} $ Instance of jQuery
5 * @return {Object} List of Galleria component methods
6 */
7XA.component.galleria = (function($) {
8    /**
9     * In this object stored all public api methods
10     * @type {Object.<Methods>}
11     * @memberOf module:Galleria
12     * */
13    /* global Galleria:false */
14    var api = {};
15    /**
16     * Call "Galleria.loadTheme" and  "Galleria.run"
17     * from [galleria.io]{@link https://galleria.io/}. More about this methods you can
18     * read [here]{@link https://docs.galleria.io/article/131-static-methods}
19     * @memberOf module:Galleria
20     * @method
21     * @param {jQuery} component Root DOM element of galleria component wrapped by jQuery
22     * @param {Object} prop Properties setted in data attribute
23     *  of galleria component
24     * @alias module:Galleria.initInstance
25     */
26    api.initInstance = function(component, prop) {
27        var id = component.find(".gallery-inner").attr("id");
28        Galleria.loadTheme(prop.theme);
29        Galleria.run("#" + id, prop);
30    };
31    /**
32     * Find all not initialized yet
33     * Gallery component and in a loop for each of them
34     * run
35     * ["initInstance"]{@link module:Galleria.initInstance}
36     * method.
37     * @memberOf module:Galleria
38     * @alias module:Galleria.init
39     */
40    api.init = function() {
41        var gallery = $(".gallery:not(.initialized)");
42
43        gallery.each(function() {
44            var properties = $(this).data("properties");
45            api.initInstance($(this), properties);
46            $(this).addClass("initialized");
47        });
48    };
49
50    return api;
51})(jQuery, document);
52
53XA.register("galleria", XA.component.galleria);

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.