index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="apple-touch-icon" href="icon.png" />
  6. <link rel="shortcut icon" href="icon.png" />
  7. <link rel="icon" href="icon.png" />
  8. <title>密室逃生</title>
  9. <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
  10. <meta name="apple-mobile-web-app-capable" content="yes"/>
  11. <meta name="full-screen" content="true"/>
  12. <meta name="screen-orientation" content="portrait"/>
  13. <meta name="x5-fullscreen" content="true"/>
  14. <meta name="360-fullscreen" content="true"/>
  15. <base id="base" href=""/>
  16. <style>
  17. body {
  18. text-align: center;
  19. background: #000000;
  20. padding: 0;
  21. border: 0;
  22. margin: 0;
  23. height: 100%;
  24. }
  25. html {
  26. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  27. }
  28. </style>
  29. </head>
  30. <body >
  31. <div style="display:inline-block;width:100%; height:100%;margin: 0 auto; background: black; position:relative;" id="gameDiv">
  32. </div>
  33. <script>var document_class = "GameApp";</script>
  34. <script src="egret_require.js"></script>
  35. <script>
  36. egret_h5.loadSingleScript("game_config.js?r=" + Math.random(),function (){
  37. var base = document.getElementById("base");
  38. base.href = game_version + "/";
  39. egret_h5.loadScript(game_preload_list, function (){
  40. egret_h5.startGame();
  41. });
  42. });
  43. </script>
  44. </body>
  45. </html>