diff --git a/public/js/populatemoreinfo.js b/public/js/populatemoreinfo.js new file mode 100644 index 0000000..c377805 --- /dev/null +++ b/public/js/populatemoreinfo.js @@ -0,0 +1,14 @@ + + +// callback just logs each key in session storage +function callback(k) { + console.log(k) +} + +function forEachKey(callback) { + for (var i = 0; i < sessionStorage.length; i++) { + callback(sessionStorage.key(i)); + } +} + +forEachKey(callback) \ No newline at end of file diff --git a/src/controllers/index.js b/src/controllers/index.js index c36ac82..b267038 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -7,6 +7,7 @@ const background = require('./background'); const resources = require('./resources'); const error = require('./error'); const moreinfo = require('./moreinfo'); +const results = require('./results'); router.use(bodyParser.urlencoded({extended: true})); router.get('/', home.get); @@ -14,6 +15,7 @@ router.get('/welcome', welcome.get); router.get('/background', background.get); router.get('/resources', resources.get); router.get('/more-info', moreinfo.get); +router.get('/results', results.get); // trigger 500 error for testing diff --git a/src/controllers/results.js b/src/controllers/results.js new file mode 100644 index 0000000..f24cfb7 --- /dev/null +++ b/src/controllers/results.js @@ -0,0 +1,5 @@ +exports.get = (req, res) => { + res.render('results', { + layout: 'scrollable' + }); +} \ No newline at end of file diff --git a/src/views/moreinfo.hbs b/src/views/moreinfo.hbs index 1eb58c9..3ba66e9 100644 --- a/src/views/moreinfo.hbs +++ b/src/views/moreinfo.hbs @@ -14,4 +14,6 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/results.hbs b/src/views/results.hbs new file mode 100644 index 0000000..29c51cc --- /dev/null +++ b/src/views/results.hbs @@ -0,0 +1,17 @@ + +
+
+

WE GOT NUTHIN

+
+
+
+
+
+ +
+
+
\ No newline at end of file