<!DOCTYPE html>
<html>
<!--
Copyright 2012 The Chromium Authors
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">
<title>{{title}}</title>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="example.js"></script>
</head>
<body {{attrs}}>
<h1>{{title}}</h1>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
<p>
The Native Client module executed in this page creates a thread that
estimates pi (π) using the Monte Carlo method. The thread randomly puts
1,000,000,000 points inside a square that shares two sides with a quarter
circle (a quadrant). Because the area of the quadrant is r²π/4 and
the area of the square is r², dividing the number of points inside the
quadrant by the number of points inside the square gives us an estimate of
π/4. The textbox under the square shows the current estimate of π.
</p>
<!-- The NaCl plugin will be embedded inside the element with id "listener".
See common.js.-->
<div id="listener"></div>
<input type="text" size="15" id="pi">
</body>
</html>