mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Update to the index.* files
This commit is contained in:
parent
9a38318210
commit
75debd77f9
@ -7,7 +7,7 @@
|
||||
<script src="common.js"></script>
|
||||
<script src="index.js"></script>
|
||||
</head>
|
||||
<body data-name="moonlight-chrome" data-width="500" data-width="500" data-tools="pnacl" data-configs="Debug Release" data-path="{tc}/{config}">
|
||||
<body data-name="moonlight-chrome" data-width="500" data-height="500" data-tools="pnacl" data-configs="Debug Release" data-path="{tc}/{config}">
|
||||
|
||||
<h1>Moonlight</h1>
|
||||
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
|
||||
|
7
index.js
7
index.js
@ -2,7 +2,6 @@
|
||||
function attachListeners() {
|
||||
document.getElementById('startButton').addEventListener('click', startPushed);
|
||||
document.getElementById('stopButton').addEventListener('click', stopPushed);
|
||||
document.getElementById('GFEHostIPField').addEventListener('change', changeGFEHostIPField);
|
||||
}
|
||||
|
||||
// Called by the common.js module.
|
||||
@ -18,17 +17,13 @@ function getGFEHostIPField() {
|
||||
|
||||
function startPushed() {
|
||||
common.naclModule.postMessage('setGFEHostIPField:' + getGFEHostIPField().value);
|
||||
common.naclModule.postMessage('startPushed');
|
||||
//common.naclModule.postMessage('startPushed');
|
||||
}
|
||||
|
||||
function stopPushed() {
|
||||
common.naclModule.postMessage('stopPushed');
|
||||
}
|
||||
|
||||
function changeGFEHostIPField() {
|
||||
common.naclModule.postMessage('setGFEHostIPField:' + getGFEHostIPField().value);
|
||||
}
|
||||
|
||||
// Called by the common.js module.
|
||||
function handleMessage(msg) {
|
||||
var logEl = document.getElementById('GFEHostIPField');
|
||||
|
Loading…
x
Reference in New Issue
Block a user