特效描述:html5 逗你玩 手机游戏源码。html5逗你玩小游戏,手机逗你玩游戏源代码。游戏介绍:老婆起床、买早餐、挤公交、下班、逛商场、喜当爹总共6个场景通关模式。逗你玩。
代码结构
1. 引入JS
2. HTML代码
逗你玩-蚂蚁社区_一个能够下载源码的神奇网站body, canvas, div {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
var pathname = window.location.pathname.split("/");
var pathString = "";
for (var i = 1; i < pathname.length - 1; i++) {
if (i == 1) {
pathString = pathname[i];
} else {
pathString = pathString + "/" + pathname[i];
}
}
var iconUrl = window.location.protocol + "//" + window.location.host + "/" + pathString + "/res/icon.png";
// 微信分享的数据
h5WxData = {
imgUrl: iconUrl,
link: window.location.href,
desc: "就爱逗你玩,心理承受力不强的同学慎点喔!",
title: "逗你玩",
score: 0,
increase: false //得分越高越厉害则为true,否则为false
};