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);
});
})
Eight hundred years ago today, King John of England sealed the Magna Carta, a groundbreaking legal document that served as the foundation for our constitutional democracy.