| 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 : /Old Sites/Engineering/V2/plugtmp/jw_simpleImageGallery/includes/slimbox-1.71a/extra/ |
Upload File : |
/*
This code automatically integrates Picasa Web Albums thumbnails with Slimbox.
It will scan for all links around thumbnail images pointing to Picasa Web Albums photo PAGES.
Note that you don't need to add rel="lightbox" to these links.
When clicking on a Picasa Web Albums thumbnail, Slimbox will open and display the medium-sized image.
The title attribute of the link (or the alt attribute of the thumbnail if not available) will be used
as description text, and a link to the Picasa Web Albums photo page will be added under the description.
Add the following code to the autoload code block.
*/
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
window.addEvent("domready", function() {
$$("a").filter(function(el) {
return el.href && !el.href.indexOf("http://picasaweb.google.") && el.firstChild && el.firstChild.src;
}).slimbox({}, function(el) {
return [el.firstChild.src.replace(/\/s\d+(?:\-c)?\/([^\/]+)$/, "/s512/$1"),
(el.title || el.firstChild.alt) + '<br /><a href="' + el.href + '">Picasa Web Albums page</a>'];
});
});
}