Permalink
Browse files

Add id attribute to the noscript output

  • Loading branch information...
kensanata committed May 14, 2017
1 parent 7dac5e8 commit f912aa8fff21dcdf077db33f1f5798efcd097cc0
Showing with 3 additions and 1 deletion.
  1. +3 −1 fgallery
View
@@ -892,14 +892,16 @@ print($fd encode_json(\%json));
close($fd);
# provide alternative for nojavascript
my $id = -1;
my $html = join("\n\t", map {
$id++;
my $props = $_;
my $caption = $props->{'caption'} ? $props->{'caption'}[0] : "";
my $root = $props->{root};
my $fbase = "$root.$ext";
my $file = $props->{'file'};
# no alt text or title attribute with caption?
qq{<a href="imgs/$fbase" title="$caption">}
qq{<a id="$id" href="imgs/$fbase" title="$caption">}
. qq{<img src="thumbs/$fbase" alt="$caption"/></a>}
} @aprops);
my $index = slurp("$out/index.html");

0 comments on commit f912aa8

Please sign in to comment.