Skip to content

b1nj/b1njTimeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B1nj Timeline

Demo

B1nj Timeline is a very simple jQuery plugin. The event is automatically placed on the timeline.

Timeline

Getting Started

Include Css, html and script jQuery, moment, plugin on a page. This is all.

CSS

<link rel="stylesheet" media="screen" href="css/b1njTimeline.css">

HTML

<ol id="timeline">
    <li>
        <time datetime="1991-10-01">July 1995</time>
        <p>Naissance</p>
        <div class="description">
            <p>Description...</p>
        </div>
    </li>
    <li>
        <time datetime="1994-10">Septembre 1999</time>
        <p>Rentrée des classes !</p>
    </li>
</ol>

Format date is YYYY-MM-DD. Date before Jesus Christ d'ont work.

jQuery

<script src="jquery.js"></script>
<script src="moment.min.js"></script>
<script src="jquery.b1njTimeline.js"></script>
<script>
    $(function() {
        $('#timeline').b1njTimeline({
            'height' : 600
        });
    });
</script>

You must adjust manually the height of timeline width the param height.

Design by and css inspired @csswizardry HTML/CSS timeline

About

Simple Timeline css/javascript

Resources

Stars

Watchers

Forks

Packages

No packages published