57 lines
2 KiB
PHP
57 lines
2 KiB
PHP
<?php $cache = date('dmyHis'); ?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta charset="UTF-8">
|
|
<title>Le père noël secret</title>
|
|
<link rel="stylesheet" href="/assets/css/app.css?v=<?php echo $cache; ?>">
|
|
</head>
|
|
<body>
|
|
<div id="particles-js"></div>
|
|
|
|
<div id="content-wrapper">
|
|
<div id="content">
|
|
<div class="center">
|
|
<img src="/assets/img/le-pere-noel-secret.svg" width="500px">
|
|
</div>
|
|
|
|
<?php if ($_['canPlay']): ?>
|
|
<div class="center">
|
|
<div id="player">
|
|
À ton tour, <?php echo $_['player']; ?> !
|
|
</div>
|
|
</div>
|
|
|
|
<div class="center">
|
|
<div id="balls">
|
|
<a href="/?p=<?php echo $_['hash'] ?>&go=1">
|
|
<img src="assets/img/pot.png">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!$_['canPlay'] && $_['player'] !== null): ?>
|
|
<div class="center">
|
|
<div id="player">
|
|
La personne à qui tu dois offrir un cadeau est <?php echo $_['result']; ?> !<br>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($_['player'] === null): ?>
|
|
<div class="center">
|
|
<div id="player">
|
|
Oops, il y un bug dans la matrice !
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/assets/js/particles.js?v=<?php echo $cache; ?>"></script>
|
|
<script src="/assets/js/app.js?v=<?php echo $cache; ?>"></script>
|
|
</body>
|
|
</html>
|