Skip to content

Commit

Permalink
Hide header bar controls when the NaCl plugin is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Sep 12, 2016
1 parent 506bc64 commit 06ef1fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ function fullscreenChromeWindow() {
}

function changeUiModeForNaClLoad() {
$('.mdl-layout__header').children().hide();
$("#main-content").children().not("#listener, #naclSpinner").hide();
$('#naclSpinnerMessage').text('Loading Moonlight plugin...');
$('#naclSpinner').css('display', 'inline-block');
}

function restoreUiAfterNaClLoad() {
$('.mdl-layout__header').children().not("#quitCurrentApp").show();
$("#main-content").children().not("#listener, #naclSpinner, #gameSelection").show();
$('#naclSpinner').hide();
$('#loadingSpinner').css('display', 'none');
Expand Down

0 comments on commit 06ef1fe

Please sign in to comment.