Fix rest of website

This commit is contained in:
redfast00 2020-09-15 18:31:44 +02:00
parent 1aec6e580e
commit 610077edc3
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
3 changed files with 4 additions and 3 deletions

View file

@ -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);
}
});

View file

@ -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>

View file

@ -44,7 +44,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