index.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>愚公移山</title>
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
  8. <meta name="apple-mobile-web-app-capable" content="yes"/>
  9. <meta name="HandheldFriendly" content="True">
  10. <meta name="apple-mobile-web-app-capable" content="yes"/>
  11. <meta name="apple-touch-fullscreen" content="yes" />
  12. <meta name="full-screen" content="true"/>
  13. <meta name="screen-orientation" content="portrait"/>
  14. <meta name="x5-fullscreen" content="true"/>
  15. <meta name="360-fullscreen" content="true"/>
  16. <base id="base" href=""/>
  17. <style>
  18. body {
  19. text-align: center;
  20. background: #000000;
  21. padding: 0;
  22. border: 0;
  23. margin: 0;
  24. height: 100%;
  25. }
  26. html {
  27. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <script>
  33. function gotoUrl(url){
  34. //window.location.href = url;
  35. window.open(url,"_blank");
  36. }
  37. window["gotoUrl"] = gotoUrl;
  38. window.addEventListener("dblclick", function (event) {
  39. console.log("sdfsfasdfsdf");
  40. event.stopPropagation();
  41. event.preventDefault();
  42. });
  43. </script>
  44. <!--<div id="loadingDiv"><img id="loadingImg" src="loading.jpg"></div>-->
  45. <div style="position:relative;" id="gameDiv"></div>
  46. <!--<script>-->
  47. <!--var ldimg=document.getElementById("loadingImg");-->
  48. <!--ldimg.addEventListener('load', function () {-->
  49. <!--var imgw= document.body.clientWidth;-->
  50. <!--var imgh= imgw / ldimg.width * ldimg.height ;-->
  51. <!--console.log("imgW" + imgw)-->
  52. <!--console.log("imgh" + imgh)-->
  53. <!--ldimg.width = imgw;-->
  54. <!--ldimg.height = imgh;-->
  55. <!--});-->
  56. <!--</script>-->
  57. <script>var document_class = "GameApp";</script><!--这部分内容在编译时会被替换,要修改文档类,请到工程目录下的egretProperties.json内编辑。-->
  58. <script src="egret_require.js"></script>
  59. <script>
  60. egret_h5.loadSingleScript("game_config.js?r=" + Math.random(),function (){
  61. var base = document.getElementById("base");
  62. window.game_base = game_version + "/";
  63. base.href = window.game_base;
  64. egret_h5.loadScript(game_preload_list, function (){
  65. egret_h5.startGame();
  66. });
  67. });
  68. window.addEventListener("dblclick", function (event) {
  69. console.log("sdfsfasdfsdf");
  70. event.stopPropagation();
  71. event.preventDefault();
  72. });
  73. </script>
  74. </body>
  75. </html>