Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
floatHeaders keep <TH>s on top. Update jQuery to latest 1.x version.
This is a first attempt to keep table headers visible when scrolling. A feature requested by PenolopeFudd (https://github.com/PenelopeFudd). See issue #14 on github: #14 THIS REVISION MIGHT NOT WORK AS EXPECTED IN SOME BROWSERS! The author tested in a fairly recent version of Firefox, where everything works like charm. Some quirks where encountered in an ancient Opera (version 12 - current version is 40.somthing). We might want to add a commandline switch and/or buttons to turn this feature on and off (see also 'BUGS' below). CHANGES * Scripts in lib/Devel/NYTProf/js/ - Include a more recent version of jQuery. 1.12.4 is the most up to date version in the 1.x series. Stored as jqery-min.js again. Source: https://code.jquery.com/jquery-1.12.4.min.js - Include floatHeaders.js (in a minified version). MIT License. Sources: + https://github.com/mkoryak/floatThead/tree/master/dist - Repo + http://mkoryak.github.io/floatThead - Homepage, demo, and download. "Release 1.4.4 released 5 days ago (October 3rd 2016)": https://api.github.com/repos/mkoryak/floatThead/tarball/1.4.4 * nytprofhtml: - Add 'floadHeaders' to the class attribute of large tables. - Add a snippet to initialize the 'floadHeaders' (line 420 and 1501). BUGS * When clicking on a link in the "Top 15 Subroutines" table, the method name in the target table is hidden by the floatHeaders. The floatHeaders script does not take anchors into account. * Opera 12: floatHeaders are shrunk to a more narrow size by the script.
- Loading branch information