Conversation
| $('.intro-text').addClass('hidden'); | ||
| }); | ||
|
|
||
| player.addEventListener(Twitch.Player.OFFLINE, function() { |
There was a problem hiding this comment.
'Twitch' is not defined.
| } | ||
| var player = new Twitch.Player("video-player", options); | ||
|
|
||
| player.addEventListener(Twitch.Player.ONLINE, function() { |
There was a problem hiding this comment.
'Twitch' is not defined.
| var options = { | ||
| channel: twitchUsername | ||
| } | ||
| var player = new Twitch.Player("video-player", options); |
There was a problem hiding this comment.
'Twitch' is not defined.
js/main.js
Outdated
|
|
||
| player.addEventListener(Twitch.Player.OFFLINE, function() { | ||
| $('#video-player').addClass("hidden"); | ||
| $('.intro-text').removeClass('hidden'); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
| }); | ||
|
|
||
| player.addEventListener(Twitch.Player.OFFLINE, function() { | ||
| $('#video-player').addClass("hidden"); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
|
|
||
| player.addEventListener(Twitch.Player.ONLINE, function() { | ||
| $('#video-player').removeClass("hidden"); | ||
| $('.intro-text').addClass('hidden'); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
| var player = new Twitch.Player("video-player", options); | ||
|
|
||
| player.addEventListener(Twitch.Player.ONLINE, function() { | ||
| $('#video-player').removeClass("hidden"); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
|
|
||
| var options = { | ||
| channel: twitchUsername | ||
| } |
js/main.js
Outdated
|
|
||
| player.addEventListener(Twitch.Player.OFFLINE, function() { | ||
| $('#video-player').addClass('hidden'); | ||
| $('.intro-text').removeClass('hidden'); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
| }); | ||
|
|
||
| player.addEventListener(Twitch.Player.OFFLINE, function() { | ||
| $('#video-player').addClass('hidden'); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
|
|
||
| player.addEventListener(Twitch.Player.ONLINE, function() { | ||
| $('#video-player').removeClass('hidden'); | ||
| $('.intro-text').addClass('hidden'); |
There was a problem hiding this comment.
Mixed double and single quotes.
js/main.js
Outdated
| var player = new Twitch.Player("video-player", options); | ||
|
|
||
| player.addEventListener(Twitch.Player.ONLINE, function() { | ||
| $('#video-player').removeClass('hidden'); |
There was a problem hiding this comment.
Mixed double and single quotes.
|
|
||
| $.getJSON( "https://api.twitch.tv/kraken/channels/twitchusername/follows?client_id="+ clientId + "&callback=?", function(response) { | ||
| $('.followers span').text(response["_total"]); | ||
| $(".followers span").text(response["_total"]); |
There was a problem hiding this comment.
['_total'] is better written in dot notation.
|
Hey thanks for doing this! I'll take a look soon and we get get this merged in |
#5