index.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3. <meta charset="utf-8">
  4. <title>功夫猫-微信HTML5在线朋友圈游戏-46465</title>
  5. <meta name="viewport" content="width=321, user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="full-screen" content="yes">
  8. <meta name="screen-orientation" content="portrait">
  9. <meta name="x5-fullscreen" content="true">
  10. <style>
  11. canvas {
  12. image-rendering: optimizeSpeed;
  13. image-rendering: -moz-crisp-edges;
  14. image-rendering: -webkit-optimize-contrast;
  15. image-rendering: -o-crisp-edges;
  16. image-rendering: optimize-contrast;
  17. -ms-interpolation-mode: nearest-neighbor;
  18. }
  19. </style>
  20. </head>
  21. <body style="padding: 0px; border: 0px; margin: 0px;">
  22. <img width="500" height="500" style="position:absolute;top:-10000px;" src="index_files/icon.png">
  23. <div style="position:absolute;left:0xp;top:0px;z-index:10000;">
  24. <a href="http://game.ikongzhong.cn"><img alt="MoreGame" src="moregame.png" /></a>
  25. </div>
  26. <div id="Cocos2dGameContainer" style="width: 330px; height: 500px; margin: 0px auto; position: relative; overflow: hidden;">
  27. <canvas id="gameCanvas" width="330" height="500" class="gameCanvas" tabindex="99" style="background-color: black; outline: none; width: 330px; height: 500px;">
  28. </canvas>
  29. </div>
  30. <script type="text/javascript" src="./index_files/WeixinApi.js"></script>
  31. <script>
  32. window.wxData = {
  33. "appId": "", // 服务号可以填写appId
  34. "imgUrl":'http://game.ikongzhong.cn/games/gongfumao/gfm.png',
  35. "link":'http://game.ikongzhong.cn/games/gongfumao/',
  36. "desc":"神经病院又逃出了一只猫...小伙伴们真要跟喵星人较劲么?",
  37. "title":"喵星人简直要占领朋友圈的节奏,刚捉回去一只,又逃出来一只,唉!"
  38. };
  39. window.wxFriend = {
  40. "appId": "", // 服务号可以填写appId
  41. "imgUrl":'http://game.ikongzhong.cn/games/gongfumao/gfm.png',
  42. "link":'http://game.ikongzhong.cn/games/gongfumao',
  43. "desc":'神经病院又逃出了一只猫...小伙伴们真要跟喵星人较劲么?',
  44. "title":"喵星人简直要占领朋友圈的节奏,刚捉回去一只,又逃出来一只,唉!"
  45. };
  46. WeixinApi.ready(function(Api) {
  47. var wxCallbacks = {
  48. ready : function() {
  49. },
  50. cancel : function(resp) {
  51. },
  52. fail : function(resp) {
  53. },
  54. confirm : function(resp) {
  55. },
  56. all : function(resp) {
  57. }
  58. };
  59. Api.shareToFriend(wxFriend, wxCallbacks);
  60. Api.shareToTimeline(wxData, wxCallbacks);
  61. Api.shareToWeibo(wxData, wxCallbacks);
  62. });
  63. </script>
  64. <script type="text/javascript" src="./index_files/cocos2d-html5.js"></script><div style="font-family: 黑体; position: absolute; left: -100px; top: -100px; line-height: normal; font-size: 20px;"></div>
  65. <script type="text/javascript" src="./index_files/catnorris.js"></script>
  66. <div style="display:none">
  67. <img src="http://img.tongji.linezing.com/3455448/tongji.gif">
  68. </div>
  69. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script></body></html>
  70. >