
<html lang="id">
<head>
    <meta charset="UTF-8"></meta>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"></meta>
    <title>Proxy Provider Generator</title>
    <link href="https://cdn.jsdelivr.net/gh/theboncud/perpisahan@refs/heads/main/styles.css" rel="stylesheet"></link>
    <style>
    body {
        font-family: Arial, sans-serif;
        background-color: #f9f9f9; /* Abu-abu terang sebagai latar belakang */
        margin: 0;
        padding: 20px;
    }
    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
        background-color: #ffffff; /* Putih bersih */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    h1 {
        text-align: center;
        color: #e65100; /* Oranye gelap */
    }
    .input-section label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #424242; /* Abu-abu gelap */
    }
    .input-section textarea, .input-section input {
        width: 100%;
        padding: 10px;
        border: 1px solid #bdbdbd; /* Abu-abu medium */
        border-radius: 5px;
        background-color: #fafafa; /* Abu-abu sangat terang */
        color: #212121; /* Teks abu-abu gelap */
    }
    .generate-button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #ff7043; /* Oranye terang */
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-bottom: 10px;
        font-weight: bold;
    }
    .generate-button:hover {
        background-color: #d84315; /* Oranye gelap saat hover */
    }
    .toggle-button {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #1976d2; /* Biru tegas */
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-bottom: 10px;
        font-weight: bold;
        transition: background-color 0.3s, transform 0.2s;
    }
    .toggle-button:hover {
        background-color: #0d47a1; /* Biru lebih gelap saat hover */
        transform: scale(1.05); /* Sedikit efek pembesaran untuk menarik perhatian */
    }
    .output-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }
    .output-table th {
        background-color: #ff7043; /* Oranye terang untuk header */
        color: #ffffff;
        padding: 10px;
        text-align: left;
        border: 1px solid #bdbdbd;
    }
    .output-table td {
        padding: 10px;
        border: 1px solid #bdbdbd; /* Abu-abu medium */
    }
    .loader {
        border: 16px solid #f9f9f9; /* Warna latar belakang loader */
        border-radius: 50%;
        border-top: 16px solid #ff7043; /* Oranye terang */
        width: 60px;
        height: 60px;
        animation: spin 2s linear infinite;
        margin: 0 auto;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
</style>

</head>
<body>
    <div class="container">
        <h1>Proxy Provider Generator</h1>
        <div class="input-section">
            <label for="inputUrl">Input URL Akun Dibawah Ini:</label>
            <textarea id="inputUrl" placeholder="Masukan Link Akun Server" role="textbox"></textarea>
        </div>
        <div class="input-section">
            <label for="inputBug1">Input Beberapa Bug Untuk (Mode SNI / Wildcard dibagian server):</label>
            <textarea id="inputBug1" placeholder="Masukan minimal 1 bug.." role="textbox"></textarea>
        </div>
        <div class="input-section">
            <label for="inputBug2">Input Beberapa Bug Untuk (Mode CDN):</label>
            <textarea id="inputBug2" placeholder="Masukan minimal 1 bug.." role="textbox"></textarea>
        </div>
        <p><strong>Costum Proxy Provider</strong></p><br />
        <button class="toggle-button" onclick="toggleHostname()">Masukan Costum Hostname</button>
        <button class="toggle-button" onclick="togglePathHost()">Masukan Costum Path</button>
        <div id="hostnameFields" style="display: none;">
            <div class="input-section">
                <label for="hostname1">Hostname 1:</label>
                <input id="hostname1" placeholder="Masukan Wildcard.." type="text" />
            </div>
            <div class="input-section">
                <label for="hostname2">Hostname 2:</label>
                <input id="hostname2" placeholder="Masukan Wildcard.." type="text" />
            </div>
        </div>
        <div id="pathHostFields" style="display: none;">
            <div class="input-section">
                <label for="pathhost">Path Host:</label>
                <input id="pathhost" placeholder="Masukan Path Host" type="text" />
            </div>
        </div>
        <button class="generate-button" onclick="aksi()">Generate</button>
        <div class="loader" id="loader" style="display: none;"></div>
        <div class="output-section">
            <label>Informasi Akun:</label>
            <table class="output-table" id="outputResult">
            </table>
        </div>
        <div id="details"></div>
    </div>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/theboncud/perpisahan@refs/heads/main/script.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/theboncud/perpisahan@refs/heads/main/trojan.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/theboncud/perpisahan@refs/heads/main/vmess.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/theboncud/perpisahan@refs/heads/main/vless.js"></script>
    <script>
        function toggleHostname() {
            var hostnameFields = document.getElementById('hostnameFields');
            var toggleButton = document.querySelectorAll('.toggle-button')[0];
            if (hostnameFields.style.display === 'none') {
                hostnameFields.style.display = 'block';
                toggleButton.textContent = 'Tutup Costum Hostname';
            } else {
                hostnameFields.style.display = 'none';
                toggleButton.textContent = 'Masukan Costum Hostname';
            }
        }

        function togglePathHost() {
            var pathHostFields = document.getElementById('pathHostFields');
            var toggleButton = document.querySelectorAll('.toggle-button')[1];
            if (pathHostFields.style.display === 'none') {
                pathHostFields.style.display = 'block';
                toggleButton.textContent = 'Tutup Costum Path';
            } else {
                pathHostFields.style.display = 'none';
                toggleButton.textContent = 'Masukan Costum Path';
            }
        }
    </script>
</body>
</html>
