I am currently working on the TwitchJSON API project and I think I am almost there with a reasonable solution. I have decided to use two toggle switches to filter down the results. If I want to see list of twitch accounts that are currently offline, then I would put the “offline” switch on. If I want to see list of twitch accounts that are online, then I would put the “online” switch on. Both to be on if I want to see whole list.
The offline button seems to filter down okay, but for some reason the Online toggle button is not working. In line 134 I use an If statement to check value of Online toggle button, and if “On” then to run code that will list any twitch accounts marked as online. But this if condition doesn’t seem to be hitting the mark…any ideas or suggestions would be warmly welcome! Thank you.
My code : http://codepen.io/vassblanc/pen/GreGqZ