Made image carousel (books) click-able
This commit is contained in:
parent
ce290fcae8
commit
ebbef44054
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user