🎉 Hello world (finally)!
This commit is contained in:
30
index.php
Normal file
30
index.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
$file = isset($_GET['level']) ? $_GET['level'] : null;
|
||||
$custom = 'false';
|
||||
$niveau = '1';
|
||||
if ($file !== null && file_exists(__DIR__ .'/custom/'.$file.'.js')){
|
||||
$custom = 'true';
|
||||
$niveau = $file;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/index.css" />
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/css3buttons.css" />
|
||||
<style>
|
||||
#board{width:300px;height:300px; margin:200px auto;background-color:#FFF;}
|
||||
#start{display:block;}
|
||||
</style>
|
||||
<script src="assets/js/jquery.min.js"></script>
|
||||
<script src="assets/js/jquery.color.js"></script>
|
||||
<script>
|
||||
let niveau = <?=$niveau?>;
|
||||
let custom = <?=$custom?>;
|
||||
</script>
|
||||
<script src="assets/js/load.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>javascript must be activated to play this game.</noscript>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user