Calculator Tools Calculator Tools
Create

Roulette Game - Spin and Win!

Jul 15, 2026

About this app

Experience the thrill of Roulette! Spin the wheel, place your bets, and see if luck is on your side. Join the fun now!

Roulette Game - Spin and Win! Spin the Wheel

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Roulette Game - Spin and Win!</title>
<meta name="description" content="Experience the thrill of Roulette! Spin the wheel, place your bets, and see if luck is on your side. Join the fun now!">
<meta name="keywords" content="Roulette, Casino, Gambling, Spin, Bets, Luck, Fun Game">

<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">

<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const API_URL = 'https://pxoki81qhmq.xoki81qhmq.com/roulette/?table_id=221000&game_id=3&identifier=104370110488be0e-ab21-4aa6-a182-63efae9d4db1&token=0488be0e-ab21-4aa6-a182-63efae9d4db1&limit_id=&operatorId=10437011';

// Fetching game data
async function fetchGameData() {
const response = await fetch(API_URL);
const data = await response.json();
updateUI(data);
}

function updateUI(data) {
$('#game-info').html(`
<h2>${data.game.title}</h2>
<p>Welcome to Roulette! Current round: ${data.roundStatus}</p>
`);
updateWheel(data.wheel);
}

function updateWheel(wheel) {
let wheelHTML = '<div class="wheel">';
wheel.forEach(segment => {
wheelHTML += `<div class="segment" data-value="${segment.value}">${segment.label}</div>`;
});
wheelHTML += '</div>';
$('#wheel-container').html(wheelHTML);
}

fetchGameData();

$('#spin-button').on('click', function() {
spinWheel();
});

function spinWheel() {
$('#wheel-container').addClass('spinning');
setTimeout(() => {
$('#wheel-container').removeClass('spinning');
}, 3000);
}
});
} catch (error) {
throw error;
}
</script>

<style>
body {
background: linear-gradient(to right, #4e54c8, #8f94fb);
color: white;
}
#main-container {
text-align: center;
padding: 50px;
}
.wheel {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 30px 0;
}
.segment {
background: #ff4757;
border: 1px solid #fff;
border-radius: 50%;
padding: 20px;
margin: 5px;
transition: transform 0.5s;
flex: 0 0 calc(20% - 10px);
}
.spinning .segment {
transform: rotate(360deg);
}
#spin-button {
background: #1e90ff;
border: none;
color: white;
padding: 15px 30px;
font-size: 18px;
cursor: pointer;
}
#spin-button:hover {
background: #3742fa;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div id="game-info"></div>
<div id="wheel-container"></div>
<button id="spin-button">Spin the Wheel</button>
</div>
</body>
</html>