Skip to content

Commit

Permalink
replace header.hbs with simple javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
gstrauss committed Nov 27, 2024
1 parent 5bd7fa5 commit f8f7d4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 5 additions & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ const render = async () => {
}

// render the output header
document.getElementById('output-header').innerHTML = templates.header(_state);
let header = `<h3>${_state.form.version_tags}</h3>\n`;
if (_state.output.showSupports) {
header += '<h6 id="output-clients">\n Supports '+_state.output.oldestClients.join(', ')+'</h6>\n';
}
document.getElementById('output-header').innerHTML = header;

if (_state.output.protocols.length === 0) {
document.getElementById('output-config').innerHTML =
Expand Down
10 changes: 0 additions & 10 deletions src/templates/partials/header.hbs

This file was deleted.

0 comments on commit f8f7d4c

Please sign in to comment.