Added lazyload

This commit is contained in:
zeldaroot 2021-01-04 05:13:59 +02:00
parent 6d1da964d8
commit ae39784307
8 changed files with 8 additions and 16 deletions

View File

@ -91,8 +91,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<span class="label label-danger">

View File

@ -388,8 +388,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<div class="info">

View File

@ -392,8 +392,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<div class="info">

View File

@ -55,8 +55,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<span class="label label-danger">

View File

@ -401,8 +401,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<div class="info">

View File

@ -393,8 +393,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<div class="info">

View File

@ -368,8 +368,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<div class="info">

View File

@ -388,8 +388,7 @@
<div class="col-xs-3 item">
<a href="<%- movie.url %>">
<div style="width:100%;height:250px;background: url('<%- movie.poster %>') center no-repeat;background-size: cover;"
title="<%= movie.title %>"></div>
<div style="width:100%;height:250px;background: url('<%- movie.poster_min %>') center no-repeat;background-size: cover;" class="lazy" data-bg="<%- movie.poster %>" title="<%= movie.title %>"></div>
</a>
<div class="info">