diff --git a/client/index.html b/client/index.html index b3ed4f9..ea7cac7 100644 --- a/client/index.html +++ b/client/index.html @@ -5,5 +5,6 @@ + \ No newline at end of file diff --git a/client/views/home.html b/client/views/home.html index 6a75cd4..5ee4936 100644 --- a/client/views/home.html +++ b/client/views/home.html @@ -1,8 +1,8 @@
- Truth + Truth or - Dare + Dare
diff --git a/client/views/truth-view.js b/client/views/truth-view.js index afc3a1c..a8fbafb 100644 --- a/client/views/truth-view.js +++ b/client/views/truth-view.js @@ -42,12 +42,17 @@ TruthView.prototype.render = function () { }; getQuestion(); - - $truthTmpl.find('#change').click(function() { + + $truthTmpl.find('.card-container').on('swipeleft', function () { $truthTmpl.find('.card').addClass('move-left'); getQuestion(); }); + // $truthTmpl.find('#change').click(function() { + // $truthTmpl.find('.card').addClass('move-left'); + // getQuestion(); + // }); + $truthTmpl.find("#submit").click(function() { console.log('button works ' + $truthTmpl.find("#new-question").val()); var url = 'api/truth'; diff --git a/server/index.js b/server/index.js index a7d0b5e..252ccaa 100644 --- a/server/index.js +++ b/server/index.js @@ -156,6 +156,7 @@ app.post('/api/login', function (req, res) { }); app.use(express.static('../client')); +app.use('/node_modules', express.static('../node_modules')) app.listen(process.env.PORT || 3000, process.env.IP || 'localhost', function () { console.log("I'm listening on port " + process.env.PORT);