Browse code

Merge branch 'master' of git.tetalab.org:frtk/nodePong

frtk authored on 12/02/2016 23:43:07
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-/**
2
- * @file server_params.js
3
- * @author frtk                                                                                 
4
- */
5
-
6
-
7
-
8
-/**
9
- *
10
- * server parameters
11
- *
12
- */
13
-var params = {
14
-  port: 8042,
15
-}
16
-
17
-
18
-/**
19
- *
20
- * EXPORT
21
- *
22
- */
23
-if (typeof exports !== "undefined") {
24
-    exports.params = params;
25
-}
26 1
deleted file mode 100644
... ...
@@ -1,58 +0,0 @@
1
-/**
2
- * @file server_utils.js
3
- * @author frtk
4
- */
5
-
6
-
7
-/**
8
- * lib     : DateLib
9
- * purpose : date utils
10
- */
11
-var datelib = {
12
-
13
-  //--- dateToString
14
-  dateToString: function(date) {
15
-    var self = this;
16
-    return '[' + self.addZero(date.getHours(), 'h') + ':' 
17
-             + self.addZero(date.getMinutes(), 'm') + ':' 
18
-             + self.addZero(date.getSeconds(), 's') + ':' 
19
-             + self.addZero(date.getMilliseconds(), 'ms') + ']';
20
-  },
21
-
22
-  //--- addZero
23
-  addZero: function(value, type) {
24
-    switch(type) {
25
-      case 'h':
26
-      case 'm':
27
-      case 's':
28
-        if (value < 10) value = '0' + value;
29
-        break;
30
-      case 'ms':
31
-	if (value < 10) value = '00' + value;
32
-	else if (value >= 10 && value < 100) value = '0' + value;
33
-	break;
34
-      default:
35
-        break;			
36
-    };
37
-    return value;
38
-  },
39
-  
40
-  //--- return new date string
41
-  newDateToString: function() {
42
-    var self = this;  
43
-    return self.dateToString(new Date());
44
-  }
45
-
46
-};
47
-
48
-
49
-
50
-/**
51
- *
52
- * EXPORTS
53
- *
54
- */
55
-if (typeof exports !== "undefined") {
56
-  //--- Objects	
57
-  exports.datelib = datelib;	
58
-}