lemonmade / bigfoot

A jQuery plugin for creating exceptional footnotes.
http://www.bigfootjs.com
MIT License
936 stars 69 forks source link

Question on implementing buttonMarkup #71

Open ajacinto opened 4 years ago

ajacinto commented 4 years ago

Thanks for this awesome plugin. I just had a question about the documentation for buttonMarkup.

I've been trying to get the numeric style like how it's rendered in the demo, so I was trying to set the buttonMarkup settings, but I can't understand how the value of {{SUP:attr}} is acquired and how I should define this in options.

If this is my footnote: <sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup>

What value should I use for buttonMarkup below?

var bigfoot = $.bigfoot( { deleteOnUnhover: true, preventPageScroll: false, hoverDelay: 250, activateOnHover: true, buttonMarkup: ? } );

Thanks! The PayPal donation link also wasn't working btw. I owe you a coffee. :)