diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-04-09 16:24:58 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-04-09 16:24:58 +0800 |
| commit | 9e0d47ebbb6f306e472cece5c210e7b3635263ff (patch) | |
| tree | cba6da6ee9c9aab70d2d6775eca74483eb0531e4 | |
| parent | cd7c2e8089dc4cf36a4e66107539c2d5d3af1b39 (diff) | |
made const before the match map
| -rw-r--r-- | main.js | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,3 +1,10 @@ +const modeBtn = document.getElementById("mode"); +const convertBtn = document.getElementById("convertBtn"); +const input = document.getElementById("input"); +const output = document.getElementById("output"); +const copyBtn = document.getElementById("copyBtn"); +var mode = true; + const match = `\`\` 1¡ 2™ @@ -90,12 +97,6 @@ MÂ <¯ >˘ ?¿`.split("\n"); -const modeBtn = document.getElementById("mode"); -const convertBtn = document.getElementById("convertBtn"); -const input = document.getElementById("input"); -const output = document.getElementById("output"); -const copyBtn = document.getElementById("copyBtn"); -var mode = true; function convert(input, mode) { input = input.split(""); |
