/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.js :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: edbernar { usernameText = userInfo.username; username.innerText = userInfo.username + ' (status not implemented)'; pfp.style.backgroundImage = `url("${userInfo.pfp}")` pfp.style.backgroundSize = "cover"; pfp.style.backgroundRepeat = "no-repeat"; banner.style.backgroundImage = `url("${userInfo.banner}")` banner.style.backgroundSize = "cover"; banner.style.backgroundRepeat = "no-repeat"; if (userId == userMeInfo.id) { pfp.innerHTML = `
` banner.innerHTML = `` } }); convButton.addEventListener('click', () => { showChatMenu(); showPrivateChat({id: userId, name: usernameText}); }); } static dispose() { LiveChat.dispose(); } } export { ProfilPage };