Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Vital-Vuillaume authored Sep 20, 2023
1 parent 3d660f3 commit a1d39f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions My-Website.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,18 @@ function clearResults() {
resultats.innerHTML = '';
}

//-----Input disparait au clic pour vu mobile-----\\

if (window.innerWidth <= 425) {
Recherche.addEventListener('focus', function() {
nav.style.display = 'none';
});

Recherche.addEventListener('blur', function() {
nav.style.display = 'flex';
});
}

//-----Disposition des resultats-----\\

function displaySearchResults(searchTerm) {
Expand Down

0 comments on commit a1d39f1

Please sign in to comment.