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

news/2024/7/24 7:48:18 标签: 游戏

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

一开始就比较简单

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

游戏的源码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui">
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
        <meta http-equiv="expires" content="-1">
        <title>微资源游戏</title>
        <link rel="stylesheet" type="text/css" href="css/m.min.css">
    </head>
    <body>
        <div id="container">

        </div>
        <script type="text/javascript">
            var mebtnopenurl = 'http://game2.id87.com';
            window.shareData = {
                "imgUrl": "../../icon/qmxzfzm.png",
                "timeLineLink": "index.html",
                "tTitle": "全民寻找房祖名-微资源游戏",
                "tContent": "全民寻找房祖名!虽然柯少向龙叔保证不会带坏房祖名,但龙叔强烈要求你找回祖名。-微资源游戏"
            };

            function goHome() {
                window.location = mebtnopenurl;
            }
            function clickMore() {
                if ((window.location + "").indexOf("zf", 1) > 0) {
                    history.go(-1);
                }
                else {
                    goHome();
                }
            }
            function dp_share() {
                document.title = "我在1分钟内" + (myData.score) + "次从柯少身边找到房祖名!你也来试试!";
                document.getElementById("share").style.display = "";
                window.shareData.tTitle = document.title;
            }
            function dp_Ranking() {
                window.location = mebtnopenurl;
            }

            function showAd() {
            }
            function hideAd() {
            }
            document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {

                WeixinJSBridge.on('menu:share:appmessage', function(argv) {
                    WeixinJSBridge.invoke('sendAppMessage', {
                        "img_url": window.shareData.imgUrl,
                        "link": window.shareData.timeLineLink,
                        "desc": window.shareData.tContent,
                        "title": window.shareData.tTitle
                    }, onShareComplete);
                });

                WeixinJSBridge.on('menu:share:timeline', function(argv) {
                    WeixinJSBridge.invoke('shareTimeline', {
                        "img_url": window.shareData.imgUrl,
                        "img_width": "640",
                        "img_height": "640",
                        "link": window.shareData.timeLineLink,
                        "desc": window.shareData.tContent,
                        "title": window.shareData.tTitle
                    }, onShareComplete);
                });
            }, false);
            var myData = {gameid: "qmxzfzm"};
            window.shareData.timeLineLink = "http://game2.id87.com/";
            function dp_submitScore(score) {
                myData.score = parseInt(score);
                myData.scoreName = "成功寻找" + score + "次房祖名";
                if (score > 1) {
                    if (confirm("你一共" + score + "次从柯少身边找到房祖名,你的24k氪金眼还没瞎吗?快让你的朋友也来试试吧")) {
                        dp_share();
                    }
                }
            }
            function onShareComplete(res) {
                if (localStorage.myuid && myData.score != undefined) {
                    setTimeout(function() {
                        if (confirm("要将成绩提交到微资源游戏排行榜吗?")) {
                            window.location = "http://games.vdcomm.cn";
                        }
                        else {
                            document.location.href = mebtnopenurl;
                        }
                    }, 500);
                }
                else {
                    document.location.href = mebtnopenurl;
                }
            }
        </script>
    </body>
</html>
<script id="tpl" type="text/html">
    <div class="grid">
        <div class="page hide" id="loading">
            <div class="loading-txt"><%=loading%></div>
        </div>
        <div class="page hide" id="index">
            <h1><%=title%></h1>

            <div id="help"><%=help_txt%></div>
            <div class="btns">
                <button data-type="color" class="btn play-btn">
                    <%=btn_start%>
                </button>
                <a href="javascript:void(0);"  onclick="clickMore();" class="btn btn-boyaa">
                    <%=btn_more_game%>
                </a>
            </div>
        </div>
        <div class="page hide" id="room">
            <header>
                <span class="lv">
                    <%=score%>
                    <em>
                        1
                    </em>
                </span>
                <span class="time">
                </span>
                <!-- <span class="btn btn-pause">
                     <%=btn_pause%>
                 </span>
                -->
            </header>
            <div id="box" class="lv1">
            </div>
        </div>
        <div class="page hide" id="dialog">
            <div class="inner">
                <div class="content gameover">
                    <div class="inner-content">

                        <h3></h3>
                        <div class="btn-wrap">
                            <button class="btn btn-restart">
                                <%=btn_reTry%>
                            </button>
                            <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
                                <%=btn_more_game%>
                            </a>
                        </div>


                    </div>
                </div>
                <div class="content pause">
                    <div class="inner-content">

                        <h3>
                            <%=game_pause%>
                        </h3>
                        <div class="btn-wrap">
                            <button class="btn btn-resume">
                                <%=btn_resume%>
                            </button>
                            <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
                                <%=btn_more_game%>
                            </a>
                        </div>

                    </div>
                </div>
            </div>
            </ins>
        </div>
    </div>
    <div id=share style="display: none">
        <img width=100% src="share.png"
             style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
             ontouchstart="document.getElementById('share').style.display='none';" />
    </div>
</script>
<script src="js/libs.min.js"></script>
<script src="js/main.min3.js"></script>

还带有分享功能。

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


http://www.niftyadmin.cn/n/5131445.html

相关文章

wiresharak捕获DNS

DNS解析&#xff1a; 过滤项输入dns&#xff1a; dns查询报文 应答报文&#xff1a; 事务id相同&#xff0c;flag里 QR字段1&#xff0c;表示响应&#xff0c;answers rrs变成了2. 并且响应报文多了Answers 再具体一点&#xff0c;得到解析出的ip地址&#xff08;最底下的add…

logback-classic包中ThrowableProxy递归缺陷StackOverflowError解析

logback-classic&#xff08;<1.2.12版本&#xff09;ThrowableProxy类中存在递归缺陷&#xff0c;会导致java.lang.StackOverflowError。改缺陷在1.2.12以上版本(包含该版本)中已修复。 如何复现&#xff1a; 两个异常彼此设置casue&#xff1a; 运行后报以下错误 以上写…

二、BurpSuite Decoder解码器

一、编码解码 解释&#xff1a;BurpSuite 可以用这个模块来轻松进行编码解码&#xff0c;下面是支持的类型 URL HTML Base64 ASCIIhex Hex Octal Binary Gzip 注意&#xff1a;特别注意的是URL编码&#xff0c;一般的在线网站都无法对比如‘abc’的文本编码&#xff0c;burps…

详解 DES加密技术 | 凯撒密码 | 栅栏密码

目录 密码学 恺撒密码 栅栏密码 消息和加密 密码的三个特性 算法和密钥 对称算法 公开密钥算法 DES对称加密技术 DES算法的安全性 DES算法的原理 DES算法的实现步骤 IP置换表和IP-1逆置换表 函数f 子密钥ki S盒的工作原理 DES算法的应用误区 密码学 密码学是一门…

io测试【FPGA】

按钮&#xff1a; 按钮是区分输入输出的&#xff0c; LED配置成输入&#xff0c;是不会亮的。 //timescale 1s/1ns // 【】是预编译&#xff0c;类似C语言的#include // 这是FPGA原语 //晶振时钟 1ns//类型声明 module LED //跟PLC的FB功能块一样&#xff0c;使用前需要实…

【python练习】在棋盘上收集奖品,跟着书本理思路

在棋盘上收集奖品 Description在棋盘上收集奖品。假设有一个m x n的棋盘&#xff0c;每个格子里有一个奖品&#xff08;每个奖品的价值在10到1000之间&#xff09;&#xff0c;现在要求从左上角开始到右下角结束&#xff0c;每次只能往右或往下走一个格子&#xff0c;所经过的格…

【华为OD:C++机试】Day-1

目录 &#x1f337;1. 统计监控、需要打开多少监控器&#xff1a; &#x1f337;2. 阿里巴巴找黄金宝箱&#xff1a; &#x1f337;3. 事件推送&#xff1a; &#x1f337;4. 分苹果&#xff1a; &#x1f337;5. 乱序整数序列两数之和绝对值最小&#xff1a; &#x1f337;6.卡…

【java爬虫】爬虫获取某交易所公司半年报全量数据

上一篇文章介绍了使用selenium获取某交易所公司半年报的方法&#xff0c;页面中公开展示的数据一共有2222条&#xff0c;本文就将所有数据分享出来。 这是上一篇文章 【java爬虫】使用selenium获取某交易所公司半年报数据-CSDN博客 首先是建表sql语句 use finance_db;/* 半…