FreeCodeCamp - Twitchtv API

2,531 Kb

How do I make an freecodecamp - twitchtv api?

What is a freecodecamp - twitchtv api? How do you make a freecodecamp - twitchtv api? This script and codes were developed by Jason Thomas on 14 September 2022, Wednesday.

FreeCodeCamp - Twitchtv API Previews

FreeCodeCamp - Twitchtv API - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>freeCodeCamp - Twitchtv API</title> <link rel='stylesheet prefetch' href=''> <link rel="stylesheet" href="css/style.css">
<body> <div class="container"> <button id="all_btn">All</button> <button id="online_btn">Online</button> <button id="offline_btn">Offline</button>
<div class="list-group" id ="listAll"> <!--list appended here--> </div> <div id="online"> <div class="list-group" id="listOnline"> <!--list appended here--> </div> </div> <div id="offline"> <div class="list-group" id="listOffline"> <!--list appended here--> </div> </div>
</div> <script src=''></script>
<script src=''></script> <script src="js/index.js"></script>

FreeCodeCamp - Twitchtv API - Script Codes CSS Codes

.container { width:700px;
body { background-image:url(
.badge { margin-top: 10px;
.badge { background-color: #6441A5;

FreeCodeCamp - Twitchtv API - Script Codes JS Codes

$(document).ready(function() { $("#all_btn").click(function(){ $("#listAll").show(); $("#online").show(); $("#offline").show();
$("#online_btn").click(function(){ $("#listAll").show(); $("#online").show(); $("#offline").hide();
$("#offline_btn").click(function(){ $("#listAll").hide(); $("#online").hide(); $("#offline").show();
var users = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"];
users.forEach(function(streamer) { $.getJSON('' + streamer + '?callback=?', function(data) { console.log(data); var HTML = ""; if ( === null) { //ofline HTML += '<a href= "'+streamer +'" class="list-group-item" target = "_blank"><h4><span class="label label-danger">Offline</span></h4>' +"<b> "+ streamer +'</b></a>'; $("#listOffline").append(HTML); //$("#listAll").append(HTML); } else if ( == undefined) { //account closed HTML += '<a href= "" target= "_blank" class="list-group-item"><span class="label label-default">Account Closed</span>' +" "+ streamer + '</a>'; //$("#listAll").append(HTML); } else { //online HTML += '<a href= "''" class="list-group-item" target = "_blank"><img src="' + + '"></img><h4><span class="label label-primary">Online</span></h4>' + "<b> "+streamer+'</b><span> - Playing ''</span><span class="badge">'' viewers</span></br><span id="title">''</span></a>'; //$("#listOnline").prepend(HTML); $("#listAll").prepend(HTML); } }); });
FreeCodeCamp - Twitchtv API - Script Codes
FreeCodeCamp - Twitchtv API - Script Codes
Home Page Home
Developer Jason Thomas
Username samoht513
Uploaded September 14, 2022
Rating 3
Size 2,531 Kb
Views 16,184
Do you need developer help for FreeCodeCamp - Twitchtv API?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jason Thomas (samoht513) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!