Skip to content

Commit

Permalink
work in progress (accessibility) : GALLERY FILTERS events (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
codexarama committed May 31, 2021
1 parent a18d369 commit 29be8b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/pro_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ function fetchData() {
};
launchGallery();

// FILTRE GALERIE PAR NAVIGATION CLAVIER
const selectedOption = document.querySelector('.filter__selected')
// console.log(selectedOption);

selectedOption.addEventListener('keydown', (event) => {
event.preventDefault()
let galleryFilter = selectedOption.textContent
console.log(galleryFilter);
console.log(galleryFilter == 'Date'); // ne fonctionne pas
})


// ----- labels + inputs likes counter ----- //
function setAttributes(elmt, attribute) {
for (let key in attribute) {
Expand Down

0 comments on commit 29be8b9

Please sign in to comment.