Minor changes, updated README

This commit is contained in:
Piero Toffanin 2020-12-20 15:52:02 -05:00
commit f6bd993b38
4 changed files with 55 additions and 5 deletions

View file

@ -6,7 +6,7 @@ from flask_swagger_ui import get_swaggerui_blueprint
from flask_limiter.util import get_remote_address
def create_app(char_limit=-1, req_limit=-1, google_analytics=None, debug=False):
def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False):
boot()
app = Flask(__name__)
@ -35,7 +35,7 @@ def create_app(char_limit=-1, req_limit=-1, google_analytics=None, debug=False):
@app.route("/")
def index():
return render_template('index.html', gaId=google_analytics)
return render_template('index.html', gaId=ga_id)
@app.route("/languages")
def langs():

View file

@ -292,6 +292,7 @@ document.addEventListener('DOMContentLoaded', function(){
this.$refs.inputTextarea.style.height = 150 + "px";
this.$refs.translatedTextarea.style.height = 150 + "px";
}else{
this.$refs.inputTextarea.style.height = this.$refs.translatedTextarea.style.height = "1px";
this.$refs.inputTextarea.style.height = Math.max(150, this.$refs.inputTextarea.scrollHeight) + "px";
this.$refs.translatedTextarea.style.height = Math.max(150, this.$refs.translatedTextarea.scrollHeight) + "px";
}