From d3d46bbfd2950578ff0b22823ad12008e0aca0e8 Mon Sep 17 00:00:00 2001 From: gauthiier Date: Wed, 23 Nov 2016 18:55:33 +0100 Subject: [PATCH] refactored index.html --- week4/templating/index.html | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/week4/templating/index.html b/week4/templating/index.html index 55acd48..708458b 100644 --- a/week4/templating/index.html +++ b/week4/templating/index.html @@ -10,15 +10,6 @@ width: 30em; } - .book { - padding: 10px; - border-bottom: 1px solid red; - } - - #books { - width: 30em; - } - @@ -36,7 +27,7 @@ - + @@ -70,17 +62,11 @@ console.log('all the books: ' + JSON.stringify(msg)); - compile_results_and_display(msg); + //compile_results_and_display(msg); }); - function get_books() { - - socket.emit('give some books', "nothing"); - - } - - + /* function compile_results_and_display(results) { var template_script = $("#books-template").html(); @@ -92,6 +78,7 @@ $('#books').append(template(results)); } + */