<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ytmp3 - YouTube to MP3 & MP4 Converter | Downloader Free Online</title>
<link rel="stylesheet" href="./index.css?v=1">
<script src="./jquery.min.js"></script>
<link rel="shortcut icon" href="./f.png" type="image/x-icon">
<meta name="description"
content="Description: Ytmp3 is the quickest tool for converting and downloading YouTube to MP3, downloading YouTube to MP4, download youtube videos, tiktok videos and other. Instantly transform and save your favorite videos for free, all in a secure manner.">
<meta name="keywords"
content="Keywords: ytmp3, youtube to mp3, youtube to mp4, youtube to mp3 converter, download YouTube videos">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LSGCCN7NQN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-LSGCCN7NQN');
</script>
</head>
<body>
<header>
<img src="./logo.png" alt="" class="cclogo">
</header>
<div class="kinder">
<div class="kinder-tips">Please insert a valid video URL</div>
<div class="center-card">
<input type="text" id="inputUrl" placeholder="Please input the youtube, twitter, tiktok, Instagram URL...">
<div class="loadbtn">
<div class="lodingicon-iifne">
<img src="./ico_conver.png" width="18px" style="margin-right: 6px;">
Convert
</div>
<svg t="1737206631537" class="lodingicon" viewBox="0 0 1024 1024" version="1.1" fill="#fff"
xmlns="http://www.w3.org/2000/svg" p-id="4481" width="20" height="20">
<path
d="M249.836 210.77c5.558-3.827 10.73-7.527 15.812-10.695 4.967-3.314 9.807-6.121 14.208-8.785 2.18-1.362 4.374-2.515 6.425-3.673l5.873-3.281c0.945-0.551 1.789-0.953 2.625-1.377l2.425-1.226 4.381-2.233 1.954-1.004 2.219-1.093 3.918-1.924 7.184-3.527c2.883-1.44 5.996-3.272 8.694-5.22 26.969-19.458 33.057-57.094 13.599-84.063-19.458-26.968-57.094-33.057-84.063-13.599l-6.49 4.682-3.54 2.554-2.071 1.499-2.62 1.947-5.824 4.351a7267.87 7267.87 0 0 0-3.193 2.399c-1.091 0.824-2.25 1.676-3.282 2.533a33346.62 33346.62 0 0 1-6.735 5.441c-2.343 1.915-4.833 3.859-7.308 6.046-4.991 4.313-10.423 8.905-15.952 14.121-5.645 5.071-11.353 10.792-17.394 16.739-5.886 6.125-12.079 12.515-18.185 19.505-12.303 13.875-24.827 29.53-36.839 46.835a494.61 494.61 0 0 0-33.896 56.497 491.342 491.342 0 0 0-27.329 64.159c-1.02 2.77-1.888 5.605-2.789 8.428l-2.688 8.477c-1.692 5.691-3.266 11.429-4.857 17.152l-2.135 8.669c-0.683 2.896-1.479 5.756-2.051 8.682l-1.84 8.729-0.914 4.358-0.785 4.387a479.254 479.254 0 0 0-7.583 69.967c-0.302 5.759-0.239 11.514-0.279 17.214l-0.017 4.267c-0.001 1.42 0.069 2.841 0.101 4.257l0.25 8.464 0.127 4.204 0.264 4.188 0.531 8.317 0.278 4.451 0.399 3.933 0.792 7.821c0.14 1.313 0.244 2.561 0.412 3.918l0.527 4.098 1.056 8.115c0.185 1.337 0.33 2.695 0.549 4.002l0.648 3.91 1.289 7.744c1.825 10.246 3.911 20.188 6.263 29.766a463.195 463.195 0 0 0 16.342 52.81l2.255 5.904 1.108 2.899 1.186 2.836 4.611 10.976c3.247 7.033 6.19 13.723 9.353 19.831 6.048 12.328 12.043 22.661 17.007 31.096 5.121 8.359 9.212 14.84 12.197 19.141l4.472 6.638-3.293-7.292c-2.209-4.713-5.148-11.776-8.748-20.761-3.443-9.059-7.545-20.055-11.346-32.919-2.041-6.376-3.771-13.301-5.726-20.516l-2.612-11.204-0.667-2.878-0.583-2.935-1.183-5.957c-3.105-16.055-5.568-33.549-6.889-52.052-0.668-9.251-1.027-18.753-1.1-28.437l0.03-7.3 0.014-3.67c0.002-1.227 0.084-2.416 0.122-3.629l0.284-7.263 0.139-3.644c0.053-1.229 0.166-2.577 0.247-3.863a35704.717 35704.717 0 0 1 0.798-11.787l0.017-0.247c0.013 0.588 0.018 0.028 0.027 0.098l0.05-0.472 0.101-0.945 0.2-1.891 0.8-7.581 0.4-3.801 0.535-3.801 1.069-7.62c0.187-1.271 0.335-2.545 0.555-3.815l0.67-3.811c0.909-5.082 1.708-10.185 2.859-15.253a424.734 424.734 0 0 1 17.057-60.03l1.316-3.663 1.437-3.623 2.859-7.225c0.907-2.417 2.03-4.761 3.033-7.135l3.079-7.082c2.208-4.653 4.37-9.295 6.624-13.867l3.508-6.783c1.167-2.252 2.294-4.513 3.565-6.702a414.503 414.503 0 0 1 31.89-49.502 407.116 407.116 0 0 1 35.476-41.25 406.598 406.598 0 0 1 35.793-32.288c5.751-4.687 11.515-8.857 16.918-12.861zM1023.966 510.486l-0.001-0.005-0.875-7.954-1.051-9.554-0.687-6.125-1.153-8.152c-0.828-5.729-1.741-12.089-2.813-18.907l-4.259-20.887c-0.691-3.726-1.738-7.517-2.729-11.425l-3.102-12.024c-0.558-2.048-1.019-4.142-1.677-6.221l-1.958-6.314-4.07-13.021-1.049-3.333-1.211-3.324c-0.814-2.223-1.638-4.467-2.469-6.732-1.673-4.522-3.34-9.131-5.115-13.781l-5.938-13.981-3.046-7.123c-1.037-2.384-2.247-4.72-3.375-7.102l-6.997-14.388c-0.569-1.22-1.222-2.408-1.877-3.598l-1.958-3.583-3.95-7.211-3.995-7.265c-1.354-2.422-2.881-4.773-4.324-7.175l-8.875-14.427c-12.567-18.998-26.533-37.793-42.018-55.643-15.662-17.71-32.638-34.534-50.581-50.045a527.617 527.617 0 0 0-56.726-41.602c-19.622-12.201-39.702-22.647-59.484-31.64l-14.925-6.188c-2.47-0.995-4.881-2.072-7.356-2.979l-7.402-2.651-7.306-2.609-3.615-1.289c-1.198-0.434-2.394-0.863-3.618-1.21l-14.37-4.353c-2.366-0.691-4.68-1.466-7.035-2.069l-7.02-1.754-13.669-3.402c-4.524-0.941-8.985-1.788-13.341-2.655l-6.47-1.271-3.184-0.621-3.186-0.465-12.373-1.797-5.96-0.862c-1.957-0.298-3.928-0.403-5.85-0.61l-11.239-1.057c-3.638-0.329-7.151-0.735-10.598-0.81l-19.18-0.823-16.258 0.11-6.935 0.057c-2.177 0.091-4.219 0.237-6.115 0.34l-9.619 0.566-7.982 0.472 7.959 0.875 9.529 1.05c1.872 0.215 3.884 0.411 6.023 0.683l6.797 1.101 15.801 2.578 18.393 3.951c3.283 0.628 6.614 1.603 10.051 2.514l10.571 2.838c1.801 0.509 3.644 0.92 5.469 1.526l5.542 1.793 11.432 3.697 2.927 0.946 2.914 1.104 5.902 2.242c3.965 1.517 8.007 3.017 12.084 4.613l12.243 5.366 6.241 2.733c2.088 0.929 4.128 2.029 6.212 3.044l12.59 6.277c1.068 0.506 2.106 1.094 3.145 1.685l3.131 1.761 6.302 3.542 6.353 3.568c2.118 1.209 4.165 2.586 6.263 3.878l12.601 7.922c16.565 11.247 32.949 23.681 48.48 37.44a473.639 473.639 0 0 1 43.435 44.87 467.917 467.917 0 0 1 35.892 50.115c10.476 17.304 19.389 34.971 27.062 52.322 1.761 4.404 3.506 8.772 5.234 13.098 0.843 2.166 1.771 4.273 2.532 6.444l2.224 6.49 2.201 6.396 1.093 3.162c0.368 1.047 0.734 2.092 1.019 3.166l3.633 12.572c0.578 2.068 1.242 4.086 1.738 6.146l1.441 6.137 2.829 11.931 2.152 11.645 1.045 5.64 0.514 2.772 0.362 2.779 1.423 10.784 0.697 5.188c0.245 1.704 0.3 3.423 0.458 5.098l0.794 9.786c0.249 3.167 0.584 6.22 0.595 9.223l0.516 16.686-0.346 13.152-0.109 5.579-0.343 6.014-0.567 9.595-0.472 7.988c-0.169 3.219-0.107 6.829 0.256 10.138 3.638 33.056 33.383 56.904 66.438 53.267 33.056-3.637 56.905-33.382 53.268-66.438zM885.176 762.451l-4.868 5.897c-1.711 2.052-3.44 4.238-5.4 6.399-3.858 4.365-7.946 9.128-12.608 13.957-4.517 4.944-9.632 9.919-14.922 15.205-5.467 5.131-11.147 10.547-17.374 15.864-12.349 10.726-26.262 21.624-41.613 32.046a434.435 434.435 0 0 1-50.026 29.303 431.157 431.157 0 0 1-56.59 23.39c-2.436 0.874-4.935 1.6-7.419 2.361l-7.455 2.279c-5.006 1.425-10.053 2.742-15.078 4.091-2.536 0.593-5.075 1.187-7.617 1.78-2.545 0.566-5.051 1.25-7.622 1.714l-7.663 1.523-3.822 0.763-3.851 0.64a419.278 419.278 0 0 1-61.304 5.938c-5.039 0.219-10.081 0.088-15.068 0.072l-3.733-0.022c-1.238-0.012-2.392-0.1-3.587-0.145l-7.067-0.313-3.505-0.146-3.997-0.27-7.961-0.537-1.981-0.133-0.989-0.067-0.494-0.033c0.221-0.008-0.844-0.005 0.433-0.022l-0.226-0.025-3.593-0.396-7.127-0.78a406.62 406.62 0 0 1-53.494-10.013 402.48 402.48 0 0 1-45.808-14.792l-5.111-2.022-2.511-0.99-2.452-1.066-9.494-4.124c-6.074-2.917-11.861-5.522-17.131-8.352-10.648-5.379-19.552-10.718-26.826-15.11l-1.338-0.807a1085.391 1085.391 0 0 0-3.457-2.276l-4.116-2.687c-0.638-0.414-1.252-0.813-1.842-1.194l-2.021-1.354-3.621-2.439-6.637-4.472c-2.685-1.782-5.825-3.567-8.857-4.938-30.307-13.689-65.973-0.218-79.662 30.089-13.689 30.308-0.218 65.974 30.089 79.663l7.293 3.294 3.979 1.797 2.369 1.063 2.994 1.302c2.073 0.896 4.3 1.857 6.676 2.885l3.672 1.574 1.917 0.819 1.9 0.745c10.22 4.014 22.646 8.772 37.189 13.242 7.215 2.375 15.042 4.443 23.216 6.727l12.687 3.1 3.261 0.787 3.325 0.701 6.75 1.415c18.195 3.715 38.044 6.719 59.054 8.439a494.284 494.284 0 0 0 65.863 0.997l8.535-0.519 4.285-0.266 0.268-0.017c1.44-0.02 0.541-0.02 0.927-0.03l0.492-0.051 0.986-0.1 1.977-0.201 7.938-0.807 3.991-0.406 4.502-0.554 9.015-1.133c1.492-0.2 3.034-0.365 4.486-0.598l4.344-0.709c5.795-0.965 11.61-1.832 17.399-3.066a485.178 485.178 0 0 0 68.692-18.701l4.2-1.463 4.157-1.588 8.292-3.176c2.771-1.016 5.468-2.251 8.194-3.37l8.134-3.434c5.351-2.451 10.685-4.869 15.941-7.39l7.805-3.918c2.591-1.307 5.188-2.576 7.712-3.991a474.344 474.344 0 0 0 57.071-35.83 467.174 467.174 0 0 0 47.72-40.068 466.596 466.596 0 0 0 37.51-40.586c5.455-6.542 10.335-13.082 14.998-19.24 4.483-6.313 8.789-12.218 12.512-18 3.868-5.667 7.179-11.177 10.297-16.204 1.589-2.492 2.957-4.989 4.318-7.332 1.349-2.348 2.635-4.586 3.854-6.711 4.686-8.611 8.271-15.384 10.509-20.116l3.527-7.185-4.682 6.489c-2.985 4.266-7.65 10.33-13.635 17.935z"
p-id="4482"></path>
</svg>
</div>
</div>
</div>
<div class="vc" id="vc">
<!-- <div class="vc-1">
<div class="vc-1-left"><img src="https://i.ytimg.com/vi_webp/z7do1hhb6fE/maxresdefault.webp" alt=""></div>
<div class="vc-1-right">
<div class="vc-1-right-p1">DeepSeek, TikTok, Temu: How China is taking the lead in tech - BBC
World Service</div>
<div class="vc-1-right-p2">
Uploader:<span>Taylor Swift</span>
</div>
<div class="vc-1-right-p2">
Upload Time:<span>20141110</span>
</div>
<div class="vc-1-right-p2">
Video Duration:<span>4min32s</span>
</div>
</div>
</div>
<div class="vc-rtab">
<div class="vc-rtab-head">Recommended video download list</div>
<div class="vc-rtab-li lifk-opo">
<div class="vc-rtab-li-1">Video Quality Type </div>
<div class="vc-rtab-li-2">File Size</div>
<div class="vc-rtab-li-3">Download</div>
</div>
<div class="vc-rtab-li">
<div class="vc-rtab-li-1">Mp4, Medium Quality - 480x360</div>
<div class="vc-rtab-li-2">12.88MB</div>
<div class="vc-rtab-li-3"><div class="ccloadbtn"><img src="./ico_download-normal@2x.png" alt="">Download</div></div>
</div>
</div>
<div class="vc-rtab">
<div class="vc-rtab-head">More formats and resolutions</div>
<div class="vc-rtab-li lifk-opo">
<div class="vc-rtab-li-1">Video Quality Type </div>
<div class="vc-rtab-li-2">File Size</div>
<div class="vc-rtab-li-3">Download</div>
</div>
<div class="vc-rtab-li">
<div class="vc-rtab-li-1">Mp4, Medium Quality - 480x360</div>
<div class="vc-rtab-li-2">12.88MB</div>
<div class="vc-rtab-li-3"><div class="ccloadbtn"><img src="./ico_download-normal@2x.png" alt="">Download</div></div>
</div>
</div>
<div class="vc-rtab">
<div class="vc-rtab-head">Subtitle Download Link</div>
<div class="vc-rtab-li lifk-opo">
<div class="vc-rtab-li-1">Subtitle Language</div>
<div class="vc-rtab-li-3">Download Link</div>
</div>
<div class="vc-rtab-li">
<div class="vc-rtab-li-1">Mp4, Medium Quality - 480x360</div>
<div class="vc-rtab-li-3"><div class="ccloadbtn"><img src="./ico_download-normal@2x.png" alt="">Download</div></div>
</div>
</div> -->
</div>
<div class="mtxtx">
<div class="tit-1">YTMP3 - YouTube to Mp3 Converter & Video Downloader</div>
<div class="mt-ps">Welcome to Ytmp3! We're fully committed to giving you the most seamless and convenient
experience when it comes to audio extraction and YouTube video downloads. Our Ytmp3 service is the ultimate
choice for anyone who wants to quickly and easily convert and download MP3 files from YouTube, as well as
download YouTube videos directly. Whether you're constantly on the go or just relaxing at home, our tool
provides a perfect way to enjoy your favorite YouTube content, be it music tracks or videos, without any
headaches or complications.</div>
<div class="tit-2">Effortless YouTube to MP3 & MP4 Conversion</div>
<div class="mt-ps">At Ytmp3, we grasp the varied needs of our users. Whether you're looking to convert YouTube
videos to MP4 for HD viewing or to extract audio as MP3 files for your music collection, our tool takes care
of it all with impressive speed and accuracy. Our user-friendly interface makes converting your favorite
YouTube content as simple as a few clicks, ensuring a seamless and trouble-free process.</div>
<div class="tit-2">How to Convert YouTube Videos to MP3 with Ytmp3</div>
<div class="tit-3">1. Find the YouTube Video</div>
<div class="mt-ps">Browse YouTube and select the video you want to convert. Copy the URL from your browser’s
address bar.</div>
<div class="tit-3">2. Paste the Link</div>
<div class="mt-ps">Return to our homepage and paste the copied YouTube link into the provided field.</div>
<div class="tit-3">3. Initiate Conversion</div>
<div class="mt-ps">Click on the button to start the conversion. Our system quickly processes the video and
extracts the audio.</div>
<div class="tit-3">4. Download Your MP3</div>
<div class="mt-ps">Once the conversion is complete, simply click the download button and save the MP3 file to
your device.</div>
<div class="tit-2">Fast and Reliable Downloads</div>
<div class="mt-ps">Speed is paramount when downloading content, and Ytmp3 excels in providing swift download
times without sacrificing quality. Our cutting-edge servers are optimized to manage high traffic,
guaranteeing that you can download your desired YouTube Videos & Shorts, TikTok Videos, Reddit Videos &
Gifs, Instagram Reels, Facebook Videos, and X-Twitter Videos promptly and efficiently, even during peak
usage times. With Ytmp3, lengthy wait times and buffering issues are a relic of the past, ensuring a
seamless experience across all supported platforms.</div>
<div class="tit-2">How to Download Videos</div>
<div class="mt-ps">Many popular websites offer videos that captivate users, often leading viewers to wish to
save them for later viewing. With Ytmp3, you can easily download and archive your favorite content from
sites like YouTube Videos & Shorts, TikTok Videos, Reddit Videos & Gifs, Instagram Reels, Facebook Videos,
and X-Twitter Videos. This ensures that you can revisit and enjoy these videos whenever you want, without
needing an internet connection or worrying about the video being taken down. Our service provides a
convenient solution for preserving your favorite online videos.
<br><br>
Browse the video website and select the video you want to download. Copy the URL from your browser’s address
bar, paste the copied YouTube link into the provided field. Click on the button to start the downloading.
</div>
<div class="mibottom">
If you encounter any issues, please email: <a href="/cdn-cgi/l/email-protection#4e373a233e7d232f3a2b0e29232f2722602d2123"><span class="__cf_email__" data-cfemail="027b766f72316f63766742656f636b6e2c616d6f">[email protected]</span></a>
</div>
<a href="http://" target="_blank" download="download" rel="noopener noreferrer"></a>
</div>
<div class="download-guide-sidebar">
<div class="sidebar-header">
<div class="guide-title">Download Guide</div>
<div class="close-btn" onclick="hideSidebar()">×</div>
</div>
<div class="guide-carousel">
<div class="guide-card active">
<div class="step-title">Method 1: Right-click Save As</div>
<div class="video-preview"><img src="./guide-1-135x120.gif" alt=""></div>
<div class="step-content">
1. Hover over the download button<br>
2. Right-click the target area<br>
3. Select "Save link as..."
</div>
</div>
<div class="guide-card">
<div class="step-title">Method 2: Download during playback</div>
<div class="video-preview"><img src="./guide-2-135x120.gif" alt=""></div>
<div class="step-content">
1. Start video playback<br>
2. Right-click the player<br>
3. Select "Save video as..."
</div>
</div>
<div class="guide-card">
<div class="step-title">Method 3: More Options Menu</div>
<div class="video-preview"><img src="./guide-3-135x120.gif" alt=""></div>
<div class="step-content">
1. Click the "More" icon (⋮)<br>
2. Open the options menu<br>
3. Click download button
</div>
</div>
</div>
<div class="step-indicators">
<span class="step-dot active" onmouseenter="pauseRotation()" onmouseleave="resumeRotation()"
onclick="showStep(0)"></span>
<span class="step-dot" onmouseenter="pauseRotation()" onmouseleave="resumeRotation()"
onclick="showStep(1)"></span>
<span class="step-dot" onmouseenter="pauseRotation()" onmouseleave="resumeRotation()"
onclick="showStep(2)"></span>
</div>
</div>
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>
let currentStep = 0;
let autoRotateInterval;
let isPaused = false;
const cards = document.querySelectorAll('.guide-card');
const dots = document.querySelectorAll('.step-dot');
const sidebar = document.querySelector('.download-guide-sidebar');
function startAutoRotate() {
autoRotateInterval = setInterval(() => {
if (!isPaused) {
currentStep = (currentStep + 1) % 3;
updateDisplay();
}
}, 5000);
}
function updateDisplay() {
cards.forEach((card, index) => {
card.classList.toggle('active', index === currentStep);
});
dots.forEach((dot, index) => {
dot.classList.toggle('active', index === currentStep);
});
}
function showStep(step) {
currentStep = step;
updateDisplay();
resetRotation();
}
function showSidebar() {
sidebar.style.transform = 'translateY(-50%)';
startAutoRotate();
}
function hideSidebar() {
sidebar.style.transform = 'translateX(100%) translateY(-50%)';
}
function pauseRotation() {
isPaused = true;
}
function resumeRotation() {
isPaused = false;
}
function resetRotation() {
clearInterval(autoRotateInterval);
startAutoRotate();
}
</script>
<script>
$(function () {
function getTimeTxt(n) {
let m = 0, s = 0;
if (n) {
m = parseInt(n / 60);
s = parseInt(n % 60);
}
return `${m}min${s}s`
}
let getLoading = false
$('.loadbtn').click(async function () {
if (getLoading) return;
let url = $('#inputUrl').val();
if (!url.trim()) return alert('Please input the youtube, twitter, tiktok, Instagram URL...');
$('.lodingicon-iifne').hide();
$('.lodingicon').show();
$('#vc').hide()
try {
getLoading = true
let response = await fetch('https://ytmp3mate.com/api/api/v1/video/parse', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({ url }),
});
const data = await response.json();
console.warn(data);
if ('id' in data) {
let cctime = getTimeTxt(data.duration)
let htmlTxt = `
<div class="vc-1">
<div class="vc-1-left"><img src="${data.thumbnail}" alt=""></div>
<div class="vc-1-right">
<div class="vc-1-right-p1">${data.title}</div>
<div class="vc-1-right-p2">
Uploader:<span>${data.uploader}</span>
</div>
<div class="vc-1-right-p2">
Upload Time:<span>${data.upload_date}</span>
</div>
<div class="vc-1-right-p2">
Video Duration:<span>${cctime}</span>
</div>
</div>
</div>
`;
if (data.formats.length) {
let litxt = ``
data.formats.forEach(v => {
let filesize = ''
if (v.filesize) {
filesize = `${(v.filesize / 1024 / 1024).toFixed(2)}MB`
}
if (v.url) {
litxt += `
<div class="vc-rtab-li">
<div class="vc-rtab-li-1">${v.resolution}.${v.ext}</div>
<div class="vc-rtab-li-2">${filesize}</div>
<div class="vc-rtab-li-3">
<a href="${v.url}" target="_blank" download="download" class="ccloadbtn"><img src="./ico_download-normal@2x.png" alt=""> <span class="ijilpinf">Download</span> </a>
</div>
</div>`
}
})
let htmlTxt2 = `
<div class="vc-rtab">
<div class="vc-rtab-head">Recommended video download list</div>
<div class="vc-rtab-li lifk-opo">
<div class="vc-rtab-li-1">Video Quality Type </div>
<div class="vc-rtab-li-2">File Size</div>
<div class="vc-rtab-li-3">Download</div>
</div>
${litxt}
</div>`
htmlTxt += htmlTxt2
}
$('#vc').show()
$('#vc').html(htmlTxt)
$('.lodingicon-iifne').show();
$('.lodingicon').hide();
showSidebar()
} else {
alert('Sorry, the download failed.')
$('.lodingicon-iifne').show();
$('.lodingicon').hide();
}
getLoading = false
} catch (error) {
alert('Sorry, the download failed.')
$('.lodingicon-iifne').show();
$('.lodingicon').hide();
getLoading = false;
console.error(error, 35);
}
})
})
/* $('#vc').on('click', '.ccloadbtn', function () {
let self = $(this);
if(self.find('.ijilpinf').text() != 'Download') return
if (self.attr('data-src')) {
var a = document.createElement('a');
a.style.display = 'none';
document.body.appendChild(a);
var xhr = new XMLHttpRequest();
xhr.open('GET', self.attr('data-src'), true);
xhr.responseType = 'blob';
xhr.onload = function () {
if (xhr.status === 200) {
var videoBlob = xhr.response;
var url = window.URL.createObjectURL(videoBlob);
a.href = url;
a.download = self.attr('data-name');
a.click();
window.URL.revokeObjectURL(url);
} else {
alert('Sorry, the download failed.')
}
};
xhr.onprogress = function (event) {
if (event.lengthComputable) {
console.log('1', event.loaded);
console.log('2', event.total);
let b = (event.loaded/event.total * 100).toFixed(2)
self.find('.ijilpinf').html(`${b}%`)
if (parseInt(event.loaded) == parseInt(event.total)) {
self.find('.ijilpinf').html(`Download`)
}
}
};
xhr.send();
self.html($('.lodingicon').clone())
self.find('.lodingicon').show()
}
}) */
</script>
<script>
; (function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
}); var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-5JMJBNS4');
</script>
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5JMJBNS4" height="0" width="0"
style="display:none;visibility:hidden"></iframe>
</noscript>
</body>
</html>