hifi_corner/js/searchbar-dropdown.js
// ==== ADD RESULT TO SEARCH DROPDOWN MENU ====
ADD RESULT TO SEARCH DROPDOWN MENU
ADD RESULT TO SEARCH DROPDOWN MENU
function addResultToMenu(productData) {
    console.log('addResultToMenu');
    const productId = productData.id
    resultMenu.innerHTML +=
        `<a class="input__result-link" href="produkt-single.html?productId=${productId}">
        <h3 class="input__result-sub-header">${productData.category}</h3>
        <div class="input__result-flex-container">
        <img class="input__result-image" src="${productData.image}" alt="${productData.name}">
        <h2 class="input__result-header" >${productData.name}</h2>
        </div> 
        </a>`
}
function addResultToMenu ( productData ) { console . log ( 'addResultToMenu' ) ; const productId = productData . id resultMenu . innerHTML += ` ${ productId } ${ productData . category } ${ productData . image } ${ productData . name } ${ productData . name } ` }
ADD RESULT TO SEARCH DROPDOWN MENU
ADD RESULT TO SEARCH DROPDOWN MENU