Advertisement
Guest User

Untitled

a guest
Mar 7th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <!--
  4.     Copyright (c) 2011 The Native Client 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.     <title>AngryBots</title>
  10.     <script type="text/javascript" src="unity_nacl_files/unity_nacl.js"></script>
  11. </head>
  12. <body style="background-color:black; text-align: center">
  13.  
  14. <div id="listener">
  15.     <script type="text/javascript">
  16.         var listener = document.getElementById('listener');
  17.         listener.addEventListener('progress', moduleLoadProgress, true);
  18.         listener.addEventListener('error', moduleLoadError, true);
  19.         listener.addEventListener('load', moduleDidLoad, true);
  20.         listener.addEventListener('loadend', moduleDidEndLoad, true);
  21.         listener.addEventListener('message', moduleMessage, true);
  22.        
  23.         switch (browserSupportStatus) {
  24.             case browser_version.BrowserChecker.StatusValues.NACL_ENABLED:
  25.                 break;
  26.             case browser_version.BrowserChecker.StatusValues.UNKNOWN_BROWSER:
  27.                 setError('Unknown Browser');
  28.                 break;
  29.             case browser_version.BrowserChecker.StatusValues.CHROME_VERSION_TOO_OLD:
  30.                 setError('Chrome too old: You must use Chrome version 15 or later.');
  31.                 break;
  32.             case browser_version.BrowserChecker.StatusValues.NACL_NOT_ENABLED:
  33.                 setError('NaCl disabled: Native Client is not enabled.<br>' +
  34.                     'Please go to <b>chrome://plugins</b> and enable Native Client ' +
  35.                     'plugin.');
  36.                 break;
  37.             case browser_version.BrowserChecker.StatusValues.NOT_USING_SERVER:
  38.                 setError('file: URL detected, please use a web server to host Native ' +
  39.                     'Client applications.');
  40.                 break;
  41.             default:
  42.                 setError('Unknown error: Unable to detect browser and/or ' +
  43.                     'Native Client support.');
  44.                 break;
  45.         }
  46.     </script>
  47.  
  48.     <img id="Logo" src="unity_nacl_files/unitylogo.png">
  49.     <img id="Progress" src="unity_nacl_files/unityprogress.png">
  50.     <img id="ProgressFrame" src="unity_nacl_files/unityprogressframe.png">
  51.     <div id="Status"></div>
  52.     <div id="Unity" style="width: 960px; height: 600px; padding: 0px; border: none; margin: 0px auto;">
  53.     <embed name="nacl_module"
  54.     id="UnityEmbed"
  55.     width="960" height="600"
  56.     src="unity_nacl_files/unity.nmf"
  57.     type="application/x-nacl"
  58.     onload="moduleDidLoad();"
  59.     data="AngryBots.unity3d"/>
  60.     </div>
  61. </div>
  62.     <font face="arial" size=-2 style="color:#404040">
  63.     Made with Unity, &copy; 2011, Unity Technologies.
  64.     <!--
  65.     In the Native Client Player, we are currently using an LGPL-licensed build
  66.     of mono. The message below must appear somewhere in your html or in the
  67.     player itself. This does not need to be in this place, though. See
  68.     http://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt, section 6.
  69.     -->
  70.     Scripting powered by the Mono Project, &copy;2011, Xamarin. The Mono
  71.     runtime is licensed under the terms of the GNU Library General Public
  72.     License, version 2.
  73.     </font>
  74. </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement