效果图
各位嘉宾大家好
今天给大家带来的是《HTML5手机端开心消消乐源码》
可以没事的时候可以自己搭建玩,当一把游戏GM
代码过长需要文档版源码来我的前端群581549454,已上传到群文件
废话不多说上源码
SpilGamesBrand = function() {
var d = window.document;
documentElement = d.documentElement || {};
element = d.createElement_x("div");
container = d.getElementById("spilgames-root");
emptyFn = function() {};
globalSettings = {};
api = {};
updateBodyCheck = function(d) {
var a, b = d,
c = !1;
return function(d, f) {
b = d || b;
c = f || c;
clearTimeout(a);
c && (a = setTimeout(function() {
updateBodyCheck = function(a) {
b = a || b;
b()
};
b()
}, 100))
}
}(emptyFn);
updateSize = function() {
var h = d.body || d.getElementsByTagName_r("body")[0];
updateSize = function(a) {
a = h.getElementsByTagName_r("*");
for (var b = a.length, c = 0, k = element.style.zIndex, f = 0; f
< b; f++) c++, a[f] !== element && a[f].style.zIndex
> c && (c = a[f].style.zIndex), c > k && (k =
c, updateBodyCheck());
element.style.zIndex = k;
element.style.width = (windows.innerWidth ||
documentElement.clientWidth ||
d.getElementsByTagName_r("body")[0].clientWidth) + "px";
element.style.height = (windows.innerHeight ||
documentElement.clientHeight ||
d.getElementsByTagName_r("body")[0].clientHeight) + "px";
waitId = setTimeout(updateSize, updateSpeed)
};
updateSize()
};
und = function(d) {
return void 0 === d
};
fadeOut = function(d) {
var a = d.style,
b = function() {
_SPTimer.end("splashscreen");
clearTimeout(waitId);
globalSettings.container.removeChild(d)
};
return und(a.webkitTransition)