Fixed missing space for "performing dns lookups" removed users route from app.js

This commit is contained in:
Jason Brown 2014-06-10 23:44:20 -05:00
parent 8948cd9e49
commit 6c0bf2ada3
2 changed files with 44 additions and 40 deletions

10
app.js
View File

@ -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'));

View File

@ -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,7 +119,8 @@ 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 = [
'Performing DNS Lookups for ',
'Searching ', 'Searching ',
'Analyzing ', 'Analyzing ',
'Estimating Approximate Location of ', 'Estimating Approximate Location of ',
@ -129,15 +130,19 @@ var commandStart = ['Performing DNS Lookups for',
'tar -xzf ', 'tar -xzf ',
'Entering Location ', 'Entering Location ',
'Compilation Started of ', 'Compilation Started of ',
'Downloading '], 'Downloading '
commandParts = ['Data Structure', ],
commandParts = [
'Data Structure',
'http://wwjd.com?au&2', 'http://wwjd.com?au&2',
'Texture', 'Texture',
'TPS Reports', 'TPS Reports',
' .... Searching ... ', ' .... Searching ... ',
'http://zanb.se/?23&88&far=2', 'http://zanb.se/?23&88&far=2',
'http://ab.ret45-33/?timing=1ww'], 'http://ab.ret45-33/?timing=1ww'
commandResponses = ['Authorizing ', ],
commandResponses = [
'Authorizing ',
'Authorized...', 'Authorized...',
'Access Granted..', 'Access Granted..',
'Going Deeper....', 'Going Deeper....',
@ -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;