darth-cheney / grantnotes Goto Github PK
View Code? Open in Web Editor NEWBasic jQuery script and CSS markup for imitating the clever sidebar footnotes used on Grantland.com
Basic jQuery script and CSS markup for imitating the clever sidebar footnotes used on Grantland.com
Although this bug does not affect the examples provided with this repository, I have found in implementing this code in other work that floating a div above the footnote-bar will, in fact, mess up the position of the first footnote so that it is errantly positioned lower than it should be by exactly the number of pixels of the problematic element's height. I cannot locate the exact cause of this bug yet, but it is super-duper annoying.
If a footnote is placed within the final sentence in an article, and if the text of that note is longer than one line within the .footnote-bar
, then the current script results in a formatting whereby the .footnote-bar
is extended lower than the article (and this the content we're concerned with). It looks bad, too.
Needed: a new calculation thrown into the mix that finds the bottom position of the main-text container, translates it into .footnote-bar
's equivalent, and then sets a limit on how low footnotes can extend. Since we can already get a footnote's bottom using both bottom()
and offBottom()
methods, is should not be much of a hassle to throw this extra consideration into the mix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.