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
1 changed files with 4 additions and 3 deletions

View File

@ -436,6 +436,10 @@ window.onload = function() {
$("#panel").toggle();
break;
case 76: // l
/* load the Mixer stream */
if ($("#stream").is(':empty')) {
$("#stream").html('<iframe src="https://mixer.com/embed/player/14551694"></iframe>');
}
$("#stream").toggle();
/* toggle live steam visible */
liveStreamVisible = !liveStreamVisible;
@ -572,9 +576,6 @@ window.onload = function() {
$("#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 */
$(document).click(function(e) {
var target = e.target;