Skip to content

Commit

Permalink
Do not show top div if both sub-text and tempo are absent
Browse files Browse the repository at this point in the history
  • Loading branch information
sonph committed Oct 11, 2024
1 parent a2b72b9 commit c644ffd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion render.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
const text = parseQuery(window.location.search).subText;
const tempoTimeSigE = document.getElementById("tempoTimeSig");

if (text !== undefined) {
const embedTempoTimeSig = parseQuery(window.location.search).EmbedTempoTimeSig;
if (text === undefined && embedTempoTimeSig === undefined) {
document.getElementById("topDiv").remove();
} else if (text !== undefined) {
textE.innerText = text;
textE.style.float = 'left';
tempoTimeSigE.style.float = 'right';
// TempoTimeSig element content is set from groove_display.js.
}
});

Expand Down

0 comments on commit c644ffd

Please sign in to comment.