index.html 2.0 KB

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