lemonmade / bigfoot

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

Requires jQuery :trollface: #33

Open iest opened 9 years ago

iest commented 9 years ago

I love this plugin and would love to use it on my site, but don't want to pull down the entirety of jQuery just to use it.

I've set out to create smallfoot, a dependancy-free version of bigfoot (with far-fewer features, at least to begin with).

Any words of wisdom or specific pitfalls I should watch out for?

Thanks for the inspiration!

lemonmade commented 9 years ago

You're certainly more than welcome, although I should tell you that I have a vanilla-JS version that's almost done that does a little bit of cleanup. If you're still wanting to go for it, I would strongly recommend ignoring hover-based activation (greatly complicates things), same goes for the breakpoints and custom markup stuff (the first one I have also removed, the other two I have begrudgingly left in).

By the way, loved your "I Am The Fold" project!

iest commented 9 years ago

Hah! Thanks 😃

Is the vanilla version open source? I would love to help out!

lemonmade commented 9 years ago

It's not there yet, I have it in a branch on the main Bigfoot repo but I don't think I've pushed it up. Will let you know when I do :+1:

philgruneich commented 9 years ago

I should have seen this issue before working my way into a version. I wrote this one in a weekend and I barely know any Javascript. Would appreciate to have an official Bigfoot alternative instead :D

bdesham commented 9 years ago

Any news on this, @lemonmade? If you were to push what you have so far and a list of things to be done I could take a crack at finishing it…

rcarmo commented 9 years ago

I'd be happy enough if it worked with Zepto (I originally thought the reason it didn't work was the explicit use of the jQuery var, but now I see there's a selector [data-footnote-identifier]:last that Zepto doesn't like). Might be easy to work around, though.

lemonmade commented 9 years ago

Sorry folks, it is on the way, I am just finishing up work on another big project. The switch is also going to simplify some of the options, remove some bad features, and bring a much cleaner workflow for documentation/ building, so I am hoping there won't be long delays in introducing these kinds of changes again.

bdesham commented 9 years ago

:+1:

hermanbanken commented 8 years ago

Any progress on this?

goblindegook commented 8 years ago

I was looking to get rid of jQuery as well, so I took some time off to fork Bigfoot as littlefoot. I added unit tests and rewrote the codebase in ECMAScript 2015.

Bear in mind that I renamed or removed several settings and methods, so this is not a drop-in replacement for Bigfoot. Please see the bottom of the README file for a list of significant changes.