Skip to content

Commit

Permalink
Fix lazyload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdjiji committed Aug 24, 2022
1 parent b8e6629 commit febdc35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/templates/bgm-template.ejs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="bangumi-item">
<div class="bangumi-picture">
<% if(download_image) { %>
<img src="<%= lazyload ? ("/images/loading.gif") : `/images/${item.image}` %>" <%- lazyload ? ` data-src="/images/${item.image}"` : '' %> referrerPolicy="no-referrer" width="110" style="width:110px;margin:<%= margin %> auto;" />
<img src="<%= lazyload ? ("/images/loading.gif") : `/images/${item.image}` %>" data-src="<%= `/images/${item.image}` %>" referrerPolicy="no-referrer" width="110" style="width:110px;margin:<%= margin %> auto;" />
<% } else { %>
<img src="<%= lazyload ? ("/images/loading.gif") : `https://lain.bgm.tv/pic/cover/c/${item.image}` %>" <%- lazyload ? ` data-src="https://lain.bgm.tv/pic/cover/c/${item.image}"` : '' %> referrerPolicy="no-referrer" width="110" style="width:110px;margin:<%= margin %> auto;" />
<img src="<%= lazyload ? ("/images/loading.gif") : `https://lain.bgm.tv/pic/cover/c/${item.image}` %>" data-src="<%= `/images/${item.image}` %>" referrerPolicy="no-referrer" width="110" style="width:110px;margin:<%= margin %> auto;" />
<% } %>
</div>
<div class="bangumi-info">
Expand Down

0 comments on commit febdc35

Please sign in to comment.