parent
b9c06d865f
commit
cf9c9649eb
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue