function initFootnotes() {
var $footnotes = $("#footnotes");
if (window.innerWidth <>
if ($footnotes.length > 0) {
$footnotes.find("li").each(function () {
$(this).css({
position: "static",
top: 0
});
});
$("#footer").css({
position: "static",
top: 0
});
}
$footnotes.css({
display: "block",
visibility: "visible"
});
} else {
if ($footnotes.length > 0) {
$footnotes.find("li").each(function () {
var $this = $(this),
thisId = $this.attr("id"),
thisRef = "ref" + thisId,
thisOffset = $this[0].offsetTop,
$thisRefElement = $('[id^="' + thisRef + '"]:first'),
thisRefOffset = 0;
if ($thisRefElement.length > 0) {
thisRefOffset = $thisRefElement[0].offsetTop;
}
var nextOffset = 0,
$previous = $this.prev();
if ($previous.length > 0) {
nextOffset = $previous[0].offsetTop + $previous[0].offsetHeight;
}
if (thisRefOffset < nextOffset) {
thisRefOffset = nextOffset;
}
if (thisRefOffset > thisOffset) {
var newOffset = thisRefOffset - thisOffset;
$this.css({
position: "relative",
top: newOffset
});
}
});
var $lastFootnote = $footnotes.find("li:last"),
$footer = $("#espn-footer"),
lastFootnoteOffset = $lastFootnote.offset().top + $lastFootnote.height(),
footerOffset = $footer.offset().top;
if (lastFootnoteOffset > footerOffset) {
$footer.css({
position: "relative",
top: lastFootnoteOffset - footerOffset
});
}
if ($footnotes.css("visibility") === "hidden" || $footnotes.css("display") === "none") {
$footnotes.css({
display: "none",
visibility: "visible"
}).fadeIn("slow");
}
}
}
}
grantland.core.initFootnotes = initFootnotes;>
If Kentucky is simultaneously the most straightforward finishing school for future professionals and the best place to win a national championship, there's no reason for a blue-chip high school senior to go anywhere else.
...in HTML and blog-speak that is called a blockquote.
Most all themes allow blockquotes, and all blog platforms do, because it is a basic part of html. If you using Wordpress with the visual mode editor, you mark something as a blockquote with the button that has a big quote mark symbol on it.
I don't see anything else on the linked page from Grantland that I'd call a sidenote, so if you meant something else, you'll need to explain further.
posted by philipy at 9:58 AM on March 29, 2012