Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joedf/strapdown-topbar

a topbar modification for strapdown.js
https://github.com/joedf/strapdown-topbar

cdnjs html javascript navigationbar plugin strapdown

Last synced: 5 days ago
JSON representation

a topbar modification for strapdown.js

Awesome Lists containing this project

README

        

# strapdown-topbar
A topbar modification for [strapdown.js](https://github.com/arturadib/strapdown) (markdown-based webpages)
[![CDNJS](https://img.shields.io/cdnjs/v/strapdown-topbar.svg)](https://cdnjs.com/libraries/strapdown-topbar)
[![mobile-ready](https://img.shields.io/badge/mobile-ready-blue.svg)](https://github.com/joedf/strapdown-topbar/releases/latest)

## Examples
- Example #1: _Left aligned top links_ [[link]](http://joedf.github.io/strapdown-topbar/template.html)
- Example #2: _Right aligned top links_ [[link]](http://joedf.github.io/strapdown-topbar/template-right.html)
- Example #3: (MFixed) _Fixed topbar on mobile devices_ [[link]](http://joedf.github.io/strapdown-topbar/template-mfixed.html)
- Example #4: _Testing Header anchor v-alignment_ [[link]](http://joedf.github.io/strapdown-topbar/header-test.html)
- Example #5: (MFixed) _Testing Header anchor v-alignment_ [[link]](http://joedf.github.io/strapdown-topbar/header-test-mfixed.html)

## Usage
Have your topbar setting in the ``.
```HTML

Home
About

Item #1
Item #2
Item #3

Item #4

My TOC
(Powered by StrapDown.js)

```
Then, simply include `strapdown-topbar.js` **AFTER** `strapdown.js`.
```HTML

```
Optionally, you can include the following before the js files to force a header text color to avoid link color styling when not hovered.
```js
var STRAPDOWN_TOPBAR_DEFAULT_COLOR = '#555';
```
**NOTE!** Want more speed? Now available on [cdnjs](https://cdnjs.com/libraries/strapdown-topbar)
Or even [jsDelivr](https://www.jsdelivr.com): `https://cdn.jsdelivr.net/gh/joedf/strapdown-topbar@latest/assets/strapdown/strapdown-topbar.min.js`