refactored index.html

This commit is contained in:
gauthiier 2016-11-23 18:55:33 +01:00
parent eb7ad3687c
commit d3d46bbfd2

View File

@ -10,15 +10,6 @@
width: 30em;
}
.book {
padding: 10px;
border-bottom: 1px solid red;
}
#books {
width: 30em;
}
</style>
<!-- SCRIPTS -->
<!-- import handlebars -->
@ -36,7 +27,7 @@
<input id="nbr_books" type="number" value="2" min="1" max="5">
</div>
<!--
<div id="books">
<script id="books-template" type="text/x-handlebars-template">
{{#each this}}
@ -49,6 +40,7 @@
{{/each}}
</script>
</div>
-->
</div>
@ -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));
}
*/
</script>