Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / native_client_sdk / src / examples / tutorial / using_ppapi_simple / index.html
blobfabbf9a99c2dff2ed7a9dd5de2dbbb5f5cb939b1
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 <title>{{title}}</title>
12 <script type="text/javascript" src="common.js"></script>
13 <script type="text/javascript" src="example.js"></script>
14 </head>
15 <body {{attrs}} data-attrs="PS_STDOUT=dev/tty PS_TTY_PREFIX=tty: PS_EXIT_MESSAGE=exit">
16 <h1>{{title}}</h1>
17 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
18 <p>The Hello World Stdio example is the simplest one in the SDK. It uses the
19 ppapi_main library which creates a Module and an Instance, using default
20 values to simplify setup and communication with the PPAPI system. In
21 addition, it uses the nacl_io library to remap IO to the Pepper API. This
22 simplifies IO by providing a standard blocking API and allowing STDERR to
23 go to the JavaScript console by default.</p>
24 <p>In main, we write to both STDOUT and STDERR, printing a hello world
25 message.</p>
27 <!-- The NaCl plugin will be embedded inside the element with id "listener".
28 See common.js.-->
29 <h2>Output:</h2>
30 <pre id="log" style="font-weight:bold"></pre>
31 <div id="listener"></div>
32 </body>
33 </html>