Browse Source

version 0.0.2

tmp/e6f6c71d6064de405720a96f68b83fb2/head
frtk 5 years ago
parent
commit
94d6690ea2
5 changed files with 70 additions and 4 deletions
  1. +26
    -0
      client/css/main.css
  2. +28
    -0
      client/index.html
  3. +4
    -0
      client/src/jquery-2.1.3.min.js
  4. +2
    -2
      nodePong.js
  5. +10
    -2
      version.md

+ 26
- 0
client/css/main.css View 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
- 0
client/index.html View 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
- 0
client/src/jquery-2.1.3.min.js
File diff suppressed because it is too large
View File


+ 2
- 2
nodePong.js View File

@ -29,8 +29,8 @@ serverMsg("$ # starting http service on port " + servP.params.port);
var app = express();
var httpserv = http.createServer(app);
httpserv.listen(servP.params.port);
//--- allow access to static files from "/public" directory
app.use(express.static(__dirname + '/public/'));
//--- allow access to static files from "/client" directory
app.use(express.static(__dirname + '/client/'));
//--- socket.io
serverMsg('$ # registering socket.io service on port ' + servP.params.port);


+ 10
- 2
version.md View File

@ -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:**
- created package directories structure
- added package directories structure
- "public":
- index.html (main html file)
@ -16,5 +23,6 @@
- "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…
Cancel
Save