Giter Club home page Giter Club logo

breadcrumbs-1's Introduction

breadcrumbs

An easy way to expand or collapse menu items, especially when there are many levels like in folder navigation.

To see

Python prerequisite

sh start.sh

To use

Add jQuery and then ..

$(window).load(function() {
  $(".infowrap-breadcrumbs").infowrapBreadcrumbs();
});

Options ..

// the maximum number of visible collapsed crumbs counting from the left
maxCollapsedCrumbs: 3

// the minimum width of a crumb when collapsed
// - must be divisible by 2
// - you must adjust the css for this to take effect.
//   side padding of `.crumb` needs to be half of `minwidth`
//   `.crumb { padding: 0 15px }`
minWidth: 30

// width of the shader block that is hidden in pixels. it is in the crumb
// object, but is pushed far right and hidden by the crumb's `overflow: hidden`
shaderWidth: 44

// the distance of your css shadow antumbra in pixels
shaderAntumbra: 25

Examples

Screen recording on YouTube (0:12)

Expanded

Collapsed

Build

To install and build, run ..

sh install.sh
# after the first time you can simply run `grunt`

To watch and compile specific files, run ..

# to watch all and compile all
grunt devAll

# to watch and compile coffee files
grunt devCoffee

# to watch and compile jade files
grunt devJade

# to watch and compile less files
grunt devLess

To build-only specific file types, run ..

# to watch all and compile all
grunt build

# to compile coffee files
grunt buildCoffee

# to compile jade files
grunt buildJade

# to compile less files
grunt buildLess

breadcrumbs-1's People

Contributors

kirkstrobeck avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.