[timbunce/devel-nytprof] b21dd1: floatHeaders keep <TH>s on top. Update jQuery to ...

5 views
Skip to first unread message

Tim Bunce

unread,
Nov 25, 2016, 12:50:41 PM11/25/16
to develnyt...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/timbunce/devel-nytprof
Commit: b21dd1bebd895f5016ccf7f38b703d1d47d4467a
https://github.com/timbunce/devel-nytprof/commit/b21dd1bebd895f5016ccf7f38b703d1d47d4467a
Author: Sebastian Rose, Hannover, Germany <sebasti...@gmx.de>
Date: 2016-10-08 (Sat, 08 Oct 2016)

Changed paths:
M bin/nytprofhtml
M lib/Devel/NYTProf/js/jquery-min.js
A lib/Devel/NYTProf/js/jquery.floatThead.min.js

Log Message:
-----------
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: https://github.com/timbunce/devel-nytprof/issues/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.


Commit: f09331ede4f4ad8dd0b4ab635df99ded6655a1f1
https://github.com/timbunce/devel-nytprof/commit/f09331ede4f4ad8dd0b4ab635df99ded6655a1f1
Author: Sebastian Rose, Hannover, Germany <sebasti...@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Changed paths:
M bin/nytprofhtml

Log Message:
-----------
nytprofhtml: Make fragment target visible.

With floatThead.js, fragment targets are hidden by the floating table
headers. This patch fixes this. The uppermost visible position of
the target is computed and the window scrolled accordingly.

Also, if the user changes the fragment in the browser's address field,
make the new fragment target visible again. This second part of the
fix might not work in old browsers. The browser has to provide the
'window.hashchange' function.


Commit: 05ab4a22a208bc08bdbba16b948046abf6a659b8
https://github.com/timbunce/devel-nytprof/commit/05ab4a22a208bc08bdbba16b948046abf6a659b8
Author: Sebastian Rose, Hannover, Germany <sebasti...@gmx.de>
Date: 2016-10-11 (Tue, 11 Oct 2016)

Changed paths:
M bin/nytprofhtml

Log Message:
-----------
Fix page load - URL without fragment

$(":target").closest() is not a funciton


Commit: 0edfe32d59bd1771c0798ea040b170c3266f2cbe
https://github.com/timbunce/devel-nytprof/commit/0edfe32d59bd1771c0798ea040b170c3266f2cbe
Author: Sebastian Rose, Hannover, Germany <sebasti...@gmx.de>
Date: 2016-10-12 (Wed, 12 Oct 2016)

Changed paths:
M bin/nytprofhtml

Log Message:
-----------
floadTheads: avoid JS errors.

...and format the code like the original js code.


Commit: 7d097c12334b6e2ea31e671c59b087821f1cade0
https://github.com/timbunce/devel-nytprof/commit/7d097c12334b6e2ea31e671c59b087821f1cade0
Author: Sebastian Rose, Hannover, Germany <sebasti...@gmx.de>
Date: 2016-10-12 (Wed, 12 Oct 2016)

Changed paths:
M bin/nytprofhtml

Log Message:
-----------
Houps - single quote => double backslash


Commit: 230ddf94d8e2ba8804659286896be12ca78339cc
https://github.com/timbunce/devel-nytprof/commit/230ddf94d8e2ba8804659286896be12ca78339cc
Author: Sebastian Rose, Hannover, Germany <sebasti...@gmx.de>
Date: 2016-10-12 (Wed, 12 Oct 2016)

Changed paths:
M bin/nytprofhtml

Log Message:
-----------
Be explicit about the floatThead-container class


Commit: 64e5953fb5b4d67993174b62d72439d1279ec7fe
https://github.com/timbunce/devel-nytprof/commit/64e5953fb5b4d67993174b62d72439d1279ec7fe
Author: Tim Bunce <Tim....@pobox.com>
Date: 2016-11-24 (Thu, 24 Nov 2016)

Changed paths:
M bin/nytprofhtml
M lib/Devel/NYTProf/js/jquery-min.js
A lib/Devel/NYTProf/js/jquery.floatThead.min.js

Log Message:
-----------
Merge remote-tracking branch 'origin/pr/106'


Compare: https://github.com/timbunce/devel-nytprof/compare/b3ae99e47eac...64e5953fb5b4
Reply all
Reply to author
Forward
0 new messages