-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.php
39 lines (34 loc) · 1.43 KB
/
player.php
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
<?php
$number=$_GET['number'];
$host=$_GET['host'];
$port=$_GET['port'];
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<title>PONG - Player<?php echo $number ?></title>
<link rel="manifest" href="/contents/data/manifest.json">
<link rel="stylesheet" href="/contents/styles/style.css" />
<link rel="stylesheet" href="/contents/styles/player.css" />
<script type="text/javascript" src="/contents/javascript/jquery.min.js"></script>
<script type="text/javascript" src="/contents/javascript/socket.io.js"></script>
<script type="text/javascript" src="/contents/javascript/zingtouch-master/dist/zingtouch.js"></script>
<script type="text/javascript" src="/contents/javascript/player.min.js"></script>
<script>
var socket = io('http://<?php echo $host ?>:<?php echo $port ?>');
var number = <?php echo $number ?>;
</script>
</head>
<body>
<div id="surface" class="player<?php echo $number ?> non-select">
<h1 id="name">player <?php echo $number ?></h1>
<h2 id="points">0 - 0</h2>
<div id="messages"></div>
<div id="profile-image"></div>
</div>
<script type="text/javascript" src="/contents/javascript/fb.login.min.js"></script>
</body>
</html>