FANDOM


<script> function parseTwitch(twit) {


if ( twit.streams.length == 0){ document.getElementById('LiveOnTwitch').style.display = 'none'; }

for (var i = 0; i < twit.streams.length; i++){ document.getElementById('twitchOutput').innerHTML += " <a href='" + twit.streams[i].channel["url"] + "'><img src=/> " + twit.streams[i].channel["display_name"] + "</a> " + twit.streams[i].viewers + " Viewers
";
}

}

var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://api.twitch.tv/kraken/streams?game=TowerFall+Ascension&callback=parseTwitch'; document.body.appendChild(script);

</script>