index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <HTML>
  4. <HEAD>
  5. <link rel="apple-touch-icon" href="icon.png" />
  6. <link rel="shortcut icon" href="icon.png" />
  7. <link rel="icon" href="icon.png" />
  8. <title>狂抽男朋友</title>
  9. <meta name="keywords" content="狂抽男朋友,万圣节狂抽男朋友html5游戏" />
  10. <meta name="description" content="万圣节狂抽男朋友html5游戏" />
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  12. <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1; user-scalable=0;"/>
  13. <meta name="x5-fullscreen" content="true"/>
  14. <meta name="apple-mobile-web-app-capable" content="yes"/>
  15. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
  16. <link rel="stylesheet" type="text/css" href="popup.css" />
  17. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  18. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  19. <style type="text/css">
  20. body{
  21. margin:0;
  22. padding:0;
  23. }
  24. #canvas{
  25. position: absolute;
  26. margin: 0 auto;
  27. overflow: hidden;
  28. }
  29. .MainPage{
  30. background-image:url(1.jpg);
  31. background-size:100% 100%;
  32. background-repeat:no-repeat;
  33. }
  34. .SpecPage{
  35. background-image:url(6.jpg);
  36. background-size:100% 100%;
  37. background-repeat:no-repeat;
  38. }
  39. .GamePage{
  40. background-image:url(bg.jpg);
  41. background-size:100% 100%;
  42. background-repeat:no-repeat;
  43. }
  44. </style>
  45. <script src="config.js"></script></head>
  46. <BODY>
  47. <link href="main.css" rel="stylesheet" type="text/css">
  48. <canvas id="canvas" width="320" height="480">
  49. unsupport canvas
  50. </canvas>
  51. <script type="text/javascript" src="common.js"></script>
  52. <script type="text/javascript" src="popup.js"></script>
  53. <script type="text/javascript" src="gamehub.js"></script>
  54. <script type="text/javascript" src="slap_min.js" charset="utf-8"></script>
  55. <script type="text/javascript">
  56. window.onload = function () {
  57. sid = "";
  58. Gamehub.Settings.gameName = 'slap';
  59. if (typeof StartGame == 'function') {
  60. StartGame();
  61. }
  62. canvas = document.getElementById('canvas');
  63. slap = new Slap(canvas);
  64. slap.run();
  65. };
  66. </script>
  67. <script language=javascript>
  68. var mebtnopenurl = "http://yx8.com/game/chou/";
  69. dataForWeixin = {
  70. "appId": "",
  71. "imgUrl": "http://yx8.com/game/chou/icon.jpg",
  72. "url": "http://yx8.com/game/chou/",
  73. "tTitle": "没有收到男朋友的糖糖,不开心,抽死他~",
  74. "tContent": "死鬼怎么还不送我糖糖,等的都不耐烦了~"
  75. };
  76. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  77. WeixinJSBridge.on('menu:share:appmessage', function (argv) {
  78. WeixinJSBridge.invoke('sendAppMessage', {
  79. "appid": dataForWeixin.appId,
  80. "img_url": dataForWeixin.imgUrl,
  81. "link": dataForWeixin.url,
  82. "desc": dataForWeixin.tContent,
  83. "title": dataForWeixin.tTitle
  84. });
  85. setTimeout(function () { document.getElementById("shareto").style.display = "none"; }, 1500);
  86. });
  87. WeixinJSBridge.on('menu:share:timeline', function (argv) {
  88. WeixinJSBridge.invoke('shareTimeline', {
  89. "appid": dataForWeixin.appId,
  90. "img_url": dataForWeixin.imgUrl,
  91. "img_width": "640",
  92. "img_height": "640",
  93. "link": dataForWeixin.url,
  94. "desc": dataForWeixin.tContent,
  95. "title": dataForWeixin.tTitle
  96. });
  97. setTimeout(function () { document.getElementById("shareto").style.display = "none"; }, 1500);
  98. });
  99. }, false);
  100. function dp_share(score, hitnum) {
  101. if(confirm("你抽了男朋友" + hitnum + "下,要告诉一下你的小伙伴吗?"))
  102. {
  103. }
  104. document.title = "我狂抽了男朋友" + hitnum + "下,再不给我糖糖,就捣乱";
  105. document.getElementById("shareto").style.display = "";
  106. dataForWeixin.tTitle = document.title;
  107. }
  108. </script>
  109. <div id="shareto" style="display: none">
  110. <img width="100%" src="./share.png" style="position: fixed; z-index: 9999; top: 0; left: 0;" ontouchstart="document.getElementById('shareto').style.display='none';">
  111. </div>
  112. <div style="display:none">
  113. </div>
  114. <script type="text/JavaScript">
  115. window.shareData={
  116. 'title':'狂抽男朋友',
  117. 'link':'http://game.ikongzhong.cn/games/chou/',
  118. 'imgurl':'http://game.ikongzhong.cn/games/chou/icon.png'
  119. }
  120. window.shareFriendData={
  121. 'title':'狂抽男朋友',
  122. 'content':'关注空中传媒网络,更多好玩的游戏等着你。',
  123. 'link':'http://game.ikongzhong.cn/games/chou/',
  124. 'imgurl':'http://game.ikongzhong.cn/games/chou/icon.png'
  125. }
  126. </script>
  127. <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
  128. </BODY>
  129. </HTML>