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">
<label for="photos">Tout état</label></span>
<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">
<label for="exist">Existante</label></span>
<label for="exist">Existant</label></span>
<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">
<label for="ok">&#x2605;&#x2605; acceptable</label></span>
<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 class="box years">

View File

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

View File

@ -383,14 +383,20 @@ article.explorer .gallery {
}
article.explorer p.intro {
width:55vw;
width:75vw;
margin:auto;
margin-bottom:2rem;
text-align:justify;
}
@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;
}
}