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 committed Sep 20, 2023
1 parent 61e70a0 commit 5621fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion My-Website.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function displaySearchResults(searchTerm) {
if (customSearches.hasOwnProperty(key)) {
if (key.includes(searchTerm)) {
const result = Array.isArray(customSearches[key]) ?
customSearches[key].map(item => `<a class="lienRecherche" href="${item.link}">${item.name}</a>`).join('') :
customSearches[key].map(item => `<a class="lienRecherche" href="${item.link}" target="_blank">${item.name}</a>`).join('') :
`<a class="lienRecherche" href="${customSearches[key]}">${customSearches[key]}</a>`;
const resultElement = document.createElement('div');
resultElement.innerHTML = `<div class="titreRecherche">${key} :</div>${result}`;
Expand Down

0 comments on commit 5621fc0

Please sign in to comment.