mirror of
https://github.com/zyqunix/tools.git
synced 2025-07-06 14:30:31 +02:00
move theme.js and update lanyard api thing
This commit is contained in:
parent
1e94952ed9
commit
b71d7cd3ea
2 changed files with 52 additions and 46 deletions
14
index.js
14
index.js
|
@ -37,7 +37,7 @@ const timeInterval = setInterval(() => {
|
||||||
updateAge();
|
updateAge();
|
||||||
}, 3600 * 1000);
|
}, 3600 * 1000);
|
||||||
|
|
||||||
|
function lan() {
|
||||||
lanyard({
|
lanyard({
|
||||||
userId: "1201415921802170388",
|
userId: "1201415921802170388",
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
|
@ -78,6 +78,15 @@ lanyard({
|
||||||
activityImageElem.style.display = "none";
|
activityImageElem.style.display = "none";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
window.onload = (event) => {
|
||||||
|
lan();
|
||||||
|
};
|
||||||
|
|
||||||
|
setInterval(() => {
|
||||||
|
lan();
|
||||||
|
}, 6000);
|
||||||
|
|
||||||
function generateLanguageCards(languagesData) {
|
function generateLanguageCards(languagesData) {
|
||||||
const container = document.querySelector('.languages');
|
const container = document.querySelector('.languages');
|
||||||
|
@ -187,11 +196,8 @@ document.querySelectorAll('.tooltip').forEach(elem => {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
window.onload = function() {
|
|
||||||
const frEl = document.getElementById('fr');
|
const frEl = document.getElementById('fr');
|
||||||
let rn = Math.floor(Math.random() * 2) + 1;
|
let rn = Math.floor(Math.random() * 2) + 1;
|
||||||
console.log(rn);
|
|
||||||
if (rn == 1) {
|
if (rn == 1) {
|
||||||
frEl.innerHTML = "Fr*nch";
|
frEl.innerHTML = "Fr*nch";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue