diff options
author | Anthony Wang | 2024-11-04 15:11:29 -0500 |
---|---|---|
committer | Anthony Wang | 2024-11-04 15:11:29 -0500 |
commit | 096523d180590c417010e2061f805a74ca304aee (patch) | |
tree | 30436c810295a7fa30ba252f95eb41f4a713507e /layouts | |
parent | 384c0421dc2c1ddb8d7b5e6b16c518bb6eb215a3 (diff) |
Use cursed ij Unicode character
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/sort.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/shortcodes/sort.html b/layouts/shortcodes/sort.html index a748bd1..69f6f1b 100644 --- a/layouts/shortcodes/sort.html +++ b/layouts/shortcodes/sort.html @@ -6,8 +6,13 @@ let running = false function render(n, A, i, j) { let line1 = Array(n).fill(" ") - line1[j] = "j" - line1[i] = "i" + if (i == j) { + line1[i] = "ij" + } + else { + line1[j] = "j" + line1[i] = "i" + } document.getElementById("visualization").innerHTML = line1.join(" ") + "\n" + A.join(" ") } |