Scientific/Css/ichartjs/src/ichart.core.js
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
;(function(window) {
var ua = navigator.userAgent.toLowerCase(), mc = function(e) {
return e.test(ua)
}, ts = Object.prototype.toString, isOpera = mc(/opera/), isChrome = mc(/\bchrome\b/), isWebKit = mc(/webkit/), isSafari = !isChrome && mc(/safari/), isIE = !isOpera && mc(/msie/), supportCanvas = !!document.createElement('canvas').getContext, isGecko = !isWebKit
&& mc(/gecko/), isMobile = mc(/ipod|ipad|iphone|android/gi), arithmetic = {
Linear : function(t, b, c, d) {
return c * t / d + b;
},
Cubic : {
easeIn : function(t, b, c, d) {
return c * (t /= d) * t * t + b;
},
easeOut : function(t, b, c, d) {
return c * ((t = t / d - 1) * t * t + 1) + b;
},
easeInOut : function(t, b, c, d) {
if ((t /= d / 2) < 1)
return c / 2 * t * t * t + b;
return c / 2 * ((t -= 2) * t * t + 2) + b;
}
}
};
var _ = (function(window) {
/**
* spirit from jquery
*/
var isReady = false, readyBound = false, readyList = [], DOMContentLoaded = (function() {
return function() {
document.removeEventListener("DOMContentLoaded", DOMContentLoaded, false);
ready();
};
})(), doScrollCheck = function() {
if (isReady) {
return;
}
try {
document.documentElement.doScroll("left");
} catch (e) {
setTimeout(doScrollCheck, 1);
return;
}
ready();
}, ready = function() {
if (!isReady) {
isReady = true;
for ( var i = 0; i < readyList.length; i++) {
readyList[i].call(document);
}
readyList = [];
}
}, bindReady = function() {
if (readyBound)
return;
readyBound = true;
if (document.readyState === "complete") {
return setTimeout(ready, 1);
}
document.addEventListener("DOMContentLoaded", DOMContentLoaded, false);
window.addEventListener("load", ready, false);
}, bind = function(fn) {
后面还有 766 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。