diff --git a/week4/templating/index.html b/week4/templating/index.html
index 71603d3..55acd48 100644
--- a/week4/templating/index.html
+++ b/week4/templating/index.html
@@ -9,6 +9,16 @@
#inputs {
width: 30em;
}
+
+ .book {
+ padding: 10px;
+ border-bottom: 1px solid red;
+ }
+
+ #books {
+ width: 30em;
+ }
+
@@ -26,14 +36,20 @@
-
+
@@ -51,11 +67,21 @@
// when receiving a custom message form the server
socket.on('all the books we have', function(msg) {
- console.log('all the books: ' + msg);
+
+ console.log('all the books: ' + JSON.stringify(msg));
+
+ compile_results_and_display(msg);
+
});
- /*
- function compile_results_and_dispay(results) {
+ function get_books() {
+
+ socket.emit('give some books', "nothing");
+
+ }
+
+
+ function compile_results_and_display(results) {
var template_script = $("#books-template").html();
@@ -66,7 +92,7 @@
$('#books').append(template(results));
}
- */
+