diff --git a/index.css b/index.css index 9974ff2..cd7adc3 100644 --- a/index.css +++ b/index.css @@ -85,7 +85,7 @@ section.select-list { } section.select-list .entry { position: relative; - display: block; + display: flex; padding: .5em 1em; } section.select-list .entry:hover { @@ -105,7 +105,10 @@ section.select-list .active .name { } section.select-list a.favoritelink { margin-right: 2px; - color: red; + color: #ccc; +} +section.select-list a.pinned { + color: black; } section.select-list a.website { position: absolute; diff --git a/index.js b/index.js index 2538a93..321efd8 100644 --- a/index.js +++ b/index.js @@ -80,6 +80,7 @@ function renderSelectList() { $("#select-font").empty(); var icon = ''; + var pinIcon = ''; var favoritesMap = {}; try { @@ -112,12 +113,13 @@ function renderSelectList() { } $("#select-font").append( "
" + - "" + - " " + - (favoritesMap[v.alias] ? "♥︎" : "♡") + "" + - "" + v.name + "" + - "" + v.author + " (" + v.year + ") — " + v.style + render_info + liga_info + "" + - "" + + "" + + pinIcon + + "" + + "" + + "" + v.name + "" + + "" + v.author + " (" + v.year + ") — " + v.style + render_info + liga_info + "" + + "" + " Info & Download" + icon + "
" ); }); @@ -140,6 +142,7 @@ function toggleFavorite(alias) { console.error('could not save favorite', err); } renderSelectList(); + return false; } $(document).ready(function() {