thank you
All checks were successful
/ deploy (push) Successful in 19s

This commit is contained in:
Minecon724 2024-05-12 18:31:11 +02:00
parent b9c06d865f
commit cf9c9649eb
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -4,6 +4,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>dn724</title>
<style>
html {
background: black;
color: white;
}
</style>
<input type="number" min="0" placeholder="your ASN" oninput="calculate(this)">
<p>Port: <span id="result"></span></p>