OneCompiler

Cyber_Tech_Wingo Sureshot

2665
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cybertech Wingo Prediction</title> <style> body { font-family: Arial, sans-serif; background-color: #f0f0f0; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 20px; }
    .menu-container {
        text-align: center;
        margin: 20px 0;
    }
    
    .menu-item {
        display: block;
        margin: 10px auto;
        padding: 12px 25px;
        width: 200px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }
    
    .menu-item:hover {
        background-color: #0056b3;
    }
    
    .platform-section, .wingo-section {
        display: none;
        text-align: center;
    }
    
    .period-input {
        margin: 20px 0;
        padding: 10px;
        width: 200px;
        text-align: center;
    }
    
    .prediction-options {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 20px 0;
    }
    
    .prediction-option {
        padding: 10px 20px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .result-display {
        margin: 20px auto;
        padding: 15px;
        width: 300px;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    table {
        margin: 20px auto;
        border-collapse: collapse;
        width: 80%;
    }
    
    th, td {
        padding: 12px;
        border: 1px solid #ddd;
        text-align: center;
    }
    
    th {
        background-color: #007bff;
        color: white;
    }
</style>
</head> <body> <!-- Main Menu --> <div class="menu-container" id="mainMenu"> <h1>Cybertech Wingo Prediction</h1> <button class="menu-item" onclick="showPlatforms('color')">1. Color Prediction</button> <button class="menu-item" onclick="showPlatforms('size')">2. Size Prediction</button> <button class="menu-item" onclick="showPlatforms('number')">3. Number Prediction</button> </div>
<!-- Platforms Menu -->
<div class="menu-container platform-section" id="platformMenu">
    <h2>Select Platform</h2>
    <button class="menu-item" onclick="showWingoSection()">1. 91 Club</button>
    <button class="menu-item" onclick="showWingoSection()">2. 55 Club</button>
    <button class="menu-item" onclick="showWingoSection()">3. OkWin</button>
    <button class="menu-item" onclick="showWingoSection()">4. BDG Win</button>
    <button class="menu-item" onclick="showWingoSection()">5. TC Lottery</button>
    <button class="menu-item" onclick="showWingoSection()">6. Bharat Club</button>
    <button class="menu-item" onclick="showWingoSection()">7. 66 Lottery</button>
    <button class="menu-item" onclick="showWingoSection()">8. Diuwin</button>
    <button class="menu-item" onclick="showWingoSection()">9. BIG Mumbai</button>
</div>

<!-- Wingo 30sec Section -->
<div class="wingo-section" id="wingoSection">
    <h2>Wingo 30sec</h2>
    <div class="period-input">
        <input type="number" id="periodNumber" 
               placeholder="Enter Period Number" 
               style="padding: 8px; width: 200px;">
    </div>
    
    <div class="prediction-options">
        <button class="prediction-option" onclick="predict('number')">Number</button>
        <button class="prediction-option" onclick="predict('size')">Size</button>
        <button class="prediction-option" onclick="predict('color')">Color</button>
    </div>

    <div class="result-display" id="result">
        <!-- Prediction results will be displayed here -->
    </div>

    <table>
        <thead>
            <tr>
                <th>Period</th>
                <th>Number</th>
                <th>Color</th>
                <th>Size</th>
                <th>Result</th>
            </tr>
        </thead>
        <tbody id="historyTable">
            <!-- History rows will be added here -->
        </tbody>
    </table>
</div>

<script>
    let predictionHistory = [];

    function showPlatforms(type) {
        document.getElementById('mainMenu').style.display = 'none';
        document.getElementById('platformMenu').style.display = 'block';
    }

    function showWingoSection() {
        document.getElementById('platformMenu').style.display = 'none';
        document.getElementById('wingoSection').style.display = 'block';
    }

    function predict(type) {
        const period = document.getElementById('periodNumber').value;
        const resultDiv = document.getElementById('result');
        
        // Sample prediction logic
        const result = Math.floor(Math.random() * 10);
        const color = result <= 3 ? 'Red' : result <= 6 ? 'Green' : 'Violet';
        const size = result > 7 || result < 3 ? 'BIG' : 'SMALL';

        // Display results
        resultDiv.innerHTML = `
            <h3>Prediction Result</h3>
            <p>Period: ${period}</p>
            ${type === 'number' ? <p>Number: ${result}</p> : ''}
            ${type === 'color' ? <p style="color: ${color.toLowerCase()}">Color: ${color}</p> : ''}
            ${type === 'size' ? <p>Size: ${size}</p> : ''}
        `;

        // Add to history
        predictionHistory.unshift({
            period: period,
            number: result,
            color: color,
            size: size,
            result: 'Win'  // Simplified result
        });

        // Update history table
        updateHistory();
    }

    function updateHistory() {
        const tbody = document.getElementById('historyTable');
        tbody.innerHTML = predictionHistory.slice(0, 10).map(entry => `
            <tr>
                <td>${entry.period}</td>
                <td>${entry.number}</td>
                <td style="color: ${entry.color.toLowerCase()}">${entry.color}</td>
                <td>${entry.size}</td>
                <td>${entry.result}</td>
            </tr>
        `).join('');
    }
</script>
</body> </html>