4 Copyright (c) 2013 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.
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>
16 For the SDK examples, we support several toolchains (e.g. PNaCl, newlib,
17 GLibC). In your own code, you'll likely just choose one toolchain (probably
18 PNaCl), and load that directly.
20 Rather than have each example repeat the same module loading code for each
21 toolchain it supports, we set custom data attributes on the body. Those
22 attributes are read by common.js to determine which toolchains are supported
27 <h2>Status:
<code id=
"statusField">NO-STATUS
</code></h2>
29 Just as in part1, the <embed> element will be wrapped inside the <div>
30 element with the id "listener". In part1, the embed was specified in HTML,
31 here the common.js module creates a new <embed> element and adds it to the
34 <div id=
"listener"></div>
37 This element will be populated with the messages that come from the NaCl
38 module. See example.js.