Fix of interface in explorer, tags now working as AND and not OR

This commit is contained in:
Théo Marchal 2021-02-14 01:19:12 +01:00
parent b76734fe25
commit 04d3e099cb
3 changed files with 16 additions and 10 deletions

View File

@ -53,15 +53,15 @@
<span><input type="checkbox" id="photos" name="photos" value="all"> <span><input type="checkbox" id="photos" name="photos" value="all">
<label for="photos">Tout état</label></span> <label for="photos">Tout état</label></span>
<span><input type="checkbox" id="none" name="photo" value="none"> <span><input type="checkbox" id="none" name="photo" value="none">
<label for="none">&#x2606; aucune</label></span> <label for="none">&#x2606; inexistant</label></span>
<span><input type="checkbox" id="exist" name="photo" value="exist"> <span><input type="checkbox" id="exist" name="photo" value="exist">
<label for="exist">Existante</label></span> <label for="exist">Existant</label></span>
<span><input type="checkbox" id="bad" name="photo" value="bad"> <span><input type="checkbox" id="bad" name="photo" value="bad">
<label for="bad">&#x2605; mauvaise</label></span> <label for="bad">&#x2605; mauvais</label></span>
<span><input type="checkbox" id="ok" name="photo" value="ok"> <span><input type="checkbox" id="ok" name="photo" value="ok">
<label for="ok">&#x2605;&#x2605; acceptable</label></span> <label for="ok">&#x2605;&#x2605; acceptable</label></span>
<span><input type="checkbox" id="good" name="photo" value="good"> <span><input type="checkbox" id="good" name="photo" value="good">
<label for="good">&#x2605;&#x2605;&#x2605; bonne</label></span> <label for="good">&#x2605;&#x2605;&#x2605; bon</label></span>
</div> </div>
</div> </div>
<div class="box years"> <div class="box years">

View File

@ -363,12 +363,12 @@ jQuery(document).ready(function($)
return true; return true;
splitTag = tag.split(", "); splitTag = tag.split(", ");
for (t of splitTag) for (t of paramTag)
{ {
if (paramTag.includes(t)) if (!splitTag.includes(t))
return true; return false;
} }
return false; return true;
} }
function checkPhoto(photo) function checkPhoto(photo)

View File

@ -383,14 +383,20 @@ article.explorer .gallery {
} }
article.explorer p.intro { article.explorer p.intro {
width:55vw; width:75vw;
margin:auto; margin:auto;
margin-bottom:2rem; margin-bottom:2rem;
text-align:justify; text-align:justify;
} }
@media only screen and (max-width:1200px) { @media only screen and (max-width:1200px) {
article.explorer p { article.explorer p.intro {
width:90vw;
}
}
@media only screen and (max-width:1640px) {
article.explorer {
width:90vw; width:90vw;
} }
} }