update, load mixer stream when alt+l is pressed

This commit is contained in:
Silver Kuusik 2018-05-03 09:44:59 +03:00 committed by GitHub
parent ee2a292e35
commit 16eeb7daad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,6 +436,10 @@ window.onload = function() {
$("#panel").toggle(); $("#panel").toggle();
break; break;
case 76: // l case 76: // l
/* load the Mixer stream */
if ($("#stream").is(':empty')) {
$("#stream").html('<iframe src="https://mixer.com/embed/player/14551694"></iframe>');
}
$("#stream").toggle(); $("#stream").toggle();
/* toggle live steam visible */ /* toggle live steam visible */
liveStreamVisible = !liveStreamVisible; liveStreamVisible = !liveStreamVisible;
@ -572,9 +576,6 @@ window.onload = function() {
$("#panel").hide(); $("#panel").hide();
}); });
/* load the Mixer stream */
$("#stream").html('<iframe width="100%" height="100%" allowfullscreen="true" src="https://mixer.com/embed/player/14551694"></iframe>');
/* set a click listener on the document */ /* set a click listener on the document */
$(document).click(function(e) { $(document).click(function(e) {
var target = e.target; var target = e.target;