mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
fullscreen is now actually full screen.
This commit is contained in:
parent
9ee00e7db0
commit
d50bd666e8
@ -22,7 +22,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<main class="mdl-layout__content">
|
||||
<main id="main-content" class="mdl-layout__content">
|
||||
<div class="log-holder">
|
||||
<code id="logField">log</code></div>
|
||||
<div id="streamSettings" style="display:none"></div>
|
||||
|
@ -43,9 +43,10 @@ main {
|
||||
border: 1px solid;
|
||||
}
|
||||
.fullscreen {
|
||||
height: 100vh;
|
||||
overflow: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100vh !important;
|
||||
overflow: none !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
width 100%;
|
||||
border: none !important;
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ function hideAllWorkflowDivs() {
|
||||
document.getElementById('streamSettings').style.display = 'inline-block';
|
||||
document.getElementById('hostSettings').style.display = 'inline-block';
|
||||
document.getElementById('gameSelection').style.display = 'none';
|
||||
common.hideModule(); // do NOT hide the nacl module. you can't interact with it then
|
||||
// common.hideModule(); // do NOT hide the nacl module. you can't interact with it then
|
||||
}
|
||||
|
||||
// pair button was pushed. pass what the user entered into the GFEHostIPField.
|
||||
@ -45,7 +45,7 @@ function showAppsMode() {
|
||||
document.getElementById('streamSettings').style.display = 'none';
|
||||
document.getElementById('hostSettings').style.display = 'none'
|
||||
document.getElementById('gameSelection').style.display = 'inline-block'
|
||||
common.hideModule(); // do NOT hide the nacl module. you can't interact with it then
|
||||
// common.hideModule(); // do NOT hide the nacl module. you can't interact with it then
|
||||
}
|
||||
|
||||
// user wants to start a stream. We need the host, game ID, and video settings(?)
|
||||
@ -58,15 +58,18 @@ function startPushed() {
|
||||
}
|
||||
var gameIDDropdown = document.getElementById("selectGame");
|
||||
var gameID = gameIDDropdown[gameIDDropdown.selectedIndex].value;
|
||||
console.log(common.naclModule);
|
||||
common.naclModule.postMessage('setGFEHostIPField:' + target + ":" + gameID);
|
||||
// we just finished the gameSelection section. only expose the NaCl section
|
||||
playGameMode();
|
||||
}
|
||||
|
||||
function playGameMode() {
|
||||
$("body").children().not("#listener").hide();
|
||||
$("body").addClass("fullscreen")
|
||||
$(".mdl-layout__header").hide();
|
||||
$("#main-content").children().not("#listener").hide();
|
||||
$("#main-content").addClass("fullscreen");
|
||||
$("#listener").addClass("fullscreen");
|
||||
console.log("abdallah is fucking awesome");
|
||||
|
||||
}
|
||||
|
||||
// user pushed the stop button. we should stop.
|
||||
|
Loading…
x
Reference in New Issue
Block a user