1<!DOCTYPE html>
2<html>
3  <!--
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.
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<!--
16For the SDK examples, we support several toolchains (e.g. PNaCl, newlib,
17GLibC). In your own code, you'll likely just choose one toolchain (probably
18PNaCl), and load that directly.
19
20Rather than have each example repeat the same module loading code for each
21toolchain it supports, we set custom data attributes on the body. Those
22attributes are read by common.js to determine which toolchains are supported
23for the example.
24-->
25<body {{attrs}}>
26  <h1>{{title}}</h1>
27  <h2>Status: <code id="statusField">NO-STATUS</code></h2>
28  <!--
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
32  <div> for us.
33  -->
34  <div id="listener"></div>
35
36  <!--
37  This element will be populated with the messages that come from the NaCl
38  module. See example.js.
39  -->
40  <div id="log"></div>
41</body>
42</html>
43