<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="icon" type="image/png" sizes="32x32" href="https://hostedpage.coin2pay.io/assets/img/logo/logo-coin2pay_icon-light.png">
    <title>Deposit Coin2Pay</title>
    <link rel="stylesheet" href="https://hostedpage.coin2pay.io/assets/css/app.css?1234" type="text/css">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #e9ecef;
            padding: 0px;
        }
        .container {
            margin: 0 auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }
        label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: white;
        }

        .info-card {
            padding: 20px;
            margin-top: 30px;
            border: 1px solid #e2e6ea;
            border-radius: 5px;
            display: none;
        }
		input[type="text"] {
			text-align: center; 
			line-height: normal; 
			height: 40px; 
			font-size: 16px; 
		}
        .input-container {
            display: flex;
			
            align-items: center;
            margin-bottom: 10px;
        }
        input[type="text"] {
            padding: 10px;
            margin-right: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .copy-btn, .submit-btn {
            padding: 10px;
            cursor: pointer;
            background-color: #f4f4f4;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .copy-btn:hover, submit-btn:hover {
            background-color: #e2e2e2;
        }
    </style>
</head>

<body>


    <div class="splash-container" style="margin-top: 0px !important; max-width: 860px !important">
        <div class="card card-border-color card-border-color-primary">
            <div class="float-md-right" style="margin-right: 25px;">
                <br>
            </div>
            <div class="card-header" style="background-color: transparent;">
                <img src="https://hostedpage.coin2pay.io//assets/img/logo/logo-coin2pay_icon-light.png" width="150">
                <h3>Cryptocurrency Automatic Gateway<br>Fast, secure, and easy payments</h3>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label class="control-label font-weight-bold">Payment Steps:</label>
                    <div class="form-group remarks"> 
                        <span id="Label3">
                            1. Enter your amount <b>(Minimum: <font color='red'>$100</font>)</b>. <br> 
                            2. Select the cryptocurrency gateway you want to use.<br> 
                            3. Copy the wallet address provided or scan the QR code to make the payment. <br> 
                            4. Send the exact amount of cryptocurrency to the address provided. <br> 
                            5. After completing the transaction, click on "Submit Payment" to finalize the process. <br> 
                            6. Make sure your payment has been sent before clicking "Submit Payment" to avoid fake payment.<br> 
                        </span> 
                    </div>
                </div>

                <div class="form-group">
        <label class="control-label font-weight-bold" for="network">Select Gateway:</label>
        <select id="network" class="form-control">
            <option value="" selected="">--Select your Payment Gateway--</option>
            <option value="Bitcoin">Bitcoin</option>
            <option value="Ethereum">Ethereum</option>
            <option value="Tetherer">USDT/USDC</option>
            <option value="Tetherer20">USDT (TRC20)</option>
        </select>
			</div>
        <div class="info-card" id="content">
            <div class="input-container">
                <input type="text" readonly="" style="width: 49%;" value="">
                <button class="copy-btn" onclick="copyToClipboard(this)">Copy</button>
            </div>
        </div>
    </div>
	</div>
	</div>

    <script>
        document.getElementById('network').addEventListener('change', function() {
            const selectedValue = this.value;
            const contentDiv = document.getElementById('content');
            contentDiv.style.display = "block";
            
            switch (selectedValue) {
                case 'Bitcoin':
                    contentDiv.innerHTML = `

                        <div style="text-align: center;">
                            <label class="control-label font-weight-bold"> Bitcoin Address: </label>
                            <label class="control-label font-weight-bold"><center>Scan the QR code or copy the address to proceed with your payment.</label><br><br><br>
                            <img style="height: 200px;" src="https://www.bitcoinqrcodemaker.com/api/?style=bitcoin&address=3LqwFAZoRMQMzNt9c26wLRp6Wj63HwUmvR">
							<br><br>

                            <input class="form-control forml" type="text" readonly style="width: 100%;" value="3LqwFAZoRMQMzNt9c26wLRp6Wj63HwUmvR">
							<button class="btn btn-secondary mt-2" onclick="copyToClipboard(this)">Copy Address</button><br>
							<button class="btn btn-danger mt-4" onclick="confirmTransfer()" class="submit-btn" >Submit Payment</button></center>
                        </div>
						<div class="form-group remarks">
							<span> - Please transfer to the deposit address provided. Sending other currencies or tokens to this address may result in the loss of your deposit.<br>
								   - Depositing to the above address requires confirmation. It will be credited automatically after 3 confirmations.<br>
								   - Minimum deposit amount: $100. Any deposit less than the minimum will not be credited or refunded.
								   - You can leave or close this page after payment have made.</span>
						</div>

                    `;
                    break;

                case 'Ethereum':
                    contentDiv.innerHTML = `

                        <div style="text-align: center;">
                            <label class="control-label font-weight-bold"> Ethereum Address: </label>
                            <label class="control-label font-weight-bold"><center>Scan the QR code or copy the address to proceed with your payment.</label><br><br><br>
                            <img style="height: 200px;" src="https://www.bitcoinqrcodemaker.com/api/?style=ethereum&address&address=0x283f869a4de267c39f7efcec5b5b1766a5b8c59d">
							<br><br>

                            <input class="form-control forml" type="text" readonly style="width: 100%;" value="0x283f869a4de267c39f7efcec5b5b1766a5b8c59d">
							<button class="btn btn-secondary mt-2" onclick="copyToClipboard(this)">Copy Address</button><br>
							<button class="btn btn-danger mt-4" onclick="confirmTransfer()" class="submit-btn" >Submit Payment</button></center>
                        </div>
						<div class="form-group remarks">
							<span> - Please transfer to the deposit address provided. Sending other currencies or tokens to this address may result in the loss of your deposit.<br>
								   - Depositing to the above address requires confirmation. It will be credited automatically after 3 confirmations.<br>
								   - Minimum deposit amount: $100. Any deposit less than the minimum will not be credited or refunded.
								   - You can leave or close this page after payment have made.</span>
						</div>

                    `;
                    break;

                case 'Tetherer':
                    contentDiv.innerHTML = `

                        <div style="text-align: center;">
                            <label class="control-label font-weight-bold"> USDT/USDC Address: </label>
                            <label class="control-label font-weight-bold"><center>Scan the QR code or copy the address to proceed with your payment.</label><br><br><br>
                            <img style="height: 200px;" src="https://api.qrserver.com/v1/create-qr-code/?data=0x283f869a4de267c39f7efcec5b5b1766a5b8c59d">
							<br><br>

                            <input class="form-control forml" type="text" readonly style="width: 100%;" value="0x283f869a4de267c39f7efcec5b5b1766a5b8c59d">
							<button class="btn btn-secondary mt-2" onclick="copyToClipboard(this)">Copy Address</button><br>
							<button class="btn btn-danger mt-4" onclick="confirmTransfer()" class="submit-btn" >Submit Payment</button></center>
                        </div>
						<div class="form-group remarks">
							<span> - Please transfer to the deposit address provided. Sending other currencies or tokens to this address may result in the loss of your deposit.<br>
								   - Depositing to the above address requires confirmation. It will be credited automatically after 3 confirmations.<br>
								   - Minimum deposit amount: $100. Any deposit less than the minimum will not be credited or refunded.
								   - You can leave or close this page after payment have made.</span>
						</div>

                    `;
                    break;

                case 'Tetherer20':
                    contentDiv.innerHTML = `

                        <div style="text-align: center;">
                            <label class="control-label font-weight-bold"> USDT TRC20 Address: </label>
                            <label class="control-label font-weight-bold"><center>Scan the QR code or copy the address to proceed with your payment.</label><br><br><br>
                            <img style="height: 200px;" src="https://api.qrserver.com/v1/create-qr-code/?data=TUjZJFjKY57rEMQ95CvUWwRscRvZH27Jcg">
							<br><br>

                            <input class="form-control forml" type="text" readonly style="width: 100%;" value="TUjZJFjKY57rEMQ95CvUWwRscRvZH27Jcg">
							<button class="btn btn-secondary mt-2" onclick="copyToClipboard(this)">Copy Address</button><br>
							<button class="btn btn-danger mt-4" onclick="confirmTransfer()" class="submit-btn" >Submit Payment</button></center>
                        </div>
						<div class="form-group remarks">
							<span> - Please transfer to the deposit address provided. Sending other currencies or tokens to this address may result in the loss of your deposit.<br>
								   - Depositing to the above address requires confirmation. It will be credited automatically after 3 confirmations.<br>
								   - Minimum deposit amount: $100. Any deposit less than the minimum will not be credited or refunded.
								   - You can leave or close this page after payment have made.</span>
						</div>

                    `;
                    break;

                default:
                    contentDiv.style.display = "none";
                    break;
            }
        });

        function copyToClipboard(btn) {
            const input = btn.previousElementSibling;
            input.select();
            document.execCommand("copy");
			alert("Address copied");
			
        }

        window.onload = function() {
            document.getElementById('network').value = "";
        };
		function confirmTransfer() {
			alert("Payment submitted. Waiting for confirmation.");
			location.reload();
		}
    </script>
</body>
</html>
