Lazy load images
This commit is contained in:
parent
48086358d2
commit
04d5f20b46
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
.cardpreview .cardpreviewtext {
|
.cardpreview .cardpreviewtext {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
display: none;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
@ -27,6 +28,7 @@
|
|||||||
|
|
||||||
.cardpreview:hover .cardpreviewtext {
|
.cardpreview:hover .cardpreviewtext {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -64,7 +66,8 @@
|
|||||||
<select name="set" id="set" form="searchform">
|
<select name="set" id="set" form="searchform">
|
||||||
<option value="">-</option>
|
<option value="">-</option>
|
||||||
{{range .sets}}
|
{{range .sets}}
|
||||||
<option value="{{ index . "code" }}">{{ printf "%.25s" (index . "_id") }} ({{ index . "count" }})</option>
|
<option value="{{ index . "code" }}">{{ printf "%.25s" (index . "_id") }} ({{ index . "count" }})
|
||||||
|
</option>
|
||||||
{{end}}
|
{{end}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -143,7 +146,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<div class="cardpreview"><strong>{{.Name }}</strong>
|
<div class="cardpreview"><strong>{{.Name }}</strong>
|
||||||
<span class="cardpreviewtext">
|
<span class="cardpreviewtext">
|
||||||
<img src="{{ .ImageUris.Normal }}" alt="" />
|
<img loading="lazy" src="{{ .ImageUris.Normal }}" alt="" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user