TwitchTV

Developer
Size
3,112 Kb
Views
10,120

How do I make an twitchtv?

What is a twitchtv? How do you make a twitchtv? This script and codes were developed by Adz on 04 November 2022, Friday.

TwitchTV Previews

TwitchTV - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>TwitchTV</title> <link href="https://fonts.googleapis.com/css?family=Barrio|Josefin+Sans" rel="stylesheet"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <center> <div>
<h1> Twitch.TV</h1> <h4> Live Feed of What's Streaming NOW</h4> </div> <div class="streaming"> <!--button group--> <div class="btn-group buttons" role='group'> <button class="btn btn-info">ALL</button> <button class="btn btn-success">ONLINE</button> <button class="btn btn-danger">OFFLINE</button> </div> <!-- search--> <br><br> </div> </div>
</center> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script>
<script src='https://use.fontawesome.com/34ce266635.js'></script> <script src="js/index.js"></script>
</body>
</html>

TwitchTV - Script Codes CSS Codes

body{ background-image:url("http://images4.fanpop.com/image/photos/17500000/cool-backgrounds-random-17514354-1024-640.jpg"); text-transform: uppercase; font-family:"Josefin Sans";
}
img{border-radius:100%;}
h1{color:white; font-family: "Barrio"; font-size:60px;}
h4{color:black; background-color:blue; padding:1%;}
.streaming{ background-color: rgba(255,255,255,0.6); margin: 0% 10% 10%; padding: 3%; border-radius:6px; border: 4px solid #1a1a1a;
}
.userIMG{width:100px;}
a{color:#1a1a1a; font-weight:bold;}
a:hover{text-decoration:none;}
/*
- Twitch.TV = special font
- "Streamers" = font2
- Account Names = No underline. Caps
-
-
*/

TwitchTV - Script Codes JS Codes

$(document).ready(function() { // List of TwitchTV accounts to use var streamers=["ESL_SC2", "syndicate", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas", "Scaxz9"]; // For each TwitchTV account... streamers.forEach(function(streamer) { // Variables to store pieces of the API Url that will get info for each user var url="https://wind-bow.gomix.me/twitch-api/"; var addOn = "?callback=?" var channels = url + 'channels/' + streamer + addOn; var streams = url + 'streams/' + streamer + addOn; //get the JSON channel link AND the JSON stream link for each user (nested) $.getJSON(channels, function(response) { $.getJSON(streams, function(data) { var name = response.name; var logo = "<img class='userIMG' src='"+response.logo+ "'><br>"; var url = "<a href="+response.url+">"; // What to add to page if user is online, user is offline, or user doesn't exist if(response.error) { $(".streaming").append("<div class='userInfo offline'>"+streamer+"<br><img class='userIMG' src='//thumb18.shutterstock.com/photos/thumb_large/450076/450076,1284955408,4.jpg'><br>!!user not found<hr>"); } else if (!response.error && data.stream !==null) { var statu = data.stream.channel.status; $(".streaming").append("<div class='userInfo online'>"+url+name+"<br>"+logo +"</a><p style='color:green; font-weight:bold;'>online"+"</p><b style='color:#1a1a1a;font-style:italic;'>"+statu+"</b><hr></div>"); } else if(!response.error && data.stream === null) { $(".streaming").append("<div class='userInfo offline'>"+url+name+"<br>"+logo +"</a><p style='color:red;' #id='offline'>offline<hr></div>"); }; }); }); }); });
// Buttons to navigate through users. $(".btn-success").click(function () { $(".offline").css('display', 'none'); $(".online").css('display', 'block');
}); $(".btn-danger").click(function () { $(".online").css('display', 'none'); $(".offline").css('display', 'block'); }); $(".btn-info").click(function () { $(".online").css('display', 'block'); $(".offline").css('display', 'block'); });
TwitchTV - Script Codes
TwitchTV - Script Codes
Home Page Home
Developer Adz
Username aadesida
Uploaded November 04, 2022
Rating 3
Size 3,112 Kb
Views 10,120
Do you need developer help for TwitchTV?

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!

Adz (aadesida) Script Codes
Create amazing sales emails 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!