WebUI/Jquery-plugIn/js/home.min.js
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function scoreChange(a) {
function e() {
var b = document.getElementById("doughnutChartCanvas").getContext("2d");
new Chart(b).Doughnut(c, d), $("#resumeScore .scoreVal span").text(a).parent().fadeIn(200)
}
var b = 360 * parseInt(a) / 100,
c = [{
value: b,
color: "#009a6d"
}, {
value: 360 - b,
color: "#ffffff"
}],
d = {
percentageInnerCutout: 80,
segmentShowStroke: !1,
animationEasing: "easeOutQuart"
};
setTimeout(e, 300)
} !
function (a, b) {
"use strict";
a.HoverDir = function (b, c) {
this.$el = a(c), this._init(b)
}, a.HoverDir.defaults = {
speed: 300,
easing: "ease",
hoverDelay: 0,
inverse: !1
}, a.HoverDir.prototype = {
_init: function (b) {
this.options = a.extend(!0, {}, a.HoverDir.defaults, b), this.transitionProp = "all " + this.options.speed + "ms " + this.options.easing, this.support = Modernizr.csstransitions, this._loadEvents()
},
_loadEvents: function () {
var b = this;
this.$el.on("mouseenter.hoverdir, mouseleave.hoverdir", function (c) {
var d = a(this),
e = d.find("div"),
f = b._getDir(d, {
x: c.pageX,
y: c.pageY
}),
g = b._getStyle(f);
"mouseenter" === c.type ? (e.hide().css(g.from), clearTimeout(b.tmhover), b.tmhover = setTimeout(function () {
e.show(0, function () {
var c = a(this);
b.support && c.css("transition", b.transitionProp), b._applyAnimation(c, g.to, b.options.speed)
})
}, b.options.hoverDelay)) : (b.support && e.css("transition", b.transitionProp), clearTimeout(b.tmhover), b._applyAnimation(e, g.from, b.options.speed))
})
},
_getDir: function (a, b) {
var c = a.width(),
d = a.height(),
e = (b.x - a.offset().left - c / 2) * (c > d ? d / c : 1),
f = (b.y - a.offset().top - d / 2) * (d > c ? c / d : 1),
g = Math.round((Math.atan2(f, e) * (180 / Math.PI) + 180) / 90 + 3) % 4;
return g
},
后面还有 451 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。