<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
	$key = 'Tool Get Link Download MP3 Mixcloud';
	$mkey = 'This downloader allows you to download  an MP3 fast from Mixcloud. Enter the Mixcloud URL into the following form to begin directly to download.';
	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">Tool Get Link Mixcloud</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ừ MixCloud. Sao chép URL MixCloud bạn đang nghe vào bộ chuyển đổi ấn get link để tải về các tập tin MP3.</div>
            <div class="menu">
                <strong>Link hỗ trợ:</strong><br />
                https://www.mixcloud.com/jesse-yu/i-need-your-lovedear-boyapollobeautiful-lifecalling-lose-my-mind/<br />
                <form role="form" class="form-horizontal" id="form" method="post" onSubmit="return false;">
                    <input type="text" name="link" id="mixcloud" placeholder="https://www.mixcloud.com/jesse-yu/i-need-your-lovedear-boyapollobeautiful-lifecalling-lose-my-mind/">
                    <input type="submit" id="submit" value="Lấy Direct Link" name="submit" />
                </form>
            </div>
            <div id="DirectLink"></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');
        $("#DirectLink").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: "api.php",
            type: "POST",
            data:  formData,
            contentType: false,
            cache: false,
            processData:false,
            success: function(rs)
            {
                res = JSON.parse(rs);
                if(res.success){
                    $("#submit").removeClass('disabled');
                    $("#DirectLink").hide().html(res.success).slideDown('slow');
                }
                if(res.error){
                    $("#submit").removeClass('disabled');
                    $("#DirectLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">'+res.error+'</i></div>').slideDown('slow');
                }
            },
            error: function() 
            {
                $("#DirectLink").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');
            }
        });
        $("#mixcloud").attr("placeholder", $("#mixcloud").val()).val("");
    });
});

</script>

<?php
    require '../../template/footer.php';
?>
