i got a bit more original and added a new favicon! and i fixed some stuff
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 135 KiB |
@@ -100,9 +100,5 @@
|
||||
<script src="../../js/normal.js"></script>
|
||||
<script src="../../js/search.js" defer></script>
|
||||
<script src="../../js/ulorder.js" defer></script>
|
||||
|
||||
<footer style="margin-top:auto; width: 100%;">
|
||||
<p></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
12
webserver.py
12
webserver.py
@@ -4,7 +4,6 @@ import threading
|
||||
import subprocess
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
import mimetypes
|
||||
from functools import lru_cache
|
||||
from jsmin import jsmin # pip install jsmin
|
||||
import time
|
||||
|
||||
@@ -60,6 +59,9 @@ H2 = random.choice(H2_CANDIDATES) if H2_CANDIDATES else H1
|
||||
# cahcing was a bad, idea, servertime got stuck. it is now a variable ;)
|
||||
def index_footer():
|
||||
return f"""
|
||||
<!-- Footer styling doesnt need to work with
|
||||
flex, or anything else, because pagnation.
|
||||
-->
|
||||
<footer style="
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
@@ -67,9 +69,17 @@ def index_footer():
|
||||
">
|
||||
<hr style="border: 1px solid #ccc;" />
|
||||
<p>
|
||||
<!-- Server Time -->
|
||||
<img src="../css/icons/date.webp" width="16" height="16" alt="date" loading="lazy" style="vertical-align: middle;" />
|
||||
Server-Time (CET ; GMT+2): <i>{time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())}</i><br />
|
||||
<!-- Hashes -->
|
||||
<img src="../css/icons/magnifier.webp" width="16" height="16" alt="Hash2" loading="lazy" style="display:inline; vertical-align:middle;" />
|
||||
Hash 1 (<b>UTF-8</b>)<i>:{base64.b64encode(H1.encode("utf-8")).decode("utf-8")}</i><br />
|
||||
<img src="../css/icons/magnifier.webp" width="16" height="16" alt="Hash2" loading="lazy" style="display:inline; vertical-align:middle;" />
|
||||
Hash 2 (<b>Windows-1252</b>)<i>:{base64.b64encode(H2.encode("windows-1252")).decode("windows-1252")}</i><br />
|
||||
<!-- Git Repository Link -->
|
||||
<img src="../css/icons/written.webp" width="16" height="16" alt="Hash2" loading="lazy" style="display:inline; vertical-align:middle;" />
|
||||
<a style="text-decoration:none;color:#0066cc;font-style:italic;padding-top:5px;" href="https://rattatwinko.servecounterstrike.com/gitea/rattatwinko/PyPost">View Git-Repository</a>
|
||||
</p>
|
||||
</footer>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user