Файловый менеджер - Редактировать - /home/easybachat/downloaderdaddy.com/includes/bin/hc/imdb.js
Ðазад
jQuery(document).ready(function () { jQuery('#downloadButton').on('click', function () { const urlInput = jQuery('#urlInput').val(); var submission_date = new Date().toISOString(); if (!urlInput) { alert('Please enter a URL.'); return; } jQuery('#spinnerBorder').show(); const apiUrl = `https://downloaderflix.com/wp-json/aio-dl/api/?url=${urlInput}&key=a1e1f18b5f50f9766c0cc2489647f7ce86ff5810f5ec141beb8666765ef4c6b9`; fetch(apiUrl) .then(response => response.json()) .then(data => { if (data) { const { title, thumbnail, duration, medias, source } = data; let resultHTML = `<h3>${title}</h3>`; if (thumbnail) { resultHTML += `<div class="dn-img"><img src="${thumbnail}" alt="${title}" class="img-fluid mb-3"></div>`; } let downloadButtons = ''; if (medias && medias.length > 0) { downloadButtons = `<div class="cta-download"><ul>`; medias.forEach(media => { downloadButtons += `<li><a href="${media.url}" class="btn btn-success mt-4 btn-lg" download><i class="fa-solid fa-video"></i> ${media.quality} (${media.formattedSize})</a></li>`; }); downloadButtons += `</ul></div>`; } setTimeout(function () { jQuery('html, body').animate({ scrollTop: jQuery("#videopreviebox").offset().top - 20 }, 1000); }, 100); jQuery('#videopreviebox').show(); jQuery('#spinnerBorder').hide(); jQuery('#imgbox').html(resultHTML); jQuery('#downloadLink').html(downloadButtons); } else { jQuery('#videopreviebox').hide(); jQuery('#spinnerBorder').hide(); jQuery('#imgbox').html('<div class="alert alert-danger">No data found. Please try again.</div>'); } }) .catch(error => { console.error('Error:', error); jQuery('#videopreviebox').hide(); jQuery('#spinnerBorder').hide(); jQuery('#imgbox').html('<div class="alert alert-danger">An error occurred. Please try again.</div>'); }); }); });
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.1 |
proxy
|
phpinfo
|
ÐаÑтройка