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.
 
 
 
 

30 lines
878 B

  1. <?php
  2. $file = isset($_GET['level']) ? $_GET['level'] : null;
  3. $custom = 'false';
  4. $niveau = '1';
  5. if ($file !== null && file_exists(__DIR__ .'/custom/'.$file.'.js')){
  6. $custom = 'true';
  7. $niveau = $file;
  8. }
  9. ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <link rel="stylesheet" type="text/css" href="assets/css/index.css" />
  14. <link rel="stylesheet" type="text/css" href="assets/css/css3buttons.css" />
  15. <style>
  16. #board{width:300px;height:300px; margin:200px auto;background-color:#FFF;}
  17. #start{display:block;}
  18. </style>
  19. <script src="assets/js/jquery.min.js"></script>
  20. <script src="assets/js/jquery.color.js"></script>
  21. <script>
  22. let niveau = <?=$niveau?>;
  23. let custom = <?=$custom?>;
  24. </script>
  25. <script src="assets/js/load.js"></script>
  26. </head>
  27. <body>
  28. <noscript>javascript must be activated to play this game.</noscript>
  29. </body>
  30. </html>