• H5游戏分享-全民找房祖名qmxzfzm


    H5游戏分享-全民找房祖名qmxzfzm

    一开始就比较简单

    后面就会越来越难,而且也有时间限制

    游戏的源码

    1. html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui">
    6. <meta http-equiv="pragma" content="no-cache">
    7. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    8. <meta http-equiv="expires" content="-1">
    9. <title>微资源游戏title>
    10. <link rel="stylesheet" type="text/css" href="css/m.min.css">
    11. head>
    12. <body>
    13. <div id="container">
    14. div>
    15. <script type="text/javascript">
    16. var mebtnopenurl = 'http://game2.id87.com';
    17. window.shareData = {
    18. "imgUrl": "../../icon/qmxzfzm.png",
    19. "timeLineLink": "index.html",
    20. "tTitle": "全民寻找房祖名-微资源游戏",
    21. "tContent": "全民寻找房祖名!虽然柯少向龙叔保证不会带坏房祖名,但龙叔强烈要求你找回祖名。-微资源游戏"
    22. };
    23. function goHome() {
    24. window.location = mebtnopenurl;
    25. }
    26. function clickMore() {
    27. if ((window.location + "").indexOf("zf", 1) > 0) {
    28. history.go(-1);
    29. }
    30. else {
    31. goHome();
    32. }
    33. }
    34. function dp_share() {
    35. document.title = "我在1分钟内" + (myData.score) + "次从柯少身边找到房祖名!你也来试试!";
    36. document.getElementById("share").style.display = "";
    37. window.shareData.tTitle = document.title;
    38. }
    39. function dp_Ranking() {
    40. window.location = mebtnopenurl;
    41. }
    42. function showAd() {
    43. }
    44. function hideAd() {
    45. }
    46. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
    47. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
    48. WeixinJSBridge.invoke('sendAppMessage', {
    49. "img_url": window.shareData.imgUrl,
    50. "link": window.shareData.timeLineLink,
    51. "desc": window.shareData.tContent,
    52. "title": window.shareData.tTitle
    53. }, onShareComplete);
    54. });
    55. WeixinJSBridge.on('menu:share:timeline', function(argv) {
    56. WeixinJSBridge.invoke('shareTimeline', {
    57. "img_url": window.shareData.imgUrl,
    58. "img_width": "640",
    59. "img_height": "640",
    60. "link": window.shareData.timeLineLink,
    61. "desc": window.shareData.tContent,
    62. "title": window.shareData.tTitle
    63. }, onShareComplete);
    64. });
    65. }, false);
    66. var myData = {gameid: "qmxzfzm"};
    67. window.shareData.timeLineLink = "http://game2.id87.com/";
    68. function dp_submitScore(score) {
    69. myData.score = parseInt(score);
    70. myData.scoreName = "成功寻找" + score + "次房祖名";
    71. if (score > 1) {
    72. if (confirm("你一共" + score + "次从柯少身边找到房祖名,你的24k氪金眼还没瞎吗?快让你的朋友也来试试吧")) {
    73. dp_share();
    74. }
    75. }
    76. }
    77. function onShareComplete(res) {
    78. if (localStorage.myuid && myData.score != undefined) {
    79. setTimeout(function() {
    80. if (confirm("要将成绩提交到微资源游戏排行榜吗?")) {
    81. window.location = "http://games.vdcomm.cn";
    82. }
    83. else {
    84. document.location.href = mebtnopenurl;
    85. }
    86. }, 500);
    87. }
    88. else {
    89. document.location.href = mebtnopenurl;
    90. }
    91. }
    92. script>
    93. body>
    94. html>
    95. <script id="tpl" type="text/html">
    96. <div class="grid">
    97. <div class="page hide" id="loading">
    98. <div class="loading-txt"><%=loading%>div>
    99. div>
    100. <div class="page hide" id="index">
    101. <h1><%=title%>h1>
    102. <div id="help"><%=help_txt%>div>
    103. <div class="btns">
    104. <button data-type="color" class="btn play-btn">
    105. <%=btn_start%>
    106. button>
    107. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
    108. <%=btn_more_game%>
    109. a>
    110. div>
    111. div>
    112. <div class="page hide" id="room">
    113. <header>
    114. <span class="lv">
    115. <%=score%>
    116. <em>
    117. 1
    118. em>
    119. span>
    120. <span class="time">
    121. span>
    122. header>
    123. <div id="box" class="lv1">
    124. div>
    125. div>
    126. <div class="page hide" id="dialog">
    127. <div class="inner">
    128. <div class="content gameover">
    129. <div class="inner-content">
    130. <h3>h3>
    131. <div class="btn-wrap">
    132. <button class="btn btn-restart">
    133. <%=btn_reTry%>
    134. button>
    135. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
    136. <%=btn_more_game%>
    137. a>
    138. div>
    139. div>
    140. div>
    141. <div class="content pause">
    142. <div class="inner-content">
    143. <h3>
    144. <%=game_pause%>
    145. h3>
    146. <div class="btn-wrap">
    147. <button class="btn btn-resume">
    148. <%=btn_resume%>
    149. button>
    150. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
    151. <%=btn_more_game%>
    152. a>
    153. div>
    154. div>
    155. div>
    156. div>
    157. ins>
    158. div>
    159. div>
    160. <div id=share style="display: none">
    161. <img width=100% src="share.png"
    162. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
    163. ontouchstart="document.getElementById('share').style.display='none';" />
    164. div>
    165. script>
    166. <script src="js/libs.min.js">script>
    167. <script src="js/main.min3.js">script>

    还带有分享功能

    完整项目地址:https://download.csdn.net/download/Highning0007/88481162

  • 相关阅读:
    彻底搞懂WeakMap和Map
    echarts:饼图标签formatter的使用/实现彩色标签饼图
    nodejs(三)
    “现在的自动驾驶太保守!”看看轻舟智航联合创始人大方这篇论文怎么说
    【CMU15-445数据库】bustub Project #1:Buffer Pool
    MySQL 1055报错 -this is incompatible with sql_mode=only_full_group_by
    安装docker ,更换docker版本
    赶紧进来看看---C语言实现学生信息管理系统(3.0文件存储版)
    Vue热更新出现内存溢出
    Maven中央仓库地址大全
  • 原文地址:https://blog.csdn.net/Highning0007/article/details/134096530