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

Unified Diff: experimental/hex/index.html

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/hex/hex_maniac.cc ('k') | experimental/hex/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/hex/index.html
diff --git a/experimental/hex/index.html b/experimental/hex/index.html
deleted file mode 100644
index 93e843914c796cdcc653739ca98ebf778ea65fb1..0000000000000000000000000000000000000000
--- a/experimental/hex/index.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<meta charset="UTF-8" />
-<title>Hex!</title>
- <script type="text/javascript">
- naclModule = null; // Global application object.
- statusText = 'NO-STATUS';
-
- // Set the global |field| message. If the element with id |field|
- // exists, then set its HTML to the status message as well.
- // opt_message The message test. If this is null or undefined, then
- // attempt to set the element with id |field| to the value of
- // |statusText|.
- function updateHtmlField(field, opt_message) {
- if (opt_message)
- statusText = opt_message;
- var statusField = document.getElementById(field);
- if (statusField) {
- statusField.innerHTML = statusText;
- console.log('Updated field {' + field + '}');
- } else {
- // alert('Error getting field ' + field);
- console.log('Error getting field {' + field + '}');
- console.log('Message for field was ' + opt_message);
- }
- }
-
- function moduleDidLoad() {
- naclModule = document.getElementById('hex_app');
- console.log('MODULE DID LOAD CALLED')
- naclModule.addEventListener('message', handleMessage, false);
- updateHtmlField('status_field', 'SUCCESS');
- }
-
-
- // If the page loads before the Native Client module loads, then set the
- // status message indicating that the module is still loading. Otherwise,
- // do not change the status message.
- function pageDidLoad() {
- if (naclModule == null) {
- updateHtmlField('status_field', 'LOADING...');
- console.log('In pageDidLoad...LOADING');
- } else {
- // It's possible that the Native Client module onload event fired
- // before the page's onload event. In this case, the status message
- // will reflect 'SUCCESS', but won't be displayed. This call will
- // display the current message.
- updateHtmlField('status_field', 'LOADED');
- }
- }
-
- </script>
-</head>
-<body onload="pageDidLoad()">
-<div id="listener">
- <script type="text/javascript">
- document.getElementById('listener')
- .addEventListener('load', moduleDidLoad, true);
- console.log('Added event listener!');
- </script>
-
- <embed name="nacl_module"
- id="hex_app"
- width=0 height=0
- src="hex.nmf"
- type="application/x-nacl" />
-</div>
-
-<p>
- <p style="margin-bottom: 0px"><a href="http://en.wikipedia.org/wiki/Hex_(board_game)"
- target="about_hex_game">Hex Game</a></p>
- <p style="margin-bottom: 0px;"><a href="http://code.google.com/p/nativeclient-sdk/source/browse/trunk/src/experimental/hex/"
- target="about_hex_game">View the source</a></p>
- <p style="margin-bottom: 0px;"><a href="about.html"
- target="about_hex_game">Acknowledgments</a></p>
-
-<div>
- <canvas id="canvas"
- style="z-index:6;
- position:absolute;
- left:0px;
- top:120px;"
- width="1800" height="1500">
- This text is displayed if your browser does not support HTML5 Canvas.
- </canvas>
- <canvas id="canvas2"
- style="z-index:4;
- position:absolute;
- left:0px;
- top:120px;"
- width="1800" height="1500">
- This text is displayed if your browser does not support HTML5 Canvas.
- </canvas>
- <canvas id="canvasBk"
- style="z-index:2;
- position:absolute;
- left:0px;
- top:120px;"
- width="1800" height="1500">
- This text is displayed if your browser does not support HTML5 Canvas.
- </canvas>
-</div>
-
-<script type="text/javascript" src="hex.js"></script>
-
-</section>
-<h4>Status</h4>
-<div id="TurnNumber">NO-NUMBER</div>
-<div id="status_field">NO-STATUS</div>
-<div id="Turn">NO-TURN</div>
-</body>
-</html>
« no previous file with comments | « experimental/hex/hex_maniac.cc ('k') | experimental/hex/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698