Skip to content

ZainRizvi/HtmlTimeline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Html Timeline

Demo

Html 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/HtmlTimeline.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">September 1999</time>
        <p>First day of school!</p>
    </li>
</ol>

Format date is YYYY-MM-DD. Dates in the B.C. era don't work.

jQuery

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

You must adjust manually the height of timeline with the height parameter.

Design by and css inspired @csswizardry HTML/CSS timeline

Packages

No packages published

Languages

  • JavaScript 38.3%
  • HTML 37.2%
  • CSS 24.5%