diff options
author | cremesk <ennik@envs.net> | 2019-07-08 22:17:42 +0200 |
---|---|---|
committer | cremesk <ennik@envs.net> | 2019-07-08 22:17:42 +0200 |
commit | 76dfaa830b8c135e6b41471fb4cd7e8bd78cbfd5 (patch) | |
tree | 7c907fa29e2711487e6adf121f3ea267b743733b /fhost.py | |
parent | update meta desc. (diff) | |
download | hex-zero-76dfaa830b8c135e6b41471fb4cd7e8bd78cbfd5.tar.gz hex-zero-76dfaa830b8c135e6b41471fb4cd7e8bd78cbfd5.tar.bz2 hex-zero-76dfaa830b8c135e6b41471fb4cd7e8bd78cbfd5.zip |
update html code and add Dark/Light Mode
Diffstat (limited to 'fhost.py')
-rwxr-xr-x | fhost.py | 32 |
1 files changed, 22 insertions, 10 deletions
@@ -348,17 +348,19 @@ def fhost(): <title>{6}</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="envs.net | Null Pointer" /> - <link rel="stylesheet" href="https://envs.net/css_style.css"> + <link rel="stylesheet" href="https://envs.net/css_style.css" /> + <script src="https://envs.net/darklight.js" ></script> </head> - <body> + <body id="body" class="light-mode"> + <div style="float: left;"> <pre> -<h2>envs.net | THE NULL POINTER</h2> +<h2>envs.net | THE NULL POINTER</h2> <h4>file hosting and URL shortening service.</h4> <h3>USAGE</h3> HTTP POST files here: - <code>curl -F'file=@yourfile.png' {0}</code> + <code>curl -F'file=@yourfile.png' {0}</code> You can also POST remote URLs: <code>curl -F'url=http://example.com/image.jpg' {0}</code> Or you can shorten URLs: @@ -391,11 +393,11 @@ You can also support it financially via Liberapay. <h3>ALIAS</h3> To make your life easier, you can add alias to your <code>.bashrc</code> on Linux and <code>.bash_profile</code> on Mac OS X. Just remember to reset your terminal session after that. -<code>0file() { curl -F"file=@$1" {0} } -0url() { curl -F"url=$1" {0} } -0short() { curl -F"shorten=$1" {0}; }</code> +<code>0file() { curl -F"file=@$1" {0} ; } +0url() { curl -F"url=$1" {0} ; } +0short() { curl -F"shorten=$1" {0} ; }</code> -<code>0file yourfile.png</code> +<code>0file "yourfile.png"</code> <h3>FILE RETENTION PERIOD</h3> retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3) @@ -433,15 +435,25 @@ Please allow up to 24 hours for a response. <div style="float: right; margin-right: 2.5em;"> -<pre><blockquote style="min-width: 15%; max-width: 15%;"> +<pre class="sidebar"><blockquote> <h3>UPLOAD DIRECTLY</h3> <form action="{0}" method="POST" enctype="multipart/form-data"> <label for="file">File:</label> - <input class="form-control" type="file" name="file"> + <input class="form-control" type="file" name="file" style="width:250px;"> <input class="form-control" type="submit" value="Submit"> </form></blockquote></pre> </div> + +<!-- Button DarkLight --> + <div style="float: right; margin-top: 1em; margin-right: 1em; position: fixed; top: 0; right: 0;"> + <button type="button" name="dark_light" onclick="toggleDarkLight()" title="Toggle dark/light mode">🌛</button> + </div> + +<script> + setThemeFromCookie(); +</script> + </body> </html> |