From cf9c9649eb0acea36fc790a9522f8e990e1bd5cf Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 12 May 2024 18:31:11 +0200 Subject: [PATCH] thank you --- deploy.py | 3 +-- html/port-calc.html | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy.py b/deploy.py index d3dd4dc..33a605f 100644 --- a/deploy.py +++ b/deploy.py @@ -6,7 +6,6 @@ from io import BytesIO # init ftp -print(getenv('FTP_SERVER')) ftp = FTP(getenv('FTP_SERVER')) ftp.login(getenv('FTP_USER'), getenv('FTP_PASSWORD')) @@ -15,7 +14,7 @@ chdir('html') for f in [i for i in listdir() if i.endswith('.html')]: # 1. Minify the index.html file using minify-html - minified_content = minify_html.minify(open(f, 'r').read(), minify_css=True, do_not_minify_doctype=True) + minified_content = minify_html.minify(open(f, 'r').read(), minify_css=True, minify_js=True, do_not_minify_doctype=True) # 2. Upload the file to an FTP server diff --git a/html/port-calc.html b/html/port-calc.html index 06e2e4a..4720db4 100644 --- a/html/port-calc.html +++ b/html/port-calc.html @@ -4,6 +4,13 @@ dn724 + +

Port: