Compare commits
2 commits
08504cf64e
...
561ab77f65
Author | SHA1 | Date | |
---|---|---|---|
561ab77f65 | |||
6a6e542545 |
3 changed files with 8 additions and 7 deletions
|
@ -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>
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue