Added logging and Request classes.
1 //--allow-file-access-from-files
2 var server = "http://localhosts:8080";
3 var view_left = "<view-left><h2>Machine</h2><p>Be yourself within Machine.</p></view-left>";
6 var com = document.getElementById("com");
7 $.ajax({url: server + "/com",
14 function callback(data, status, xhr) {
15 view_left = "<view-left><h2>Machine</h2><p>" + data.time + "</p></view-left>";
16 $("view-left").replaceWith(view_left);
21 $("view-left").replaceWith(view_left);
25 $(document).keypress (
27 if (event.which == 13) {
28 event.preventDefault();