<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
	$key = 'Tool Get Link Download Nhạc MP3.Zing.Vn, Tải nhạc 320kbps Lossless Zing MP3';
	$mkey = 'Tool get link MP3 MP4 ZingMP3.VN - Tải nhạc mp3 320kbps, get link vip zingmp3, get link video mp3zing HD, get link mp3 320kb, tai nhac ...';
	include '../../template/header.php';
?>
	<div class="col-right-xs">
		<div class="mainblok">
			<div class="phdr">
					<div vocab="https://schema.org/" typeof="BreadcrumbList">
						<span property="itemListElement" typeof="ListItem">
							<a href="/"  property="item" typeof="WebPage">
								<i class="fa fa-home"></i> <span property="name">Home</span>
							</a>
							<meta property="position" content="1">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<a href="/getlink/"  property="item" typeof="WebPage">
								<i class="fa fa-chain-broken"></i> <span property="name">GetLink</span>
							</a>
							<meta property="position" content="2">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<span property="name">Tải nhạc 320kbps Lossless Zing MP3</span>
							<meta property="position" content="3">
						</span>
					</div>
			</div>
			<div class="newsx">Tool cho phép bạn tải về các tập tin MP3 từ Mp3.Zing.VN. Tải nhạc chất lượng cao miễn phí từ ZingMP3, get link zing vip 128 kbps 320kbps lossless. Tải album nhạc từ ZingMP3.VN, tải video chất lượng cao FULL HD, mp4 , ...</div>
			<div class="menu">
				<strong>Link hỗ trợ:</strong><br />
				https://zingmp3.vn/bai-hat/Hoa-Vo-Sac-Jack-K-ICM/ZWB0IFAD.html<br />
				https://zingmp3.vn/video-clip/Em-Gi-Oi-Jack-K-ICM/ZWAEFWIF.html<br />
				https://zingmp3.vn/album/Hong-Nhan-Bac-Phan-Single-Jack-Liam/ZUB9ZI8C.html<br />
				<form role="form" class="form-horizontal" id="form" method="post" onSubmit="return false;">
					<input type="text" name="link" id="link" placeholder="https://zingmp3.vn/bai-hat/Banh-Mi-Khong-Dat-G-DuUyen/ZWAFE897.html">
					<input type="submit" id="submit" value="Lấy link get" name="submit" />
				</form>
			</div>
			<div id="DownloadLink"></div>
			<div id="listLink"><div class="newsx" style="text-align:center"><input type="button" name="getnhac" id="getnhac" value="Lấy danh sách nhạc hot"/></div></div>
		</div>
		
<?php require '../list.php'; ?>
	</div>
	<div class="col-left-xs">
<?php require '../../tools/toolslist.php'; ?>
	</div>
	<div class="clear"></div>

<script>
$(document).ready(function(){
	$("#submit").click(function(){
		$("#submit").addClass('disabled');
		$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><img src="/template/images/loading.svg" /></div>').slideDown('slow');
		var form = $('#form')[0];
		var formData = new FormData(form);
		$.ajax({
			url: "apizing.php",
			type: "POST",
			data:  formData,
			contentType: false,
			cache: false,
			processData:false,
			success: function(rs)
			{
				res = JSON.parse(rs);
				if(res.success){
					$("#submit").removeClass('disabled');
					$("#DownloadLink").hide().html(res.success).slideDown('slow');
				}
				if(res.error){
					$("#submit").removeClass('disabled');
					$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">'+res.error+'</i></div>').slideDown('slow');
				}
			},
			error: function() 
			{
				$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">Có lỗi hệ thống, vui lòng kiểm tra lại!</i></div>').slideDown('slow');
			}
		});
		$("#link").attr("placeholder", $("#link").val()).val("");
	});
	$('#getnhac').click(function(){
		$("#submit").addClass('disabled');
		$("#listLink").hide().html('<div class="gmenu" style="text-align: center;"><img src="/template/images/loading.svg" /></div>').slideDown('slow');
		$.ajax({
			url : 'apizing.php?hotsong',
			type : 'get',
			dataType : 'json',
			success : function (result){
				var html = '';
				$.each (result, function (key, item){
					html +=  '<div class="menu"> <strong> Bài hát: <em>'+item['name']+'</em></strong> <a href="#" class="download" style="float:right;" onclick="oklink(\'https://zingmp3.vn'+item['link']+'\')">Get link</a></div>';
				});

				$('#listLink').hide().html(html).slideDown('slow');
			},
			error: function() 
			{
				$("#listLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">Có lỗi hệ thống, vui lòng kiểm tra lại!</i></div>').slideDown('slow');
			}
		});
	});
});
	function oklink(url){
		$('#link').val(url);
		$("#DownloadLink").slideUp();
	}
</script>
<script async src="https://cdn.jwplayer.com/libraries/rlx7bqvD.js"></script>
<?php
	require '../../template/footer.php';
?>

