diff --git a/docs/logic/view.js b/docs/logic/view.js index a41228c..ee300cf 100644 --- a/docs/logic/view.js +++ b/docs/logic/view.js @@ -166,26 +166,16 @@ function View() // TYPE if (SETTINGS.SHOWTYPE && typeof value.TYPE !== 'undefined') { - let icon = ''; - switch (value.TYPE) { - case 'article': icon = 'far fa-newspaper'; break; - case 'podcast': icon = 'fas fa-podcast'; break; - case 'video': icon = 'fas fa-tv'; break; - case 'list': icon = 'fas fa-file-alt'; break; - case 'book': icon = 'fas fa-book-open'; break; - case 'game': icon = 'fas fa-gamepad'; break; - case 'service': icon = 'fas fa-server'; break; - case 'lecture': icon = 'fas fa-chalkboard-teacher'; break; - case 'quote': icon = 'fas fa-comment'; break; - case 'tool': icon = 'fas fa-wrench'; break; - case 'music': icon = 'fas fa-music'; break; - case 'image': icon = 'fas fa-image'; break; - case 'encyclopedia': icon = 'fas fa-globe'; break; - } - entry += ``; - entry += ``; - entry += ``; + entry += `
`; + for (let tc = 0; tc < value.TYPE.length; tc++) + { + const icon = getTypeIconName(value.TYPE[tc]); + entry += ``; + entry += ``; + entry += ``; + } + entry += `
`; // griditem-typecontainer } // UPPER CONTENT END @@ -313,58 +303,6 @@ function View() return entry; } - this.doTypeIcon = function(type, count) - { - let result = ``; - switch (type) - { - case 'article': - result += ``; - break; - case 'podcast': - result += ``; - break; - case 'video': - result += ``; - break; - case 'list': - result += ``; - break; - case 'book': - result += ``; - break; - case 'game': - result += ``; - break; - case 'service': - result += ``; - break; - case 'lecture': - result += ``; - break; - case 'quote': - result += ``; - break; - case 'tool': - result += ``; - break; - case 'music': - result += ``; - break; - case 'image': - result += ``; - break; - case 'encyclopedia': - result += ``; - break; - case 'term': - result += ``; - break; - } - result += ``; - return result; - } - this.stats = function(value) { let menuContent = ``; @@ -402,29 +340,12 @@ function View() menuContent += ``; menuContent += `