Last active
December 14, 2015 21:19
-
-
Save julien51/5150567 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" /> | |
<xsl:variable name="title" select="/rss/channel/title"/> | |
<xsl:template match="/"> | |
<html> | |
<head> | |
<title><xsl:value-of select="$title"/> (full-text feed)</title> | |
<script type="text/javascript" src="subscribe.js"></script> | |
<style type="text/css"> | |
@import url(css/feed.css); | |
</style> | |
</head> | |
<body> | |
<div id="explanation"> | |
<h1><xsl:value-of select="$title"/> <span class="small"> (full text feed)</span></h1> | |
<p>You are viewing an auto-generated full text <acronym title="Really Simple Syndication">RSS</acronym> feed. RSS feeds allow you to stay up to date with the latest news and features you want from websites. To subscribe to this feed, you will need a News Reader or other similar device.</p> | |
<p><button id="subscribe">Subscribe</button></p> | |
</div> | |
<div id="content"> | |
<ul> | |
<xsl:for-each select="rss/channel/item"> | |
<div class="article"> | |
<li><a href="{link}" rel="bookmark"><xsl:value-of disable-output-escaping="yes" select="title"/></a> | |
<div><xsl:value-of disable-output-escaping="yes" select="description" /></div> | |
</li> | |
</div> | |
</xsl:for-each> | |
</ul> | |
</div> | |
</body> | |
</html> | |
</xsl:template> | |
</xsl:stylesheet> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
window.onload = function() { | |
document.getElementById("subscribe").onclick = function() { | |
var z=document.createElement('script'); | |
z.src='https://www.subtome.com/load.js'; | |
document.body.appendChild(z); | |
} | |
}})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment