
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
booting-nav
Advanced tools
Fix subnav to the top when it scrolls out of view (works well with bootstrap)
Intended to fix navigation to the top when it scrolls out of view (works great with bootstrap). This library can easilly be used to add a class to something when it scrolls out of view, and remove the class when it scrolls back into view.
This library can be built to use standalone, just download the github repo and then do:
$ npm install browserify -g
$ npm install
$ browserify index.js --standalone boot > boot.js
You can then use boot instead of require('booting-nav').
Example usage:
var boot = require('booting-nav')
var $ = document.getElementById.bind(document)
boot($('blue'))
boot($('red'), {offset: 40})
boot($('green'), {offset: 80})
boot($('orange'), {offset: 120, minWidth: '400px'})
This results in each block sticking to the top at the appropriate offset. Then minWidth parameter is oftne useful for mobile layouts.
You can skip the auto-generated class and just have your own class used instead by adding the cls option:
boot($('orange'), {cls: 'nav-fixed-top'})
MIT
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.