From 8ab8b90dfc14a1ef43e2440a9b822bdcccf91b83 Mon Sep 17 00:00:00 2001 From: idotj Date: Wed, 2 Jun 2021 22:54:06 +0200 Subject: [PATCH] Add html5 structure + improve UX/UI --- app/templates/index.html | 821 +++++++++++++++++++-------------------- 1 file changed, 395 insertions(+), 426 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 5d7f0d2..404ea64 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -14,34 +14,12 @@ - - - - - + + + {% if gaId %} @@ -50,449 +28,440 @@ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', '{{ gaId }}'); - {% endif %} + {% endif %} - - -
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
-
-
-
-
-
-
-
-
-
-
-
- warning

[[ error ]]

-
-
- Dismiss -
-
-
-
-
-
-
-
-
-
-
-
-

Translation API

-
-
-
-
-
-
- -
- -
- -
+ + + +
+
+
+
+
+
+
+
+
+
+
+
-
-
- - -
- +
+
+
+
+
+ +
+
+
+
+
+
+
+
+ warning

[[ error ]]

+
+
+ Dismiss +
+
+
+
+
+
+
+
+ +
+
+
+
+

Translation API

+ + +
+
+ Translate from + +
+ +
+ + swap_horiz + + Translate into +
-
-
- - -
-
-
-
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ + +
+ +
+
+ +
+
+ + + +
+
+
+ + +
+
+
+ +
+
+
+
+

Request

-

-


-

+

+							

Response

-

-
+

+							
+
-
-
-
-
-
- {% if web_version %} -
-
-
-
-

Open Source Machine Translation

-

100% Self-Hosted. No Limits. No Ties to Proprietary Services.

-
cloud_download Download -


-
-
-
-
-{% endif %} -
-
- -
-
-
-
-
LibreTranslate
-

Free and Open Source Machine Translation API

-

- Made with ❤ by UAV4GEO and powered by Argos Translate -

-

License: AGPLv3

-

JavaScript license information

-{% if web_version %} -

- The public API on libretranslate.com should be used for testing, personal or infrequent use. If you're going to run an application in production, please host your own server or get in touch to obtain an API key. -

-{% endif %} -
-
- -
-
+ {% if web_version %} +
+
+
+
+

Open Source Machine Translation

+

100% Self-Hosted. No Limits. No Ties to Proprietary Services.

+
cloud_download Download +


+
+
+
+
+ {% endif %}
-
- -
+ - - + - + + - -document.addEventListener('DOMContentLoaded', function(){ - var elems = document.querySelectorAll('.sidenav'); - var instances = M.Sidenav.init(elems); + + localStorage.setItem("api_key", newKey); + } + // @license-end +