diff --git a/index.html b/index.html index 44dfd47..8694bb5 100755 --- a/index.html +++ b/index.html @@ -342,10 +342,16 @@ function updateGutters(cm) { $.each(data, function(k,v) { font_aliases.push(v.alias); $("#select-font").append(""); + + if (typeof v.year === "undefined") { + yearString = ""; + } else { + yearString = " (" + v.year + ")"; + } + $("#font-info").append( "

" + v.name + - " - " + "" + v.author + "" + - " (" + v.year + ")" + + " - " + "" + v.author + "" + yearString + "

" ); });