add graffiti.txt and chnge hackernews link to _blank

This commit is contained in:
Tucker Boniface 2018-06-26 00:47:08 -04:00
parent 8a8ac94a04
commit d1ec7e8f6d
2 changed files with 2 additions and 1 deletions

1
graffiti.txt Symbolic link
View File

@ -0,0 +1 @@
/var/www/html/tilde.team/public_html/graffiti.txt

View File

@ -40,7 +40,7 @@
var data = get(listurl);
let posturl = "https://hacker-news.firebaseio.com/v0/item/" + data[index] + ".json"
data = get(posturl);
document.getElementById("hackernews").innerHTML = "HN: <a href=\"" + data.url + "\">" + data.title + "</a>";
document.getElementById("hackernews").innerHTML = "HN: <a href=\"" + data.url + "\" target=\"_blank\">" + data.title + "</a>";
}
function hn_onclick() {
index++;