Added title tag on album div
This commit is contained in:
parent
c23c4f5c03
commit
8c9182f1e1
4
assets/js/modules/build.js
Executable file → Normal file
4
assets/js/modules/build.js
Executable file → Normal file
@ -24,7 +24,7 @@ build = {
|
||||
if (!albumJSON) return "";
|
||||
|
||||
var album = "",
|
||||
title = albumJSON.title;
|
||||
longTitle = title = albumJSON.title;
|
||||
|
||||
if (title.length>18) title = albumJSON.title.substr(0, 18) + "...";
|
||||
|
||||
@ -36,7 +36,7 @@ build = {
|
||||
album += "<img src='" + albumJSON.thumb2 + "' width='200' height='200' alt='thumb' data-type='" + typeThumb2 + "'>";
|
||||
album += "<img src='" + albumJSON.thumb1 + "' width='200' height='200' alt='thumb' data-type='" + typeThumb1 + "'>";
|
||||
album += "<img src='" + albumJSON.thumb0 + "' width='200' height='200' alt='thumb' data-type='" + typeThumb0 + "'>";
|
||||
album += "<div class='overlay'>";
|
||||
album += "<div class='overlay' title='" + longTitle + "'>";
|
||||
|
||||
if (albumJSON.password&&!lychee.publicMode) album += "<h1><span class='icon-lock'></span> " + title + "</h1>";
|
||||
else album += "<h1>" + title + "</h1>";
|
||||
|
Loading…
Reference in New Issue
Block a user