add graffiti.txt and chnge hackernews link to _blank
This commit is contained in:
parent
8a8ac94a04
commit
d1ec7e8f6d
|
@ -0,0 +1 @@
|
|||
/var/www/html/tilde.team/public_html/graffiti.txt
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue