index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. 
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <meta http-equiv="Content-Script-Type" content="text/javascript">
  8. <meta http-equiv="Content-Style-Type" content="text/css">
  9. <meta charset="utf-8">
  10. <meta name="description" content="game for iPhone">
  11. <meta name="keywords"
  12. content="iPhone,Android,iPad,game,html5 game,puzzle game,puzzle,Puzzle,flick,card,postman,post,action,Flash,Flash for iPhone,html5,iPod touch,iPad">
  13. <!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
  14. <meta name="viewport"
  15. content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />
  16. <meta name="HandheldFriendly" content="true" />
  17. <meta name="apple-mobile-web-app-capable" content="yes">
  18. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  19. <meta http-equiv="Pragma" content="no-cache">
  20. <meta http-equiv="Cache-Control" content="no-cache">
  21. <meta equiv="Expires" content="0">
  22. <title>忍者切水果- 微信HTML5在线朋友圈游戏</title>
  23. <link type="text/css" href='assets/softgames.css' rel="stylesheet">
  24. <style type="text/css">
  25. <!--
  26. body {
  27. -webkit-user-select: none;
  28. margin: 0px;
  29. background: #000;
  30. }
  31. -->
  32. </style>
  33. </head>
  34. <body onLoad="startCutting();">
  35. <div id="fb-root"></div>
  36. <img id="rotation" src="images/rotate.png" />
  37. <div id="c2canvasdiv">
  38. <canvas style="background-image: none;" id="c2canvas" width="320"
  39. height="480"></canvas>
  40. </div>
  41. <script type="text/javascript">
  42. window.gameLangs = ['en', 'es'];
  43. window.gameJS = ['js/jquery-2.0.0.min.js'];
  44. </script>
  45. <script type="text/javascript" src='js/jquery-2.0.0.min.js'></script>
  46. <script type="text/javascript" src='assets/softgames-1.1.js'></script>
  47. <script type="text/javascript" src='assets/sg.hooks.js'></script>
  48. <script language=javascript>
  49. document.addEventListener("touchmove", function (e) {
  50. e.preventDefault();
  51. }, false);
  52. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  53. window.shareData = {
  54. "imgUrl": "http://game.ikongzhong.cn/games/qlgg/1.png",
  55. "timeLineLink": "http://game.ikongzhong.cn/games/qlgg",
  56. "tTitle": "切了个瓜-微创客游戏",
  57. "tContent": "是水果忍者的高手吗?水果忍者再出江湖,现在是时候向好友展示你的实力了!"
  58. };
  59. function submitScore(score){
  60. if(score>1000){
  61. alert("你好厉害!切西瓜切了"+score+"分");
  62. dp_share(score);
  63. }
  64. }
  65. function goHome(){
  66. window.location=mebtnopenurl;
  67. }
  68. function dp_submitScore(a,t){
  69. dp_share(t);
  70. }
  71. function dp_share(t){
  72. document.title = "最新记录!我连续切了" + t + "个水果!你能赢得了我吗?-多多智富";
  73. document.getElementById("share").style.display="";
  74. window.shareData.tTitle = document.title;
  75. }
  76. function dp_Ranking(){
  77. //alert("到更多");
  78. window.location=mebtnopenurl;
  79. }
  80. function showAd(){
  81. }
  82. function hideAd(){
  83. }
  84. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  85. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  86. WeixinJSBridge.invoke('sendAppMessage', {
  87. "img_url": window.shareData.imgUrl,
  88. "link": window.shareData.timeLineLink,
  89. "desc": window.shareData.tContent,
  90. "title": window.shareData.tTitle
  91. }, function(res) {
  92. document.location.href = mebtnopenurl;
  93. })
  94. });
  95. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  96. WeixinJSBridge.invoke('shareTimeline', {
  97. "img_url": window.shareData.imgUrl,
  98. "img_width": "640",
  99. "img_height": "640",
  100. "link": window.shareData.timeLineLink,
  101. "desc": window.shareData.tContent,
  102. "title": window.shareData.tTitle
  103. }, function(res) {
  104. document.location.href = mebtnopenurl;
  105. });
  106. });
  107. }, false); </script>
  108. <script type="text/javascript" src='js/game.js' async="async"></script>
  109. <div id=share style="display: none">
  110. <img width=100%
  111. src="images/2000.png"
  112. style="position: absolute; top: 0; left: 0; display: "
  113. ontouchstart="document.getElementById('share').style.display='none';">
  114. </div>
  115. <div style="display:none">
  116. <img src="http://img.tongji.linezing.com/3455448/tongji.gif">
  117. </div>
  118. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script></body>
  119. </html>