Skip to content

Commit

Permalink
Toggle Folders
Browse files Browse the repository at this point in the history
  • Loading branch information
KyerHarris authored Mar 20, 2024
1 parent e5c7a6d commit 282f4aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion samples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ async function allPhotos() {
const allPhotosButton = document.getElementById('listAllPhotos');
allPhotosButton.classList.add('active');
sharedPhotosButton.classList.remove('active');

}

async function sharedPhotos() {
Expand All @@ -39,3 +38,8 @@ async function sharedPhotos() {
sharedPhotosButton.classList.add('active');
allPhotosButton.classList.remove('active');
}

async function toggleFolder(folderHeader) {
const folderContent = folderHeader.nextElementSibling;
folderContent.classList.toggle('show');
}

0 comments on commit 282f4aa

Please sign in to comment.