PageSourceSearch

https://crna.si/media/system/js/caption-uncompressed.js?b25edf4512d2d559bc587819abbf74ef

js crna.si collected 2026-10-02 20:27:59 UTC 1,329 bytes, 49 lines download raw bytes

1/**
2 * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
3 * @license     GNU General Public License version 2 or later; see LICENSE.txt
4 */
5
6/**
7 * JCaption javascript behavior
8 *
9 * Used for displaying image captions
10 *
11 * @package     Joomla
12 * @since       1.5
13 * @version  1.0
14 */
15var JCaption = function(_selector) {
16    var $, selector,
17    
18    initialize = function(_selector) {
19        $ = jQuery.noConflict();
20        selector = _selector;
21        $(selector).each(function(index, el) {
22            createCaption(el);
23        })
24    },
25    
26    createCaption = function(element) {
27        var $el = $(element), 
28        caption = $el.attr('title'),
29        width = $el.attr("width") || element.width,
30        align = $el.attr("align") || $el.css("float") || element.style.styleFloat || "none",
31        $p = $('<p/>', {
32            "text" : caption,
33            "class" : selector.replace('.', '_')
34        }),
35        $container = $('<div/>', {
36            "class" : selector.replace('.', '_') + " " + align,
37            "css" : {
38                "float" : align,
39                "width" : width
40            }
41        });
42        $el.before($container);
43        $container.append($el);
44        if (caption !== "") {
45            $container.append($p);
46        }
47    }
48    initialize(_selector);
49}

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.