const right = document.querySelector('.right');
const links = document.querySelectorAll("li");
const handleClick = (e) => right.textContent = data.content[data.links.indexOf(e.target.textContent)].news;
links.forEach((elem, i) => {
elem.textContent = data.links[i];
elem.addEventListener('click', handleClick);
});