fix api-get-text

This commit is contained in:
Ibnu Maksum
2024-06-26 17:39:28 +07:00
parent 354606d71c
commit 5f5ff4f760
2 changed files with 10 additions and 7 deletions

View File

@ -47,14 +47,16 @@
}
});
setTimeout(() => {
var listAttApi = document.querySelectorAll(`[api-get-text]`);
listAttApi.forEach(function(el) {
$.get(el.getAttribute('api-get-text'), function(data) {
el.innerHTML = data;
});
});
}, 500);
});
var listAtts = document.querySelectorAll(`[api-get-text]`);
listAtts.forEach(function(el) {
$.get(el.getAttribute('api-get-text'), function(data) {
el.innerHTML = data;
});
});
function setKolaps() {
var kolaps = getCookie('kolaps');