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