From a119a3c73f02408b0e2ceedf0ac71e4e684b4cad Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 7 Mar 2019 16:48:29 -0500 Subject: Add animation, blog, and feed template --- src/js/feed.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/js/feed.js (limited to 'src/js/feed.js') diff --git a/src/js/feed.js b/src/js/feed.js new file mode 100644 index 0000000..a80af9c --- /dev/null +++ b/src/js/feed.js @@ -0,0 +1,10 @@ +function loadFeed(callback){ + var myRequest = new Request('/feed'); + fetch(myRequest).then(function(response) { + return response.text(); + }).then(function(response) { + console.log(response); + document.getElementById("feed").innerHTML = response; + callback() + }); +} -- cgit v1.2.3