From 817f91a37ee6bdd72aa80b05260739029c7275a1 Mon Sep 17 00:00:00 2001
From: vjasonacc <118427701+vjasonacc@users.noreply.github.com>
Date: Fri, 3 May 2024 19:22:52 +0800
Subject: [PATCH] Update cal.html
---
cal.html | 97 +-------------------------------------------------------
1 file changed, 1 insertion(+), 96 deletions(-)
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();
- }
-
-