Add files via upload

master
Manas Khurana 2018-05-26 08:20:19 +05:30 committed by GitHub
parent e47697dbc0
commit 21d89ab167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -43,7 +43,8 @@ function fx(str) {
}, 50 * (i + 1));
}
};
fx.fadeIn = function (t = 400) {
fx.fadeIn = function (t) {
t = def(t,400);
parts = t / 50;
if (window.getComputedStyle(ele).getPropertyValue('display') === 'none') {
if (ele.dataset.fxDisplay)ele.style.display = ele.dataset.fxDisplay;
@ -53,7 +54,8 @@ function fx(str) {
fx.transition(0, op, 1, function (v) {ele.style.opacity = v; }, t);
}
};
fx.fadeOut = function (t = 400) {
fx.fadeOut = function (t) {
t = def(t,400);
parts = t / 50;
if (window.getComputedStyle(ele).getPropertyValue('display') !== 'none') {
ele.dataset.fxDisplay = window.getComputedStyle(ele).getPropertyValue('display');
@ -403,7 +405,7 @@ document.getElementById('username').addEventListener('keyup', function () {
}
});
loadingList = []
loadingList = [];
loadingInterval = null;
function loading(el) {
if (el && loadingList.indexOf(el) === -1) {
@ -422,13 +424,13 @@ function loading(el) {
var loadList = ['Loading.','Loading..','Loading...'];
var x = loadList.indexOf(getText(e));
if (x===0 || x===1) {
changeText(e,loadList[x+1])
changeText(e,loadList[x+1]);
return true;
} else if (x===2) {
changeText(e,loadList[0])
changeText(e,loadList[0]);
return true;
} else {
return false
return false;
}
});
}