1
0

Made image carousel (books) click-able

This commit is contained in:
Mike Schwörer 2019-12-29 17:53:58 +01:00
parent ce290fcae8
commit ebbef44054

View File

@ -66,11 +66,13 @@ function imgcarousel_move(source, delta) {
if (img.toLowerCase().endsWith('.webm'))
{
content.setAttribute('style', '');
content.setAttribute('onclick', 'javascript:void()');
content.innerHTML = '<video autoplay loop muted><source src="' + img + '"></video>';
}
else
{
content.setAttribute('style', 'background-image: url(' + img + ');');
content.setAttribute('style', 'background-image: url(' + img + '); cursor: pointer;');
content.setAttribute('onclick', 'javascript:window.open("' + img + '","_blank");');
content.innerHTML = '';
}
}