From fd34a8779de6143374cae7b4609405a65f3aa2f7 Mon Sep 17 00:00:00 2001 From: mrdog233o5 Date: Tue, 9 Apr 2024 13:19:54 +0800 Subject: idk --- index.html | 14 +--- main.js | 219 +++++++++++++++++++++++++++---------------------------------- 2 files changed, 98 insertions(+), 135 deletions(-) diff --git a/index.html b/index.html index 4fff5be..f883228 100644 --- a/index.html +++ b/index.html @@ -3,18 +3,10 @@ - APPLE CONVERTER | SECRET ENCRYPT & DECRYPTER + + Apple comverter -
- -
- - -
- + \ No newline at end of file diff --git a/main.js b/main.js index 304e017..eff37dc 100644 --- a/main.js +++ b/main.js @@ -1,124 +1,95 @@ -const inputArea = document.getElementById('input'); -const outputDiv = document.getElementById('output'); -const convertButton = document.getElementById('convert'); -const modeSelect = document.getElementById('mode'); - - -const map = { - '`': '`', - '~': '`', - '1': '¡', - '!': '⁄', - '2': '™', - '@': '€', - '3': '£', - '#': '‹', - '4': '¢', - '$': '›', - '5': '∞', - '%': 'fi', - '6': '§', - '^': 'fl', - '7': '¶', - '&': '‡', - '8': '•', - '*': '°', - '9': 'ª', - '(': '·', - '0': 'º', - ')': '‚', - '-': '−', - '_': '—', - '=': '≠', - '+': '±', - 'q': 'œ', - 'Q': 'Œ', - 'w': '∑', - 'W': '„', - 'e': '´', - 'E': '´', - 'r': '®', - 'R': '‰', - 't': '†', - 'T': 'ˇ', - 'y': '¥', - 'Y': 'Á', - 'u': '¨', - 'U': '¨', - 'i': 'ˆ', - 'I': 'ˆ', - 'o': 'ø', - 'O': 'Ø', - 'p': 'π', - 'P': '∏', - '[': '“', - '{': '”', - ']': '‘', - '}': '’', - '\\': '«', - '|': '»', - 'a': 'å', - 'A': 'Å', - 's': 'ß', - 'S': 'Í', - 'd': '∂', - 'D': 'Î', - 'f': 'ƒ', - 'F': 'Ï', - 'g': '©', - 'G': '˝', - 'h': '˙', - 'H': '', - 'j': '∆', - 'J': 'Ô', - 'k': '˚', - 'K': '', - 'l': '…', - 'L': 'Ò', - ';': '…', - ':': 'Ú', - 'z': 'Ω', - 'Z': '¸', - 'x': '≈', - 'X': '˛', - 'c': 'ç', - 'C': 'Ç', - 'v': '√', - 'V': '◊', - 'b': '∫', - 'B': 'ı', - 'n': '˜', - 'N': '˜', - 'm': 'µ', - 'M': 'Â', - ',': '≤', - '<': '≤', - '.': '≥', - '>': '˘', - '/': '÷', - '?': '¿' -}; - -convertButton.addEventListener('click', () => { - const mode = modeSelect.value; - const inputText = inputArea.value; - let outputText = ''; - - if (mode === 'normal') { - outputText = convertNormal(inputText, map); - } else if (mode === 'reverse') { - outputText = convertReverse(inputText, map); - } - - outputDiv.textContent = outputText; -}); - -function convertNormal(data, map) { - return data.split('').map(char => { - return Object.keys(map).find(key => map[key] === char) || char; - }).join(''); -} - -function convertReverse(data, map) { - return data.split('').map(char => map[char] || char).join(''); -} +const match = `\`\` +1¡ +2™ +3£ +4¢ +5∞ +6§ +7¶ +8• +9ª +0º +-– +=≠ +qœ +w∑ +e´ +r® +t† +y¥ +u¨ +iˆ +oø +pπ +[“ +]‘ +\\« +aå +sß +d∂ +fƒ +g© +h˙ +j∆ +k˚ +l¬ +;… +'æ +zΩ +x≈ +cç +v√ +b∫ +n˜ +mµ +,≤ +.≥ +/÷ +~~ +!⁄ +@€ +#‹ +$› +%fi +^fl +&‡ +*° +(· +)‚ +QŒ +W„ +E´ +R‰ +Tˇ +YÁ +U¨ +Iˆ +OØ +P∏ +{” +}’ +|» +AÅ +SÍ +DÎ +FÏ +G˝ +HÓ +JÔ +K +LÒ +:Ú +"Æ +Z¸ +X˛ +CÇ +V◊ +Bı +N˜ +M +<¯ +>˘ +?¿`.split("\n"); +match.forEach((idk) => { + console.log(idk); +}) \ No newline at end of file -- cgit v1.2.3