Improve the handling of subscription hyperlinks.

This commit is contained in:
Schimon Jehudah, Adv. 2024-07-09 19:17:40 +03:00
parent 12a0628767
commit 0785b167ad
2 changed files with 15 additions and 8 deletions

View file

@ -64,18 +64,18 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
</head>
<body>
<div id='actions'>
<a title='Subscribe the latest updates and news.'
onclick='window.open("feed:" + location.href, "_self")'>
<a id='follow' title='Subscribe the latest updates and news.'
onclick='window.open(location.href.replace(/^https?:/, "feed:"), "_self")'>
<!-- xsl:attribute name="href">
feed:<xsl:value-of select="atom:link[@rel='self']/@href" />
</xsl:attribute -->
Follow
</a>
<a title='Subscribe via SubToMe.'>
<xsl:attribute name="href">
https://www.subtome.com/#/subscribe?feeds=<xsl:value-of select="atom:link[@rel='self']/@href" />
<a id='subtome' title='Subscribe via SubToMe.'>
<xsl:attribute name='href'>
javascript:location.href='https://www.subtome.com/#/subscribe?feeds='+location.href;
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:attribute name='onclick'>
(
function(btn){
var z=document.createElement('script');