blob: 2913e949744a6b6f36e70795002875578f26b081 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Appends HashOver comments RSS feed to page head (appendrss.js)
HashOver.prototype.appendRSS = function ()
{
// Get the page head
var head = document.head || document.getElementsByTagName ('head')[0];
// Create link element for comment RSS feed
var rss = this.elements.create ('link', {
rel: 'alternate',
href: this.setup['http-root'] + '/api/rss.php?url=' + encodeURIComponent (this.instance['page-url']),
type: 'application/rss+xml',
title: 'Comments'
});
// Append comment RSS feed link element to page head
head.appendChild (rss);
};
|