Jump to content

MediaWiki:Common.js: Difference between revisions

From nUSA Wiki
Created page with "async function fetchMemberCount() { try { const response = await fetch('https://groups.roblox.com/v1/groups/758071'); const data = await response.json(); const memberCount = data.memberCount; document.getElementById('player-count').textContent = memberCount.toLocaleString(); } catch (error) { console.error('Error fetching member count:', error); document.getElementById('player-count').textContent = 'unavailable';..."
 
Blanked the page
Tags: Blanking Manual revert
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
async function fetchMemberCount() {
    try {
        const response = await fetch('https://groups.roblox.com/v1/groups/758071');
        const data = await response.json();
        const memberCount = data.memberCount;
        document.getElementById('player-count').textContent = memberCount.toLocaleString();
    } catch (error) {
        console.error('Error fetching member count:', error);
        document.getElementById('player-count').textContent = 'unavailable';
    }
}


window.onload = fetchMemberCount;

Latest revision as of 01:01, 14 January 2025