rf-web/_includes/embeds/twitch.html

13 lines
411 B
HTML
Raw Normal View History

2020-09-05 14:12:50 +00:00
<!-- Add a placeholder for the Twitch embed -->
<div id="twitch-embed"></div>
<!-- Load the Twitch embed script -->
<script src="https://player.twitch.tv/js/embed/v1.js"></script>
2020-09-23 15:03:45 +00:00
2020-09-05 14:12:50 +00:00
<!-- Create a Twitch.Player object. This will render within the placeholder div -->
2020-09-23 15:03:45 +00:00
<script type="text/javascript" id='twitch-script'>
2020-09-05 14:12:50 +00:00
new Twitch.Player("twitch-embed", {
channel: "{{ site.twitchChannel }}"
});
</script>