Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <!--
- Copyright (c) 2011 The Native Client Authors. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
- -->
- <head>
- <title>AngryBots</title>
- <script type="text/javascript" src="unity_nacl_files/unity_nacl.js"></script>
- </head>
- <body style="background-color:black; text-align: center">
- <div id="listener">
- <script type="text/javascript">
- var listener = document.getElementById('listener');
- listener.addEventListener('progress', moduleLoadProgress, true);
- listener.addEventListener('error', moduleLoadError, true);
- listener.addEventListener('load', moduleDidLoad, true);
- listener.addEventListener('loadend', moduleDidEndLoad, true);
- listener.addEventListener('message', moduleMessage, true);
- switch (browserSupportStatus) {
- case browser_version.BrowserChecker.StatusValues.NACL_ENABLED:
- break;
- case browser_version.BrowserChecker.StatusValues.UNKNOWN_BROWSER:
- setError('Unknown Browser');
- break;
- case browser_version.BrowserChecker.StatusValues.CHROME_VERSION_TOO_OLD:
- setError('Chrome too old: You must use Chrome version 15 or later.');
- break;
- case browser_version.BrowserChecker.StatusValues.NACL_NOT_ENABLED:
- setError('NaCl disabled: Native Client is not enabled.<br>' +
- 'Please go to <b>chrome://plugins</b> and enable Native Client ' +
- 'plugin.');
- break;
- case browser_version.BrowserChecker.StatusValues.NOT_USING_SERVER:
- setError('file: URL detected, please use a web server to host Native ' +
- 'Client applications.');
- break;
- default:
- setError('Unknown error: Unable to detect browser and/or ' +
- 'Native Client support.');
- break;
- }
- </script>
- <img id="Logo" src="unity_nacl_files/unitylogo.png">
- <img id="Progress" src="unity_nacl_files/unityprogress.png">
- <img id="ProgressFrame" src="unity_nacl_files/unityprogressframe.png">
- <div id="Status"></div>
- <div id="Unity" style="width: 960px; height: 600px; padding: 0px; border: none; margin: 0px auto;">
- <embed name="nacl_module"
- id="UnityEmbed"
- width="960" height="600"
- src="unity_nacl_files/unity.nmf"
- type="application/x-nacl"
- onload="moduleDidLoad();"
- data="AngryBots.unity3d"/>
- </div>
- </div>
- <font face="arial" size=-2 style="color:#404040">
- Made with Unity, © 2011, Unity Technologies.
- <!--
- In the Native Client Player, we are currently using an LGPL-licensed build
- of mono. The message below must appear somewhere in your html or in the
- player itself. This does not need to be in this place, though. See
- http://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt, section 6.
- -->
- Scripting powered by the Mono Project, ©2011, Xamarin. The Mono
- runtime is licensed under the terms of the GNU Library General Public
- License, version 2.
- </font>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement