Version 0.0.2
Explainys was my first jQuery plugin. When I wrote it I was fairly new to programming. It would benefit from a complete rewrite. But since I never used it I have little interest in doing so. This latest version is a massive cleanup. I have also introduced build tools.
jQuery plugin to add sidenotes for your articles. It might be described as the opposite to hover bubbles.
Add plugin to page, after jQuery.
jQuery().ready(function() {
jQuery('#main').explainys({
// options
textFail: 'Write your own failtext'
});
});
<span class="explain" data-title="" data-explain=""></span>
Implemented with html5 details element. Chrome 12 and up is the only browser that has full support for this element. No fallback methods implemented.