index.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html lang="en" style="min-height: 568px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3. <meta charset="utf-8">
  4. <title>高尔夫花园 - Play68.com 小游戏</title>
  5. <meta name="apple-mobile-web-app-capable" content="yes">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0">
  7. <style>
  8. body {
  9. margin: 0px;
  10. padding: 0px;
  11. width: 100%;
  12. background-color:black;
  13. }
  14. canvas {
  15. image-rendering: -o-crisp-edges;
  16. image-rendering: optimize-contrast;
  17. -ms-interpolation-mode: nearest-neighbor;
  18. -webkit-tap-highlight-color: rgba(0,0,0,0);
  19. -moz-tap-highlight-color: rgba(0,0,0,0);
  20. tap-highlight-color: rgba(0,0,0,0);
  21. user-select: none;
  22. -webkit-touch-callout: none;
  23. -webkit-user-select: none;
  24. -moz-user-select: none;
  25. -ms-user-select: none;
  26. }
  27. </style>
  28. <script src="./src/viewporter.js"></script>
  29. <script type="text/javascript">navigator.__defineGetter__('userAgent',
  30. function () {
  31. return 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_4 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) CriOS/27.0.1453.10 Mobile/10B350 Safari/8536.25 MicroMessenger/5.0.1';
  32. });
  33. </script>
  34. <link type="text/css" href="./src/common.css" rel="stylesheet">
  35. <script type="text/javascript" src="./src/zepto.min.js"></script>
  36. <script src="./src/common.js"></script>
  37. <script>
  38. if (typeof window !== "undefined" && !window.kaisergames){
  39. window.kaisergames = new function(){
  40. return {
  41. gameOver: function(level, score) {
  42. console.log("asdfdf0");
  43. if (!level) level = "-";
  44. console.debug("Sending level " + level + " with score " + score
  45. + " to KaiserGames (preview mode)");
  46. },
  47. levelUp: function(level, score) {
  48. console.log("asdfdf1");
  49. if (!level) level = "-";
  50. console.debug("Sending level " + level + " with score "
  51. + score + " to KaiserGames (preview mode)");
  52. // updateShare(level,score);
  53. },
  54. submitHighscore: function(level, score) {
  55. /* if (!level) level = "-";
  56. console.debug("Sending level " + level + " with score " + score + " to KaiserGames (preview mode)");
  57. */
  58. }
  59. }
  60. }
  61. }
  62. </script></head>
  63. <body>
  64. <div id="viewporter" style="margin-top: 0px; margin-left: 185.625px; position: relative; height: 568px;">
  65. <canvas id="canvas" moz-opaque="" width="600" height="800" style="width: 639.75px; height: 853px;"></canvas>
  66. </div>
  67. <input id="bt-game-id" type="hidden" value="miniputtgarden">
  68. <script src="./src/TweenMax.min.js"></script>
  69. <script src="./src/howler.js"></script>
  70. <script src="./src/app.js"></script>
  71. <script type="text/javascript">
  72. btGame.onlyVScreen();
  73. btGame.playLogoAdv();
  74. </script>
  75. <script>
  76. function setShare(level,shareScore){
  77. // play68_submitScore(level,shareScore);
  78. }
  79. </script>
  80. </div>
  81. </body>
  82. </html>