Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html

Issue 11150028: Add new VS AddIn examples (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
7 -->
8 <head>
9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1">
11 <script type="text/javascript">
12 function pageDidLoad() {
13 appendStatus('Page loaded');
14 }
15
16 function appendStatus(opt_message) {
17 var statusField = document.getElementById('statusField');
18 if (statusField) {
19 var newElt = document.createElement("opt_message");
20 newElt.innerHTML = "<br>" + opt_message;
21 statusField.appendChild(newElt);
22 }
23 }
24
25 function handleMessage(message_event) {
26 appendStatus(message_event.data);
27 }
28 </script>
29 </head>
30 <body onload="pageDidLoad()">
31 <div id="listener">
32 <script type="text/javascript">
33 var listener = document.getElementById('listener');
34 listener.addEventListener('message', handleMessage, true);
35 </script>
36 <h2>NaCl Module</h2>
37 <embed name="nacl_module"
38 id="nacl_module"
39 style="border-style: solid;"
40 width=200
41 height=200
42 src="newlib/hello_nacl.nmf"
43 type="application/x-nacl"/>
44 </div>
45 <div>
46 <h2>Messages: <code id="statusField"></code></h2>
47 </div>
48 </body>
49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698