index.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <div id='wx_pic' style='margin:0 auto;display:none;'>
  6. <img src='photo.jpg' />
  7. </div>
  8. <title>come on!感恩节到了,一起逮火鸡!</title>
  9. <!--<meta name="viewport" content="width=321, user-scalable=no">-->
  10. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>
  11. <meta name="apple-mobile-web-app-capable" content="yes">
  12. <meta name="full-screen" content="yes">
  13. <meta name="screen-orientation" content="portrait">
  14. <meta name="x5-fullscreen" content="true">
  15. <meta name="360-fullscreen" content="true">
  16. <style>
  17. body, canvas, div {
  18. -moz-user-select: none;
  19. -webkit-user-select: none;
  20. -ms-user-select: none;
  21. -khtml-user-select: none;
  22. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  23. }
  24. </style>
  25. <link rel="stylesheet" type="text/css" href="css/game9g.css">
  26. <script src="js/game9g.js"></script>
  27. </head>
  28. <body style="padding:0; margin: 0; background: #000;">
  29. <canvas id="gameCanvas" width="800" height="450"></canvas>
  30. <script src="cocos2d-js-v3.0.js"></script>
  31. <!-- <script src="CCLoaderScene.js"></script> -->
  32. <script src="main.js"></script>
  33. <script language=javascript>
  34. var game9g = new Game9G("dtsl");
  35. game9g.shareData.title = "come on!感恩节到了,一起逮火鸡!";
  36. game9g.shareData.content = "come on!感恩节到了,一起逮火鸡!";
  37. function goHome(){
  38. window.location=game9g.gzurl;
  39. }
  40. function clickMore(){
  41. if((window.location+"").indexOf("f=zf",1)>0){
  42. window.location = game9g.gzurl;
  43. }
  44. else{
  45. goHome();
  46. }
  47. }
  48. function dp_share(){
  49. game9g.share();
  50. }
  51. function dp_Ranking(){
  52. window.location=game9g.homeurl;
  53. }
  54. function showAd(){
  55. }
  56. function hideAd(){
  57. }
  58. function dp_submitScore(score){
  59. if(score>0){
  60. game9g.score =parseInt(score);
  61. game9g.scoreName = "闯了"+score+"关";
  62. game9g.shareData.title ="谁能超越我?我在动态视力中玩过"+score+"关";
  63. }
  64. }
  65. </script>
  66. <div style="display: none;">
  67. </div>
  68. </body>
  69. </html>