最强大脑

欢迎来到程序小院

最强大脑

玩法:1分钟内判断字体眼色和字是否相同,完成最强大脑测试,快去答题吧^^。

开始游戏icon-default.png?t=N7T8https://www.ormcc.com/play/gameStart/274

html

<canvas id="gameCanvas" width="420" height="600"></canvas>

css

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);
}

js

document.addEventListener("touchmove", function (e) {
    e.preventDefault();
  }, false);
var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==
&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
window.shareData = {
      "imgUrl": "http://game.ikongzhong.cn/games/qlgg/1.png",
      "timeLineLink": "http://game.ikongzhong.cn/games/qlgg",
      "tTitle": "切了个瓜-微创客游戏",
      "tContent": "是水果忍者的高手吗?水果忍者再出江湖,现在是时候向好友展示你的实力了!"
};

function submitScore(score){
if(score>1000){
  alert("你好厉害!切西瓜切了"+score+"分");
  dp_share(score);
}
}

function goHome(){
window.location=mebtnopenurl;
}
function dp_submitScore(a,t){
dp_share(t);
}



function dp_share(t){
document.title = "最新记录!我连续切了" + t + "个水果!你能赢得了我吗?-多多智富";
document.getElementById("share").style.display="";
window.shareData.tTitle = document.title;
}
function dp_Ranking(){
//alert("到更多");
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
      }, function(res) {
        document.location.href = mebtnopenurl;
      })
  });

  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
      }, function(res) {
        document.location.href = mebtnopenurl;
      });
  });
}, false);
function d(b) {
 throw b;
}
var k = void 0,
n = !0,
p = null,
q = !1;
function aa() {
 return function(b) {
  return b
 }
}
function t() {
 return function() {}
}
function v(b) {
 return function(c) {
  this[b] = c
 }
}
function x(b) {
 return function() {
  return this[b]
 }
}
function A(b) {
 return function() {
  return b
 }
}
var C = C || {};
C.F = C.F || {};
C.e = {};
D = window;
D = Object.prototype;
delete window._p;
C.Uc = function(b) {
 return document.createElement(b)
};
C.mb = function(b, c, e, f) {
 b.addEventListener(c, e, f)
};
C.HN = "undefined" !== typeof require && require("fs");
C.SP = function(b, c) {
 if (b) if (b instanceof Array) for (var e = 0,
 f = b.length; e < f && c.call(k, b[e], e) !== q; e++);
 else for (e in b) if (c.call(k, b[e], e) === q) break
};
C.nI = function(b) {
 if (!b) return C.log("invalid URL"),
 q;
 var c = b.indexOf("://");
 if ( - 1 == c) return q;
 c = b.indexOf("/", c + 3);
 return ( - 1 == c ? b: b.substring(0, c)) != location.origin
};
C.async = {
 pM: function(b) {
  var c = this.JP;
  if (!c.IH) {
   var e = c.length,
   f = c.IR,
   g = c.jR,
   h = g.Se,
   m = g.FP,
   r = g.BJ,
   g = g.Doa;
   if (b) {
    if (c.IH = b, h) return h.call(m, b)
   } else {
    var s = Array.apply(p, arguments).slice(1),
    u = s.length;
    0 == u ? s = p: 1 == u && (s = s[0]);
    f[this.index] = s;
    c.count--;
    r && r.call(g, s, e - c.count, e);
    0 == c.count && h && h.apply(m, [p, f])
   }
  }
 },
 $M: t(),
 Nka: function(b, c, e) {
  var f = C.async;
  e !== k ? ("function" == typeof c && (c = {
   BJ: c
  }), c.Se = e || c.Se) : c !== k ? "function" == typeof c && (c = {
   Se: c
  }) : b !== k ? c = {}: d("arguments error!");
  var g = (e = b instanceof Array) ? b.length: Object.keys(b).length;
  if (0 == g) c.Se && c.Se.call(c.FP, p);
  else {
   var h = {
    length: g,
    count: g,
    jR: c,
    IR: e ? [] : {}
   };
   C.SP(b,
   function(b, e) {
    if (h.IH) return q;
    var g = !c.Se && !c.BJ ? f.$M: f.pM.bind({
     JP: h,
     index: e
    });
    b(g, e)
   })
  }
 },
 map: function(b, c, e) {
  var f = this,
  g = arguments.length;
  "function" == typeof c && (c = {
   sI: c
  });
  3 === g ? c.Se = e || c.Se: 2 > g && d("arguments error!");
  "function" == typeof c && (c = {
   sI: c
  });
  e !== k ? c.Se = e || c.Se: b === k && d("arguments error!");
  var h = (g = b instanceof Array) ? b.length: Object.keys(b).length;
  if (0 === h) c.Se && c.Se.call(c.FP, p);
  else {
   var m = {
    length: h,
    count: h,
    jR: c,
    IR: g ? [] : {}
   };
   C.SP(b,
   function(b, e) {
    if (m.IH) return q;
    var g = !c.Se ? f.$M: f.pM.bind({
     JP: m,
     index: e
    });
    c.sI.call(c.U5, b, e, g)
   })
  }
 }
};
C.path = {
 join: function() {
  for (var b = arguments.length,
  c = "",
  e = 0; e < b; e++) c = (c + ("" == c ? "": "/") + arguments[e]).replace(/(\/|\\\\)$/, "");
  return c
 },
 Ho: function(b) {
  return (b = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(b)) ? b[1] : p
 },
 Rja: function(b) {
  if (b) {
   var c = b.lastIndexOf(".");
   if ( - 1 !== c) return b.substring(0, c)
  }
  return b
 },
 S1: function(b, c) {
  var e = b.indexOf("?");
  0 < e && (b = b.substring(0, e));
  e = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(b.replace(/(\/|\\\\)$/, ""));
  if (!e) return p;
  e = e[2];
  return c && b.substring(b.length - c.length).toLowerCase() == c.toLowerCase() ? 
    e.substring(0, e.length - c.length) : e
 },
 dirname: function(b) {
  return b.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
 },
 Z1: function(b, c) {
  c = c || "";
  var e = b.indexOf("?"),
  f = "";
  0 < e && (f = b.substring(e), b = b.substring(0, e));
  e = b.lastIndexOf(".");
  return 0 > e ? b + c + f: b.substring(0, e) + c + f
 },
 vA: function(b, c, e) {
  if (0 == c.indexOf(".")) return this.Z1(b, c);
  var f = b.indexOf("?"),
  g = "";
  e = e ? this.Ho(b) : "";
  0 < f && (g = b.substring(f), b = b.substring(0, f));
  f = b.lastIndexOf("/");
  return b.substring(0, 0 >= f ? 0 : f + 1) + c + e + g
 }
};
C.da = {
 NN: {},
 xz: {},
 m_: {},
 hn: {},
 zB: "",
 Dda: "",
 Fh: {},
 XA: function() {
  return window.XMLHttpRequest ? new window.XMLHttpRequest: new ActiveXObject(
    "MSXML2.XMLHTTP")
 },
 sN: function(b) {
  var c = b[0],
  e = b[1],
  f = b[2],
  g = ["", p, p];
  1 === b.length ? g[1] = c instanceof Array ? c: [c] : 2 === b.length ? "function" 
    == typeof e ? (g[1] = c instanceof Array ? c: [c], g[2] = e) : (g[0] = c || "",
    g[1] = e instanceof Array ? e: [e]) : 3 === b.length ? (g[0] = c || "", g[1] = 
    e instanceof Array ? e: [e], g[2] = f) : d("arguments error to load js!");
  return g
 },
 m6: function(b, c, e) {
  var f = this,
  g = f.NN,
  h = f.sN(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? f.SN(h[0], 
    h[1], 0, h[2]) : C.async.map(h[1],
  function(b, c, e) {
   b = C.path.join(h[0], b);
   if (g[b]) return e(p);
   f.qM(b, q, e)
  },
  h[2])
 },
 PQ: function(b, c, e) {
  var f = this.o_(),
  g = this.sN(arguments);
  this.m6(g[0], g[1],
  function(b) {
   b && d(b);
   f.parentNode.removeChild(f);
   if (g[2]) g[2]()
  })
 },
 qM: function(b, c, e) {
  var f = document,
  g = C.Uc("script");
  g.async = c;
  g.src = b;
  this.NN[b] = n;
  C.mb(g, "load",
  function() {
   this.removeEventListener("load", arguments.callee, q);
   e()
  },
  q);
  C.mb(g, "error",
  function() {
   e("Load " + b + " failed!")
  },
  q);
  f.body.appendChild(g)
 },
 SN: function(b, c, e, f) {
  if (e >= c.length) f && f();
  else {
   var g = this;
   g.qM(C.path.join(b, c[e]), q,
   function(h) {
    if (h) return f(h);
    g.SN(b, c, e + 1, f)
   })
  }
 },
 o_: function() {
  var b = document,
  c = b.getElementById("cocos2d_loadJsImg");
  if (!c) {
   c = C.Uc("img");
   C.UN && (c.src = C.UN);
   b = b.getElementById(C.ze.sg.id);
   b.style.backgroundColor = "black";
   b.parentNode.appendChild(c);
   var e = getComputedStyle ? getComputedStyle(b) : b.currentStyle;
   e || (e = {
    width: b.width,
    height: b.height
   });
   c.style.left = b.offsetLeft + (parseFloat(e.width) - c.width) / 2 + "px";
   c.style.top = b.offsetTop + (parseFloat(e.height) - c.height) / 2 + "px";
   c.style.position = "absolute"
  }
  return c
 },
 nB: function(b, c) {
  if (C.HN) require("fs").ela(b,
  function(b, e) {
   b ? c(b) : c(p, e.toString())
  });
  else {
   var e = this.XA(),
   f = "load " + b + " failed!";
   e.open("GET", b, n);
   /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (
      e.setRequestHeader("Accept-Charset", "utf-8"), e.onreadystatechange = 
      function() {
    4 == e.readyState && 200 == e.status ? c(p, e.responseText) : c(f)
   }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dutf-8"), 
      e.onload = function() {
    4 == e.readyState && 200 == e.status ? c(p, e.responseText) : c(f)
   });
   e.send(p)
  }
 },
 TN: function(b) {
  if (C.HN) return require("fs").fla(b).toString();
  var c = this.XA();
  c.open("GET", b, q);
  /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ?
    c.setRequestHeader("Accept-Charset", "utf-8") : c.overrideMimeType && 
    c.overrideMimeType("text/plain; charset\x3dutf-8");
  c.send(p);
  return 4 == !c.readyState || 200 != c.status ? p: c.responseText
 },
 QQ: function(b, c) {
  this.nB(b,
  function(e, f) {
   try {
    e ? c(e) : c(p, JSON.parse(f))
   } catch(g) {
    d("load json [" + b + "] failed : " + g)
   }
  })
 },
 mM: function(b) {
  return /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(b) != p
 },
 Cv: function(b, c, e) {
  var f = n;
  e !== k ? f = c.nI == p ? f: c.nI: c !== k && (e = c);
  var g = new Image;
  f && "file://" != location.origin && (g.crossOrigin = "Anonymous");
  C.mb(g, "load",
  function() {
   this.removeEventListener("load", arguments.callee, q);
   this.removeEventListener("error", arguments.callee, q);
   e && e(p, g)
  });
  C.mb(g, "error",
  function() {
   this.removeEventListener("error", arguments.callee, q);
   e && e("load image failed")
  });
  g.src = b;
  return g
 },
 p_: function(b, c, e) {
  var f = this,
  g = p,
  h = b.type;
  h ? (h = "." + h.toLowerCase(), g = b.src ? b.src: b.name + h) : (g = b, h = 
    C.path.Ho(g));
  if (c = f.Fh[g]) return e(p, c);
  c = f.xz[h.toLowerCase()];
  if (!c) return C.error("loader for [" + h + "] not exists!"),
  e();
  h = c.JH ? c.JH() : f.zB;
  h = f.X4(h, g);
  c.load(h, g, b,
  function(b, c) {
   b ? (C.log(b), f.Fh[g] = p, delete f.Fh[g], e()) : (f.Fh[g] = c, e(p, c))
  })
 },
 X4: function(b, c) {
  var e = this.m_,
  f = C.path;
  if (b !== k && c === k) {
   c = b;
   var g = f.Ho(c),
   g = g ? g.toLowerCase() : "";
   b = (g = this.xz[g]) ? g.JH ? g.JH() : this.zB: this.zB
  }
  c = C.path.join(b || "", c);
  if (c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
   if (e[c]) return e[c];
   f = f.Ho(c) || "";
   c = e[c] = c.substring(0, c.length - f.length) + "_" + C.ic.language + f
  }
  return c
 },
 load: function(b, c, e) {
  e !== k ? "function" == typeof c && (c = {
   BJ: c
  }) : c !== k ? "function" == typeof c && (e = c, c = {}) : b !== k ? c = {}: 
    d("arguments error!");
  c.Se = function(b, c) {
   b && C.log(b);
   e && e(c)
  };
  b instanceof Array || (b = [b]);
  c.sI = this.p_;
  c.U5 = this;
  C.async.map(b, c)
 },
 zN: function(b, c) {
  var e = this.hn,
  f = [],
  g;
  for (g in b) {
   var h = b[g];
   e[g] = h;
   f.push(h)
  }
  this.load(f, c)
 },
 Kja: function(b, c) {
  var e = this,
  f = e.Ih(b);
  f ? e.zN(f.filenames, c) : e.load(b,
  function(b) {
   e.zN(b[0].filenames, c)
  })
 },
 Wo: function(b, c) {
  if (b && c) {
   if ("string" == typeof b) return this.xz[b.trim().toLowerCase()] = c;
   for (var e = 0,
   f = b.length; e < f; e++) this.xz["." + b[e].trim().toLowerCase()] = c
  }
 },
 Ih: function(b) {
  return this.Fh[b] || this.Fh[this.hn[b]]
 },
 Hr: function(b) {
  var c = this.Fh,
  e = this.hn;
  delete c[b];
  delete c[e[b]];
  delete e[b]
 },
 kla: function() {
  var b = this.Fh,
  c = this.hn,
  e;
  for (e in b) delete b[e];
  for (e in c) delete c[e]
 }
}; 

源码

需要源码请关注添加好友哦^ ^

转载:欢迎来到本站,转载请注明文章出处https://ormcc.com/

  • 11
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值