hid missing images

This commit is contained in:
theo1 2020-06-02 17:36:23 +02:00
parent 6507883b1f
commit d1ca8b1f48
5 changed files with 22 additions and 22 deletions

View File

@ -27,15 +27,15 @@
<div class="gallery">
<!-- If there are only images, print them full-width. -->
<img class= "gallery-img" alt="" onclick="showSlide('img-1')" src="/images/Construction/Construction-1.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-1')" src="/images/Construction/Construction-1.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-2')" src="/images/Construction/Construction-2.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-2')" src="/images/Construction/Construction-2.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-3')" src="/images/Construction/Construction-3.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-3')" src="/images/Construction/Construction-3.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-4')" src="/images/Construction/Construction-4.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-4')" src="/images/Construction/Construction-4.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-5')" src="/images/Construction/Construction-5.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-5')" src="/images/Construction/Construction-5.jpg" onerror="this.style.display='none'">
<br>
</div>

View File

@ -27,15 +27,15 @@
<div class="gallery">
<!-- If there are only images, print them full-width. -->
<img class= "gallery-img" alt="" onclick="showSlide('img-1')" src="/images/Dimanche/Dimanche-1.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-1')" src="/images/Dimanche/Dimanche-1.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-2')" src="/images/Dimanche/Dimanche-2.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-2')" src="/images/Dimanche/Dimanche-2.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-3')" src="/images/Dimanche/Dimanche-3.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-3')" src="/images/Dimanche/Dimanche-3.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-4')" src="/images/Dimanche/Dimanche-4.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-4')" src="/images/Dimanche/Dimanche-4.jpg" onerror="this.style.display='none'">
<br>
<img class= "gallery-img" alt="" onclick="showSlide('img-5')" src="/images/Dimanche/Dimanche-5.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-5')" src="/images/Dimanche/Dimanche-5.jpg" onerror="this.style.display='none'">
<br>
</div>

View File

@ -20,11 +20,11 @@
<!-- If there is a text, print two columns -->
<div class="article">
<div class='article-img column'>
<img alt="" onclick="showSlide('img-1')" src="/images/La cour/La cour-1.jpg">
<img alt="" onclick="showSlide('img-2')" src="/images/La cour/La cour-2.jpg">
<img alt="" onclick="showSlide('img-3')" src="/images/La cour/La cour-3.jpg">
<img alt="" onclick="showSlide('img-4')" src="/images/La cour/La cour-4.jpg">
<img alt="" onclick="showSlide('img-5')" src="/images/La cour/La cour-5.jpg">
<img alt="" onclick="showSlide('img-1')" src="/images/La cour/La cour-1.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-2')" src="/images/La cour/La cour-2.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-3')" src="/images/La cour/La cour-3.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-4')" src="/images/La cour/La cour-4.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-5')" src="/images/La cour/La cour-5.jpg" onerror="this.style.display='none'">
</div>
<div class='article-content column'> <p><audio controls="controls"
src="sounds/courtyard.wav"

View File

@ -20,11 +20,11 @@
<!-- If there is a text, print two columns -->
<div class="article">
<div class='article-img column'>
<img alt="" onclick="showSlide('img-1')" src="/images/Le retour du printemps/Le retour du printemps-1.jpg">
<img alt="" onclick="showSlide('img-2')" src="/images/Le retour du printemps/Le retour du printemps-2.jpg">
<img alt="" onclick="showSlide('img-3')" src="/images/Le retour du printemps/Le retour du printemps-3.jpg">
<img alt="" onclick="showSlide('img-4')" src="/images/Le retour du printemps/Le retour du printemps-4.jpg">
<img alt="" onclick="showSlide('img-5')" src="/images/Le retour du printemps/Le retour du printemps-5.jpg">
<img alt="" onclick="showSlide('img-1')" src="/images/Le retour du printemps/Le retour du printemps-1.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-2')" src="/images/Le retour du printemps/Le retour du printemps-2.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-3')" src="/images/Le retour du printemps/Le retour du printemps-3.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-4')" src="/images/Le retour du printemps/Le retour du printemps-4.jpg" onerror="this.style.display='none'">
<img alt="" onclick="showSlide('img-5')" src="/images/Le retour du printemps/Le retour du printemps-5.jpg" onerror="this.style.display='none'">
</div>
<div class='article-content column'> <p><audio controls="controls"
src="sounds/printemps.wav"

View File

@ -15,7 +15,7 @@
<div class="gallery">
<!-- If there are only images, print them full-width. -->
{% for i in [1, 2, 3, 4, 5] %}
<img class= "gallery-img" alt="" onclick="showSlide('img-{{ i }}')" src="{{ SITE_URL }}/images/{{article.title}}/{{ article.title }}-{{ i }}.jpg">
<img class= "gallery-img" alt="" onclick="showSlide('img-{{ i }}')" src="{{ SITE_URL }}/images/{{article.title}}/{{ article.title }}-{{ i }}.jpg" onerror="this.style.display='none'">
<br>
{% endfor %}
</div>
@ -24,7 +24,7 @@
<div class="article">
<div class='article-img column'>
{% for i in [1, 2, 3, 4, 5] %}
<img alt="" onclick="showSlide('img-{{ i }}')" src="{{ SITE_URL }}/images/{{article.title}}/{{ article.title }}-{{ i }}.jpg">
<img alt="" onclick="showSlide('img-{{ i }}')" src="{{ SITE_URL }}/images/{{article.title}}/{{ article.title }}-{{ i }}.jpg" onerror="this.style.display='none'">
{% endfor %}
</div>
<div class='article-content column'> {{ article.content }}</div>