Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SaravgiYash committed Jan 25, 2021
1 parent bad6a2f commit ec3af0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openlibrary/templates/books/custom_carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
$if lazy:
$ img_attr = 'data-lazy'
$ data_url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='
$ src_attr = 'src'
$else:
$ data_url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='
$ src_attr = 'data-src'
$ img_attr = 'src'

<div class="book carousel__item">
Expand All @@ -43,7 +46,7 @@
<img class="bookcover" loading="lazy"
width="130" height="200"
title="$('%s%s'%(title,byline))"
src="$(data_url)"
$src_attr="$(data_url)"
$img_attr="$(cover_url)"/>
$else:
<div class="carousel__item__blankcover">
Expand Down

0 comments on commit ec3af0d

Please sign in to comment.