File size: 503 Bytes
c17a638
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
document.addEventListener("DOMContentLoaded", function() {
    const profileIcon = document.getElementById("profile-icon");
    const profileSidebar = document.getElementById("profile-sidebar");
    const closeProfile = document.getElementById("close-profile");

    profileIcon.addEventListener("click", function() {
        profileSidebar.style.display = "block";
    });

    closeProfile.addEventListener("click", function() {
        profileSidebar.style.display = "none";
    });
});