`; // target the cover menu item const target = document.querySelector('#menu-header-uk-1 .menu-item-2911415'); // position popover to the left if the target is on the right half of the screen if (target.getBoundingClientRect().right > document.documentElement.clientWidth / 2) { popover.classList.add('left'); } target.appendChild(popover); // used to check if the article info let articleTitle = ''; // fetch info once, then show popover on hover target.addEventListener('mouseover', async () => { if (!articleTitle) { const [coverRes, articleRes] = await Promise.all([ fetch('https://www.nme.com/wp-json/wp/v2/posts?categories=268320&per_page=1&_fields[]=thumbnail_url&_fields[]=featured_media'), fetch('https://www.nme.com/wp-json/wp/v2/posts?categories=268101&per_page=1&_fields[]=title&_fields[]=link'), ]); const [cover, article] = await Promise.all([coverRes.json(), articleRes.json()]); articleTitle = article[0].title.rendered; document.querySelector('#the-cover-article-title').textContent = articleTitle; document.querySelector('#the-cover-article-title').href = article[0].link; document.querySelector('#the-cover-image-link').href = article[0].link; document.querySelector('#the-cover-read-now').href = article[0].link; document.querySelectorAll('#the-cover-image').forEach((img) => { // add size modifier to the cover image url img.src = cover[0].thumbnail_url.replace(/(\.[\w\d_-]+)$/i, '-400x500$1'); }); // document.querySelector('#the-cover-image-link').href = article[0].link; } setTimeout(() => popover.classList.add('active'), 0); }); // hide popover on mouse leave target.addEventListener('mouseleave', () => { setTimeout(() => popover.classList.remove('active'), 0); }); });

Grand Theft Auto VI

Here is why ‘GTA 6’ isn’t coming to PS4 and Xbox One

Can the console run it?

‘Grand Theft Auto 6’ fans think a beloved throwback map will feature in new game

Liberty City could be making a return alongside Vice City

‘Grand Theft Auto 6’ fans think they know who is voicing Lucia and Jason

The Bonnie & Clyde-inspired protagonists lead the return to Vice City

Switch 2 players might not be getting ‘Grand Theft Auto 6’ after all

A PC release date is still to be confirmed as well

‘Grand Theft Auto 6’ fans “satisfied” after “unprecedented” map, story and character reveals

Developers have shared a new trailer and a bumper crop of info

What song soundtracks ‘Grand Theft Auto 6’s Trailer 2?

It comes after a Tom Petty classic soundtracked the first trailer

‘Grand Theft Auto 6’s new trailer and story details have been revealed

The long-awaited game is now set to come out next year

‘GTA 6’ fans annoyed about new 2026 release date: “13 years for a game is crazy”

“We're going to have another year of ‘we got X before Grand Theft Auto 6’ jokes

‘Grand Theft Auto 6’ has been delayed to 2026

A release window has finally been confirmed – and it’s not good news
Advertisement