Fix rest of website

This commit is contained in:
redfast00 2020-09-15 18:31:44 +02:00 committed by ajuvercr
parent 15b7ddfdfd
commit 217113d05f
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"); let destination = document.getElementById("display_repo");
for (node of selected) { for (node of selected) {
node.getElementsByTagName("img")[0].setAttribute("loading", "eager"); 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" : "" %> > <div class="randomVerenigingWrapper" <%= (item['id'] == "zeus") ? "data-iszeus" : "" %> >
<a href="<%= item['path'] || test %>"> <a href="<%= item['path'] || test %>">
<section class="randomVereniging"> <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"> <hr class="randomVereniging_hr">
<h3><%= item['naam'] %></h3> <h3><%= item['naam'] %></h3>
</section> </section>

View file

@ -48,7 +48,8 @@ module VerenigingenHelper
"themas" => x[:themas], "themas" => x[:themas],
"postcodes" => x[:postcodes].to_a, "postcodes" => x[:postcodes].to_a,
"id" => x[:id], "id" => x[:id],
"path" => x.path "path" => x.path,
"image_url" => image_url(x)
} }.to_a } }.to_a
end end