graphic tuning
Marco Andronaco andronacomarco@gmail.com
Sun, 09 Jul 2023 17:56:34 +0200
2 files changed,
5 insertions(+),
6 deletions(-)
M
main.py
→
main.py
@@ -38,7 +38,7 @@ 35: "Podcast",
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 @@ tmp['DIMENSIONE'] = sizeof_fmt(tmp['DIMENSIONE'])
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]
M
templates/index.html
→
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") {