Skip to content

Commit

Permalink
Fixed #3
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiZapic committed Nov 21, 2020
1 parent 215a5fc commit 6b00b9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ feed.addEventListener("load", function () {
xml.querySelectorAll("feed entry").forEach(function (v,i){
if(i > 7){ return; }
data.push({
"link": v.querySelector("link").href,
"timestamp": dateParser(v.querySelector("published").innerHTML),
"link": v.querySelector("link").getAttribute("href"),
"timestamp": v.querySelector("published").innerHTML.slice(0,10),
"title": v.querySelector("title").innerHTML
});
});
Expand Down Expand Up @@ -153,4 +153,4 @@ window.addEventListener("DOMContentLoaded", function () {
});
}, {once: true});
});
console.log("\n %c Present %c By Zapic \n\n", "color: #fff; background: #fb7299; padding:5px 0;", "background: #efefef; padding:5px 0;");
console.log("\n %c Present %c By Zapic \n\n", "color: #fff; background: #fb7299; padding:5px 0;", "background: #efefef; padding:5px 0;");

0 comments on commit 6b00b9d

Please sign in to comment.