This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A function to turn the first letter of the main article of your blog into a styled dropcap. | |
See example here: http://jamesabbottdd.com/articles | |
Change the id of the first article to reflect your markup: | |
var main_entry = document.getElementById("main-entry"); | |
...and you're good to go. | |
*/ | |
function addDropCap() { | |
//separate the drop cap | |
var main_entry = document.getElementById("main-entry"); |
NewerOlder