Show HN: Marginotes, quick and elegant side notes for your paragraphs
1–10 of 31 posts
Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#2Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#3Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#4http://youmightnotneedjquery.com/
Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#5http://youmightnotneedjquery.com/
Just interested.
Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#6I was a little surprised at the last line in your code:
window.jQuery.prototype.marginotes = window.$.prototype.marginotes = marginotes
Last I checked (one minute ago) jQuery and $ refer to the same object. jQuery === $ unless somebody is using $ to refer to something else in which case thanks you just clobbered $'s prototype. You should follow the jQuery conventions https://learn.jquery.com/plugins/basic-plugin-creation/
Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#7http://youmightnotneedjquery.com/
What do you consider a reasonable reason to build something as a jQuery plugin as opposed to pure-js? or do you believe jQuery plugins are redundant by default? Just interested.
As far as "extending" goes though, it's not always clear. Is a date picker extending jquery's core? I personally think not, but there has evolved an expectation that every web component must be initialized like so:
$('#container').doSomething();
So I suppose a lot of people do it that way just to have a familiar look to their API, or even just to show up in listing as a jquery plugin.
Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#8Re: Show HN: Marginotes, quick and elegant side notes for your paragraphs
#9What happens if I have JavaScript disabled (and I do have)?