First project that I felt had a good design and interesting interaction, so I’d like a little feedback if possible. I’ve been adding to it here and there as I feel needed
EDIT2: On recommendation, I’ve added a few features:
-Enter will now work with the search bar
-An alert pops up if you try to add an existing streamer
-There is an animation for adding or removing a streamer, which is now very smooth thanks to rmdawson71!
-If a streamer does not exist you get an alert
jQuery each time searches the DOM for #alert_box. Save it to variable and use it (const alertBox = $('#alert_box') and then use it like alertBox.css(do stuff))
Also if you wrap input element in a form, you don’t have to do if (e.keyCode == 13), you’ll get submit on enter for free
document.getElementById('dropdown').addEventListener('change', handleFilter);
function handleFilter(e) {
console.log(e.target.value); // here you'll have selected value
}
Then if you save your list of users in an array, you can iterate over it and filter out results to show on the page.
Also as a challenge you could re-write your app without using jQuery and Bootstrap
Thanks. It’s been a habit naming things a certain way from Python so I’m still getting the etiquette down lol. I definitely want to be good at vanilla JS so that’s a solid idea.