From 1405803426f1f35dbfdd8be7497dc27ff6b8dead Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Mon, 9 Apr 2018 21:22:55 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=A6=F0=9F=8F=8F=20Checkpoint=20./publi?= =?UTF-8?q?c/client.js:96831/492?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/client.js | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/public/client.js b/public/client.js index d23fd86..ee4719f 100644 --- a/public/client.js +++ b/public/client.js @@ -42,27 +42,4 @@ dreamInput.focus(); }; -})() - -/* -$(function() { - console.log('hello world :o'); - - $.get('/dreams', function(dreams) { - dreams.forEach(function(dream) { - $('
  • ').text(dream).appendTo('ul#dreams'); - }); - }); - - $('form').submit(function(event) { - event.preventDefault(); - var dream = $('input').val(); - $.post('/dreams?' + $.param({dream: dream}), function() { - $('
  • ').text(dream).appendTo('ul#dreams'); - $('input').val(''); - $('input').focus(); - }); - }); - -}); -*/ \ No newline at end of file +})() \ No newline at end of file