Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery smooth-scrolling navigation menu bar
    primarykey
    data
    text
    <p>So I have been experimenting with RootsTheme (which uses Bootstrap), Wordpress (from Joomla! background) and Pagodabox; </p> <p>here's the result of it: <a href="http://ajmalafif.com/" rel="nofollow">http://ajmalafif.com/</a></p> <p>However I am having some known issues with the navigation bar with any javascript solution that I've tried:</p> <p>route #1) Chris Coyier's smooth-scrolling</p> <p>Currently my site runs on this one. </p> <p>what doesn't work - for smaller screen or when browser resized, the nav will stop at awkwardly at much higher height (since it's set to offset at -90px on > 1200px screen width) </p> <p>what works - the next &amp; previous link button for images work (click on mysite.com#link doesn't conflict between the nav bar anchor and the image link click anchor)</p> <p>example of the code: <a href="http://jsfiddle.net/ajmalafif/LvPUC/1/" rel="nofollow">http://jsfiddle.net/ajmalafif/LvPUC/1/</a></p> <p>route #2) William Malo's getElementbyId</p> <p>I like and used this solution at first. </p> <p>what doesn't work - it doesn't have offset solution so it stops directly on the h1 title and blocks the view of it. - it conflicts with the bootstrap-carousel.js where upon click the image carousel, the screen/navbar will moves and align the image with the top of the browser.</p> <p>what works - It works with any browser size (and upon resized) and targets/arrives accordingly. </p> <p>example of the code: <a href="http://jsfiddle.net/ajmalafif/bReUF/" rel="nofollow">http://jsfiddle.net/ajmalafif/bReUF/</a></p> <p>--</p> <p>It may looks like route#1 is the clear winner but like what's currently running on my site, it has few glitches especially when view, say inside an iPad. So is there any pointer/help I can get to make this works either by;</p> <ul> <li><p>a href target is accurately offset regardless of the browser width (maybe a solution to have diff offset based on diff browser's width)?, OR</p></li> <li><p>a way to offset when using getElementbyId solution (see route#2) AND to make it compatible with bootstrap-carousel.js (so it doesn't move itself when click another image carousel # anchor tag)?</p></li> </ul> <p>Thanks for your concern and time for taking a look at this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload