index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0" />
  6. <title>果冻任务</title>
  7. <meta name="apple-mobile-web-app-capable" content="yes" />
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <meta name="mobile-web-app-capable" content="yes" />
  10. <meta name="keywords" content="果冻任务,果冻任务html5游戏" />
  11. <meta name="description" content="果冻任务html5游戏,果冻任务手机在线游戏" />
  12. <link rel="apple-touch-icon" href="icon.png" />
  13. <link rel="shortcut icon" href="icon.png" />
  14. <link rel="icon" href="icon.png" />
  15. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  16. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  17. <script type="text/javascript" src="game.js"></script>
  18. <link href="css/gamestyles.css" rel="stylesheet" type="text/css" />
  19. <script src="js/game.min.js"></script>
  20. <script src="assets/config/config.js"></script>
  21. <script src="assets/config/levels.js"></script>
  22. <!--END-DEBUG-->
  23. <script>
  24. function init(apiInstance) {
  25. var canvas = document.getElementById("gameCanvas");
  26. var loader = document.getElementById("loader");
  27. // Retrieves the logo from Spil
  28. var logoData = apiInstance.Branding.getLogo();
  29. var logoSrc = logoData.image;
  30. var logoAction = logoData.action;
  31. var moreGamesButton = apiInstance.Branding.getLink('more_games');
  32. var moreGamesAction = moreGamesButton && moreGamesButton.action;
  33. var config = {
  34. // On iOS we cannot have music in main menu, before user interacts with the game.
  35. // If portal API already played sound in response to "Play" button, feel free to set it to true.
  36. soundUnMuted: false,
  37. // If portal does not want music in the game, set it to true. Music loading will be skipped.
  38. disableMusic: false,
  39. // Language code for the game UI
  40. language: 'en',
  41. portal: {
  42. logo: logoSrc,
  43. logoURL: logoAction,
  44. moreGamesURL: moreGamesAction
  45. },
  46. api: {
  47. gameLoadingComplete : function() {
  48. // Checks if splash screen is enabled and if it has an 'action' method
  49. apiInstance.Branding.displaySplashScreen( function() {
  50. });
  51. },
  52. gameStarted: function () {
  53. },
  54. gameLost: function (score, level) {
  55. },
  56. levelComplete: function (score, level) {
  57. },
  58. // Check orientation in the way most appropriate for your network, return true if you
  59. // want to block the game and display rotation sign.
  60. // If you keep viewporter library import, this function is called as part of viewportchange event,
  61. // if you like, feel free to check for window.orientation here.
  62. // Just return "false" if you don't want this functionality.
  63. orientationLock: function () {
  64. // Viewporter says it is desktop or older android device? Viewporter lib is removed alltogether?
  65. // Better not do rotation check in that case IMO.
  66. if (!viewporter || !viewporter.ACTIVE) {
  67. return false;
  68. }
  69. // Looks like landscape on narrow device? Ask user to rotate!
  70. var isLandscape = window.innerWidth > window.innerHeight && window.innerWidth <= 640;
  71. return isLandscape;
  72. }
  73. }
  74. };
  75. app.initialize(canvas, config);
  76. }
  77. </script>
  78. </head>
  79. <body>
  80. <div id="viewporter">
  81. <div id="canvasHolder" style="position: absolute; overflow: hidden"><canvas id="gameCanvas" style="position: absolute" width="640" height="960"></canvas></div>
  82. </div>
  83. <div id="spilgames-splash-screen" class="spilgames-splash-screen-gone"></div>
  84. <script type="text/javascript">
  85. var SpilData = {
  86. id: '576742227280292486' // You receive this value from Spil Games
  87. };
  88. GameAPI.loadAPI (function (apiInstance) {
  89. // The API is ready for use.
  90. if (window.console && window.console.log) {
  91. console.log('GameAPI version ' + apiInstance.version + ' loaded!');
  92. }
  93. init(apiInstance);
  94. }, SpilData);
  95. </script>
  96. <script type="text/JavaScript">
  97. window.shareData={
  98. 'title':'果冻任务',
  99. 'link':'http://game.ikongzhong.cn/games/guodongrenwu/',
  100. 'imgurl':'http://game.ikongzhong.cn/games/guodongrenwu/icon.png'
  101. }
  102. window.shareFriendData={
  103. 'title':'果冻任务',
  104. 'content':'关注空中传媒网络,更多好玩的游戏等着你。',
  105. 'link':'http://game.ikongzhong.cn/games/guodongrenwu/',
  106. 'imgurl':'http://game.ikongzhong.cn/games/guodongrenwu/icon.png'
  107. }
  108. </script>
  109. <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
  110. </body>
  111. </html>