<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="page-header">
<h1 id="">Timeline</h1>
</div>
<div id="timeline"><div class="row timeline-movement timeline-movement-top">
<div class="timeline-badge timeline-future-movement" rel="tooltip" title="Publish article">
<a href="#" data-toggle="modal" data-target="#myModal">
<span class="glyphicon glyphicon-plus"></span>
</a>
</div>
<div class="timeline-badge timeline-filter-movement">
<a href="#">
<span class="glyphicon glyphicon-time"></span>
</a>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
<div class="container" >
<div class="row">
<div class="col-sm-6 col-sm-offset-3 text-center" style="background: #FFFFFF; -webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px; color: #000">
<form class="form-horizontal">
<fieldset>
<!-- Form Name -->
<legend>Publish</legend>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="textinput">Title</label>
<div class="col-md-6">
<input id="textinput" name="textinput" type="text" placeholder="" class="form-control input-md" required="">
</div>
</div>
<!-- Textarea -->
<div class="form-group">
<label class="col-md-4 control-label" for="textarea">Content</label>
<div class="col-md-4">
<textarea class="form-control" id="textarea" name="textarea"></textarea>
</div>
</div>
<!-- File Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="filebutton">Add Image</label>
<div class="col-md-4">
<input id="filebutton" name="filebutton" class="input-file" type="file">
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="singlebutton"></label>
<div class="col-md-4">
<button id="singlebutton" name="singlebutton" class="btn btn-primary">Send</button>
</div>
</div>
</fieldset>
</form>
<hr>
</div>
</div>
</div>
</div>
<div class="row timeline-movement">
<div class="timeline-badge">
<span class="timeline-balloon-date-day">23</span>
<span class="timeline-balloon-date-month">JUN</span>
</div>
<div class="col-sm-6 timeline-item">
<div class="row">
<div class="col-sm-11">
<div class="timeline-panel credits">
<ul class="timeline-panel-ul">
<li><span class="importo">Ronaldo breaks Americans' hearts after late U.S. lapse</span></li>
<img src="https://s3.yimg.com/bt/api/res/1.2/YdvVztaAplBUAVpspdn6Rw--/YXBwaWQ9eW5ld3M7Zmk9ZmlsbDtoPTU3MDtweW9mZj0wO3E9NzU7dz05NjA-/http://media.zenfs.com/en_us/Sports/ap/201406221940708569435" width="60%">
<li><span class="causale">Portugal's Cristiano Ronaldo takes a shot during the group G World Cup soccer match between the United States and Portugal at the Arena da Amazonia in Manaus, Brazil, Sunday, June 22, 2014. (AP Photo/Marcio Jose Sanchez) </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 23/06/2014</small></p> </li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6 timeline-item">
<div class="row">
<div class="col-sm-offset-1 col-sm-11">
<div class="timeline-panel debits">
<ul class="timeline-panel-ul">
<li><span class="importo">John Smith</span></li>
<img src="http://navegacionesfranks.com/jon.png">
<li><span class="causale">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 22/06/2014</small></p> </li>
</ul>
</div>
<div style="margin-top: 10px; margin-bottom: 10px;"></div>
<div class="timeline-panel debits">
<ul class="timeline-panel-ul">
<li><span class="importo">Selase</span></li>
<img src="http://navegacionesfranks.com/jon.png">
<li><span class="causale">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 22/06/2014</small></p> </li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!--due -->
<div class="row timeline-movement">
<div class="timeline-badge">
<span class="timeline-balloon-date-day">13</span>
<span class="timeline-balloon-date-month">APR</span>
</div>
<div class="col-sm-offset-6 col-sm-6 timeline-item">
<div class="row">
<div class="col-sm-offset-1 col-sm-11">
<div class="timeline-panel debits">
<ul class="timeline-panel-ul">
<li><span class="importo">Mussum ipsum cacilds</span></li>
<li><span class="causale">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 11/09/2014</small></p> </li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6 timeline-item">
<div class="row">
<div class="col-sm-11">
<div class="timeline-panel credits">
<ul class="timeline-panel-ul">
<li><span class="importo">Mussum ipsum cacilds</span></li>
<li><span class="causale">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 11/09/2014</small></p> </li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="row timeline-movement">
<div class="timeline-badge">
<span class="timeline-balloon-date-day">10</span>
<span class="timeline-balloon-date-month">APR</span>
</div>
<div class="col-sm-offset-6 col-sm-6 timeline-item">
<div class="row">
<div class="col-sm-offset-1 col-sm-11">
<div class="timeline-panel debits">
<ul class="timeline-panel-ul">
<li><span class="importo">Mussum ipsum cacilds</span></li>
<li><span class="causale">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 11/09/2014</small></p> </li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6 timeline-item">
<div class="row">
<div class="col-sm-11">
<div class="timeline-panel credits">
<ul class="timeline-panel-ul">
<li><span class="importo">Mussum ipsum cacilds</span></li>
<li><span class="causale">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span> </li>
<li><p><small class="text-muted"><i class="glyphicon glyphicon-time"></i> 11/09/2014</small></p> </li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
#timeline {
list-style: none;
position: relative;
}
#timeline:before {
top: 0;
bottom: 0;
position: absolute;
content: " ";
width: 2px;
background-color: #000;
left: 50%;
margin-left: -1.5px;
}
#timeline .clearFix {
clear: both;
height: 0;
}
#timeline .timeline-badge {
color: #fff;
width: 50px;
height: 50px;
font-size: 1.2em;
text-align: center;
position: absolute;
top: 20px;
left: 50%;
margin-left: -25px;
background-color: #000;
z-index: 100;
border-top-right-radius: 50%;
border-top-left-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
}
#timeline .timeline-badge span.timeline-balloon-date-day {
font-size: 1.4em;
}
#timeline .timeline-badge span.timeline-balloon-date-month {
font-size: .7em;
position: relative;
top: -10px;
}
#timeline .timeline-badge.timeline-filter-movement {
background-color: #ffffff;
font-size: 1.7em;
height: 35px;
margin-left: -18px;
width: 35px;
top: 40px;
}
#timeline .timeline-badge.timeline-filter-movement a span {
color: #000;
font-size: 1.3em;
top: -1px;
}
#timeline .timeline-badge.timeline-future-movement {
background-color: #ffffff;
height: 35px;
width: 35px;
font-size: 1.7em;
top: -16px;
margin-left: -18px;
}
#timeline .timeline-badge.timeline-future-movement a span {
color: #000;
font-size: .9em;
top: 2px;
left: 1px;
}
#timeline .timeline-movement {
border-bottom: dashed 1px #000;
position: relative;
}
#timeline .timeline-movement.timeline-movement-top {
height: 60px;
}
#timeline .timeline-movement .timeline-item {
padding: 20px 0;
}
#timeline .timeline-movement .timeline-item .timeline-panel {
border: 1px solid #d4d4d4;
border-radius: 3px;
background-color: #FFFFFF;
color: #666;
padding: 10px;
position: relative;
-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
#timeline .timeline-movement .timeline-item .timeline-panel .timeline-panel-ul {
list-style: none;
padding: 0;
margin: 0;
}
#timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul {
text-align: right;
}
#timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul li {
color: #666;
}
#timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul li span.importo {
color: #468c1f;
font-size: 1.3em;
}
#timeline .timeline-movement .timeline-item .timeline-panel.debits .timeline-panel-ul {
text-align: left;
}
#timeline .timeline-movement .timeline-item .timeline-panel.debits .timeline-panel-ul span.importo {
color: #e2001a;
font-size: 1.3em;
}
/** MODAL*/
body.modal-open #wrap{
-webkit-filter: blur(7px);
-moz-filter: blur(15px);
-o-filter: blur(15px);
-ms-filter: blur(15px);
filter: blur(15px);
background: #000;
}
.modal-backdrop {background: #000;}
/**TOOLTIP*/
.tooltip{
position:absolute;
z-index:1020;
display:block;
visibility:visible;
padding:5px;
font-size:11px;
opacity:0;
filter:alpha(opacity=0);
}
.tooltip.in{
/*opacity:0;
filter:alpha(opacity=80);*/
}
.tooltip.top{
margin-top:-2px;
}
.tooltip.top .tooltip-arrow{
bottom:0;
left:0;
margin-left:0;
border-left:0 solid transparent;
border-right:5px solid transparent;
border-top:0 solid #000;
}
.tooltip-arrow{
position:absolute;
width:0;
height:0;
}
$(document).ready(function(){
var my_posts = $("[rel=tooltip]");
for(i=0;i<my_posts.length;i++){
the_post = $(my_posts[i]);
if(the_post.hasClass('invert')){
the_post.tooltip({ placement: 'left'});
the_post.css("cursor","pointer");
}else{
the_post.tooltip({ placement: 'rigt'});
the_post.css("cursor","pointer");
}
}
});