summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-04-09 16:24:58 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-04-09 16:24:58 +0800
commit9e0d47ebbb6f306e472cece5c210e7b3635263ff (patch)
treecba6da6ee9c9aab70d2d6775eca74483eb0531e4
parentcd7c2e8089dc4cf36a4e66107539c2d5d3af1b39 (diff)
made const before the match map
-rw-r--r--main.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/main.js b/main.js
index 4d6c037..e13c874 100644
--- a/main.js
+++ b/main.js
@@ -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("");