I have seemed to successfully hide and show All twitch users. What I cant seem to achieve is to display users that are currently streaming.
I tried to implements this
$("#live").click(function() {
if(data.stream !== null){
$( ".container" ).append( "<p>"+freeCode+"</p>" )
}else if(data.stream === null){
$("p").addClass("hide")
}
just to see if it worked but it failed.
Here is a link to my codepen