| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/newsite/media/system/js/ |
Upload File : |
/**
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* JCaption javascript behavior
*
* Used for displaying image captions
*
* @package Joomla
* @since 1.5
* @version 1.0
*/
var JCaption = function(_selector) {
var $, selector,
initialize = function(_selector) {
$ = jQuery.noConflict();
selector = _selector;
$(selector).each(function(index, el) {
createCaption(el);
})
},
createCaption = function(element) {
var $el = $(element),
caption = $el.attr('title'),
width = $el.attr("width") || element.width,
align = $el.attr("align") || $el.css("float") || element.style.styleFloat || "none",
$p = $('<p/>', {
"text" : caption,
"class" : selector.replace('.', '_')
}),
$container = $('<div/>', {
"class" : selector.replace('.', '_') + " " + align,
"css" : {
"float" : align,
"width" : width
}
});
$el.before($container);
$container.append($el);
if (caption !== "") {
$container.append($p);
}
}
initialize(_selector);
}