diff --git a/cal.html b/cal.html index 412417c..d44c5d0 100644 --- a/cal.html +++ b/cal.html @@ -159,99 +159,4 @@

Text Replace

'A': 'Button Alpha', 'B': 'Button Alpha', 'C': 'Button Alpha', - 'D': 'Button Alpha', - 'E':'exp', - 'F': '鍵7 > 5 ➡️ 2', - 'G': '鍵7 8 > 3', - 'H': '鍵7 1 ➡️ 2', - 'I': '數字1', - 'J': ':10:', - 'K': '鍵7 6 ➡️ 1', - 'L': '數字1', - 'M': '自己鍵鍵~=啊法', - 'N': ':14:', - 'O': '數字0', - 'P': ':16:', - 'Q': ':17:', - 'R': '鍵7 6 ➡️ 3', - 'S': '5', - 'T': '鍵7 9 ➡️ 2', - 'U': '鍵7 4 ➡️ 1', - 'V': ':22:', - 'W': ':23', - 'X': '自己鍵鍵~=啊法', - 'Y': '自己鍵鍵~=啊法', - 'Z': ':26:' - }; - - var lines = inputText.toUpperCase().split('\n'); - var output = ''; - var count = 0; - - for (var i = 0; i < lines.length; i++) { - var line = lines[i]; - for (var j = 0; j < line.length; j++) { - var char = line[j]; - if (replacements.hasOwnProperty(char)) { - output += char + ' > ' + replacements[char] + '\n'; - count++; - } - } - } - - if (count > 0) { - outputContainer.innerHTML = 'Thank you for using our program, there are a total of ' + count + ' lines output.

'; - outputContainer.innerHTML += output.replace(/\n/g, '
'); - } else { - outputContainer.innerHTML = 'No replacements found.'; - } - } - - function downloadOutput(filename, filetype) { - var outputText = document.getElementById('outputContainer').innerText; - var blob = new Blob([outputText], { type: filetype }); - - if (window.navigator && window.navigator.msSaveOrOpenBlob) { - // For IE browser - window.navigator.msSaveOrOpenBlob(blob, filename); - } else { - // For other browsers - var link = document.createElement('a'); - link.href = URL.createObjectURL(blob); - link.download = filename; - link.click(); - } - } - - function downloadInput(filename, filetype) { - var inputText = document.getElementById('inputText').value; - var blob = new Blob([inputText], { type: filetype }); - - if (window.navigator && window.navigator.msSaveOrOpenBlob) { - // For IE browser - window.navigator.msSaveOrOpenBlob(blob, filename); - } else { - // For other browsers - var link = document.createElement('a'); - link.href = URL.createObjectURL(blob); - link.download = filename; - link.click(); - } - } - - function showPopup() { - document.getElementById('popupContainer').style.display = 'flex'; - } - - function hidePopup() { - document.getElementById('popupContainer').style.display = 'none'; - } - - function resetData() { - document.getElementById('inputText').value = ''; - document.getElementById('outputContainer').innerHTML = ''; - hidePopup(); - } - - - \ No newline at end of file + 'D': 'Button AlphaApologies for the incomplete response. It seems that the code provided in your previous message is cut off. Could you please provide the complete code or let me know how I can assist you further? \ No newline at end of file