diff --git a/app/views/game.scala.html b/app/views/game.scala.html index c56f1e8..08d5d2d 100644 --- a/app/views/game.scala.html +++ b/app/views/game.scala.html @@ -1,13 +1,22 @@ @() @main("Arkanoid Game") { -
- -
+ + +
+ +
+ - + } \ No newline at end of file diff --git a/public/javascripts/device-detection.js b/public/javascripts/device-detection.js index a6dbcd7..8788d4a 100644 --- a/public/javascripts/device-detection.js +++ b/public/javascripts/device-detection.js @@ -17,8 +17,11 @@ function checkDeviceType() { } } +// Make isMobileDevice function globally accessible +window.isMobileDevice = isMobileDevice; + // Run the check when the page loads window.addEventListener('load', checkDeviceType); // Also run the check if the window is resized (in case of device rotation) -window.addEventListener('resize', checkDeviceType); +window.addEventListener('resize', checkDeviceType); \ No newline at end of file