all repos — tnt-search @ d1bd70fe308ef1b7385b055a91c0a9b7797753db

A search tool for TNTVillage's dump.

better buttons
Marco Andronaco andronacomarco@gmail.com
Sun, 09 Jul 2023 17:36:51 +0200
commit

d1bd70fe308ef1b7385b055a91c0a9b7797753db

parent

632d30eb88ceb519cf3f95472cc5e70431b8a85c

2 files changed, 13 insertions(+), 6 deletions(-)

jump to
M main.pymain.py

@@ -38,7 +38,7 @@ 35: "Podcast",

36: "Edicola", 37: "Mobile" } -MAGNET_STR = '<button onclick=\"location.href=\'magnet:?xt=urn:btih:{}\'\">m</button>' +MAGNET_STR = '<button onclick=\"location.href=\'magnet:?xt=urn:btih:{}\'\" class="btn btn-danger">m</button>' def handle_content(content: str): return { x: content[idx] for idx, x in enumerate(HEADER) }
M templates/index.htmltemplates/index.html

@@ -6,12 +6,19 @@ <style>

.row { margin-bottom: 40px; } + a:link, a:visited, a:hover { + color: white; + } </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"> </head> <body style="background-color: black; color: white;"> <div class="container mt-5"> - + <div class="row"> + <div class="col-md-12"> + <h1><a href="/">TNTVillage Search</a></h1> + </div> + </div> <div class="row d-flex justify-content-center"> <div class="col-md-6"> <select class="form-select" id="form2" aria-label="Category" onchange="search_button()" data-bs-theme="dark">

@@ -37,16 +44,16 @@ </div>

</div> <div class="row d-flex justify-content-center"> <div class="col-md-4"> - <a href="#" onclick="change_page(-1)"> + <button class="btn btn-primary" onclick="change_page(-1)"> Pagina precedente - </a> + </button> </div> <div class="col-md-4" style="text-align: center;" id="page_indicator"> </div> <div class="col-md-4" style="text-align: right;"> - <a href="#" onclick="change_page()"> + <button class="btn btn-primary" onclick="change_page()"> Pagina successiva - </a> + </button> </div> </div>