Index: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html |
diff --git a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..98667a1f1df2a523afce2ebfde365df122533820 |
--- /dev/null |
+++ b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html |
@@ -0,0 +1,49 @@ |
+<!DOCTYPE html> |
+<html> |
+ <!-- |
+ Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+ Use of this source code is governed by a BSD-style license that can be |
+ found in the LICENSE file. |
+ --> |
+<head> |
+ <meta http-equiv="Pragma" content="no-cache"> |
+ <meta http-equiv="Expires" content="-1"> |
+ <script type="text/javascript"> |
+ function pageDidLoad() { |
+ appendStatus('Page loaded'); |
+ } |
+ |
+ function appendStatus(opt_message) { |
+ var statusField = document.getElementById('statusField'); |
+ if (statusField) { |
+ var newElt = document.createElement("opt_message"); |
+ newElt.innerHTML = "<br>" + opt_message; |
+ statusField.appendChild(newElt); |
+ } |
+ } |
+ |
+ function handleMessage(message_event) { |
+ appendStatus(message_event.data); |
+ } |
+ </script> |
+</head> |
+<body onload="pageDidLoad()"> |
+ <div id="listener"> |
+ <script type="text/javascript"> |
+ var listener = document.getElementById('listener'); |
+ listener.addEventListener('message', handleMessage, true); |
+ </script> |
+ <h2>NaCl Module</h2> |
+ <embed name="nacl_module" |
+ id="nacl_module" |
+ style="border-style: solid;" |
+ width=200 |
+ height=200 |
+ src="newlib/hello_nacl.nmf" |
+ type="application/x-nacl"/> |
+ </div> |
+ <div> |
+ <h2>Messages: <code id="statusField"></code></h2> |
+ </div> |
+</body> |
+</html> |