version 0.0.2
This commit is contained in:
parent
3a1864202b
commit
94d6690ea2
26
client/css/main.css
Normal file
26
client/css/main.css
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
body {
|
||||||
|
background-color: black;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Very damaged", Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main {
|
||||||
|
margin-top: 20px;
|
||||||
|
background-color: rgba(0, 0, 0, 1);
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pong {
|
||||||
|
border: 1px solid rgba(255, 255, 255, 1);
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
28
client/index.html
Normal file
28
client/index.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>nodePong - v0.0.1</title>
|
||||||
|
<link rel="stylesheet" type="text/css" media="all" href="./css/main.css">
|
||||||
|
<script type="text/javascript" src="http://127.0.0.1:8042/socket.io/socket.io.js"></script>
|
||||||
|
<script type="text/javascript" src="./src/jquery-2.1.3.min.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="main">
|
||||||
|
<canvas id="pong" width="800" height="500">
|
||||||
|
</canvas>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
//GT4UI.SocketClient.connectSocket();
|
||||||
|
//GT4UI.Status.init("status");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
4
client/src/jquery-2.1.3.min.js
vendored
Normal file
4
client/src/jquery-2.1.3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -29,8 +29,8 @@ serverMsg("$ # starting http service on port " + servP.params.port);
|
|||||||
var app = express();
|
var app = express();
|
||||||
var httpserv = http.createServer(app);
|
var httpserv = http.createServer(app);
|
||||||
httpserv.listen(servP.params.port);
|
httpserv.listen(servP.params.port);
|
||||||
//--- allow access to static files from "/public" directory
|
//--- allow access to static files from "/client" directory
|
||||||
app.use(express.static(__dirname + '/public/'));
|
app.use(express.static(__dirname + '/client/'));
|
||||||
|
|
||||||
//--- socket.io
|
//--- socket.io
|
||||||
serverMsg('$ # registering socket.io service on port ' + servP.params.port);
|
serverMsg('$ # registering socket.io service on port ' + servP.params.port);
|
||||||
|
12
version.md
12
version.md
@ -1,7 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
### **v0.0.2:**
|
||||||
|
- moved "ui" dir to "public" dir
|
||||||
|
- renamed "public" to "client"
|
||||||
|
- updated nodePong.js with new directory name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### **v0.0.1:**
|
### **v0.0.1:**
|
||||||
- created package directories structure
|
- added package directories structure
|
||||||
|
|
||||||
- "public":
|
- "public":
|
||||||
- index.html (main html file)
|
- index.html (main html file)
|
||||||
@ -16,5 +23,6 @@
|
|||||||
|
|
||||||
- "ui": (empty, and will become a "public" subdir)
|
- "ui": (empty, and will become a "public" subdir)
|
||||||
|
|
||||||
|
- added info files README.md, version.md, package.json and LICENSE
|
||||||
|
|
||||||
-
|
- added nodejs application 'nodePong.js'
|
Loading…
Reference in New Issue
Block a user