mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 08:36:42 +00:00
unify the UI into a single page
This commit is contained in:
parent
b634ab84f1
commit
5145012d59
@ -8,7 +8,6 @@
|
||||
<script type="text/javascript" src="index.js"></script>
|
||||
</head>
|
||||
<body data-name="moonlight-chrome" data-width="1280" data-height="720" data-tools="pnacl" data-configs="Debug Release" data-path="{tc}/{config}">
|
||||
|
||||
<div id="title">
|
||||
<h1>Moonlight Streaming</h1>
|
||||
<h2>Chrome App Status: <code id="statusField">NO-STATUS</code></h2>
|
||||
@ -50,4 +49,3 @@
|
||||
<div id="listener"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
7
index.js
7
index.js
@ -24,12 +24,13 @@ function hideAllWorkflowDivs() {
|
||||
|
||||
// pair button was pushed. pass what the user entered into the GFEHostIPField.
|
||||
function pairPushed() {
|
||||
common.naclModule.postMessage('pair:' + document.getElementById('GFEHostIPField').value);
|
||||
// common.naclModule.postMessage('pair:' + document.getElementById('GFEHostIPField').value);
|
||||
}
|
||||
|
||||
// someone pushed the "show apps" button.
|
||||
// if they entered something in the GFEHostIPField, use that.
|
||||
// otherwise, we assume they selected from the host history dropdown.
|
||||
// TODO: pass the host info to the appChoose screen
|
||||
function showAppsPushed() {
|
||||
var target = document.getElementById('GFEHostIPField').value;
|
||||
if (target == null || target == "127.0.0.1") {
|
||||
@ -74,6 +75,4 @@ function stopPushed() {
|
||||
function handleMessage(msg) {
|
||||
var logEl = document.getElementById('logField');
|
||||
logEl.innerHTML = msg.data;
|
||||
}
|
||||
|
||||
// window.onload = hideAllWorkflowDivs;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user