forked from phaserjs/phaser-ce-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetcode.php
More file actions
52 lines (46 loc) · 1.42 KB
/
Copy pathgetcode.php
File metadata and controls
52 lines (46 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
$v = "2.6.2";
if (isset($_GET['v']))
{
$v = $_GET['v'];
}
if ($_SERVER['SERVER_ADDR'] === '192.168.0.100')
{
$embedJS = "embed-local.js";
}
else
{
$embedJS = "embed.js";
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Phaser Example Runner</title>
<meta name="viewport" content="initial-scale=1 maximum-scale=1 user-scalable=0 minimal-ui" />
<script src="_site/js/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="_site/phaser/phaser.<?php echo $v ?>.min.js" type="text/javascript"></script>
<script src="_site/phaser/blob.js" type="text/javascript"></script>
<script src="_site/phaser/canvas-to-blob.js" type="text/javascript"></script>
<script src="_site/phaser/filesaver.js" type="text/javascript"></script>
<script src="_site/phaser/<?php echo $embedJS ?>" type="text/javascript"></script>
<style>
body {
margin: 0px;
padding: 0px;
font-family: Arial;
font-size: 14px;
background-color: #000000;
color: #fff;
}
</style>
</head>
<body>
<div id="phaser-example"></div>
<script type="text/javascript">
var IDE_HOOK = true;
var VERSION = '<?php echo $v ?>';
</script>
</body>
</html>