Working with Static Sites by Raymond Camden and Brian Rinaldi

Working with Static Sites by Raymond Camden and Brian Rinaldi

Author:Raymond Camden and Brian Rinaldi
Language: eng
Format: mobi, epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2017-03-15T04:00:00+00:00


The Scrolling Navigation

If you’ve tested the page we built, you may notice that some of the navigation items fall off the page and aren’t visible until the entire page is scrolled to the bottom. This has to do with some JavaScript code in static/js/layout.js that is designed to have the navigation remain statically positioned as the user scrolls the page. Obviously, this is a bit of a flaw in the design of the DocWeb template when utilized for longer single-page documentation sites. The completed demo of this mitigates this issue through some tweaks to the JavaScript, though it can still be improved, in particular to account for the speed of the user’s scroll.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.