let status = document.getElementsByClassName('option');
console.log(status);
for (var i = 0; i < status.length; i++) {
if ("Новый" == status[i].innerText){
status[i].setAttribute('selected', '');
console.log(status[i].innerText);
}
}
let src = document.getElementsByTagName('img')[0].src;
let button = document.getElementsByTagName('button')[0];
button.onclick = function(e) {
let box = document.querySelector('.text-box');
let box2 = document.querySelector('.box2');
box.style.background = `url(${src}) no-repeat`;
box2.innerText = src
}
}