Compare commits

..

2 commits

Author SHA1 Message Date
561ab77f65 fix: show neovim the truth 2024-11-14 07:59:45 -08:00
6a6e542545 askama: formatting and cleanup 2024-11-14 07:57:42 -08:00
3 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,4 @@
{# Comment For Prettier <3 #}
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
@ -6,13 +7,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/css/main.css" rel="stylesheet" /> <link href="/css/main.css" rel="stylesheet" />
<link href="/css/link.css" rel="stylesheet" /> <link href="/css/link.css" rel="stylesheet" />
<script src="/scripts/file_label.js"></script>
<script src="/scripts/link.js"></script>
<script <script
src="https://unpkg.com/htmx.org@2.0.2" src="https://unpkg.com/htmx.org@2.0.2"
integrity="sha384-Y7hw+L/jvKeWIRRkqWYfPcvVxHzVzn5REgzbawhxAuQGwX1XWe70vji+VSeHOThJ" integrity="sha384-Y7hw+L/jvKeWIRRkqWYfPcvVxHzVzn5REgzbawhxAuQGwX1XWe70vji+VSeHOThJ"
crossorigin="anonymous" crossorigin="anonymous"
></script> ></script>
<script src="/scripts/file_label.js"></script>
<script src="/scripts/link.js"></script>
</head> </head>
<body> <body>
<h1>NyaZoom<sup>2</sup></h1> <h1>NyaZoom<sup>2</sup></h1>

View file

@ -4,21 +4,21 @@
<div class="form-wrapper"> <div class="form-wrapper">
<div class="column-container"> <div class="column-container">
<div class="link-wrapper"> <div class="link-wrapper">
<a id="link" href="/download/{{id}}"> "Download Now!" </a> <a id="link" href="/download/{{ id }}">Download Now!</a>
</div> </div>
<div <div
class="link-wrapper" class="link-wrapper"
hx-get="/link/{{id}}/remaining" hx-get="/link/{{ id }}/remaining"
hx-trigger="click from:#link delay:0.2s, every 10s" hx-trigger="click from:#link delay:0.2s, every 10s"
> >
{{Self::get_downloads_remaining_text(record)}} {{ Self::get_downloads_remaining_text(record) }}
</div> </div>
<button class="return-button" onclick="clipboard()"> <button class="return-button" onclick="clipboard()">
Copy to Clipboard Copy to Clipboard
</button> </button>
<a href="/" class="return-button"> "Return to home" </a> <a href="/" class="return-button">Return to home</a>
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}

View file

@ -13,7 +13,7 @@
hx-swap="outerHTML" hx-swap="outerHTML"
hx-delete="/link/{{ key }}" hx-delete="/link/{{ key }}"
> >
"X" X
</button> </button>
</li> </li>
{% endfor %} {% endfor %}