Giter Club home page Giter Club logo

side-catalog's Introduction

About

百度百科右侧导航目录

包括 side-toolbar.js 和 side-catalog.js 两个插件。

side-toolbar.js 主要负责 toolbar 的定位。

side-catalog.js 主要负责内容和目录的定位。

##Demo Demo

screen screen

Usage

1.Include stylesheet.

<link rel="stylesheet" type="text/css" href="side-toolbar.css">
<link rel="stylesheet" type="text/css" href="side-catalog.css">

2.Include jQuery and side-toolbar.js, side-catalog.js.

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="side-toolbar.js"></script>
<script type="text/javascript" src="side-catalog.js"></script>

3.Create a HTML tag to hold the toolbar and catalog.

<div id="sideToolbar">
    <div id="sideCatalog"></div>
</div>

4.Create toolbar and catalog.

$('#sideToolbar').sideToolbar({width: 220, height: 320, showHeight: 300});
$('#sideCatalog').sideCatalog({width: 200, height: 220, content: '#content'});

Credit

Created by @dodo糯, blog

Feel free to use, share and fork.

Enjoy!

side-catalog's People

Contributors

effy-yin avatar

Watchers

 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.