function createSauseItem () {
for(let i=0; i <sauseName.length; i++) {
if(i < 1) {
let newItem = document.createElement('div');
newItem.className = ('item sauce__item');
const itemText = `<div class="item sauce__item">
<b> <div class="item__promo sause-item__promo">NEW</div></b>
<img draggable="false"
src="${(sauseImg[i])}"
alt="sause"
class="item__image sauce__image"
/>
<div class="item__name sauce__name">${(sauseName[i])}</div>
<div class="item__descr desserts__descr">${(sauseDescr[i])}</div>
<div class="item__bottom_choise">
<button class="btnchoise sause__button">Выбрать</button>
<div class="item__costs sauce__costst" data-price="${(dataPrice[i])}">${(sauseCosts[i])}</div>
</div>
</div>`;
newItem.innerText = itemText;
sause.insertAdjacentHTML('beforeend', itemText)
} else if (i < 2 ) {
let newItem = document.createElement('div');
newItem.className = ('item sauce__item');
const itemText = `<div class="item sauce__item">
<b><div class="item__promo sause-item__promo">ХИТ</div></b>
<img draggable="false"
src="${(sauseImg[i])}"
alt="sause"
class="item__image sauce__image"
/>
<div class="item__name sauce__name">${(sauseName[i])}</div>
<div class="item__descr desserts__descr">${(sauseDescr[i])}</div>
<div class="item__bottom_choise">
<button class="btnchoise sause__button">Выбрать</button>
<div class="item__costs sauce__costst" data-price="${(dataPrice[i])}">${(sauseCosts[i])}</div>
</div>
</div>`;
newItem.innerText = itemText;
sause.insertAdjacentHTML('beforeend', itemText)
} else {
let newItem = document.createElement('div');
newItem.className = ('item sauce__item');
const itemText = `<div class="item sauce__item">
<img draggable="false"
src="${(sauseImg[i])}"
alt="sause"
class="item__image sauce__image"
/>
<div class="item__name sauce__name">${(sauseName[i])}</div>
<div class="item__descr desserts__descr">${(sauseDescr[i])}</div>
<div class="item__bottom_choise">
<button class="btnchoise sause__button">Выбрать</button>
<div class="item__costs sauce__costst" data-price="${(dataPrice[i])}">${(sauseCosts[i])}</div>
</div>
</div>`;
newItem.innerText = itemText;
sause.insertAdjacentHTML('beforeend', itemText)
}
}
}
function createSauseItem() {
for (let i = 0; i < sauseName.length; i++) {
let newItem = document.createElement('div');
newItem.className = ('item sauce__item');
const itemText = `<div class="item sauce__item">
${i === 0 ? `<b><div class="item__promo sause-item__promo">NEW</div></b>` : i === 1 ? `<b><div class="item__promo sause-item__promo">ХИТ</div></b>` : 0}
<img draggable="false"
src="${(sauseImg[i])}"
alt="sause"
class="item__image sauce__image"
/>
<div class="item__name sauce__name">${(sauseName[i])}</div>
<div class="item__descr desserts__descr">${(sauseDescr[i])}</div>
<div class="item__bottom_choise">
<button class="btnchoise sause__button">Выбрать</button>
<div class="item__costs sauce__costst" data-price="${(dataPrice[i])}">${(sauseCosts[i])}</div>
</div>
</div>`;
newItem.innerText = itemText;
sause.insertAdjacentHTML('beforeend', itemText)
}
}