Fixed missing space for "performing dns lookups" removed users route from app.js
This commit is contained in:
parent
8948cd9e49
commit
6c0bf2ada3
10
app.js
10
app.js
@ -3,11 +3,10 @@
|
|||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var express = require('express');
|
var express = require('express'),
|
||||||
var routes = require('./routes');
|
routes = require('./routes'),
|
||||||
var user = require('./routes/user');
|
http = require('http'),
|
||||||
var http = require('http');
|
path = require('path');
|
||||||
var path = require('path');
|
|
||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
@ -28,7 +27,6 @@ if ('development' == app.get('env')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.get('/', routes.index);
|
app.get('/', routes.index);
|
||||||
app.get('/users', user.list);
|
|
||||||
|
|
||||||
http.createServer(app).listen(app.get('port'), function(){
|
http.createServer(app).listen(app.get('port'), function(){
|
||||||
console.log('Express server listening on port ' + app.get('port'));
|
console.log('Express server listening on port ' + app.get('port'));
|
||||||
|
@ -11,7 +11,7 @@ canvasBars.width = window.innerWidth/3;
|
|||||||
canvasBars.height = canvas.height;
|
canvasBars.height = canvas.height;
|
||||||
|
|
||||||
outputConsole.style.height = (window.innerHeight / 3) * 2 + 'px';
|
outputConsole.style.height = (window.innerHeight / 3) * 2 + 'px';
|
||||||
outputConsole.style.top = window.innerHeight / 3 + 'px'
|
outputConsole.style.top = window.innerHeight / 3 + 'px';
|
||||||
|
|
||||||
|
|
||||||
/* Graphics stuff */
|
/* Graphics stuff */
|
||||||
@ -53,7 +53,7 @@ Square.prototype.update = function () {
|
|||||||
}
|
}
|
||||||
this.points[p].map2D();
|
this.points[p].map2D();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
Square.prototype.render = function () {
|
Square.prototype.render = function () {
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
@ -93,7 +93,7 @@ Point.prototype.rotateZ = function (angleZ) {
|
|||||||
|
|
||||||
this.x = x1;
|
this.x = x1;
|
||||||
this.y = y1;
|
this.y = y1;
|
||||||
}
|
};
|
||||||
|
|
||||||
Point.prototype.map2D = function () {
|
Point.prototype.map2D = function () {
|
||||||
var scaleX = focal / (focal + this.z + this.cZ),
|
var scaleX = focal / (focal + this.z + this.cZ),
|
||||||
@ -119,36 +119,41 @@ for (var i = 0; i < 15; i++) {
|
|||||||
ctx.strokeStyle = ctxBars.strokeStyle = ctxBars.fillStyle = '#00FF00';
|
ctx.strokeStyle = ctxBars.strokeStyle = ctxBars.fillStyle = '#00FF00';
|
||||||
|
|
||||||
/* fake console stuff */
|
/* fake console stuff */
|
||||||
var commandStart = ['Performing DNS Lookups for',
|
var commandStart = [
|
||||||
'Searching ',
|
'Performing DNS Lookups for ',
|
||||||
'Analyzing ',
|
'Searching ',
|
||||||
'Estimating Approximate Location of ',
|
'Analyzing ',
|
||||||
'Compressing ',
|
'Estimating Approximate Location of ',
|
||||||
'Requesting Authorization From : ',
|
'Compressing ',
|
||||||
'wget -a -t ',
|
'Requesting Authorization From : ',
|
||||||
'tar -xzf ',
|
'wget -a -t ',
|
||||||
'Entering Location ',
|
'tar -xzf ',
|
||||||
'Compilation Started of ',
|
'Entering Location ',
|
||||||
'Downloading '],
|
'Compilation Started of ',
|
||||||
commandParts = ['Data Structure',
|
'Downloading '
|
||||||
'http://wwjd.com?au&2',
|
],
|
||||||
'Texture',
|
commandParts = [
|
||||||
'TPS Reports',
|
'Data Structure',
|
||||||
' .... Searching ... ',
|
'http://wwjd.com?au&2',
|
||||||
'http://zanb.se/?23&88&far=2',
|
'Texture',
|
||||||
'http://ab.ret45-33/?timing=1ww'],
|
'TPS Reports',
|
||||||
commandResponses = ['Authorizing ',
|
' .... Searching ... ',
|
||||||
'Authorized...',
|
'http://zanb.se/?23&88&far=2',
|
||||||
'Access Granted..',
|
'http://ab.ret45-33/?timing=1ww'
|
||||||
'Going Deeper....',
|
],
|
||||||
'Compression Complete.',
|
commandResponses = [
|
||||||
'Compilation of Data Structures Complete..',
|
'Authorizing ',
|
||||||
'Entering Security Console...',
|
'Authorized...',
|
||||||
'Encryption Unsuccesful Attempting Retry...',
|
'Access Granted..',
|
||||||
'Waiting for response...',
|
'Going Deeper....',
|
||||||
'....Searching...',
|
'Compression Complete.',
|
||||||
'Calculating Space Requirements '
|
'Compilation of Data Structures Complete..',
|
||||||
],
|
'Entering Security Console...',
|
||||||
|
'Encryption Unsuccesful Attempting Retry...',
|
||||||
|
'Waiting for response...',
|
||||||
|
'....Searching...',
|
||||||
|
'Calculating Space Requirements '
|
||||||
|
],
|
||||||
isProcessing = false,
|
isProcessing = false,
|
||||||
processTime = 0,
|
processTime = 0,
|
||||||
lastProcess = 0;
|
lastProcess = 0;
|
||||||
@ -174,7 +179,7 @@ function render() {
|
|||||||
for(i = 0; i < canvasBars.width; i++){
|
for(i = 0; i < canvasBars.width; i++){
|
||||||
var ran = (Math.random()*20)-10;
|
var ran = (Math.random()*20)-10;
|
||||||
if(Math.random() > 0.98){
|
if(Math.random() > 0.98){
|
||||||
ran = (Math.random()*50)-25
|
ran = (Math.random()*50)-25;
|
||||||
}
|
}
|
||||||
ctxBars.lineTo(i, y + ran);
|
ctxBars.lineTo(i, y + ran);
|
||||||
}
|
}
|
||||||
@ -217,6 +222,7 @@ function consoleOutput(){
|
|||||||
isProcessing = true;
|
isProcessing = true;
|
||||||
processTime = ~~(Math.random()*5000);
|
processTime = ~~(Math.random()*5000);
|
||||||
lastProcess = Date.now();
|
lastProcess = Date.now();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
textEl.textContent = commandResponses[~~(Math.random()*commandResponses.length)];
|
textEl.textContent = commandResponses[~~(Math.random()*commandResponses.length)];
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user