
Checkpoint
./public/client.js:96831/492
Showing
1 changed file
with
0 additions
and
23 deletions
... | @@ -43,26 +43,3 @@ | ... | @@ -43,26 +43,3 @@ |
43 | }; | 43 | }; |
44 | 44 | ||
45 | })() | 45 | })() |
... | \ No newline at end of file | ... | \ No newline at end of file |
46 | |||
47 | /* | ||
48 | $(function() { | ||
49 | console.log('hello world :o'); | ||
50 | |||
51 | $.get('/dreams', function(dreams) { | ||
52 | dreams.forEach(function(dream) { | ||
53 | $('<li></li>').text(dream).appendTo('ul#dreams'); | ||
54 | }); | ||
55 | }); | ||
56 | |||
57 | $('form').submit(function(event) { | ||
58 | event.preventDefault(); | ||
59 | var dream = $('input').val(); | ||
60 | $.post('/dreams?' + $.param({dream: dream}), function() { | ||
61 | $('<li></li>').text(dream).appendTo('ul#dreams'); | ||
62 | $('input').val(''); | ||
63 | $('input').focus(); | ||
64 | }); | ||
65 | }); | ||
66 | |||
67 | }); | ||
68 | */ | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment