diff --git a/app/static/js/app.js b/app/static/js/app.js index b957b08..434ad1a 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -30,6 +30,8 @@ document.addEventListener('DOMContentLoaded', function(){ suggestions: false, isSuggesting: false, + + translationType: "text" }, mounted: function(){ var self = this; @@ -299,6 +301,10 @@ document.addEventListener('DOMContentLoaded', function(){ deleteText: function(e){ e.preventDefault(); this.inputText = this.translatedText = this.output = ""; + }, + switchType: function(type) { + console.log(type) + this.translationType = type; } } }); diff --git a/app/templates/index.html b/app/templates/index.html index d3f1577..5242e78 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -106,8 +106,8 @@

Translation API

- titleTranslate text - descriptionTranslate files + +
@@ -133,7 +133,7 @@
-
+
-
+
+
+ +
+
-