uncatatsrophe
This commit is contained in:
parent
275f9a4816
commit
af08df32b4
1 changed files with 7 additions and 5 deletions
12
js/app.js
12
js/app.js
|
@ -61,12 +61,14 @@ async function main(type) {
|
|||
.then(x => x.json()));
|
||||
extraFetch.forEach(x => {
|
||||
x.studio = studios[typed].title;
|
||||
x.studioID = user;
|
||||
});
|
||||
} else if (typed == '#' && type == '#comment') {
|
||||
extraFetch = await (fetch(`https://hf.zenoverse.net/studio_comment/${user}`)
|
||||
.then(x => x.json()));
|
||||
extraFetch.forEach(x => x.studio = studios[typed].title);
|
||||
extraFetch.forEach(x => {
|
||||
x.studio = studios[typed].title;
|
||||
x.studioID = user
|
||||
});
|
||||
} else if (typed == '@' && type == '#user') {
|
||||
extraFetch = await (fetch(`https://hf.zenoverse.net/user/${user}`)
|
||||
.then(x => x.json()));
|
||||
|
@ -162,8 +164,8 @@ sub.textContent = sub.value = val;
|
|||
main(window.location.hash || '#user');
|
||||
document.querySelector('#submit').onclick = () => main(window.location.hash || '#user');
|
||||
|
||||
document.querySelectorAll('.buttons button').forEach(x => x.onclick = function() {
|
||||
window.setInterval(function() {
|
||||
document.querySelectorAll('.buttons button').forEach(x => x.onclick = function () {
|
||||
window.setInterval(function () {
|
||||
window.location.reload();
|
||||
},100);
|
||||
}, 100);
|
||||
})
|
Loading…
Reference in a new issue