From b4d7b3da1184f8ba6df12836ca8c167c5d04e24c Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 30 Apr 2025 17:09:01 +0000 Subject: [PATCH] stuff --- html/translate.ejs | 482 ++++++++++++++++++++++++--------------------- 1 file changed, 258 insertions(+), 224 deletions(-) diff --git a/html/translate.ejs b/html/translate.ejs index ab41069c..c7261841 100644 --- a/html/translate.ejs +++ b/html/translate.ejs @@ -17,179 +17,13 @@ along with this program. If not, see https://www.gnu.org/licenses/. --> - - - - PokeTranslate - - - - - - - - - - - - - <% if (isMobile) { %> - - <% } %> - - <% if (!isMobile) { %> - - <% } %> - - - -
-
-

PokeTranslate

-
- - <% const languageOptions = [ +<% const languageOptions = [ { code: 'autodetect', name: 'Autodetect' }, { code: 'af', name: 'Afrikaans' }, { code: 'sq', name: 'Albanian' }, { code: 'am', name: 'Amharic' }, { code: 'ar', name: 'Arabic' }, - { code: 'hy', name: 'Armenian' }, + { code: 'hy', name: 'Armenian' }, { code: 'as', name: 'Assamese' }, { code: 'ay', name: 'Aymara' }, { code: 'az', name: 'Azerbaijani' }, @@ -278,71 +112,271 @@ { code: 'yi', name: 'Yiddish' }, { code: 'yo', name: 'Yoruba' }, { code: 'zu', name: 'Zulu' } -]; %> -
- -
-
- +]; %> - -
-
+ + + + PokeTranslate + + + + + + + + + + + + - -
-
- -
+ + + +
+
+
+ +

PokeTranslate

+ + +
+
+ +
+ + swap_horiz + +
+ +
+
+ +
+
+ + +
+
+ + +
+
+ +
+ +
+ +
+ + - + } + document.querySelectorAll('textarea').forEach(el=>{ + const resize = ()=>{ el.style.height='auto'; el.style.height=el.scrollHeight+'px'; }; + el.addEventListener('input', resize); + resize(); + }); + })(); + - +