From cfc71e67da30f37c423bc14cbed030f68d72dbfa Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 4 Sep 2017 19:55:43 -0400 Subject: [PATCH] display prompt on page --- public/index.html | 10 +++++++--- public/js/index.js | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 49ed018..ec12906 100644 --- a/public/index.html +++ b/public/index.html @@ -3,10 +3,14 @@ - - -

Hi

+

Lesson Prompts

+
+
Current Prompt
+
+
+ + diff --git a/public/js/index.js b/public/js/index.js index 0b1d7e6..eda1d13 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1,4 +1,4 @@ const socket = io.connect('/'); socket.on('prompt sent', function (data) { - console.log(data); + document.querySelector('dd').innerHTML = data; });