From 06ef1fe94b08488fea3076e34840e0184fee95f1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 11 Sep 2016 22:23:33 -0700 Subject: [PATCH] Hide header bar controls when the NaCl plugin is loading --- static/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/index.js b/static/js/index.js index a6c0c99..30b44ef 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -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');