Add icon for type: term.

This commit is contained in:
kor 2018-10-30 22:44:52 +13:00
parent 58ba6bef2c
commit af8d2e008b

View File

@ -357,6 +357,9 @@ function View()
case 'encyclopedia': case 'encyclopedia':
result += `<i class="griditem-typeicon fas fa-globe"></i>`; result += `<i class="griditem-typeicon fas fa-globe"></i>`;
break; break;
case 'term':
result += `<i class="griditem-typeicon fas fa-ribbon"></i>`;
break;
} }
result += `</a>`; result += `</a>`;
return result; return result;
@ -419,6 +422,7 @@ function View()
case 'music': icon = 'fas fa-music'; break; case 'music': icon = 'fas fa-music'; break;
case 'image': icon = 'fas fa-image'; break; case 'image': icon = 'fas fa-image'; break;
case 'encyclopedia': icon = 'fas fa-globe'; break; case 'encyclopedia': icon = 'fas fa-globe'; break;
case 'term': icon = 'fas fa-ribbon'; break;
} }
menuContent += `<a href='#type-${type}' class="menu-item">`; menuContent += `<a href='#type-${type}' class="menu-item">`;