47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Queue Input</title>
|
|
</head>
|
|
<body>
|
|
<form method="POST" action="/queuein">
|
|
<label for="lines">in:</label>
|
|
<textarea
|
|
id="l"
|
|
rows="20"
|
|
cols="100"
|
|
style="min-width: 20%; min-height: 20dvh"
|
|
name="lines"
|
|
></textarea>
|
|
<input type="submit" value="ahh" />
|
|
</form>
|
|
|
|
{% if queue_items %}
|
|
<ol>
|
|
{% for item in queue_items %}
|
|
<li>
|
|
<a href="{{ item }}" target="_blank" rel="noreferrer noopener">
|
|
{{ item }}
|
|
<div class="qrcode"></div>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ol>
|
|
<script src="https://cdn.jsdelivr.net/npm/[email protected]/qrcode.js"></script>
|
|
<script>
|
|
window.addEventListener("load", (_) => {
|
|
document.querySelectorAll(".qrcode").forEach((e) => {
|
|
const a = e.parentElement.textContent.trim();
|
|
new QRCode(e, {
|
|
text: a,
|
|
correctLevel: QRCode.CorrectLevel.L,
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
{% endif %}
|
|
</body>
|
|
</html>
|