diff options
author | Marco Andronaco <andronacomarco@gmail.com> | 2023-07-09 17:56:34 +0200 |
---|---|---|
committer | Marco Andronaco <andronacomarco@gmail.com> | 2023-07-09 17:56:34 +0200 |
commit | d4b4aaf72d84f02c001002a7f56119ae060dc520 (patch) | |
tree | 7d61fa5f80b3668a9711ce7034213b437d67c58f | |
parent | 25e86e9a71bf11b75ca989164268340931193637 (diff) | |
download | tnt-search-d4b4aaf72d84f02c001002a7f56119ae060dc520.tar.gz |
graphic tuning
-rwxr-xr-x | main.py | 3 | ||||
-rw-r--r-- | templates/index.html | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/main.py b/main.py index fa239ee..b427c3e 100755 --- a/main.py +++ b/main.py @@ -38,7 +38,7 @@ CATEGORIE = { 36: "Edicola", 37: "Mobile" } -MAGNET_STR = '<button onclick=\"location.href=\'magnet:?xt=urn:btih:{}\'\" class="btn btn-danger">m</button>' +MAGNET_STR = '<button onclick=\"location.href=\'magnet:?xt=urn:btih:{}\'\" class="btn btn-danger">n</button>' def handle_content(content: str): return { x: content[idx] for idx, x in enumerate(HEADER) } @@ -82,7 +82,6 @@ def parse_values(result): return tmp def format_results(results, headers=HEADER): - print(len(results)) contents = [parse_values(x) for x in results] return [[result[header] for header in headers] for result in contents] diff --git a/templates/index.html b/templates/index.html index 7784ca7..adfd469 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,13 +1,15 @@ <!DOCTYPE html> <html> <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>TNT Search</title> <style> .row { margin-bottom: 40px; } - a:link, a:visited, a:hover { - color: white; + a:hover, a:active, a:visited, a { + color: unset !important; } </style> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> @@ -119,9 +121,7 @@ result = get_query_info(); search_field.value = result[0]; - console.log(category_field.value, result[1]); category_field.value = result[1]; - console.log(category_field.value) page_indicator.innerHTML = "Pagina " + result[2]; search_field.addEventListener("keyup", ({key}) => { if (key === "Enter") { |