if (chbx[i].checked && (chbx[i].value == 'Дождь' && chbx[i].value == 'Снег'))
sum++;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Лонгрид</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="div">
<svg class="icon"></svg>
</div>
</div>
</body>
</html>
/* /* .container {
}
.div {
} */
.icon {
background-image: url(../star_active.png);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Лонгрид</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="div">
<svg class="icon"></svg>
</div>
</div>
</body>
</html>
/* /* .container {
}
.div {
} */
.icon {
background-image: url(../star_active.png);
}
<buttton class="search__form-submit" type="submit">
<span class="submit-icon-text">Найти</span></buttton>
.submit-icon-text {
background-image: url(../images/search.svg);
background-repeat: no-repeat;
}
// Меняем положение элементов
const element = document.querySelector('.page-blocks');
element.addEventListener('click', function () {
element = document.getElementById(id);
state = element.style.flexDirection;
if (state = 'row') element.style.flexDirection = 'column';
else element.style.flexDirection = 'row';
})
const flex = document.querySelector('.flex');
flex.addEventListener('click', function () {
(flex.innerHTML === 'row') ?
flex.innerHTML = 'column' :
flex.innerHTML = 'row';
})
const element = document.querySelector('.page-blocks');
element.addEventListener('click', function () {
elem = document.getElementById(id);
state = elem.style.flexDirection;
if (state = 'row') elem.style.flexDirection = 'column';
else elem.style.flexDirection = 'row';
})
const flex = document.querySelector('.flex');
flex.addEventListener('click', function () {
(flex.innerHTML === 'row') ?
flex.innerHTML = 'column' :
flex.innerHTML = 'row';
})
function togFlex(id) {
elem = document.getElementById(id);
state = elem.style.flexDirection;
if (state = 'row') elem.style.flexDirection = 'column';
else elem.style.flexDirection = 'row';
}
const flex = document.querySelector('.flex');
flex.addEventListener('click', function () {
(flex.innerHTML === 'row') ?
flex.innerHTML = 'column' :
flex.innerHTML = 'row';
})