superfeedr / subtome

A universal Subscribe/Follow button.
http://subtome.com
MIT License
167 stars 32 forks source link

Allow multiple subtome buttons on one page #88

Closed singpolyma closed 8 years ago

singpolyma commented 8 years ago

Right now the code detects the feed to be the current page, or looks for a subtome button on the page and uses the data- attributes... but if I have multiple buttons this will not work.

julien51 commented 8 years ago

Ha! Indeed, the button can be customized in any way you want though so you can add multiple buttons to a single page... Please, see the docs.

singpolyma commented 8 years ago

Ok, I'll try it again, but looking at the code I'm not sure how this is possible... the code is never told what button was pushed or anything at all...

singpolyma commented 8 years ago

re-read the code and think I found what I was doing wrong. sorry for the noise

julien51 commented 8 years ago

Ha! Well, happy this is resolved :) if you can think of anything we can do to make the docs more obvious, please, let me know!

singpolyma commented 8 years ago

The docs specifically say the the obfuscated snippet loads a particular js file. But do not mention that it also assigns the button onto a global variable that said script expects.