You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
760 B

2 years ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Roulette à eau</title>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<code>
<?php
2 years ago
$bdd = new SQlite3('bdd.db');
$query = $bdd -> query('SELECT * FROM Info');
2 years ago
$res = $query -> fetchArray();
2 years ago
var_dump($res);
2 years ago
?>
</code>
2 years ago
<canvas id="roulette"></canvas>
<script type="text/javascript">
var datalist= new Array(35, 25, 20, 12, 7, 1);
var colist = new Array('blue', 'red', 'green', 'orange', 'gray', 'yellow');
2 years ago
var canvas = document.getElementById("roulette");
2 years ago
var rendu = canvas.getContext('2d');
2 years ago
draw_roulette(rendu, canvas.width, canvas.height, datalist);
2 years ago
</script>
2 years ago
</body>
</html>
2 years ago