diff --git a/examples/admin/app.js b/examples/admin/app.js index d8f42f14..1991e798 100644 --- a/examples/admin/app.js +++ b/examples/admin/app.js @@ -1,15 +1,19 @@ console.log("If modules not found, run `npm install` in example/admin folder!"); // git subtree push -P examples/admin heroku master var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || 8888; -var express = require('express'); +var express = require('connect'); var bodyParser = require('body-parser'); var app = express(); var Gun = require('gun'); var gun = Gun({ s3: (process.env.NODE_ENV === 'production')? null : require('../../test/shotgun') // replace this with your own keys! }); - -app.use(gun.server) - .use(express.static(__dirname)) +app.use(function(req, res, next){ + console.log("THIS HIT SEEEERVER", req.url); + next(); + }) + .use(gun.server) + .use(require('serve-static')(__dirname)) + //.use(express.static(__dirname)) app.listen(port); console.log('Express started on port ' + port + ' with /gun'); diff --git a/examples/admin/duel.html b/examples/admin/duel.html index 2923c672..9d09fafd 100644 --- a/examples/admin/duel.html +++ b/examples/admin/duel.html @@ -29,52 +29,183 @@ .none { display: none; } + .fight { + z-index: 9999; + background: brown; + color: white; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + } + .player input, .player button { + font-size: 18pt; + } -