Fix rest of website
This commit is contained in:
parent
15b7ddfdfd
commit
217113d05f
3 changed files with 4 additions and 3 deletions
|
@ -11,6 +11,6 @@ window.addEventListener('load', function() {
|
|||
let destination = document.getElementById("display_repo");
|
||||
for (node of selected) {
|
||||
node.getElementsByTagName("img")[0].setAttribute("loading", "eager");
|
||||
destination.appendChild(node);
|
||||
destination.prepend(node);
|
||||
}
|
||||
});
|
|
@ -53,7 +53,7 @@
|
|||
<div class="randomVerenigingWrapper" <%= (item['id'] == "zeus") ? "data-iszeus" : "" %> >
|
||||
<a href="<%= item['path'] || test %>">
|
||||
<section class="randomVereniging">
|
||||
<div class="randomVereniging_imageWrapper"><img loading=lazy src="<%= image_url(item) %>" alt="logo van <%= item['naam'] %>" height="100"></div>
|
||||
<div class="randomVereniging_imageWrapper"><img loading=lazy src="<%= item["image_url"] %>" alt="logo van <%= item['naam'] %>" height="100"></div>
|
||||
<hr class="randomVereniging_hr">
|
||||
<h3><%= item['naam'] %></h3>
|
||||
</section>
|
||||
|
|
|
@ -48,7 +48,8 @@ module VerenigingenHelper
|
|||
"themas" => x[:themas],
|
||||
"postcodes" => x[:postcodes].to_a,
|
||||
"id" => x[:id],
|
||||
"path" => x.path
|
||||
"path" => x.path,
|
||||
"image_url" => image_url(x)
|
||||
} }.to_a
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue