document.querySelector('#yandex').setAttribute('data-kino', document.querySelector('.topic-alt').innerHTML);
window.onload = function () {
function createElement(text) {
let div = document.createElement('div');
div.innerHTML = `${text}`;
document.body.appendChild(div); // тут
}
createElement('Lorem ipsum dolor sit amet, consectetur adipisicing elit.');
};
range.addEventListener('input', () => {
input.value = range.value;
if (input.value >= 50) {
range.setAttribute('step', '10');
} else {
range.removeAttribute('step');
}
});
chooseShipOnBoard(index, square) {
this.isShipHovered = index;
}
:class="{ hover: isShipHovered === index }"
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.15);
border-radius: 10px;
max-width: 430px;
margin: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
$('#color__white').on('click', function() {
$('.bg__banner').css({ background: "url('https://lh3.googleusercontent.com/Rt8TYR6K-aTSv125emcExagI7ehiTklC6wlMPFvnd6aC00-DMWxeu7BaWrMvXcsSNNM')" });
});
$('#color__black').on('click', function() {
$('.bg__banner').css({ background: "url('https://lh3.googleusercontent.com/V9Eqc_2TmD5fy06JjfY9drZPfgYtHZQuRK7Ndt-6d0FsucKnXqTug_PwIpal36p-EfE=s180')" });
});
const lists = document.querySelectorAll('.list li');
lists.forEach(list => {
list.addEventListener('click', () => {
lists.forEach(list => list.classList.remove('active'));
list.classList.add('active');
});
});
const divs = $(".team > .team_single");
for (let i = 0; i < divs.length; i += 2) {
divs.slice(i, i + 2).wrapAll("<div class='new'></div>");
}