function Nav() { this.container = null; this.install = function(container) { this.container = container; } this.display = function(value) { let navContent = ``; if (window.showAdd !== undefined && window.showAdd) { // ADD navContent += `
`; } // TOTAL navContent += ` `; // DONE if (SETTINGS.SHOWDONE) { navContent += ` `; } navContent += ` `; // TERM navContent += ` `; // TAGS navContent += ` `; this.container.innerHTML = navContent; } }