Skip to content

Commit

Permalink
Merge pull request #23 from theohbrothers/fix/gallery-fix-label-backg…
Browse files Browse the repository at this point in the history
…round-not-being-hidden-when-labels-are-disabled

Fix (gallery): Fix label background not being hidden when labels are disabled
  • Loading branch information
leojonathanoh authored Aug 31, 2021
2 parents 0cd56fe + ac43e6e commit d697a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webize
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ cat - >> "$indexHtm" <<'EOF'
var showAllImageLabels = function() {
for (var i = 0; i < images.length; i++) {
var imageholder = images[i].parentNode;
imageholder.getElementsByTagName("label")[0].style.fontSize = "1vw";
imageholder.getElementsByTagName("label")[0].style.opacity = "1.0";
}
};
var hideAllImageLabels = function() {
for (var i = 0; i < images.length; i++) {
var imageholder = images[i].parentNode;
imageholder.getElementsByTagName("label")[0].style.fontSize = "0";
imageholder.getElementsByTagName("label")[0].style.opacity = "0.0";
}
};
Expand Down

0 comments on commit d697a1e

Please sign in to comment.