Update to the index.* files

This commit is contained in:
Cameron Gutman 2016-02-13 09:13:12 -05:00
parent 9a38318210
commit 75debd77f9
2 changed files with 2 additions and 7 deletions

View File

@ -7,7 +7,7 @@
<script src="common.js"></script> <script src="common.js"></script>
<script src="index.js"></script> <script src="index.js"></script>
</head> </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> <h1>Moonlight</h1>
<h2>Status: <code id="statusField">NO-STATUS</code></h2> <h2>Status: <code id="statusField">NO-STATUS</code></h2>

View File

@ -2,7 +2,6 @@
function attachListeners() { function attachListeners() {
document.getElementById('startButton').addEventListener('click', startPushed); document.getElementById('startButton').addEventListener('click', startPushed);
document.getElementById('stopButton').addEventListener('click', stopPushed); document.getElementById('stopButton').addEventListener('click', stopPushed);
document.getElementById('GFEHostIPField').addEventListener('change', changeGFEHostIPField);
} }
// Called by the common.js module. // Called by the common.js module.
@ -18,17 +17,13 @@ function getGFEHostIPField() {
function startPushed() { function startPushed() {
common.naclModule.postMessage('setGFEHostIPField:' + getGFEHostIPField().value); common.naclModule.postMessage('setGFEHostIPField:' + getGFEHostIPField().value);
common.naclModule.postMessage('startPushed'); //common.naclModule.postMessage('startPushed');
} }
function stopPushed() { function stopPushed() {
common.naclModule.postMessage('stopPushed'); common.naclModule.postMessage('stopPushed');
} }
function changeGFEHostIPField() {
common.naclModule.postMessage('setGFEHostIPField:' + getGFEHostIPField().value);
}
// Called by the common.js module. // Called by the common.js module.
function handleMessage(msg) { function handleMessage(msg) {
var logEl = document.getElementById('GFEHostIPField'); var logEl = document.getElementById('GFEHostIPField');