From 57bf8e693727e63e7acc1aa2780c19948dc8de06 Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 5 Apr 2024 20:44:08 +0200 Subject: Represent chords with clearer ascii characters --- public/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/main.js b/public/main.js index db9a9f9..46ce5e0 100644 --- a/public/main.js +++ b/public/main.js @@ -5,7 +5,7 @@ function appendElement(parentElement, tag) { parentElement.appendChild(element) return element } - + function appendText(parentElement, text) { element = document.createTextNode(text) parentElement.appendChild(element) @@ -40,7 +40,7 @@ function applyShift(tonalities, t1, s) { const node = document.getElementById('g-Tonality') if (node !== null) { let tonality = node.innerText - mode = tonality[tonality.length - 1] == 'm' ? 'm' : '' + mode = tonality[tonality.length - 1] == 'ₘ' ? 'ₘ' : '' select = document.createElement('select') select['name'] = 'tonality' -- cgit v1.2.3