Twitch Follower

Size
2,345 Kb
Views
44,528

How do I make an twitch follower?

What is a twitch follower? How do you make a twitch follower? This script and codes were developed by Mei Weng Brough-Smyth on 06 November 2022, Sunday.

Twitch Follower Previews

Twitch Follower - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Twitch Follower</title> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="row text-center"> <h1><a href = "twitch.tv"><i class="fa fa-twitch"></i></a> Twitch</h1> </div> <div class="liveData row"> <div class="col-xs-12"><h3><i class='fa fa-video-camera'></i> Live Channels</h3></div> </div> <div class="appendData"> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Twitch Follower - Script Codes CSS Codes

.row { padding-top: 20px;
}

Twitch Follower - Script Codes JS Codes

var followers = [];
$.ajax({ dataType: "jsonp", url: 'https://api.twitch.tv/kraken/users/hicough/follows/channels', }).done(function ( data ) { var total = data._total - 1; var follows = data.follows; for (var i = 0; i < total; i++) { var channelInfo = follows[i].channel; var addHtml = "<div class='col-xs-12 row'><a href='" + channelInfo.url + "'>"; addHtml += "<div class='col-xs-2'><img class='img-responsive' src='" + channelInfo.logo + "'></div>"; addHtml += "<div class='col-xs-10'><h4>" + channelInfo.display_name + "<div class=" + channelInfo.name + "></div>"; addHtml += "<small>" + channelInfo.status + "</small></h4></div>"; addHtml += "</a></div>"; $(".appendData").append(addHtml); followers.push(channelInfo.name); if (i === (total-1)) { getLiveInfo(); } }
});
function getLiveInfo() { for (var i = 0; i < followers.length; i++) { var channelUrl = "https://api.twitch.tv/kraken/streams/" + followers[i]; $.ajax({ dataType: "jsonp", url: channelUrl, async: false, }).done(function ( channelObject ) { if (channelObject.stream) { var live = "<a href=" + channelObject.stream.channel.url + "><div class='col-xs-4'>"; live += "<img src=" + channelObject.stream.preview.medium + " class='img-responsive'>"; live += "<h4>" + channelObject.stream.channel.display_name + "<br><small>playing " + channelObject.stream.channel.game; live += "</a></small></h4></div>"; $(".liveData").append(live); } }); }
}
Twitch Follower - Script Codes
Twitch Follower - Script Codes
Home Page Home
Developer Mei Weng Brough-Smyth
Username melatonind
Uploaded November 06, 2022
Rating 3
Size 2,345 Kb
Views 44,528
Do you need developer help for Twitch Follower?

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!

Mei Weng Brough-Smyth (melatonind) Script Codes
Create amazing marketing copy 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!