
<!DOCTYPE html>
<html lang="en">

<!-- Mirrored from diuwinvippredictor.top/wingo30.html by HTTrack Website Copier/3.x [XR&CO'2017], Wed, 04 Dec 2024 12:17:33 GMT -->
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Diuwin Prediction</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background: url('') no-repeat center center fixed;
            background-size: cover;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            font-variant: small-caps;
            flex-direction: column;
        }
        .prediction-container {
            text-align: center;
            position: absolute;
            top: 10px;
            left: 32px;
            width: 85%;
            transition: transform 0.3s ease;
        }
        .prediction-container:hover {
            transform: scale(1.02);
        }
        h1 {
            font-size: 28px;
            color: #4b4b6a;
            margin-bottom: 20px;
        }
        .game-info {
            margin: 20px 0;
            font-weight: bold;
            color: #4b4b6a;
            font-size: 18px;
        }
        .divider {
            margin: 25px 0;
            border-bottom: 1px solid #ddd;
        }
        .prediction {
            font-size: 20px;
            color: #333;
            margin: 10px 0;
        }
        .prediction span {
            display: inline-block;
            font-weight: bold;
            color: #4b4b6a;
            font-size: 22px;
        }
        .button-container {
            margin-top: 30px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        button, .kwg-button, .telegram-button {
            padding: 12px 30px;
            border: none;
            color: #fff;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s, transform 0.2s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            text-decoration: none;
        }
        .kwg-button {
            background-color: #ff0000; /* Register button color */
        }
        .telegram-button {
            background-color: #0000ff; /* Telegram button color */
        }
        button:hover, .kwg-button:hover, .telegram-button:hover {
            transform: translateY(-3px);
        }
        .kwg-button:hover {
            background-color: #3a5a7b;
        }
        .telegram-button:hover {
            background-color: #0077b5;
        }
        .timer {
            font-size: 18px; /* Reduced font-size */
            font-weight: bold;
            color: #fff;
            background-color: #4b4b6a;
            padding: 8px 16px;
            border-radius: 10px;
            text-align: center;
            margin-top: 10px;
        }
        .history {
            margin-top: 20px;
            font-size: 16px;
            color: #333;
            text-align: left;
            max-height: 200px;
            overflow-y: auto;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 10px;
            background-color: rgba(255, 255, 255, 0.8);
        }
    </style>
</head>
<body>

<div class="prediction-container">
    <h1> 🤑 55CLUB Prediction </h1>

    <div class="game-info">
        🕹 Game: Wingo 30 Seconds <br>
        📟 Period Number: <span id="period-number"></span>
    </div>

    <div class="timer" id="countdown-timer">Time Remaining :- 30</div> <!-- Timer set to 30 seconds -->

    <div class="divider"></div>

    <div class="prediction">
        🎰 Colour: <span id="prediction-color"></span><br>
        🗃 Size: <span id="prediction-size"></span><br>
        🔘 Number: <span id="prediction-number"></span>
    </div>

    <div class="divider"></div>

    <div class="button-container">
        <a href="../external.html?link=https://t.me/TradeGenius07" class="kwg-button">Register 55CLUB Win</a>
        <a href="../external.html?link=https://t.me/TradeGenius07" class="telegram-button">Join Telegram</a> <!-- Add Telegram button -->
    </div>

    <div class="history" id="prediction-history">
        <h4>Prediction History</h4>
        <!-- Predictions will be added here dynamically -->
    </div>
</div>

<script>
    const colorOptions = ["🔴 Red", "🟢 Green", "🟣 Violet"];
    const sizeOptions = ["🟡 Big", "🔵 Small"];
    const redNumbers = ["2", "4", "6", "8"];
    const greenNumbers = ["1", "3", "7", "9"];
    const violetNumbers = ["0", "5"];
    
    let predictionHistory = [];

    function updateTimer() {
        const currentTime = new Date().toISOString(); // GMT time
        const currentSeconds = new Date(currentTime).getSeconds();

        // Calculate remaining time to the next 30-second period
        if (currentSeconds % 30 === 0) {
            generatePrediction();
        }

        const countdown = 30 - (currentSeconds % 30);
        document.getElementById("countdown-timer").innerText = `Time Remaining :- ${countdown}`;
    }

    setInterval(updateTimer, 1000); // Update every second

    function getRandomColor() {
        let rand = Math.random();
        if (rand < 0.4) return colorOptions[0];
        else if (rand < 0.7) return colorOptions[1];
        else return colorOptions[2];
    }

    function getRandomSize() {
        return Math.random() < 0.5 ? sizeOptions[0] : sizeOptions[1];
    }

    function generatePrediction() {
        const currentTime = new Date().toISOString(); // GMT time
        const hours = new Date(currentTime).getUTCHours();
        const minutes = new Date(currentTime).getUTCMinutes();
        const seconds = new Date(currentTime).getUTCSeconds();

        const totalSeconds = (hours * 3600) + (minutes * 60) + seconds;

        const periodNumber = Math.floor(totalSeconds / 30) + 1;

        const predictionColor = getRandomColor();
        const predictionSize = getRandomSize();

        let predictionNumber;
        if (predictionColor === colorOptions[2]) {
            predictionNumber = predictionSize === sizeOptions[1] ? violetNumbers[0] : violetNumbers[1];
        } else if (predictionColor === colorOptions[0]) {
            predictionNumber = predictionSize === sizeOptions[1] ? redNumbers.slice(0, 2) : redNumbers.slice(2, 4);
        } else {
            predictionNumber = predictionSize === sizeOptions[1] ? greenNumbers.slice(0, 2) : greenNumbers.slice(2, 4);
        }

        if (Array.isArray(predictionNumber)) {
            predictionNumber = predictionNumber[Math.floor(Math.random() * predictionNumber.length)];
        }

        document.getElementById("period-number").innerText = periodNumber;
        document.getElementById("prediction-color").innerText = predictionColor;
        document.getElementById("prediction-size").innerText = predictionSize;
        document.getElementById("prediction-number").innerText = predictionNumber;

        const predictionResult = `Period ${periodNumber}: ${predictionColor}, ${predictionSize}, ${predictionNumber}`;
        predictionHistory.unshift(predictionResult);

        if (predictionHistory.length > 10) {
            predictionHistory.pop();
        }

        updateHistoryDisplay();
    }

    function updateHistoryDisplay() {
        const historyContainer = document.getElementById("prediction-history");
        historyContainer.innerHTML = "<h4>Prediction History 👇</h4>";
        predictionHistory.forEach(result => {
            const div = document.createElement("div");
            div.innerText = result;
            historyContainer.appendChild(div);
        });
    }

    window.onload = generatePrediction;
</script>

</body>

<!-- Mirrored from diuwinvippredictor.top/wingo30.html by HTTrack Website Copier/3.x [XR&CO'2017], Wed, 04 Dec 2024 12:17:33 GMT -->
</html>
