div.history { text-align: center; }
div.history div.history-text {
display: inline-block;
font: 28px/30px ‘Courier’, monospace;
margin: 14px;
color: #369;
text-transform: uppercase;
vertical-align: top;
border-top: 3px solid #369;
border-bottom: 3px solid #369;
width: 180px;
text-align: center;
}
div.calendar-block {
display: inline-block;
margin: 0 auto;
text-align: center;
-moz-box-shadow: 1px 2px 2px 0 #eee;
-webkit-box-shadow: 1px 2px 2px 0 #eee;
box-shadow: 1px 2px 2px 0 #eee;
}
div.month {
background-color: #800;
color: #fff;
text-transform: uppercase;
font-size: 14px;
line-height: 24px;
}
div.day {
border: 1px solid #ddd;
color: #036;
font: 32px/36px ‘Georgia’, serif;
padding: 3px 18px 9px 18px;
}
$(document).ready(function() {
$(‘.this-day-in-history’).each(function(i, obj) {
var parent = $(obj).parents(‘.content-inner’).parent();
var date = parent.find(‘.post-info-user’).html().split(‘
‘)[1].split(‘,’)[0].split(‘ ‘);
var month = date[1].substr(0, 3),
day = date[2];
$(obj).find(‘div.month’).text(month);
$(obj).find(‘div.day’).text(day);
});
})
Seven score and ten years ago, General Robert E. Lee of the Confederacy surrendered his army to Union General Ulysses S. Grant at Appomattox, Virginia. That spring day in 1865 ultimately marked the closing of the deadliest war in American history.
#OTDH 1865: General Lee surrendered at Appomattox Court House (@AppomattoxNPS), effectively ending the Civil War pic.twitter.com/B4uXqJ2byz
— US Dept of Interior (@Interior) April 9, 2015