Skip to content

Commit

Permalink
Replacing cssnano and postcss related dependencies with esbuild
Browse files Browse the repository at this point in the history
…. Adding new scripts.
  • Loading branch information
erinesullivan committed May 8, 2024
1 parent cfa7298 commit ccc081d
Show file tree
Hide file tree
Showing 6 changed files with 320 additions and 1,732 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ coverage/
.irb_history
node_modules/
.npm/
public/browse.css
.bash_history
.cache/
.solargraph.yml
12 changes: 12 additions & 0 deletions js/browse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Select Dropdown Tips
*/
const selectDropdown = document.querySelector('.search-box-dropdown select');
const optionTips = document.querySelectorAll('p[data-option]');

selectDropdown.addEventListener('change', (event) => {
optionTips.forEach((optionTip) => {
const dataOptionValue = optionTip.getAttribute('data-option');
optionTip.style.display = dataOptionValue === event.target.value ? 'initial' : 'none';
});
});
Loading

0 comments on commit ccc081d

Please sign in to comment.