diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..c9129d5 --- /dev/null +++ b/TODO.md @@ -0,0 +1,12 @@ +- [x] get the images etc up on the page +- [x] work out how to get it to fit to the viewport/100% +- [x] write code to resize +- [x] add zoom limits +- [x] think about centring +- [x] add buttons for resizing +- [x] select other images + +stretch +- [ ] resize dynamically to viewport +- [x] disable button +- [ ] reposition to centre of page diff --git a/start.js b/start.js index 2e5ca55..6d0ba6d 100644 --- a/start.js +++ b/start.js @@ -4,7 +4,7 @@ const path = require('path'); const express = require('express'); const morgan = require('morgan'); const socket = require('socket.io'); -const socketRouter = require('./server/socketRouter.js'); +const socketRouter = require('./server/socketRouter'); if (!process.env.APP_ID) { console.error('Please set environment variables'); @@ -12,7 +12,7 @@ if (!process.env.APP_ID) { } const app = express(); -app.use(express.static(path.resolve(`${__dirname}/dist`))); +app.use(express.static('dist')); app.use(morgan('combined')); const server = http.createServer(app);