| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/plugins/content/sigplus/engines/slimbox/js/ |
Upload File : |
/**
* @file
* @brief sigplus Image Gallery Plus activation hooks for Slimbox
* @author Levente Hunyadi
* @version 1.3.1
* @remarks Copyright (C) 2009-2010 Levente Hunyadi
* @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
* @see http://hunyadi.info.hu/projects/sigplus
*/
/*
With the following code, Slimbox will activate itself automatically on all links pointing to images,
or more specifically all links having URLs ending with: ".jpg" or ".png" or ".gif".
As a result, you will not need to set the rel="lightbox" attribute on any link to activate Slimbox.
Furthermore, all image links contained in the same block or paragraph (having the same parent element)
will automatically be grouped together in a gallery, so you will not need to specify groups either.
Images that are alone in their block or paragraph will be displayed individually.
*/
Slimbox.scanPage = function() {
$$($$(document.links).filter(function(el) {
return el.href && el.href.test(/\.(jpg|png|gif)$/i);
})).slimbox({}, null, function(el) {
return (this == el) || (this.parentNode && (this.parentNode == el.parentNode));
});
};
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
window.addEvent("domready", Slimbox.scanPage);
}