aboutsummaryrefslogtreecommitdiff
path: root/src/js/feed.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-03-07 16:48:29 -0500
committerMark Powers <markppowers0@gmail.com>2019-03-07 16:48:29 -0500
commita119a3c73f02408b0e2ceedf0ac71e4e684b4cad (patch)
treeb749b95a511773dab291ef4f34b951b16c763bef /src/js/feed.js
parentf4b2eabe2da89abc33e4cbe21ca1560995b32eca (diff)
Add animation, blog, and feed template
Diffstat (limited to 'src/js/feed.js')
-rw-r--r--src/js/feed.js10
1 files changed, 10 insertions, 0 deletions
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()
+ });
+}