"${query}"
Error ${error}
Cari dengan pencarian lain
`; } document.addEventListener("DOMContentLoaded", function() { fetch("/grab/search/" + query).then((response) => { if (response.ok) { return response.json(); } else { return result.innerHTML = errorCard(response.status); } }).then(e => { if (typeof e[0]['id'] !== 'undefined') { t = "", e.forEach(e => { t += showCard(e) }), result.innerHTML = `
Download ${query} mp3 & video
${t}`; var t = [].slice.call(document.querySelectorAll("img.lazy, iframe.lazy")); if ("IntersectionObserver" in window) { let e = new IntersectionObserver(function(t, n) { t.forEach(function(t) { if (t.isIntersecting) { let n = t.target; n.src = n.dataset.src, n.classList.remove("lazy"), e.unobserve(n) } }) }); t.forEach(function(t) { e.observe(t) }) } else t.forEach(function(e, t) { e.src = e.dataset.src, e.classList.remove("lazy") }) } }).catch((error) => { console.log(error); return result.innerHTML = errorCard(error); }); });