From 9e0d47ebbb6f306e472cece5c210e7b3635263ff Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 9 Apr 2024 16:24:58 +0800 Subject: made const before the match map --- main.js | 13 +++++++------ 1 file 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(""); -- cgit v1.2.3