forked from phaserjs/phaser-ce-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.php
More file actions
59 lines (52 loc) · 1.56 KB
/
Copy pathembed.php
File metadata and controls
59 lines (52 loc) · 1.56 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
53
54
55
56
57
58
59
<?php
$v = "2.4.3";
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 = false;
<?php
if (isset($_GET['f']))
{
$src = file_get_contents($_GET['f']);
echo $src;
}
?>
</script>
</body>
</html>