2024-09-01 02:30:44 +00:00
|
|
|
@()
|
|
|
|
|
|
|
|
@main("Arkanoid Game") {
|
2024-09-01 17:15:10 +00:00
|
|
|
|
2024-09-01 17:28:25 +00:00
|
|
|
<div id="mobileMessage" style="display: none; width: 100%; height: 100vh; flex-direction: column; justify-content: center; align-items: center;">
|
|
|
|
<p style="width: 80%; max-width: 80vw;"><img src="/assets/images/image-casse-briques-mobile.png" alt="Capture d'écran du jeu casse-briques DéconstruIT" style="width: 100%; height: auto;"/></p>
|
|
|
|
<p style="text-align: center; padding: 20px;">Le jeu de casse-briques DéconstruIT est disponible sur ordinateur seulement pour l'instant</p>
|
2024-09-01 16:57:09 +00:00
|
|
|
</div>
|
2024-09-01 17:15:10 +00:00
|
|
|
|
2024-09-01 17:39:49 +00:00
|
|
|
<div id="gameContainer" style="display: none;text-align:center; justify-content: center; align-items: center;">
|
2024-09-01 17:15:10 +00:00
|
|
|
<canvas id="gameCanvas" width="540" height="675"></canvas>
|
|
|
|
</div>
|
|
|
|
|
2024-09-01 16:57:09 +00:00
|
|
|
<script src="@routes.Assets.versioned("javascripts/device-detection.js")"></script>
|
2024-09-01 17:15:10 +00:00
|
|
|
<script>
|
|
|
|
if (!isMobileDevice()) {
|
|
|
|
var script = document.createElement('script');
|
|
|
|
script.src = '@routes.Assets.versioned("javascripts/game.js")';
|
|
|
|
document.body.appendChild(script);
|
|
|
|
}
|
|
|
|
</script>
|
2024-09-01 02:30:44 +00:00
|
|
|
}
|