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 8278d9c commit bad6a2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openlibrary/templates/books/custom_carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
$ modifier = ''
$ work_key = book.key if book.key.startswith('/work') else book.get('work_key')
$if lazy:
$ data_url = data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=
$ src_attr = 'src'
$ img_attr = 'data-lazy'
$ data_url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='
$else:
$ img_attr = 'src'

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

0 comments on commit bad6a2f

Please sign in to comment.